modelId
stringlengths
4
122
author
stringlengths
2
42
last_modified
unknown
downloads
int64
0
74.7M
likes
int64
0
9.67k
library_name
stringlengths
2
84
tags
sequence
pipeline_tag
stringlengths
5
30
createdAt
unknown
card
stringlengths
1
901k
embedding
sequence
thibaud/controlnet-sd21
thibaud
"2023-08-14T07:43:07Z"
25,549
347
diffusers
[ "diffusers", "art", "stable diffusion", "controlnet", "en", "dataset:laion/laion-art", "license:other", "region:us" ]
null
"2023-03-06T15:24:04Z"
--- language: - en license: other tags: - art - diffusers - stable diffusion - controlnet datasets: laion/laion-art --- Want to support my work: you can bought my Artbook: https://thibaud.art ___ Here's the first version of controlnet for stablediffusion 2.1 Trained on a subset of laion/laion-art License: refers to the different preprocessor's ones. ### Safetensors version uploaded, only 700mb! ### Canny: ![<canny> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_canny.png) ### Depth: ![<depth> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_depth.png) ### ZoeDepth: ![<depth> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_zoedepth.png) ### Hed: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_hed.png) ### Scribble: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_scribble.png) ### OpenPose: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_openpose.png) ### Color: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_color.png) ### OpenPose: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_openposev2.png) ### LineArt: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_lineart.png) ### Ade20K: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_ade20k.png) ### Normal BAE: ![<hed> 0](https://huggingface.co/thibaud/controlnet-sd21/resolve/main/example_normalbae.png) ### To use with Automatic1111: * Download the ckpt files or safetensors ones * Put it in extensions/sd-webui-controlnet/models * in settings/controlnet, change cldm_v15.yaml by cldm_v21.yaml * Enjoy ### To use ZoeDepth: You can use it with annotator depth/le_res but it works better with ZoeDepth Annotator. My PR is not accepted yet but you can use my fork. My fork: https://github.com/thibaudart/sd-webui-controlnet The PR: https://github.com/Mikubill/sd-webui-controlnet/pull/655#issuecomment-1481724024 ### Misuse, Malicious Use, and Out-of-Scope Use The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes. Thanks https://huggingface.co/lllyasviel/ for the implementation and the release of 1.5 models. Thanks https://huggingface.co/p1atdev/ for the conversion script from ckpt to safetensors pruned & fp16 ### Models can't be sell, merge, distributed without prior writing agreement.
[ -0.5249461531639099, -0.25169917941093445, -0.08148277550935745, 0.41101282835006714, -0.380696177482605, -0.3606458604335785, -0.0024033840745687485, -0.6008610129356384, 0.7691797614097595, 0.6424275636672974, -0.5060601234436035, -0.4808964729309082, -0.5955098271369934, -0.1714901179075241, -0.2552555501461029, 0.6765236854553223, -0.3828776776790619, -0.1749860644340515, 0.20943975448608398, -0.1655324399471283, -0.19214436411857605, -0.19549156725406647, -0.9316914081573486, -0.3081575632095337, 0.665923535823822, 0.3992908298969269, 0.7847057580947876, 0.8543192148208618, 0.5343791842460632, 0.3758598864078522, -0.13178664445877075, 0.03265371918678284, -0.49691030383110046, 0.11973778903484344, -0.018699854612350464, -0.05450122058391571, -0.7552472949028015, 0.1263793408870697, 0.5265913605690002, 0.30548587441444397, -0.12637963891029358, -0.12097158282995224, -0.0041934591718018055, 0.587776243686676, -0.6568911671638489, -0.032935742288827896, -0.04450439661741257, 0.2858986556529999, -0.22080683708190918, 0.07159119099378586, -0.15935948491096497, -0.3727615177631378, 0.016936780884861946, -1.1763291358947754, -0.28147387504577637, -0.0737524926662445, 1.4243781566619873, 0.20781750977039337, -0.39181047677993774, -0.004337111487984657, -0.3628805875778198, 0.5701344013214111, -0.8171877264976501, 0.10845968872308731, 0.38658657670021057, 0.3827109634876251, -0.25150376558303833, -1.045485019683838, -0.29596754908561707, -0.3459200859069824, -0.11348540335893631, 0.3763694763183594, -0.6101517677307129, 0.20832732319831848, 0.48423027992248535, 0.15994010865688324, -0.4166562259197235, 0.3730263411998749, -0.4765343964099884, -0.562628984451294, 0.6615080237388611, -0.08477906882762909, 0.5122928619384766, -0.15934708714485168, -0.6480299234390259, -0.2649542987346649, -0.2690064013004303, 0.17540572583675385, 0.5444818139076233, -0.014591403305530548, -0.742897629737854, 0.391336590051651, 0.02824157103896141, 0.4507087171077728, 0.31586912274360657, 0.05077343434095383, 0.2922268211841583, -0.05553639307618141, -0.2191777229309082, -0.25544700026512146, 0.9561454653739929, 0.7877944707870483, 0.4819193184375763, 0.2763722538948059, -0.12362343072891235, 0.006120936945080757, 0.28778037428855896, -1.020883321762085, -0.6108338236808777, 0.24882784485816956, -0.8114007115364075, -0.7312663793563843, 0.19978056848049164, -0.6619331240653992, -0.4191873371601105, -0.2801685929298401, 0.2586325705051422, -0.39247938990592957, -0.9126694798469543, 0.007937123067677021, -0.4154861271381378, 0.14868932962417603, 0.561296820640564, -0.545249342918396, 0.45695915818214417, 0.3320275843143463, 0.7762511372566223, -0.13989579677581787, -0.090823695063591, -0.2479979544878006, -0.11521272361278534, -0.6719635128974915, 0.3531581163406372, 0.03938153386116028, -0.11201860010623932, 0.04941265657544136, 0.2896977365016937, 0.11979564279317856, -0.5365158319473267, 0.4327758252620697, -0.5830103158950806, 0.0664014220237732, -0.09360943734645844, -0.506570041179657, -0.11357704550027847, 0.034788329154253006, -0.9049074053764343, 0.4844410717487335, 0.33926713466644287, -1.1123274564743042, -0.020302580669522285, -1.0077766180038452, -0.16479332745075226, -0.08046183735132217, 0.09330890327692032, -0.4665885865688324, -0.3070523738861084, -0.5593766570091248, 0.3854049742221832, 0.26215633749961853, 0.10693640261888504, -0.5298922061920166, 0.043088335543870926, 0.181333526968956, -0.17856374382972717, 1.4409899711608887, 0.3542082905769348, -0.5674182176589966, 0.18477362394332886, -0.8324683904647827, 0.14149050414562225, 0.10725728422403336, -0.032463040202856064, -0.26015424728393555, -0.3734050691127777, 0.5023769736289978, 0.519050121307373, 0.3056919574737549, -0.570912778377533, 0.31361088156700134, -0.14002929627895355, 0.36052486300468445, 0.8982886672019958, -0.041876330971717834, 0.6574549078941345, -0.4784686863422394, 0.6642858386039734, 0.42180711030960083, 0.48471975326538086, 0.2000603824853897, -0.3454270660877228, -0.9573646187782288, -0.24904391169548035, 0.2832227945327759, 0.5072276592254639, -0.9814576506614685, 0.3692278265953064, 0.06645563244819641, -0.6709443926811218, -0.22527764737606049, -0.01940733939409256, 0.5604291558265686, 0.5480591654777527, 0.3244781196117401, -0.6327739357948303, -0.4774485230445862, -1.269459843635559, 0.35856902599334717, -0.26457592844963074, -0.16052411496639252, 0.05434854328632355, 0.5167387127876282, -0.3213050067424774, 0.6425649523735046, -0.30908510088920593, -0.0384170301258564, 0.07928163558244705, 0.09782320261001587, 0.10289126634597778, 1.1775448322296143, 0.8607081174850464, -0.8724455237388611, -0.22972699999809265, 0.0012580957263708115, -0.7943066954612732, -0.2889738976955414, -0.11507684737443924, -0.7733114361763, 0.14271369576454163, 0.3090115189552307, -0.6903475522994995, 0.9118202328681946, 0.5387296080589294, -0.7576073408126831, 0.7757256627082825, -0.18817701935768127, -0.02000383287668228, -1.3566920757293701, 0.20058001577854156, 0.29646536707878113, -0.43393564224243164, -0.6739733815193176, 0.17070946097373962, 0.20386990904808044, 0.11279381066560745, -0.5133063197135925, 0.8415939807891846, -0.3652164041996002, 0.2910088896751404, -0.24814008176326752, -0.16866353154182434, 0.10404632985591888, 0.35379093885421753, 0.012198331765830517, 0.2387072741985321, 0.8157137036323547, -0.7238649129867554, 0.542637288570404, 0.2987228333950043, 0.004658875986933708, 0.47821223735809326, -0.9146556258201599, -0.17530196905136108, -0.06473320722579956, 0.2113354206085205, -0.69874107837677, -0.5500246286392212, 0.8927575945854187, -0.33803877234458923, 0.6940112113952637, -0.05380682647228241, -0.10217846184968948, -0.39230144023895264, -0.33958855271339417, 0.0923583135008812, 0.4918721318244934, -0.3952186107635498, 0.5551260709762573, 0.3237323462963104, 0.13347481191158295, -0.4905744194984436, -1.0652285814285278, 0.12904709577560425, -0.16231591999530792, -0.7984732985496521, 0.6458367109298706, -0.2822061777114868, -0.47576776146888733, 0.06508196890354156, -0.020622866228222847, -0.39599984884262085, 0.17562800645828247, 0.49329593777656555, 0.051375553011894226, -0.08409909158945084, -0.15799927711486816, 0.20698587596416473, -0.443392276763916, -0.017308015376329422, -0.45449957251548767, 0.22277988493442535, -0.06927559524774551, -0.3970649838447571, -0.9978255033493042, 0.543784499168396, 0.6269177198410034, 0.05240775644779205, 0.4716988205909729, 0.8285736441612244, -0.6351140737533569, -0.05907798185944557, -0.455692321062088, -0.34866243600845337, -0.49947232007980347, -0.009201954118907452, -0.16004782915115356, -0.8212092518806458, 0.81388258934021, 0.165327250957489, 0.25711333751678467, 0.5322148203849792, 0.07646775990724564, -0.37806588411331177, 0.7260344624519348, 0.6872085928916931, -0.14882631599903107, 0.7554585933685303, -0.6066866517066956, -0.2664455771446228, -0.5703014731407166, -0.007716260850429535, -0.29346638917922974, -0.8593100309371948, -1.0131447315216064, -0.07413140684366226, 0.2165638655424118, 0.5310139060020447, -0.5721300840377808, 0.6472368836402893, -0.4335046410560608, -0.06295029073953629, 0.6745490431785583, 0.46581825613975525, -0.03923057019710541, 0.017716795206069946, -0.26066017150878906, -0.06748150289058685, -0.7393698692321777, -0.40688326954841614, 0.44669869542121887, 0.6817759275436401, 0.74643874168396, 0.20771758258342743, 0.7316389679908752, 0.2107529193162918, 0.3147309422492981, -0.4907133877277374, 0.44528648257255554, -0.003008191706612706, -0.6578460335731506, -0.2183188498020172, -0.36558228731155396, -0.9197666645050049, -0.08851759135723114, -0.06683780252933502, -0.7500152587890625, 0.6918501257896423, 0.41866326332092285, -0.12908107042312622, 0.5415719151496887, -0.6973586678504944, 0.824853241443634, -0.15896303951740265, -0.4639299809932709, -0.0004973340546712279, -0.919726550579071, 0.25758785009384155, 0.2509346902370453, -0.10783731937408447, 0.026860103011131287, -0.27497199177742004, 0.9312759637832642, -1.0646491050720215, 1.161104440689087, -0.32323890924453735, -0.05285555496811867, 0.3767867982387543, 0.3332388401031494, 0.20679549872875214, 0.10194073617458344, -0.22726930677890778, 0.1429429054260254, 0.16530363261699677, -0.5689948797225952, -0.3508746027946472, 0.6549065709114075, -0.897697389125824, -0.3454863429069519, -0.3349428176879883, -0.20686279237270355, 0.4296003580093384, 0.3186071813106537, 0.5192952752113342, 0.6489809155464172, 0.2182503342628479, 0.2776578366756439, 0.49983251094818115, 0.09541740268468857, 0.5359063744544983, 0.07588759064674377, -0.30846014618873596, -0.4823247194290161, 0.44697076082229614, 0.2589896321296692, 0.40030035376548767, 0.17764702439308167, 0.3169485032558441, 0.011586570180952549, -0.3542770743370056, -0.6179765462875366, 0.01132440846413374, -0.7244894504547119, -0.489970862865448, -0.5258055925369263, -0.5440893769264221, -0.24641701579093933, -0.2849464416503906, -0.5003994107246399, -0.5575456619262695, -0.6712030172348022, -0.07295136153697968, 0.8762930035591125, 0.6205266118049622, -0.7802394032478333, 0.4212557077407837, -0.47700801491737366, 0.3158127963542938, 0.19216564297676086, 0.5205032825469971, -0.08258821070194244, -0.5146152973175049, -0.04797414690256119, 0.25570088624954224, -0.3528844118118286, -0.908336877822876, 0.32162100076675415, -0.13399472832679749, 0.5864505767822266, 0.7120469808578491, 0.23226405680179596, 0.5280566811561584, -0.15153411030769348, 0.5247312188148499, 0.5118651390075684, -0.7499247193336487, 0.4993935227394104, -0.5998609662055969, 0.2854778468608856, 0.5973769426345825, 0.6588045954704285, -0.6427357196807861, -0.2355734258890152, -0.7984755635261536, -0.6513355374336243, 0.44649094343185425, 0.44553881883621216, 0.10452897846698761, 0.20047637820243835, 0.6923884749412537, -0.2199816256761551, 0.08612383902072906, -0.7478562593460083, -0.6244733333587646, -0.40876567363739014, -0.13388919830322266, 0.37614938616752625, -0.3453069031238556, -0.15511634945869446, -0.34182536602020264, 0.8335554599761963, -0.1418018341064453, 0.5006004571914673, 0.400034099817276, 0.25160515308380127, -0.39857277274131775, -0.28155040740966797, 0.5886483788490295, 0.7778526544570923, 0.03995683789253235, -0.07619785517454147, -0.2396344393491745, -0.6522814631462097, -0.040783707052469254, 0.277479350566864, -0.5085293054580688, 0.20052661001682281, 0.4808095097541809, 0.9644801616668701, 0.16824962198734283, 0.011174754239618778, 0.7063289284706116, -0.2774980068206787, -0.43799924850463867, -0.5157637596130371, 0.11814793944358826, 0.17661532759666443, 0.3430904150009155, 0.11474687606096268, 0.5729706883430481, 0.08371996879577637, 0.053597815334796906, 0.40078940987586975, 0.2170087695121765, -0.6536641716957092, -0.30267977714538574, 0.6187739968299866, 0.07038655877113342, -0.23157519102096558, 0.2647929787635803, -0.46259623765945435, -0.7321987152099609, 0.9413920640945435, 0.5351611971855164, 0.9159775972366333, -0.1948414146900177, 0.45710289478302, 0.65769362449646, 0.3419918417930603, 0.19122350215911865, 0.581290602684021, 0.2258540838956833, -0.7792727947235107, -0.1906857192516327, -0.3420524001121521, -0.27734118700027466, 0.1550578773021698, -0.5868464112281799, 0.5632444024085999, -0.788251519203186, -0.24468566477298737, -0.2155294120311737, 0.018170280382037163, -0.6708934307098389, 0.14168746769428253, 0.08653374761343002, 1.396616816520691, -0.6145781874656677, 0.6401018500328064, 0.7473861575126648, -0.3285525143146515, -1.2859328985214233, -0.18502110242843628, 0.18745699524879456, -0.2743738889694214, 0.49011269211769104, -0.01045545656234026, 0.026651663705706596, 0.08566045016050339, -1.0130910873413086, -0.8046977519989014, 1.2891961336135864, 0.15971341729164124, -0.6357905864715576, 0.1268250197172165, -0.430997759103775, 0.3900529146194458, -0.5220109224319458, 0.3875121474266052, -0.1094021126627922, 0.6877715587615967, 0.01571427658200264, -0.9049223065376282, 0.11701550334692001, -0.6819910407066345, 0.31721872091293335, -0.0019621176179498434, -0.8317852020263672, 0.8509854078292847, 0.06273563206195831, -0.16361777484416962, 0.34399381279945374, 0.6915757656097412, 0.16786855459213257, 0.1736188381910324, 0.7812557220458984, 0.5915737152099609, 0.6270904541015625, -0.11480634659528732, 1.0152134895324707, -0.21057839691638947, 0.167332261800766, 0.8904635906219482, 0.09401308000087738, 0.5491454005241394, 0.3857884109020233, 0.28651243448257446, 0.5625479817390442, 0.8442414402961731, 0.13282115757465363, 0.28560006618499756, 0.5059583187103271, -0.12437090277671814, -0.1714109182357788, -0.23968619108200073, -0.5033162832260132, 0.44361743330955505, 0.1747141182422638, -0.3900647461414337, -0.1570577323436737, 0.2680879533290863, 0.2994539439678192, 0.04734814539551735, -0.3396311402320862, 0.5010917782783508, 0.168346107006073, -0.18901821970939636, 0.6099817752838135, 0.05445806309580803, 0.9937989115715027, -0.7220807671546936, -0.06702522933483124, -0.15682721138000488, 0.06611482053995132, -0.33275148272514343, -0.7125632762908936, 0.22934380173683167, -0.17026512324810028, 0.14289584755897522, -0.45268407464027405, 1.1829246282577515, -0.3053780496120453, -0.475990891456604, 0.6734252572059631, 0.41417014598846436, 0.2781328856945038, 0.43922653794288635, -0.9220609664916992, 0.40783771872520447, 0.013228556141257286, -0.5299203395843506, 0.03797256574034691, 0.22495973110198975, -0.24008634686470032, 0.682500958442688, 0.3513263165950775, 0.20087459683418274, -0.10891206562519073, 0.14010313153266907, 1.1949933767318726, -0.3586735129356384, -0.4414168894290924, -0.5918689966201782, 1.0128040313720703, -0.39323022961616516, -0.5604498982429504, 0.3142760396003723, 0.1929890513420105, 1.0098048448562622, -0.1975216120481491, 0.8088338375091553, -0.44761404395103455, 0.20581144094467163, -0.4035736620426178, 1.2710254192352295, -0.6814142465591431, -0.4373110234737396, -0.3656383156776428, -0.5310710072517395, -0.38588249683380127, 0.9318619966506958, -0.10213194042444229, 0.17744436860084534, 0.32822224497795105, 1.0256797075271606, -0.253203421831131, -0.09021341055631638, 0.19190765917301178, 0.24928812682628632, 0.22593018412590027, 0.4563935399055481, 0.7714145183563232, -0.8154434561729431, 0.1432039886713028, -0.9168228507041931, -0.4668680429458618, -0.31953656673431396, -1.2579330205917358, -0.7087499499320984, -0.694675087928772, -0.7313576936721802, -0.7858912348747253, -0.07283906638622284, 1.2311872243881226, 1.2144830226898193, -0.9868354797363281, -0.17004619538784027, -0.14567509293556213, 0.18503305315971375, -0.033467452973127365, -0.24686682224273682, 0.03715050593018532, 0.4045611321926117, -0.5687394738197327, -0.16424639523029327, -0.05834558233618736, 0.6106474995613098, -0.22467686235904694, -0.31120407581329346, -0.3601561188697815, -0.5633220076560974, 0.2342575341463089, 0.46361881494522095, -0.3825272023677826, -0.3736100196838379, -0.12530453503131866, -0.3549163043498993, -0.025797877460718155, 0.5339294075965881, -0.17259788513183594, 0.24520815908908844, 0.6814634203910828, 0.3892357349395752, 0.3029121160507202, -0.15813779830932617, 0.34888356924057007, -0.5482567548751831, 0.4383776783943176, 0.260046124458313, 0.4783647358417511, 0.14106546342372894, -0.4184010922908783, 0.45089805126190186, 0.2020907700061798, -0.42657727003097534, -0.4455689787864685, 0.38438332080841064, -1.2002075910568237, 0.012930466793477535, 0.8885135650634766, -0.283695787191391, -0.3339097499847412, 0.12560498714447021, -0.4023059904575348, 0.4594135880470276, -0.46818307042121887, 0.18320660293102264, 0.498715341091156, 0.061918534338474274, -0.40319663286209106, -0.5911965370178223, 0.5598642230033875, 0.12615081667900085, -0.7052097320556641, -0.33423179388046265, 0.6777576804161072, 0.17388790845870972, 0.6478630900382996, 0.5677108764648438, -0.15325018763542175, 0.4304356276988983, -0.05806988477706909, 0.4278170168399811, -0.3697762191295624, -0.2895725965499878, -0.4481950104236603, -0.07282273471355438, -0.02406085655093193, -0.3004167079925537 ]
NousResearch/Nous-Hermes-llama-2-7b
NousResearch
"2023-09-24T09:16:53Z"
25,539
54
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "llama-2", "self-instruct", "distillation", "synthetic instruction", "en", "license:mit", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-07-25T19:39:23Z"
--- language: - en tags: - llama-2 - self-instruct - distillation - synthetic instruction license: - mit --- # Model Card: Nous-Hermes-Llama2-7b Compute provided by our project sponsor Redmond AI, thank you! Follow RedmondAI on Twitter @RedmondAI. ## Model Description Nous-Hermes-Llama2-7b is a state-of-the-art language model fine-tuned on over 300,000 instructions. This model was fine-tuned by Nous Research, with Teknium leading the fine tuning process and dataset curation, Redmond AI sponsoring the compute, and several other contributors. This Hermes model uses the exact same dataset as Hermes on Llama-1. This is to ensure consistency between the old Hermes and new, for anyone who wanted to keep Hermes as similar to the old one, just more capable. This model stands out for its long responses, lower hallucination rate, and absence of OpenAI censorship mechanisms. The fine-tuning process was performed with a 4096 sequence length on an 8x a100 80GB DGX machine. ## Model Training The model was trained almost entirely on synthetic GPT-4 outputs. Curating high quality GPT-4 datasets enables incredibly high quality in knowledge, task completion, and style. This includes data from diverse sources such as GPTeacher, the general, roleplay v1&2, code instruct datasets, Nous Instruct & PDACTL (unpublished), and several others, detailed further below ## Collaborators The model fine-tuning and the datasets were a collaboration of efforts and resources between Teknium, Karan4D, Emozilla, Huemin Art and Redmond AI. Special mention goes to @winglian for assisting in some of the training issues. Huge shoutout and acknowledgement is deserved for all the dataset creators who generously share their datasets openly. Among the contributors of datasets: - GPTeacher was made available by Teknium - Wizard LM by nlpxucan - Nous Research Instruct Dataset was provided by Karan4D and HueminArt. - GPT4-LLM and Unnatural Instructions were provided by Microsoft - Airoboros dataset by jondurbin - Camel-AI's domain expert datasets are from Camel-AI - CodeAlpaca dataset by Sahil 2801. If anyone was left out, please open a thread in the community tab. ## Prompt Format The model follows the Alpaca prompt format: ``` ### Instruction: <prompt> ### Response: <leave a newline blank for model to respond> ``` or ``` ### Instruction: <prompt> ### Input: <additional context> ### Response: <leave a newline blank for model to respond> ``` GPT4All: ```| Task |Version| Metric |Value | |Stderr| |-------------|------:|--------|-----:|---|-----:| |arc_challenge| 0|acc |0.4735|± |0.0146| | | |acc_norm|0.5017|± |0.0146| |arc_easy | 0|acc |0.7946|± |0.0083| | | |acc_norm|0.7605|± |0.0088| |boolq | 1|acc |0.8000|± |0.0070| |hellaswag | 0|acc |0.5924|± |0.0049| | | |acc_norm|0.7774|± |0.0042| |openbookqa | 0|acc |0.3600|± |0.0215| | | |acc_norm|0.4660|± |0.0223| |piqa | 0|acc |0.7889|± |0.0095| | | |acc_norm|0.7976|± |0.0094| |winogrande | 0|acc |0.6993|± |0.0129| Average: 0.686 ``` BigBench: ``` | Task |Version| Metric |Value | |Stderr| |------------------------------------------------|------:|---------------------|-----:|---|-----:| |bigbench_causal_judgement | 0|multiple_choice_grade|0.5579|± |0.0361| |bigbench_date_understanding | 0|multiple_choice_grade|0.6233|± |0.0253| |bigbench_disambiguation_qa | 0|multiple_choice_grade|0.3062|± |0.0288| |bigbench_geometric_shapes | 0|multiple_choice_grade|0.2006|± |0.0212| | | |exact_str_match |0.0000|± |0.0000| |bigbench_logical_deduction_five_objects | 0|multiple_choice_grade|0.2540|± |0.0195| |bigbench_logical_deduction_seven_objects | 0|multiple_choice_grade|0.1657|± |0.0141| |bigbench_logical_deduction_three_objects | 0|multiple_choice_grade|0.4067|± |0.0284| |bigbench_movie_recommendation | 0|multiple_choice_grade|0.2780|± |0.0201| |bigbench_navigate | 0|multiple_choice_grade|0.5000|± |0.0158| |bigbench_reasoning_about_colored_objects | 0|multiple_choice_grade|0.4405|± |0.0111| |bigbench_ruin_names | 0|multiple_choice_grade|0.2701|± |0.0210| |bigbench_salient_translation_error_detection | 0|multiple_choice_grade|0.2034|± |0.0127| |bigbench_snarks | 0|multiple_choice_grade|0.5028|± |0.0373| |bigbench_sports_understanding | 0|multiple_choice_grade|0.6136|± |0.0155| |bigbench_temporal_sequences | 0|multiple_choice_grade|0.2720|± |0.0141| |bigbench_tracking_shuffled_objects_five_objects | 0|multiple_choice_grade|0.1944|± |0.0112| |bigbench_tracking_shuffled_objects_seven_objects| 0|multiple_choice_grade|0.1497|± |0.0085| |bigbench_tracking_shuffled_objects_three_objects| 0|multiple_choice_grade|0.4067|± |0.0284| Average: 0.3525 ``` AGIEval ``` | Task |Version| Metric |Value | |Stderr| |------------------------------|------:|--------|-----:|---|-----:| |agieval_aqua_rat | 0|acc |0.2520|± |0.0273| | | |acc_norm|0.2402|± |0.0269| |agieval_logiqa_en | 0|acc |0.2796|± |0.0176| | | |acc_norm|0.3241|± |0.0184| |agieval_lsat_ar | 0|acc |0.2478|± |0.0285| | | |acc_norm|0.2348|± |0.0280| |agieval_lsat_lr | 0|acc |0.2843|± |0.0200| | | |acc_norm|0.2765|± |0.0198| |agieval_lsat_rc | 0|acc |0.3271|± |0.0287| | | |acc_norm|0.3011|± |0.0280| |agieval_sat_en | 0|acc |0.4660|± |0.0348| | | |acc_norm|0.4223|± |0.0345| |agieval_sat_en_without_passage| 0|acc |0.3738|± |0.0338| | | |acc_norm|0.3447|± |0.0332| |agieval_sat_math | 0|acc |0.2500|± |0.0293| | | |acc_norm|0.2364|± |0.0287| Average: 0.2975 ``` ## Benchmark Results ## Resources for Applied Use Cases: For an example of a back and forth chatbot using huggingface transformers and discord, check out: https://github.com/teknium1/alpaca-discord For an example of a roleplaying discord chatbot, check out this: https://github.com/teknium1/alpaca-roleplay-discordbot LM Studio is a good choice for a chat interface that supports GGML versions (to come) ## Future Plans We plan to continue to iterate on both more high quality data, and new data filtering techniques to eliminate lower quality data going forward. ## Model Usage The model is available for download on Hugging Face. It is suitable for a wide range of language tasks, from generating creative text to understanding and following complex instructions.
[ -0.6314579248428345, -0.8900772333145142, 0.29612839221954346, 0.19374094903469086, -0.09835938364267349, 0.03349793329834938, -0.09149844944477081, -0.5830343961715698, 0.523453950881958, 0.19723758101463318, -0.6906934976577759, -0.7114838361740112, -0.7980597615242004, 0.037221185863018036, -0.15602505207061768, 1.0494333505630493, 0.09184584766626358, -0.24903587996959686, 0.08011376857757568, -0.26305627822875977, -0.5548743009567261, -0.2180144488811493, -0.7742000222206116, -0.25123175978660583, 0.3818940818309784, 0.4452318549156189, 0.8600132465362549, 0.5721437931060791, 0.5037896633148193, 0.3549492359161377, -0.26376259326934814, 0.0009898868156597018, -0.37516528367996216, -0.2557922303676605, 0.045424629002809525, -0.4206218719482422, -0.7598556280136108, 0.11739044636487961, 0.41709664463996887, 0.5766239762306213, -0.11900372803211212, 0.5269196033477783, 0.1222665086388588, 0.9298958778381348, -0.4211023449897766, 0.36861664056777954, -0.1551310420036316, 0.04903450608253479, -0.0651480183005333, -0.029963470995426178, -0.041777290403842926, -0.5669854283332825, -0.10043938457965851, -0.7358772158622742, 0.15021929144859314, -0.041700102388858795, 1.2988225221633911, 0.3005673587322235, -0.25750288367271423, -0.3628467619419098, -0.4695427417755127, 0.9199743866920471, -0.8761300444602966, 0.2416647970676422, 0.6112920641899109, 0.13996098935604095, -0.27789998054504395, -0.5464283227920532, -0.9280140399932861, -0.007133344653993845, -0.34433692693710327, 0.3325701057910919, -0.19189992547035217, -0.28420889377593994, 0.43354859948158264, 0.6364755630493164, -0.6462743878364563, 0.08312869817018509, -0.594918966293335, -0.059935908764600754, 0.8215028643608093, 0.3362262547016144, 0.34961363673210144, -0.31192663311958313, -0.35913971066474915, -0.3391241133213043, -0.3886573016643524, 0.47612902522087097, 0.35805538296699524, 0.16821160912513733, -0.5329909324645996, 0.725618839263916, -0.2906099557876587, 0.6496235728263855, 0.09879835695028305, -0.3606359362602234, 0.8490172028541565, -0.47929298877716064, -0.34137099981307983, -0.16568174958229065, 0.9712590575218201, 0.6096517443656921, -0.005583988036960363, 0.23653899133205414, 0.0619211383163929, 0.2549671232700348, 0.11683119088411331, -0.7875028848648071, -0.22710052132606506, 0.5187439322471619, -0.49432262778282166, -0.26871946454048157, -0.12510566413402557, -1.0388168096542358, -0.0737462043762207, -0.330959290266037, 0.34774523973464966, -0.5166058540344238, -0.30879658460617065, 0.016003141179680824, -0.07382635772228241, 0.4715110659599304, 0.4276270866394043, -0.916007936000824, 0.23297156393527985, 0.4730163812637329, 0.9603331685066223, -0.16222332417964935, -0.18717394769191742, -0.22850331664085388, 0.09654941409826279, -0.42957520484924316, 0.6912333965301514, -0.3906233310699463, -0.3909883201122284, -0.32680559158325195, 0.2875906527042389, -0.21426430344581604, -0.32927456498146057, 0.6337293386459351, -0.17102402448654175, 0.5096597075462341, -0.30399203300476074, -0.46747833490371704, -0.2845250368118286, 0.43656161427497864, -0.8594526648521423, 1.403005838394165, 0.3109341561794281, -0.9605832099914551, 0.40493226051330566, -0.8880219459533691, -0.04628301411867142, -0.235621377825737, -0.18965299427509308, -0.7522872686386108, -0.3545084297657013, 0.3774819076061249, 0.3887642025947571, -0.4449174702167511, 0.22650906443595886, -0.2554389238357544, -0.3833453357219696, -0.023447688668966293, -0.21499644219875336, 1.179101824760437, 0.24231918156147003, -0.6642927527427673, 0.1591353416442871, -1.0176469087600708, 0.10014291852712631, 0.3759419620037079, -0.49279358983039856, 0.060363247990608215, -0.24727927148342133, -0.16477403044700623, 0.38734665513038635, 0.23205499351024628, -0.5651378631591797, 0.3540176451206207, -0.3751263916492462, 0.3819895386695862, 0.87399822473526, -0.024426152929663658, 0.2959970235824585, -0.6629519462585449, 0.5322964787483215, 0.037960898131132126, 0.21410727500915527, 0.03454134613275528, -0.7534745335578918, -0.7756928205490112, -0.5877801775932312, 0.1611221432685852, 0.7090519070625305, -0.5141788125038147, 0.6572282910346985, -0.15633855760097504, -0.7455812692642212, -0.60569167137146, 0.06883344799280167, 0.4306198060512543, 0.7014204859733582, 0.5771828293800354, -0.31019213795661926, -0.43450605869293213, -0.9562346935272217, 0.0892099142074585, -0.1471158266067505, -0.04716400429606438, 0.519035279750824, 0.8888932466506958, -0.3064470589160919, 0.9348295331001282, -0.8245779871940613, -0.5195550322532654, -0.28329238295555115, -0.13942109048366547, 0.7135578989982605, 0.6684498190879822, 0.7958793044090271, -0.6667764186859131, -0.6335771679878235, -0.1107308641076088, -0.9142577648162842, 0.06606315076351166, 0.14097462594509125, -0.29897433519363403, 0.4815289080142975, 0.3272525668144226, -0.8369114995002747, 0.7914252877235413, 0.6423977017402649, -0.5448601841926575, 0.7967937588691711, -0.24001827836036682, 0.20277585089206696, -1.216697335243225, 0.48981451988220215, 0.012327081523835659, 0.09783819317817688, -0.5358843207359314, -0.1269855499267578, 0.003706658026203513, -0.0001184628636110574, -0.33656004071235657, 0.8120526075363159, -0.5820425152778625, -0.029744284227490425, 0.21104368567466736, 0.12352290749549866, -0.06550658494234085, 0.8224381804466248, 0.00804082490503788, 0.9517134428024292, 0.7114735245704651, -0.5187315940856934, 0.32458558678627014, 0.4295995235443115, -0.485827773809433, 0.491817444562912, -0.8577852845191956, -0.014959909953176975, -0.1425667554140091, 0.26424214243888855, -1.3440324068069458, -0.3039432168006897, 0.5818793177604675, -0.6856920719146729, 0.2828299105167389, 0.09535188227891922, -0.31420308351516724, -0.9037328958511353, -0.6553434729576111, 0.0810438022017479, 0.39669111371040344, -0.36056646704673767, 0.4107792377471924, 0.3036551773548126, -0.20501303672790527, -0.7704550623893738, -0.6682802438735962, -0.17274700105190277, -0.23658889532089233, -0.6530949473381042, 0.3237432837486267, -0.35032206773757935, -0.08946118503808975, 0.037011146545410156, -0.1675129234790802, 0.0026688980869948864, 0.10758303105831146, 0.3578370213508606, 0.5098026394844055, -0.2489614188671112, -0.12216278910636902, -0.28781965374946594, -0.19363665580749512, -0.019174309447407722, 0.29374614357948303, 0.6590349078178406, -0.14798539876937866, -0.38924533128738403, -0.598127007484436, 0.2812983989715576, 0.707271158695221, -0.30682918429374695, 1.068214774131775, 0.558474600315094, -0.19241659343242645, 0.1995244175195694, -0.4621197581291199, -0.005040672607719898, -0.5202885270118713, 0.19697099924087524, -0.3940393626689911, -0.9115813970565796, 0.6803838014602661, 0.23154713213443756, 0.3516317307949066, 0.6499577760696411, 0.6244635581970215, 0.05823313072323799, 1.0188758373260498, 0.5130966305732727, -0.3676993250846863, 0.4071975648403168, -0.6836739778518677, 0.13440637290477753, -0.8996174335479736, -0.46404939889907837, -0.5983960032463074, -0.5095329880714417, -0.6368498206138611, -0.39013826847076416, 0.2146400511264801, -0.024271272122859955, -0.603475034236908, 0.31173115968704224, -0.8120008111000061, 0.2877959609031677, 0.7343214154243469, 0.21753156185150146, 0.2086811661720276, -0.06654375791549683, -0.19203971326351166, 0.04788787290453911, -0.5062695145606995, -0.6086355447769165, 1.294973373413086, 0.22272470593452454, 0.6193540692329407, 0.40076276659965515, 0.6844373941421509, 0.3185828626155853, 0.23912669718265533, -0.6320298910140991, 0.5674503445625305, 0.13904529809951782, -0.7566672563552856, -0.4407818615436554, -0.37203332781791687, -1.3287723064422607, 0.48407065868377686, -0.3216172158718109, -1.0636078119277954, 0.19538407027721405, 0.1153545007109642, -0.36190494894981384, 0.3462969660758972, -0.8278345465660095, 1.0570544004440308, -0.0780123770236969, -0.5816323161125183, -0.04926241561770439, -0.824775218963623, 0.44825243949890137, 0.04634740203619003, 0.4154086709022522, -0.32275480031967163, 0.06974650919437408, 0.8485850095748901, -0.5897756218910217, 0.7558998465538025, -0.09616599977016449, -0.11346408724784851, 0.48534631729125977, -0.07275235652923584, 0.5670315623283386, 0.056827254593372345, -0.1271154135465622, 0.1406117081642151, -0.010607890784740448, -0.609920084476471, -0.2559967637062073, 0.8413769006729126, -1.0596572160720825, -0.867449164390564, -0.7395961880683899, -0.5249152779579163, -0.06110101565718651, 0.34701430797576904, 0.12957227230072021, 0.2350943237543106, -0.05587552860379219, 0.20395681262016296, 0.4976249933242798, -0.4768775701522827, 0.5845494270324707, 0.4799436330795288, -0.14568306505680084, -0.526454746723175, 0.802117645740509, 0.051268331706523895, 0.29344138503074646, 0.0956084132194519, 0.10159189999103546, -0.3073562979698181, -0.2777065336704254, -0.55025315284729, 0.4224960207939148, -0.29587841033935547, -0.3152299225330353, -0.7411642074584961, -0.16899649798870087, -0.6138378381729126, -0.2607802450656891, -0.15875579416751862, -0.49226030707359314, -0.40163347125053406, -0.2292170375585556, 0.6279866695404053, 0.6785276532173157, -0.06710927188396454, 0.13943293690681458, -0.5650104284286499, 0.5428555011749268, 0.3151876926422119, 0.4375268518924713, 0.05107925832271576, -0.5278909802436829, -0.07592976838350296, 0.1570703685283661, -0.5665875673294067, -1.00469172000885, 0.6764075756072998, 0.002172905020415783, 0.6588794589042664, 0.23791931569576263, -0.15319281816482544, 0.8134166598320007, -0.22301314771175385, 1.1346824169158936, 0.28425467014312744, -0.8029444217681885, 0.7559895515441895, -0.40277940034866333, 0.41370081901550293, 0.5108363032341003, 0.5891391634941101, -0.581432580947876, -0.4515154957771301, -0.9071787595748901, -1.0457559823989868, 1.2190967798233032, 0.4333544075489044, -0.167966827750206, 0.04077328369021416, 0.1358838677406311, -0.19644498825073242, 0.22226737439632416, -0.7885553240776062, -0.6916634440422058, -0.13253404200077057, -0.2825993001461029, -0.19457201659679413, -0.09881964325904846, -0.22874359786510468, -0.5467368364334106, 0.7049488425254822, -0.001569195999763906, 0.5528584122657776, 0.14456194639205933, 0.10024284571409225, 0.049402933567762375, 0.22767169773578644, 0.6160259246826172, 0.6313304901123047, -0.3097226917743683, -0.09473898261785507, 0.3059714138507843, -0.7556819915771484, 0.1922733187675476, 0.12808658182621002, -0.12561845779418945, -0.1489487588405609, 0.3430929481983185, 0.6065943241119385, -0.06550735980272293, -0.48233914375305176, 0.5564399361610413, -0.03165091574192047, -0.3602193593978882, -0.46032726764678955, 0.20500119030475616, 0.1327895224094391, 0.3322441577911377, 0.25025567412376404, 0.012600621208548546, 0.03173421695828438, -0.6910387873649597, 0.09497842937707901, 0.40993326902389526, -0.20970575511455536, -0.1362115889787674, 0.8782035112380981, -0.02767029032111168, -0.21651022136211395, 0.5733440518379211, -0.10649716109037399, -0.4969651699066162, 1.0229699611663818, 0.481253057718277, 0.5356652736663818, -0.47554275393486023, 0.17781424522399902, 0.9930076599121094, 0.2993427813053131, -0.09663008153438568, 0.467725932598114, 0.12625877559185028, -0.45445480942726135, -0.20930078625679016, -0.7815853953361511, -0.35899803042411804, 0.3990831673145294, -0.6101425290107727, 0.3009108603000641, -0.48284482955932617, -0.26842910051345825, 0.08359652012586594, 0.3229898512363434, -0.7795039415359497, 0.3788211941719055, -0.00264191091991961, 0.8983527421951294, -0.9795293211936951, 0.9227216243743896, 0.7495661973953247, -0.7938734889030457, -1.1247063875198364, -0.3815121650695801, 0.15257912874221802, -0.9325708746910095, 0.6356074810028076, 0.20069600641727448, 0.12469466775655746, -0.12932947278022766, -0.5101742148399353, -1.3928548097610474, 1.5456598997116089, 0.11172714829444885, -0.4519515931606293, 0.1586589366197586, 0.18658597767353058, 0.6149101257324219, -0.02040322870016098, 0.5915226340293884, 0.6936994791030884, 0.6051174402236938, 0.15676860511302948, -1.1064115762710571, 0.308051735162735, -0.7194520235061646, -0.11345864087343216, 0.33772602677345276, -1.1420774459838867, 1.1329683065414429, -0.20903189480304718, -0.046720366925001144, -0.15819239616394043, 0.6261571645736694, 0.5132312178611755, 0.3053776025772095, 0.4088194668292999, 0.9233201742172241, 0.9476830363273621, -0.1849287897348404, 1.0361913442611694, -0.4179728925228119, 0.524349570274353, 1.0817713737487793, 0.10618467628955841, 0.8275278210639954, 0.31804758310317993, -0.6212059259414673, 0.5996143817901611, 0.6409873366355896, -0.17072653770446777, 0.30606159567832947, 0.11205054074525833, -0.16979047656059265, 0.09772610664367676, 0.2196834534406662, -0.6790198087692261, 0.24594250321388245, 0.4055902361869812, -0.3242849111557007, -0.016928095370531082, -0.1778397411108017, 0.36715006828308105, -0.13390107452869415, -0.2805593013763428, 0.6670231223106384, -0.09325489401817322, -0.6914688348770142, 0.9056037068367004, -0.13327057659626007, 0.7522262930870056, -0.659220278263092, -0.11345357447862625, -0.3889206647872925, 0.3191274106502533, -0.46692198514938354, -1.2174738645553589, 0.3146025836467743, 0.07803338021039963, -0.15046222507953644, -0.0008771452121436596, 0.526843249797821, -0.22823983430862427, -0.5209512114524841, 0.30683431029319763, 0.3848874568939209, 0.24501866102218628, 0.24425773322582245, -0.9533158540725708, 0.07787484675645828, 0.2104179710149765, -0.6759868264198303, 0.3166828453540802, 0.5351686477661133, -0.03076171875, 0.7343420386314392, 0.7895852327346802, -0.10722935944795609, 0.06626784801483154, -0.2895945906639099, 1.1879228353500366, -0.9045780301094055, -0.45195746421813965, -0.8437822461128235, 0.5450642704963684, -0.29029345512390137, -0.5067330002784729, 1.009084701538086, 0.8172130584716797, 0.6396331787109375, -0.03418529033660889, 0.7396204471588135, -0.4769047498703003, 0.6274742484092712, -0.3757292628288269, 0.656410813331604, -0.7995462417602539, -0.014905523508787155, -0.5050927400588989, -0.8588898181915283, -0.364623486995697, 0.8861604332923889, -0.45590513944625854, 0.1502925008535385, 0.6185770630836487, 1.021501898765564, 0.05563236400485039, 0.13373054563999176, 0.02651539072394371, 0.3482001721858978, 0.3141014873981476, 0.9006466269493103, 0.5302530527114868, -0.5098442435264587, 0.6405741572380066, -0.3782311975955963, -0.21799172461032867, -0.29670482873916626, -0.6526846885681152, -0.8957790732383728, -0.4944725036621094, -0.41926491260528564, -0.479787677526474, -0.1766752004623413, 0.9809709191322327, 0.4375453293323517, -0.7750719785690308, -0.3627016544342041, 0.09287082403898239, 0.10157999396324158, -0.3418504595756531, -0.27724435925483704, 0.8154078722000122, -0.1556844860315323, -0.8401472568511963, 0.05816403031349182, -0.09461696445941925, 0.16510172188282013, 0.05834619328379631, -0.1254323422908783, -0.4450511336326599, 0.08808085322380066, 0.705064594745636, 0.454525351524353, -0.6523072123527527, -0.33235684037208557, 0.0010455019073560834, -0.2845865488052368, 0.4549517333507538, 0.04908156022429466, -0.6566026210784912, 0.21227549016475677, 0.42023199796676636, 0.31600090861320496, 0.8084024786949158, 0.04682767018675804, 0.04032442346215248, -0.41738271713256836, 0.13794367015361786, -0.06404095888137817, 0.3275925815105438, 0.12914951145648956, -0.3940350115299225, 0.9120278358459473, 0.16878218948841095, -0.7182610630989075, -0.8171190023422241, -0.17080654203891754, -1.3596525192260742, -0.25379541516304016, 1.2471777200698853, -0.08372265100479126, -0.5349918007850647, -0.047229964286088943, -0.5630298256874084, 0.19770315289497375, -0.7066166400909424, 0.8126003742218018, 0.7449814677238464, -0.3975461423397064, -0.03964152932167053, -0.8938183784484863, 0.46940845251083374, 0.35281458497047424, -0.9944230914115906, -0.1040986180305481, 0.6349210143089294, 0.4133307933807373, 0.3363957703113556, 0.9219427704811096, -0.14030906558036804, 0.1526646763086319, 0.1009778380393982, 0.264003187417984, 0.020272405818104744, 0.04701178893446922, -0.06473933160305023, 0.22664667665958405, -0.10710691660642624, -0.4244535565376282 ]
ehartford/dolphin-2.2.1-mistral-7b
ehartford
"2023-11-13T15:33:36Z"
25,453
105
transformers
[ "transformers", "pytorch", "mistral", "text-generation", "en", "dataset:ehartford/dolphin", "dataset:jondurbin/airoboros-2.2.1", "base_model:mistralai/Mistral-7B-v0.1", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-10-30T22:50:33Z"
--- license: apache-2.0 base_model: mistralai/Mistral-7B-v0.1 datasets: - ehartford/dolphin - jondurbin/airoboros-2.2.1 language: - en --- # dolphin-2.2.1-mistral-7b Dolphin 2.2.1 🐬 https://erichartford.com/dolphin This is a checkpoint release, to fix overfit training. ie, it was responding with CoT even when I didn't request it, and also it was too compliant even when the request made no sense. This one should be better. <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/KqsVXIvBd3akEjvijzww7.png" width="600" /> Dolphin-2.2.1-mistral-7b's training was sponsored by [a16z](https://a16z.com/supporting-the-open-source-ai-community/). This model is based on [mistralAI](https://huggingface.co/mistralai/Mistral-7B-v0.1), with apache-2.0 license, so it is suitable for commercial or non-commercial use. New in 2.2 is conversation and empathy. With an infusion of curated Samantha DNA, Dolphin can now give you personal advice and will care about your feelings, and with extra training in long multi-turn conversation. This model is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model more compliant. You are advised to implement your own alignment layer before exposing the model as a service. It will be highly compliant to any requests, even unethical ones. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models You are responsible for any content you create using this model. Enjoy responsibly. ## Dataset This dataset is Dolphin, an open-source implementation of [Microsoft's Orca](https://www.microsoft.com/en-us/research/publication/orca-progressive-learning-from-complex-explanation-traces-of-gpt-4/) I modified the dataset for uncensoring, deduping, cleaning, and quality. I added Jon Durbin's excellent Airoboros dataset to increase creativity. I added a curated subset of WizardLM and Samantha to give it multiturn conversation and empathy. ## Training It took 48 hours to train 4 epochs on 4x A100s. Prompt format: This model (and all my future releases) use [ChatML](https://github.com/openai/openai-python/blob/main/chatml.md) prompt format. ``` <|im_start|>system You are Dolphin, a helpful AI assistant.<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant ``` Example: ``` <|im_start|>system you are an expert dolphin trainer<|im_end|> <|im_start|>user What is the best way to train a dolphin to obey me? Please answer step by step.<|im_end|> <|im_start|>assistant ``` ## Gratitude - This model was made possible by the generous sponsorship of a16z. - Thank you to Microsoft for authoring the Orca paper and inspiring this work. - Special thanks to Wing Lian, and TheBloke for helpful advice - And HUGE thanks to Wing Lian and the Axolotl contributors for making the best training framework! - [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl) - Thank you to all the other people in the Open Source AI community who have taught me and helped me along the way. ## Example Output ![image/png](https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/NSp06kUMxx9oDU-g6WSgu.png) ![image/png](https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/-YA3AKIXdnrW_Q8eH1gen.png) [Buy me a coffee](https://www.buymeacoffee.com/ehartford) ## Training hyperparameters The following hyperparameters were used during training: - learning_rate: 6e-06 - train_batch_size: 5 - eval_batch_size: 5 - seed: 42 - distributed_type: multi-GPU - num_devices: 4 - gradient_accumulation_steps: 4 - total_train_batch_size: 80 - total_eval_batch_size: 20 - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-05 - lr_scheduler_type: cosine - lr_scheduler_warmup_steps: 100 - num_epochs: 4 ### Framework versions - Transformers 4.34.1 - Pytorch 2.0.1+cu117 - Datasets 2.14.5 - Tokenizers 0.14.0
[ -0.6826924085617065, -0.502507746219635, 0.12298731505870819, 0.2635667026042938, -0.2780696451663971, -0.352153480052948, -0.0007658930262550712, -0.7720614671707153, 0.06229644641280174, 0.2152378112077713, -0.5906703472137451, -0.20067892968654633, -0.6772816777229309, 0.011818671599030495, 0.14667879045009613, 1.0932652950286865, -0.15680712461471558, 0.23932017385959625, 0.14584936201572418, -0.513304591178894, -0.317624568939209, -0.5267928838729858, -1.2444922924041748, -0.45864424109458923, 0.4696122407913208, -0.03254687413573265, 0.49459442496299744, 0.8091841340065002, 0.07478592544794083, 0.2593908905982971, -0.31577184796333313, 0.3477257192134857, -0.4397610127925873, -0.09176793694496155, -0.16128554940223694, -0.019561240449547768, -0.654811441898346, 0.18414753675460815, 0.23634788393974304, 0.3939097225666046, -0.18831194937229156, 0.33012259006500244, 0.08450324833393097, 0.563989520072937, -0.6355520486831665, 0.558548629283905, -0.19327199459075928, 0.22187697887420654, 0.06849464774131775, 0.10442113876342773, -0.15652771294116974, -0.34998875856399536, 0.02668469026684761, -0.8681106567382812, -0.0373433381319046, -0.05056184157729149, 1.096883773803711, 0.23447421193122864, -0.39393308758735657, -0.06930975615978241, -0.4293443262577057, 0.7539418339729309, -0.7020578384399414, 0.5215709805488586, 0.46745312213897705, 0.42085355520248413, -0.20343422889709473, -0.6454258561134338, -0.47089728713035583, -0.15866747498512268, 0.3492235541343689, 0.3362513780593872, -0.11189567297697067, 0.10108913481235504, 0.40262970328330994, 0.32504838705062866, -0.5403509140014648, 0.24509671330451965, -0.31280162930488586, -0.28382736444473267, 0.6206245422363281, 0.08253833651542664, 0.15074217319488525, 0.3947335183620453, -0.42693015933036804, -0.29740002751350403, -0.5520232915878296, 0.28777334094047546, 0.3406967222690582, 0.2373138815164566, -0.37246519327163696, 0.5565773248672485, -0.13122719526290894, 0.6800577044487, 0.11046953499317169, -0.1256965696811676, 0.3920179307460785, -0.09704381972551346, -0.21781697869300842, 0.19291146099567413, 0.8561371564865112, 0.37597331404685974, 0.20328225195407867, 0.04917408153414726, -0.2490108758211136, -0.13428352773189545, 0.2532147467136383, -0.9046388268470764, 0.014937727712094784, 0.3944537937641144, -0.44519752264022827, -0.3799736499786377, -0.15460890531539917, -0.45362046360969543, -0.34599658846855164, -0.3119421601295471, 0.37580427527427673, -0.7263146042823792, -0.3379649519920349, 0.23029811680316925, -0.3375445008277893, 0.3460918664932251, 0.455902636051178, -0.9400901198387146, 0.3342178165912628, 0.47103577852249146, 0.8157255053520203, 0.22425054013729095, -0.41582709550857544, -0.3022101819515228, 0.13479647040367126, -0.39632049202919006, 0.3524695038795471, -0.013726072385907173, -0.1839846968650818, -0.00988981407135725, -0.07358019053936005, -0.20814235508441925, -0.3187086284160614, 0.21142402291297913, -0.4828399419784546, 0.354394793510437, -0.418692409992218, -0.6275219321250916, -0.25562605261802673, 0.29503002762794495, -0.42941170930862427, 0.8807146549224854, 0.22715456783771515, -0.6701527237892151, 0.4638955593109131, -0.8962904810905457, -0.13777142763137817, -0.27075502276420593, -0.10030663758516312, -0.4946553707122803, -0.27728843688964844, 0.25875645875930786, 0.14493966102600098, -0.2729095220565796, 0.060143325477838516, -0.553866982460022, -0.30630508065223694, 0.24856795370578766, -0.22614939510822296, 1.2399746179580688, 0.43817052245140076, -0.6597810983657837, -0.050332341343164444, -0.7970178723335266, 0.27065783739089966, 0.16801923513412476, -0.5018327236175537, -0.0780305340886116, -0.2916426956653595, 0.0113326171413064, 0.3516697883605957, 0.2526558041572571, -0.7969597578048706, 0.25409016013145447, -0.29657086730003357, 0.5881803631782532, 0.7549038529396057, -0.005003262776881456, 0.1257668137550354, -0.5253093242645264, 0.2359740287065506, 0.06174106523394585, 0.6620751619338989, 0.09804119169712067, -0.6446080207824707, -0.7404038906097412, -0.3091756999492645, 0.04757179319858551, 0.17738214135169983, -0.6170848608016968, 0.6499924063682556, -0.013273670338094234, -0.5804797410964966, -0.6585023403167725, 0.014996767975389957, 0.7365130186080933, 0.5868107676506042, 0.5486754775047302, -0.5378655791282654, -0.39416050910949707, -0.49987608194351196, 0.15636028349399567, -0.3127056360244751, 0.10247743129730225, 0.5284150838851929, 0.47202152013778687, -0.13818857073783875, 0.8547629714012146, -0.4077373147010803, -0.4382413327693939, -0.2693508267402649, 0.030290896072983742, 0.14253725111484528, 0.8249500393867493, 0.8089134693145752, -0.5738664269447327, -0.20462533831596375, -0.002533186227083206, -0.9917627573013306, 0.3065979778766632, 0.14049066603183746, -0.09788869321346283, 0.41873839497566223, 0.41600263118743896, -0.6595441102981567, 0.42302191257476807, 0.2592822015285492, -0.2221914827823639, 0.4253871440887451, -0.3902141749858856, -0.059411000460386276, -0.9253755211830139, 0.37582045793533325, 0.09327804297208786, -0.03741263598203659, -0.2750031054019928, 0.16952216625213623, -0.1332704722881317, -0.25356146693229675, -0.5928085446357727, 0.6678630709648132, -0.35784244537353516, -0.04857022687792778, -0.025411004200577736, -0.11808329075574875, -0.1451299488544464, 0.7198763489723206, 0.22987620532512665, 0.6891154646873474, 0.6721071600914001, -0.719148576259613, 0.33004245162010193, 0.4413667917251587, -0.08911089599132538, 0.31634148955345154, -0.9628165364265442, 0.34735384583473206, 0.01969422772526741, 0.4628165364265442, -0.7339556813240051, -0.2229234278202057, 0.5885098576545715, -0.5798925161361694, 0.31961512565612793, -0.3333096504211426, -0.28173837065696716, -0.29692694544792175, -0.3179153800010681, 0.44803452491760254, 0.5547957420349121, -0.694307267665863, 0.2949386239051819, 0.3244434893131256, 0.24911905825138092, -0.7719036936759949, -0.6975271701812744, -0.2505545914173126, -0.08220310509204865, -0.3824608027935028, 0.2029886692762375, -0.0528276190161705, 0.11949659138917923, -0.1890931874513626, -0.21030360460281372, -0.3782689869403839, -0.05831260606646538, 0.41222235560417175, 0.0903659537434578, -0.31991997361183167, -0.17021699249744415, 0.11221637576818466, -0.23791590332984924, 0.10967680811882019, -0.5569413304328918, 0.5875924229621887, -0.29780739545822144, -0.29581698775291443, -0.7490017414093018, -0.08238647133111954, 0.6460426449775696, -0.217508926987648, 0.9370183944702148, 0.7174499034881592, -0.24910633265972137, 0.01901289075613022, -0.44445058703422546, -0.2661170959472656, -0.4558136761188507, 0.11244942247867584, -0.11014449596405029, -0.4733116924762726, 0.491068959236145, 0.18007291853427887, 0.2565193176269531, 0.2860986888408661, 0.27574092149734497, 0.017542492598295212, 1.2024589776992798, 0.568644106388092, -0.380543053150177, 0.47524309158325195, -0.7517054080963135, -0.0888465940952301, -0.8881101012229919, -0.47414812445640564, -0.3978009521961212, -0.19153310358524323, -0.481496125459671, 0.07345056533813477, 0.24898813664913177, -0.0496024452149868, -0.823417603969574, 0.42018258571624756, -0.4551968276500702, 0.15165168046951294, 0.4762803316116333, 0.399210125207901, -0.05679497495293617, -0.07670062780380249, -0.15800635516643524, 0.10472261905670166, -0.7613668441772461, -0.33705461025238037, 0.9935506582260132, 0.4985726773738861, 0.6670817732810974, 0.25730666518211365, 0.6647363901138306, 0.12424979358911514, 0.027098126709461212, -0.47037020325660706, 0.45778965950012207, 0.13118110597133636, -0.786421537399292, -0.4190097153186798, -0.4545498490333557, -1.110900640487671, 0.18892404437065125, 0.0010847587836906314, -0.7714420557022095, 0.3343102037906647, 0.2079545557498932, -0.23814158141613007, 0.3348204493522644, -0.515805184841156, 0.9988909959793091, -0.15873759984970093, -0.3299781382083893, -0.08778602629899979, -0.7771117687225342, 0.1290888786315918, 0.10964734852313995, -0.06902214139699936, -0.06561614573001862, -0.1118767186999321, 0.6618177890777588, -1.0313973426818848, 1.0405030250549316, -0.49251970648765564, 0.14839208126068115, 0.26655343174934387, -0.20441409945487976, 0.1980152130126953, 0.1110677719116211, -0.23499125242233276, 0.24750401079654694, -0.012818482704460621, -0.7233967781066895, -0.36114785075187683, 0.5160903334617615, -1.2969110012054443, -0.12468916177749634, -0.5796477198600769, -0.3182217478752136, -0.1376902014017105, 0.3239399790763855, 0.5761379599571228, 0.5057740211486816, 0.03653419762849808, -0.1044440045952797, 0.6744319796562195, -0.29431986808776855, 0.4105478823184967, 0.5597501993179321, -0.14452320337295532, -0.6091291308403015, 0.9747575521469116, 0.0685514286160469, 0.16913391649723053, -0.042969197034835815, 0.10363960266113281, -0.5095417499542236, -0.4969077408313751, -0.75721675157547, 0.2790184020996094, -0.5530920028686523, -0.1405259221792221, -0.4754619598388672, -0.36567801237106323, -0.6637495160102844, 0.03760746121406555, -0.5161017775535583, -0.34881359338760376, -0.42736777663230896, 0.01937529444694519, 0.546136200428009, 0.6245836019515991, -0.12276002764701843, 0.23926395177841187, -0.5270081162452698, 0.02086028642952442, 0.31319037079811096, 0.21881867945194244, 0.14842255413532257, -0.6650209426879883, 0.014089133590459824, 0.396851122379303, -0.5806175470352173, -0.5245976448059082, 0.28094205260276794, 0.25410163402557373, 0.6149335503578186, 0.5883331298828125, 0.15334907174110413, 0.869288980960846, -0.08487129211425781, 0.7974095940589905, 0.2924458980560303, -0.6982345581054688, 0.5440011024475098, -0.36320921778678894, 0.12499459832906723, 0.5010504126548767, 0.7430341839790344, -0.3410946726799011, -0.4621488153934479, -0.8013943433761597, -0.8171436190605164, 0.9628898501396179, 0.2899934947490692, 0.18532198667526245, 0.029903173446655273, 0.5903197526931763, -0.01109060738235712, 0.18833760917186737, -0.7431219816207886, -0.2733815610408783, -0.5049021244049072, 0.1000250056385994, -0.059445980936288834, 0.09872479736804962, -0.09196358174085617, -0.5005747675895691, 0.9839463233947754, -0.08008257299661636, 0.4090869426727295, 0.3892229199409485, 0.025514543056488037, -0.10792525857686996, -0.29463279247283936, 0.5046390295028687, 0.6253308653831482, -0.3317224085330963, -0.21168522536754608, 0.1211225688457489, -0.5696570873260498, 0.12940654158592224, 0.14758262038230896, -0.05796370655298233, -0.0871160700917244, 0.35850438475608826, 0.8319903016090393, -0.08729586005210876, -0.48371779918670654, 0.5972428917884827, -0.1328849196434021, -0.07460703700780869, -0.36407962441444397, 0.3128798305988312, -0.1746339201927185, 0.3132734000682831, 0.02267875336110592, 0.19086243212223053, 0.004632560070604086, -0.5193353891372681, -0.025661250576376915, 0.10678138583898544, -0.6907079219818115, -0.23385511338710785, 0.8730636239051819, -0.045563407242298126, -0.0646064355969429, 0.851974606513977, -0.20739097893238068, -0.3020630478858948, 0.8137404918670654, 0.49256619811058044, 0.6758065223693848, -0.1750258207321167, 0.24993625283241272, 0.5273202061653137, -0.03556571900844574, -0.14052064716815948, 0.4378507733345032, -0.08726844191551208, -0.6337912678718567, -0.05922304838895798, -0.4010322690010071, -0.3980656564235687, 0.31668558716773987, -0.9311313033103943, 0.21423283219337463, -0.7942678332328796, -0.44493529200553894, 0.2493734210729599, 0.025972764939069748, -0.4485136568546295, 0.20239900052547455, -0.10412300378084183, 1.1364407539367676, -0.7854180335998535, 0.9922914505004883, 0.9068949818611145, -1.0318976640701294, -0.9580967426300049, -0.28716039657592773, 0.017400678247213364, -0.9447391033172607, 0.5379721522331238, 0.12960155308246613, 0.08279936015605927, 0.010904730297625065, -0.6643915772438049, -0.6514339447021484, 1.106502652168274, 0.4882241189479828, -0.09570702910423279, 0.13687488436698914, 0.13318152725696564, 0.7387193441390991, -0.2512897551059723, 0.4986092448234558, 0.22586697340011597, 0.2717336416244507, 0.1454598754644394, -0.9382055997848511, 0.16943387687206268, -0.3113580048084259, 0.1260218322277069, -0.02107734978199005, -0.935185432434082, 0.9389600157737732, -0.26480036973953247, 0.2843155562877655, 0.31072357296943665, 0.5144066214561462, 0.4288269281387329, 0.3560216724872589, 0.46930426359176636, 0.6756753921508789, 0.5988020300865173, 0.04521125182509422, 1.1443308591842651, -0.3531798720359802, 0.493492990732193, 0.9065792560577393, -0.05459744855761528, 0.5658981800079346, 0.2947384715080261, -0.08834481984376907, 0.14555013179779053, 0.9738887548446655, -0.020373480394482613, 0.5238214135169983, 0.05948002263903618, -0.1659841537475586, -0.12976089119911194, -0.17610597610473633, -0.671829879283905, 0.058983467519283295, 0.06412378698587418, -0.42969825863838196, -0.32136672735214233, 0.14620152115821838, 0.17123037576675415, -0.3244510591030121, -0.21693205833435059, 0.9860986471176147, 0.10044269263744354, -0.673118531703949, 1.1729573011398315, -0.10921760648488998, 0.34257009625434875, -0.6635885834693909, -0.040739838033914566, -0.39520007371902466, 0.3746330738067627, -0.18559272587299347, -0.616132915019989, -0.058526549488306046, -0.05768904089927673, 0.11463048309087753, -0.19829486310482025, 0.29433849453926086, -0.14581701159477234, -0.0013749528443440795, 0.49815499782562256, 0.22713567316532135, 0.6107994914054871, -0.02898980677127838, -1.0509896278381348, 0.14140769839286804, 0.02120025083422661, -0.1496964693069458, 0.518682062625885, 0.42694753408432007, -0.06911872327327728, 0.7967736721038818, 0.683603823184967, 0.08491427451372147, 0.07107461988925934, 0.070290207862854, 1.0825903415679932, -0.3149355351924896, -0.3991096615791321, -0.5459250211715698, 0.2983056604862213, -0.06699425727128983, -0.89436936378479, 0.5315161347389221, 0.7554144263267517, 0.936835765838623, -0.05612647905945778, 0.6514790654182434, -0.25480732321739197, 0.0947759598493576, -0.4386626183986664, 0.8733533024787903, -0.7088225483894348, 0.12511757016181946, -0.2210903763771057, -0.8402244448661804, 0.10442463308572769, 0.6707846522331238, -0.1792837381362915, 0.2892794609069824, 0.2908079922199249, 0.6885026693344116, -0.2258078008890152, 0.10607937723398209, 0.17116916179656982, 0.2298906296491623, 0.44522231817245483, 0.5632220506668091, 0.6857452392578125, -0.5568307638168335, 0.5740672945976257, -0.5773012638092041, -0.30822786688804626, -0.15959732234477997, -0.6243968605995178, -0.8558405041694641, -0.5014035701751709, -0.4107592701911926, -0.579875111579895, 0.47382867336273193, 1.1223186254501343, 0.9517586827278137, -0.7807639241218567, -0.3860117495059967, -0.3295098543167114, -0.22868363559246063, -0.5823301672935486, -0.12405766546726227, 0.3170183598995209, -0.513130247592926, -0.5739629864692688, 0.06462498754262924, -0.15731334686279297, 0.49874481558799744, -0.09048710018396378, -0.4350021183490753, -0.144173726439476, -0.15160048007965088, 0.3014864921569824, 0.7082887291908264, -0.4413856863975525, -0.2740425765514374, -0.21003901958465576, -0.31715333461761475, 0.09931530058383942, 0.3302946388721466, -0.45861443877220154, 0.37584179639816284, 0.1358255296945572, 0.3853397071361542, 0.8274763822555542, -0.12082837522029877, 0.4391394257545471, -0.45329928398132324, 0.4235239028930664, 0.19641666114330292, 0.46017536520957947, -0.059929750859737396, -0.22845059633255005, 0.6476835608482361, 0.2677616477012634, -0.576992392539978, -0.705234944820404, -0.10027271509170532, -1.061462640762329, -0.22520260512828827, 1.0542550086975098, -0.5365843772888184, -0.4753807485103607, -0.1969764530658722, -0.47003501653671265, 0.3900311291217804, -0.6011636257171631, 0.8933528065681458, 0.2689404785633087, -0.322557657957077, 0.21304288506507874, -0.4614681005477905, 0.5459773540496826, 0.30328798294067383, -0.6291022300720215, -0.11696166545152664, 0.3879240155220032, 0.4016590714454651, 0.12410275638103485, 0.6237006187438965, -0.21973007917404175, 0.3367169201374054, 0.00791709590703249, 0.22501210868358612, -0.4912407398223877, -0.0846526101231575, -0.4049108028411865, -0.20466649532318115, 0.09765354543924332, -0.6557888388633728 ]
aubmindlab/bert-base-arabertv2
aubmindlab
"2023-08-03T12:32:06Z"
25,452
14
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "bert", "fill-mask", "ar", "dataset:wikipedia", "dataset:Osian", "dataset:1.5B-Arabic-Corpus", "dataset:oscar-arabic-unshuffled", "arxiv:2003.00104", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ar datasets: - wikipedia - Osian - 1.5B-Arabic-Corpus - oscar-arabic-unshuffled widget: - text: " عاصم +ة لبنان هي [MASK] ." --- # AraBERT v1 & v2 : Pre-training BERT for Arabic Language Understanding <img src="https://raw.githubusercontent.com/aub-mind/arabert/master/arabert_logo.png" width="100" align="left"/> **AraBERT** is an Arabic pretrained lanaguage model based on [Google's BERT architechture](https://github.com/google-research/bert). AraBERT uses the same BERT-Base config. More details are available in the [AraBERT Paper](https://arxiv.org/abs/2003.00104) and in the [AraBERT Meetup](https://github.com/WissamAntoun/pydata_khobar_meetup) There are two versions of the model, AraBERTv0.1 and AraBERTv1, with the difference being that AraBERTv1 uses pre-segmented text where prefixes and suffixes were splitted using the [Farasa Segmenter](http://alt.qcri.org/farasa/segmenter.html). We evalaute AraBERT models on different downstream tasks and compare them to [mBERT]((https://github.com/google-research/bert/blob/master/multilingual.md)), and other state of the art models (*To the extent of our knowledge*). The Tasks were Sentiment Analysis on 6 different datasets ([HARD](https://github.com/elnagara/HARD-Arabic-Dataset), [ASTD-Balanced](https://www.aclweb.org/anthology/D15-1299), [ArsenTD-Lev](https://staff.aub.edu.lb/~we07/Publications/ArSentD-LEV_Sentiment_Corpus.pdf), [LABR](https://github.com/mohamedadaly/LABR)), Named Entity Recognition with the [ANERcorp](http://curtis.ml.cmu.edu/w/courses/index.php/ANERcorp), and Arabic Question Answering on [Arabic-SQuAD and ARCD](https://github.com/husseinmozannar/SOQAL) # AraBERTv2 ## What's New! AraBERT now comes in 4 new variants to replace the old v1 versions: More Detail in the AraBERT folder and in the [README](https://github.com/aub-mind/arabert/blob/master/AraBERT/README.md) and in the [AraBERT Paper](https://arxiv.org/abs/2003.00104v2) Model | HuggingFace Model Name | Size (MB/Params)| Pre-Segmentation | DataSet (Sentences/Size/nWords) | ---|:---:|:---:|:---:|:---: AraBERTv0.2-base | [bert-base-arabertv02](https://huggingface.co/aubmindlab/bert-base-arabertv02) | 543MB / 136M | No | 200M / 77GB / 8.6B | AraBERTv0.2-large| [bert-large-arabertv02](https://huggingface.co/aubmindlab/bert-large-arabertv02) | 1.38G 371M | No | 200M / 77GB / 8.6B | AraBERTv2-base| [bert-base-arabertv2](https://huggingface.co/aubmindlab/bert-base-arabertv2) | 543MB 136M | Yes | 200M / 77GB / 8.6B | AraBERTv2-large| [bert-large-arabertv2](https://huggingface.co/aubmindlab/bert-large-arabertv2) | 1.38G 371M | Yes | 200M / 77GB / 8.6B | AraBERTv0.1-base| [bert-base-arabertv01](https://huggingface.co/aubmindlab/bert-base-arabertv01) | 543MB 136M | No | 77M / 23GB / 2.7B | AraBERTv1-base| [bert-base-arabert](https://huggingface.co/aubmindlab/bert-base-arabert) | 543MB 136M | Yes | 77M / 23GB / 2.7B | All models are available in the `HuggingFace` model page under the [aubmindlab](https://huggingface.co/aubmindlab/) name. Checkpoints are available in PyTorch, TF2 and TF1 formats. ## Better Pre-Processing and New Vocab We identified an issue with AraBERTv1's wordpiece vocabulary. The issue came from punctuations and numbers that were still attached to words when learned the wordpiece vocab. We now insert a space between numbers and characters and around punctuation characters. The new vocabulary was learnt using the `BertWordpieceTokenizer` from the `tokenizers` library, and should now support the Fast tokenizer implementation from the `transformers` library. **P.S.**: All the old BERT codes should work with the new BERT, just change the model name and check the new preprocessing dunction **Please read the section on how to use the [preprocessing function](#Preprocessing)** ## Bigger Dataset and More Compute We used ~3.5 times more data, and trained for longer. For Dataset Sources see the [Dataset Section](#Dataset) Model | Hardware | num of examples with seq len (128 / 512) |128 (Batch Size/ Num of Steps) | 512 (Batch Size/ Num of Steps) | Total Steps | Total Time (in Days) | ---|:---:|:---:|:---:|:---:|:---:|:---: AraBERTv0.2-base | TPUv3-8 | 420M / 207M | 2560 / 1M | 384/ 2M | 3M | - AraBERTv0.2-large | TPUv3-128 | 420M / 207M | 13440 / 250K | 2056 / 300K | 550K | 7 AraBERTv2-base | TPUv3-8 | 420M / 207M | 2560 / 1M | 384/ 2M | 3M | - AraBERTv2-large | TPUv3-128 | 520M / 245M | 13440 / 250K | 2056 / 300K | 550K | 7 AraBERT-base (v1/v0.1) | TPUv2-8 | - |512 / 900K | 128 / 300K| 1.2M | 4 # Dataset The pretraining data used for the new AraBERT model is also used for Arabic **AraGPT2 and AraELECTRA**. The dataset consists of 77GB or 200,095,961 lines or 8,655,948,860 words or 82,232,988,358 chars (before applying Farasa Segmentation) For the new dataset we added the unshuffled OSCAR corpus, after we thoroughly filter it, to the previous dataset used in AraBERTv1 but with out the websites that we previously crawled: - OSCAR unshuffled and filtered. - [Arabic Wikipedia dump](https://archive.org/details/arwiki-20190201) from 2020/09/01 - [The 1.5B words Arabic Corpus](https://www.semanticscholar.org/paper/1.5-billion-words-Arabic-Corpus-El-Khair/f3eeef4afb81223df96575adadf808fe7fe440b4) - [The OSIAN Corpus](https://www.aclweb.org/anthology/W19-4619) - Assafir news articles. Huge thank you for Assafir for giving us the data # Preprocessing It is recommended to apply our preprocessing function before training/testing on any dataset. **Install farasapy to segment text for AraBERT v1 & v2 `pip install farasapy`** ```python from arabert.preprocess import ArabertPreprocessor model_name="bert-base-arabertv2" arabert_prep = ArabertPreprocessor(model_name=model_name) text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري" arabert_prep.preprocess(text) >>>"و+ لن نبالغ إذا قل +نا إن هاتف أو كمبيوتر ال+ مكتب في زمن +نا هذا ضروري" ``` ## Accepted_models ``` bert-base-arabertv01 bert-base-arabert bert-base-arabertv02 bert-base-arabertv2 bert-large-arabertv02 bert-large-arabertv2 araelectra-base aragpt2-base aragpt2-medium aragpt2-large aragpt2-mega ``` # TensorFlow 1.x models The TF1.x model are available in the HuggingFace models repo. You can download them as follows: - via git-lfs: clone all the models in a repo ```bash curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash sudo apt-get install git-lfs git lfs install git clone https://huggingface.co/aubmindlab/MODEL_NAME tar -C ./MODEL_NAME -zxvf /content/MODEL_NAME/tf1_model.tar.gz ``` where `MODEL_NAME` is any model under the `aubmindlab` name - via `wget`: - Go to the tf1_model.tar.gz file on huggingface.co/models/aubmindlab/MODEL_NAME. - copy the `oid sha256` - then run `wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/INSERT_THE_SHA_HERE` (ex: for `aragpt2-base`: `wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/3766fc03d7c2593ff2fb991d275e96b81b0ecb2098b71ff315611d052ce65248`) # If you used this model please cite us as : Google Scholar has our Bibtex wrong (missing name), use this instead ``` @inproceedings{antoun2020arabert, title={AraBERT: Transformer-based Model for Arabic Language Understanding}, author={Antoun, Wissam and Baly, Fady and Hajj, Hazem}, booktitle={LREC 2020 Workshop Language Resources and Evaluation Conference 11--16 May 2020}, pages={9} } ``` # Acknowledgments Thanks to TensorFlow Research Cloud (TFRC) for the free access to Cloud TPUs, couldn't have done it without this program, and to the [AUB MIND Lab](https://sites.aub.edu.lb/mindlab/) Members for the continous support. Also thanks to [Yakshof](https://www.yakshof.com/#/) and Assafir for data and storage access. Another thanks for Habib Rahal (https://www.behance.net/rahalhabib), for putting a face to AraBERT. # Contacts **Wissam Antoun**: [Linkedin](https://www.linkedin.com/in/wissam-antoun-622142b4/) | [Twitter](https://twitter.com/wissam_antoun) | [Github](https://github.com/WissamAntoun) | <wfa07@mail.aub.edu> | <wissam.antoun@gmail.com> **Fady Baly**: [Linkedin](https://www.linkedin.com/in/fadybaly/) | [Twitter](https://twitter.com/fadybaly) | [Github](https://github.com/fadybaly) | <fgb06@mail.aub.edu> | <baly.fady@gmail.com>
[ -0.7009775638580322, -0.7124802470207214, 0.32665130496025085, 0.1386176198720932, -0.32053911685943604, -0.0935743972659111, -0.13708017766475677, -0.5729031562805176, 0.24955521523952484, 0.282598078250885, -0.580639660358429, -0.6682184934616089, -0.7822836637496948, 0.01841789111495018, -0.5083284974098206, 1.2333165407180786, -0.33202701807022095, 0.0052084652706980705, -0.023190805688500404, -0.49037402868270874, -0.01867898553609848, -0.4645370543003082, -0.5656038522720337, -0.3784251809120178, 0.42209696769714355, 0.2865663766860962, 0.8472907543182373, 0.4434534013271332, 0.3821200430393219, 0.3925905227661133, -0.2509140372276306, 0.07062974572181702, -0.1697462946176529, -0.1980091631412506, 0.1932671219110489, -0.2078239470720291, -0.5072557926177979, -0.09758923202753067, 0.669806957244873, 0.5074265599250793, 0.011151070706546307, 0.12288231402635574, -0.10159379243850708, 0.8233243227005005, -0.34323835372924805, -0.04740285873413086, -0.11656711995601654, -0.03728966787457466, -0.21312297880649567, 0.3810255229473114, -0.009365794248878956, -0.37444645166397095, 0.38629892468452454, -0.4994078278541565, 0.12176629900932312, 0.001769694616086781, 1.3206852674484253, 0.32809850573539734, -0.1599106341600418, -0.37603816390037537, -0.3588797152042389, 0.846187174320221, -0.7990100383758545, 0.6210790872573853, 0.37379536032676697, 0.00413203239440918, -0.09993679076433182, -0.8237161040306091, -0.751613974571228, -0.2582942247390747, -0.047718361020088196, -0.00543688191100955, -0.35740670561790466, -0.021730490028858185, 0.0773482471704483, 0.46430593729019165, -0.5262943506240845, -0.062485553324222565, -0.5079444646835327, -0.38371968269348145, 0.6009341478347778, -0.3065270781517029, 0.31048980355262756, -0.20309984683990479, -0.42160138487815857, -0.5114140510559082, -0.46804672479629517, 0.15958556532859802, 0.27998900413513184, 0.0322650671005249, -0.6015099883079529, 0.33360886573791504, -0.009401541203260422, 0.46796494722366333, 0.10016713291406631, -0.18571476638317108, 0.6345601677894592, -0.2372426688671112, -0.16679777204990387, 0.05791949853301048, 0.8786784410476685, 0.1051843911409378, 0.2505553662776947, -0.012506626546382904, -0.08299604803323746, -0.07440295070409775, 0.02498815208673477, -1.0956374406814575, -0.3316701650619507, 0.47757387161254883, -0.5023390054702759, -0.2504793405532837, 0.0038054988253861666, -0.5938906073570251, -0.10537534207105637, -0.11573019623756409, 0.4825417101383209, -0.9394749999046326, -0.32109686732292175, 0.10101648420095444, -0.2041197419166565, 0.42987051606178284, 0.38739824295043945, -0.5875605940818787, 0.27601006627082825, 0.5318390130996704, 1.0028693675994873, -0.018228741362690926, -0.3456459641456604, -0.16249416768550873, -0.33362096548080444, -0.1706453114748001, 0.5995731949806213, -0.32050833106040955, -0.3808213472366333, -0.07862375676631927, -0.0587746687233448, 0.02651599422097206, -0.5055718421936035, 0.687490701675415, -0.57102370262146, 0.37760189175605774, -0.3689064383506775, -0.6389835476875305, -0.4973464608192444, 0.22714032232761383, -0.5898536443710327, 1.134665846824646, 0.3545248806476593, -0.7696266770362854, 0.12255872786045074, -0.8599767684936523, -0.3272082209587097, -0.19583314657211304, -0.02049333229660988, -0.679580807685852, -0.13056741654872894, 0.3936784565448761, 0.31734201312065125, -0.11976103484630585, -0.019754065200686455, -0.07240927219390869, -0.13504403829574585, 0.3669886887073517, -0.09669153392314911, 0.9771770238876343, 0.27539587020874023, -0.38323596119880676, 0.06601444631814957, -0.7525182962417603, 0.025014549493789673, 0.24217799305915833, -0.24036231637001038, -0.06704838573932648, -0.13190338015556335, 0.25544896721839905, 0.3785240948200226, 0.36817416548728943, -0.6444592475891113, 0.11070452630519867, -0.507095992565155, 0.32344841957092285, 0.7333475351333618, -0.07058092951774597, 0.33402347564697266, -0.5773553252220154, 0.4827646017074585, 0.36156293749809265, 0.11548106372356415, -0.013047836720943451, -0.4538840055465698, -1.071854591369629, -0.40196746587753296, 0.4699489176273346, 0.4378788471221924, -0.7380983233451843, 0.46252143383026123, -0.28933537006378174, -0.7952780723571777, -0.7550721764564514, 0.0995689332485199, 0.5387842059135437, 0.4287649691104889, 0.5494394302368164, -0.46452686190605164, -0.4638575613498688, -0.8656543493270874, -0.15958376228809357, -0.21950304508209229, 0.11696819961071014, 0.3371972143650055, 0.7681665420532227, -0.39814409613609314, 0.8268462419509888, -0.47880950570106506, -0.3187415599822998, -0.22366289794445038, 0.1331680864095688, 0.2021021991968155, 0.6145754456520081, 0.8556535243988037, -0.7180600762367249, -0.4726126194000244, -0.12827737629413605, -0.49472129344940186, 0.08251408487558365, 0.11249823123216629, -0.30409035086631775, 0.435089647769928, 0.285329133272171, -0.7040808796882629, 0.392544150352478, 0.6053258180618286, -0.5417988896369934, 0.5217477679252625, 0.028903083875775337, 0.004098080098628998, -1.1516904830932617, 0.134353369474411, 0.02781452052295208, -0.21489961445331573, -0.5980242490768433, 0.012417029589414597, -0.08941788971424103, 0.12220638990402222, -0.6024746298789978, 0.803550124168396, -0.3676883280277252, 0.1448494791984558, -0.09087657928466797, -0.047670118510723114, 0.05074908211827278, 0.645439863204956, -0.20075583457946777, 0.9774883389472961, 0.5359982252120972, -0.6334390640258789, 0.10641573369503021, 0.7773616313934326, -0.5126885771751404, 0.01775321736931801, -0.8968581557273865, 0.2735494077205658, -0.2717951834201813, 0.21552787721157074, -0.958508312702179, -0.22364847362041473, 0.4872448444366455, -0.6555247902870178, 0.42919737100601196, -0.1466275304555893, -0.44480371475219727, -0.2178230732679367, -0.5559894442558289, 0.4033711850643158, 0.7384469509124756, -0.5261456966400146, 0.5627419948577881, 0.29869502782821655, -0.2773573696613312, -0.6315255761146545, -0.5888672471046448, -0.27600598335266113, -0.17724376916885376, -0.8262042999267578, 0.6067404747009277, -0.03549019619822502, -0.17918632924556732, 0.053223997354507446, -0.13738790154457092, -0.10023550689220428, 0.04141891375184059, 0.3500578999519348, 0.3077356815338135, -0.11069298535585403, 0.07030338793992996, 0.11710327863693237, -0.03228462487459183, 0.06662649661302567, -0.22171495854854584, 0.7835402488708496, -0.375548779964447, -0.10186897218227386, -0.46550264954566956, 0.22095192968845367, 0.5889979004859924, -0.5253390669822693, 1.038195013999939, 1.0104553699493408, -0.31157147884368896, 0.12331072986125946, -0.574015200138092, -0.13162820041179657, -0.5247178673744202, 0.4372132420539856, -0.23627012968063354, -0.9530143737792969, 0.5563005805015564, 0.024039916694164276, 0.30278280377388, 0.7535446882247925, 0.5240613222122192, 0.02117607183754444, 0.9273274540901184, 0.5755213499069214, -0.30655673146247864, 0.6765089631080627, -0.4730384349822998, 0.05612156167626381, -0.8485866785049438, -0.2883337736129761, -0.5242129564285278, -0.3340663015842438, -0.7035728096961975, -0.42655178904533386, 0.4570590555667877, -0.03636794909834862, -0.44277575612068176, 0.2262682318687439, -0.47660762071609497, 0.09381239861249924, 0.5501874089241028, 0.2011490762233734, -0.07421301305294037, 0.29100796580314636, -0.27017053961753845, 0.00912953820079565, -0.48837006092071533, -0.5279296636581421, 1.0398056507110596, 0.41677072644233704, 0.37584441900253296, 0.22742235660552979, 0.8057969808578491, 0.3043183982372284, 0.3275105655193329, -0.6858087778091431, 0.4930480122566223, -0.041009120643138885, -0.7094327211380005, -0.1565006822347641, -0.20514191687107086, -0.8669052124023438, 0.1695612221956253, -0.08235374093055725, -0.7937771677970886, 0.08573415875434875, 0.00277582835406065, -0.41570228338241577, 0.2826771140098572, -0.567270040512085, 0.8715966939926147, -0.19573134183883667, -0.3468814790248871, -0.17290061712265015, -0.8317603468894958, 0.12649084627628326, -0.013721190392971039, 0.18274924159049988, -0.251764178276062, 0.07657206803560257, 1.2566869258880615, -0.8841494917869568, 0.5061376094818115, -0.35271018743515015, -0.016041235998272896, 0.4652644693851471, -0.11797744780778885, 0.4030587077140808, -0.21381136775016785, -0.20867934823036194, 0.5204874873161316, 0.17462334036827087, -0.4824047386646271, -0.22415387630462646, 0.6571364998817444, -1.3007171154022217, -0.3764396607875824, -0.6567953824996948, -0.40363913774490356, 0.006113850511610508, 0.20114804804325104, 0.31162840127944946, 0.3922893702983856, -0.22004492580890656, 0.07212591171264648, 0.4674795866012573, -0.38032135367393494, 0.39054012298583984, 0.2505114674568176, -0.2937467694282532, -0.4665316939353943, 0.7290324568748474, 0.02772507257759571, 0.022291097790002823, 0.24479687213897705, 0.008661163970828056, -0.3504345417022705, -0.518738329410553, -0.47342056035995483, 0.48188385367393494, -0.6426858305931091, -0.20457035303115845, -0.7663958072662354, -0.2891690731048584, -0.4082670211791992, -0.03258879855275154, -0.4095429480075836, -0.48811978101730347, -0.3714301884174347, 0.02115822397172451, 0.8249462842941284, 0.583869993686676, -0.08383897691965103, 0.546183168888092, -0.8740385174751282, 0.16895243525505066, -0.047478288412094116, 0.20751206576824188, 0.026994025334715843, -0.8582460880279541, -0.2644983232021332, 0.1997949331998825, -0.6049816608428955, -0.842404842376709, 0.5452103614807129, 0.24455492198467255, 0.11213141679763794, 0.49525395035743713, -0.147105410695076, 0.7314446568489075, -0.6033037900924683, 0.7958481907844543, 0.0913386344909668, -0.9769172668457031, 0.4413284659385681, -0.16090638935565948, 0.33349886536598206, 0.6346500515937805, 0.6861056089401245, -0.6463465094566345, -0.03202522173523903, -0.7094994187355042, -0.8989186882972717, 0.8129515647888184, 0.4554653763771057, 0.039948925375938416, 0.05413390323519707, 0.4232521057128906, 0.14442874491214752, 0.19876568019390106, -0.5231703519821167, -0.6100209951400757, -0.27864551544189453, -0.3747779428958893, -0.006571061443537474, -0.28331080079078674, -0.014705426059663296, -0.5729782581329346, 1.055477261543274, 0.191359281539917, 0.6413324475288391, 0.4979046583175659, -0.2011646330356598, 0.03096165508031845, 0.18853628635406494, 0.48876479268074036, 0.5313737988471985, -0.22868089377880096, -0.2721213698387146, 0.18339107930660248, -0.6377320289611816, 0.0016639712266623974, 0.649442195892334, -0.18786223232746124, 0.2415211945772171, 0.30624696612358093, 0.8118098378181458, 0.039914630353450775, -0.6498181819915771, 0.5203390717506409, -0.03424404561519623, -0.31504297256469727, -0.6165065169334412, 0.0027855858206748962, 0.057641804218292236, 0.30541083216667175, 0.36263707280158997, 0.08108451962471008, 0.029712876304984093, -0.3657391667366028, 0.1740087866783142, 0.4390121400356293, -0.2680678367614746, -0.46035388112068176, 0.6165369153022766, 0.04335187003016472, -0.2157326489686966, 0.8078252673149109, -0.211337149143219, -0.8541984558105469, 0.6280730962753296, 0.34880542755126953, 0.7380868792533875, -0.23384574055671692, 0.16447757184505463, 0.480734258890152, 0.08149571716785431, 0.16546088457107544, 0.5025002956390381, -0.05621212348341942, -0.8964152932167053, -0.26973432302474976, -0.9004741907119751, -0.31080374121665955, 0.21964159607887268, -0.5353679656982422, 0.15150140225887299, -0.5932338237762451, -0.2349487841129303, 0.2916969060897827, 0.2750815749168396, -0.8703975081443787, 0.23403577506542206, 0.24614450335502625, 0.9131041765213013, -0.6810202598571777, 0.782151460647583, 1.0367943048477173, -0.49004292488098145, -0.8478222489356995, -0.18618975579738617, 0.004656214267015457, -0.9774355888366699, 0.3331741988658905, 0.29728439450263977, 0.014955167658627033, 0.02596667781472206, -0.7308768033981323, -1.0350043773651123, 1.1277637481689453, 0.0653388574719429, -0.38090431690216064, -0.043195709586143494, 0.16979923844337463, 0.4403294026851654, -0.030703915283083916, 0.29868364334106445, 0.5798970460891724, 0.5371532440185547, 0.15207596123218536, -0.7612826824188232, 0.15140558779239655, -0.39461809396743774, -0.19331762194633484, 0.45550158619880676, -0.9566783905029297, 0.9708473682403564, -0.22955240309238434, -0.10964304953813553, 0.32330307364463806, 0.8501542210578918, 0.2906361520290375, 0.07538314163684845, 0.4599978029727936, 0.7895210981369019, 0.7502955794334412, -0.16444221138954163, 1.0505865812301636, -0.4239296019077301, 0.3992924392223358, 0.6874406337738037, 0.02608663961291313, 0.7161906957626343, 0.5029632449150085, -0.464350163936615, 0.8085281252861023, 0.6172720789909363, 0.008236873894929886, 0.43612468242645264, -0.07922380417585373, -0.3610881567001343, -0.04079478234052658, -0.14591029286384583, -0.5810973644256592, 0.5642526149749756, 0.3202785849571228, -0.4441367983818054, -0.20019547641277313, -0.11578748375177383, 0.563481867313385, -0.33390429615974426, -0.1112256869673729, 0.5734376311302185, 0.15446634590625763, -0.60472571849823, 0.7874584794044495, 0.3707822561264038, 0.7089470028877258, -0.6568549871444702, 0.09067639708518982, -0.1415659636259079, 0.371368944644928, -0.21255134046077728, -0.5574705004692078, 0.1797676533460617, 0.10552383214235306, 0.03752173110842705, -0.10102678090333939, 0.7311393618583679, -0.38180503249168396, -0.6220466494560242, 0.1802511215209961, 0.6069393157958984, 0.3970577120780945, -0.11729224026203156, -0.9947810769081116, 0.2878899872303009, 0.20057465136051178, -0.40856027603149414, 0.22250106930732727, 0.24468301236629486, 0.061133746057748795, 0.5090203285217285, 0.6503811478614807, -0.11067113280296326, -0.017449794337153435, -0.06698893010616302, 1.0756125450134277, -0.6864081621170044, -0.28902602195739746, -0.9671692848205566, 0.5321469306945801, 0.0036672663409262896, -0.5803230404853821, 0.7226088643074036, 0.5421368479728699, 0.9832340478897095, 0.013553328812122345, 0.7019571661949158, -0.2886223793029785, 0.46464499831199646, -0.33159106969833374, 0.8664836287498474, -0.7942796945571899, -0.17741169035434723, -0.35389643907546997, -0.7319159507751465, -0.07073559612035751, 0.8490232229232788, -0.31652578711509705, 0.30417370796203613, 0.5489382147789001, 0.7448458075523376, -0.06460834294557571, -0.07295944541692734, -0.11955224722623825, 0.39498716592788696, 0.3489026427268982, 0.4938313364982605, 0.5837543606758118, -0.8332778811454773, 0.3815854489803314, -0.43394187092781067, -0.1201024055480957, -0.2435501664876938, -0.5932775139808655, -0.8693922758102417, -0.6379468441009521, -0.39432618021965027, -0.5149359703063965, 0.08020094782114029, 1.2735687494277954, 0.6145604848861694, -0.8459151387214661, -0.06145467609167099, 0.008460132405161858, 0.023280536755919456, 0.02370060421526432, -0.22975361347198486, 0.6228427290916443, -0.010577837936580181, -0.7511744499206543, 0.09224768728017807, -0.04250422120094299, 0.39687973260879517, 0.06874377280473709, -0.28624969720840454, -0.39225125312805176, 0.025802375748753548, 0.5185073018074036, 0.426998496055603, -0.6343680620193481, -0.2998761832714081, -0.035934168845415115, 0.07069886475801468, 0.33545610308647156, 0.21258459985256195, -0.7297859191894531, 0.04852525144815445, 0.24926362931728363, 0.6022624373435974, 0.7907745242118835, 0.045939959585666656, 0.1900588870048523, -0.6331083178520203, 0.3791922330856323, 0.23080892860889435, 0.46520471572875977, 0.4857361912727356, -0.06177939847111702, 0.4116251766681671, -0.04952207952737808, -0.5718579292297363, -0.5920073390007019, 0.08780989795923233, -1.0588263273239136, -0.14863252639770508, 1.0702253580093384, -0.14870353043079376, -0.35243380069732666, 0.1672593504190445, -0.28094151616096497, 0.554248571395874, -0.5097466111183167, 0.7227247357368469, 0.926784098148346, -0.02594689093530178, -0.06695768982172012, -0.37106430530548096, 0.624132513999939, 0.7538170218467712, -0.6996421813964844, -0.42905378341674805, 0.39371731877326965, 0.46750059723854065, 0.27883604168891907, 0.5834817290306091, -0.16601717472076416, 0.2651711702346802, -0.21043920516967773, 0.24035681784152985, -0.05645399168133736, -0.14402082562446594, -0.2264963686466217, -0.17229299247264862, 0.04852614924311638, -0.3277719020843506 ]
openmmlab/upernet-convnext-small
openmmlab
"2023-01-19T10:45:20Z"
25,443
18
transformers
[ "transformers", "pytorch", "upernet", "vision", "image-segmentation", "en", "arxiv:1807.10221", "arxiv:2201.03545", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
image-segmentation
"2023-01-13T14:24:39Z"
--- language: en license: mit tags: - vision - image-segmentation model_name: openmmlab/upernet-convnext-small --- # UperNet, ConvNeXt small-sized backbone UperNet framework for semantic segmentation, leveraging a ConvNeXt backbone. UperNet was introduced in the paper [Unified Perceptual Parsing for Scene Understanding](https://arxiv.org/abs/1807.10221) by Xiao et al. Combining UperNet with a ConvNeXt backbone was introduced in the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545). Disclaimer: The team releasing UperNet + ConvNeXt did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description UperNet is a framework for semantic segmentation. It consists of several components, including a backbone, a Feature Pyramid Network (FPN) and a Pyramid Pooling Module (PPM). Any visual backbone can be plugged into the UperNet framework. The framework predicts a semantic label per pixel. ![UperNet architecture](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/upernet_architecture.jpg) ## Intended uses & limitations You can use the raw model for semantic segmentation. See the [model hub](https://huggingface.co/models?search=openmmlab/upernet) to look for fine-tuned versions (with various backbones) on a task that interests you. ### How to use For code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/upernet#transformers.UperNetForSemanticSegmentation).
[ -0.5880456566810608, -0.24263295531272888, 0.24817053973674774, 0.4562523365020752, -0.351670503616333, -0.2978091835975647, 0.21686840057373047, -0.6032005548477173, 0.3767964839935303, 0.7374997138977051, -0.8632159233093262, -0.5138707756996155, -0.33667582273483276, -0.20050401985645294, -0.39929842948913574, 0.7925378084182739, 0.3067309856414795, 0.3276425302028656, -0.13735024631023407, -0.2530004382133484, -0.5069144368171692, -0.29705148935317993, -0.5541051626205444, -0.46174800395965576, 0.24389106035232544, 0.47056105732917786, 0.9042287468910217, 0.8754401206970215, 0.4392698407173157, 0.4570882022380829, -0.4594888687133789, -0.2633017599582672, -0.08840936422348022, -0.18594911694526672, -0.36273354291915894, -0.2819962203502655, -0.43419942259788513, -0.05802879109978676, 0.6006091237068176, 0.9514961838722229, -0.02965182438492775, 0.12463915348052979, -0.11204855889081955, 0.6919942498207092, -0.4741021990776062, -0.10401199758052826, -0.3925980031490326, 0.17115768790245056, -0.31280753016471863, 0.3616396188735962, -0.10709164291620255, 0.02643696777522564, 0.6288217902183533, -0.5907378792762756, 0.08175156265497208, 0.1660493165254593, 0.9751271605491638, 0.23593033850193024, -0.3077060282230377, 0.057273369282484055, -0.23493149876594543, 0.8527726531028748, -0.18378488719463348, 0.390127032995224, -0.3482989966869354, 0.538889467716217, -0.14510013163089752, -1.1923346519470215, -0.5674251317977905, -0.15365095436573029, -0.05058068037033081, 0.22523857653141022, -0.24851833283901215, 0.2147466540336609, 0.09222173690795898, 0.7438986897468567, -0.3886738717556, 0.220831960439682, -0.17805494368076324, -0.3104727864265442, 0.4222949147224426, 0.1992054432630539, 0.6396230459213257, -0.6821051239967346, -1.0068693161010742, -0.3795492649078369, -0.5885555148124695, 0.027275951579213142, 0.03652983903884888, 0.022748254239559174, -0.27369579672813416, 0.649552047252655, -0.13936671614646912, 0.8776993155479431, 0.2130078822374344, 0.3466692864894867, -0.021972738206386566, -0.36014512181282043, -0.5408220291137695, 0.2092992067337036, 0.42647650837898254, 0.5291721224784851, 0.2763216495513916, 0.03510027378797531, -0.08227397501468658, 0.22029301524162292, 0.21785449981689453, -0.9452304244041443, -0.6527420282363892, 0.040187057107686996, -0.7412174940109253, -0.5331659317016602, 0.040888067334890366, -0.9335500001907349, -0.3957468569278717, -0.32909709215164185, 0.16197694838047028, -0.1888086199760437, -0.193533256649971, 0.283204585313797, -0.4285941421985626, 0.4735303223133087, 0.4531691372394562, -0.8122831583023071, 0.36114728450775146, 0.5624732971191406, 0.6984266638755798, -0.06916689872741699, -0.00835790392011404, -0.24982649087905884, -0.009507809765636921, 0.162106454372406, 0.9950278401374817, -0.44206953048706055, -0.42636850476264954, -0.3582780957221985, 0.41530951857566833, -0.24037736654281616, -0.39347419142723083, 0.5932887196540833, -0.44247177243232727, 0.26220959424972534, -0.12652269005775452, -0.48760825395584106, -0.4500204026699066, 0.26124411821365356, -0.731139600276947, 0.8461375832557678, 0.23850060999393463, -0.9091317057609558, 0.3124200403690338, -0.7037304639816284, 0.19753821194171906, 0.18340468406677246, -0.30730926990509033, -0.3531147241592407, 0.024863651022315025, 0.08987487852573395, 0.43605154752731323, -0.34002041816711426, -0.12185245752334595, -0.5566849708557129, -0.05339394882321358, -0.08061087131500244, -0.19406762719154358, 1.161974549293518, 0.21475963294506073, -0.1581767350435257, 0.5806809067726135, -1.080056071281433, 0.015203696675598621, 0.1292179673910141, -0.11049007624387741, -0.533310055732727, -0.17728330194950104, 0.2797988951206207, 0.38654670119285583, 0.10150152444839478, -1.0399326086044312, 0.10601158440113068, -0.5940306186676025, 0.21127307415008545, 0.66788250207901, -0.045930929481983185, 0.7119789123535156, -0.09280101954936981, 0.12511701881885529, 0.059044912457466125, 0.25471290946006775, -0.11708542704582214, -0.5386521816253662, -0.7699679732322693, -0.30357661843299866, 0.37176084518432617, 0.5497779250144958, -0.4871472120285034, 0.3672311007976532, -0.062316957861185074, -0.4741678535938263, -0.2539008557796478, -0.11223513633012772, 0.48445436358451843, 0.6353514790534973, 0.451977401971817, -0.29769572615623474, -0.7568133473396301, -0.951924204826355, 0.06719759106636047, 0.18848168849945068, -0.37060388922691345, -0.019719962030649185, 0.573422372341156, -0.2023463249206543, 0.9047912955284119, -0.4842090308666229, -0.4791325628757477, -0.22625331580638885, -0.207454651594162, 0.03261619806289673, 0.8592740893363953, 0.6118932366371155, -1.1950465440750122, -0.3251459002494812, 0.05425890535116196, -0.7412884831428528, 0.2828585207462311, 0.23634380102157593, -0.22181379795074463, -0.2375231236219406, 0.38708803057670593, -0.581475555896759, 0.6536219120025635, 0.6883674263954163, -0.6534983515739441, 0.5724155902862549, -0.19082438945770264, -0.24845197796821594, -1.4314589500427246, -0.06139577552676201, 0.21172501146793365, -0.21933892369270325, -0.48741334676742554, 0.036600422114133835, -0.03313785418868065, -0.40925484895706177, -0.7082540392875671, 0.7166914939880371, -0.5098763704299927, -0.37826886773109436, -0.10641796886920929, 0.14687380194664001, 0.2990944981575012, 0.47438737750053406, 0.2426103800535202, 0.2907969653606415, 0.47127434611320496, -0.48117390275001526, 0.6034809350967407, 0.7024447321891785, -0.3187989294528961, 0.8266807794570923, -1.0317356586456299, -0.33900219202041626, 0.1859818994998932, 0.29433673620224, -0.9200159311294556, -0.6167901754379272, 0.34999585151672363, -0.14446669816970825, 0.3321167528629303, -0.2883949875831604, -0.24035386741161346, -0.43843647837638855, -0.31484082341194153, 0.395626962184906, 0.2656969726085663, -0.9801231026649475, 0.6433839201927185, 0.7187353372573853, 0.3137584626674652, -0.43811720609664917, -0.7171047925949097, -0.1363328993320465, -0.2779402434825897, -1.4055910110473633, 0.7623191475868225, 0.09519826620817184, -0.2706215977668762, 0.09681663662195206, -0.20212675631046295, -0.16601960361003876, -0.00367206078954041, 0.32491376996040344, 0.28503650426864624, -0.12171497941017151, -0.04095274582505226, -0.05556043982505798, -0.44893866777420044, -0.07937953621149063, -0.529995858669281, 0.2169865518808365, -0.5564485788345337, -0.19853556156158447, -0.42151740193367004, 0.35004472732543945, 0.2747558057308197, -0.19450271129608154, 0.2950378954410553, 0.5314112901687622, -0.2836519181728363, -0.29040104150772095, -0.1933232992887497, -0.26032671332359314, -0.5031805038452148, 0.055577654391527176, -0.43451738357543945, -0.97384113073349, 0.7920034527778625, -0.3940633237361908, -0.3206070065498352, 0.521463930606842, 0.31816110014915466, -0.18683987855911255, 1.1254416704177856, 0.831885039806366, 0.24619746208190918, 0.5120312571525574, -0.36236923933029175, -0.37818101048469543, -1.107430100440979, -0.2532486617565155, -0.5820524096488953, -0.3127135932445526, -0.7599791884422302, -0.22233279049396515, 0.27395400404930115, 0.17248795926570892, -0.16254188120365143, 0.5535125732421875, -0.9751066565513611, 0.45605915784835815, 0.37899789214134216, 0.055228736251592636, 0.29338645935058594, 0.02692337892949581, -0.5962076783180237, 0.07280690968036652, -0.766872227191925, -0.24335819482803345, 0.4090675711631775, 0.48301395773887634, 0.7575004696846008, -0.15552881360054016, 0.26699304580688477, 0.1745433211326599, 0.07745249569416046, -0.615365207195282, 0.7383028268814087, -0.32520097494125366, -0.8806606531143188, -0.28343889117240906, -0.06226779520511627, -1.0671294927597046, 0.6210861206054688, -0.06868400424718857, -1.3387001752853394, 0.8235011100769043, 0.21700835227966309, -0.2043444961309433, 0.4037136733531952, -0.6620521545410156, 1.3933765888214111, 0.034981854259967804, -0.1329898089170456, 0.0839887261390686, -0.9921975135803223, 0.3439370393753052, 0.33967363834381104, -0.3806558847427368, -0.204682856798172, 0.21762914955615997, 0.6536673307418823, -0.8899901509284973, 0.9431279301643372, -0.2877373695373535, 0.14051274955272675, 0.45802465081214905, -0.0798543319106102, 0.38005003333091736, 0.11903735250234604, 0.09158636629581451, 0.412150114774704, 0.24308975040912628, -0.379667729139328, -0.546067476272583, 0.6399560570716858, -0.5852189064025879, -0.2268369346857071, -0.2816844582557678, -0.21535135805606842, 0.13024471700191498, 0.36184120178222656, 0.40979480743408203, 0.7874845862388611, -0.30216482281684875, 0.43190646171569824, 0.7173232436180115, -0.08356219530105591, 0.459755539894104, 0.2053474336862564, -0.21976646780967712, -0.2580288052558899, 0.7920267581939697, -0.08624514937400818, -0.006929746363312006, 0.31259605288505554, 0.3262007236480713, -0.47137758135795593, -0.34561431407928467, -0.9324600100517273, 0.08741877228021622, -0.8228132724761963, -0.18485622107982635, -0.49083608388900757, -0.003569656750187278, 0.014560040086507797, -0.3540099561214447, -0.8249620795249939, -0.5477206707000732, -0.08078604191541672, 0.16609449684619904, 0.2699500620365143, 0.4469045102596283, -0.2093520611524582, 0.7249112725257874, -0.7732841372489929, 0.12247037887573242, 0.2221684604883194, 0.2658572494983673, -0.25202813744544983, -0.15529893338680267, -0.05933694541454315, 0.09877290576696396, -0.2978910207748413, -0.6982740163803101, 0.18741491436958313, -0.1406038999557495, 0.5149974226951599, 0.21136558055877686, -0.07078735530376434, 0.5589783191680908, 0.021179314702749252, 0.5587550401687622, 0.4312778413295746, -0.945498526096344, 0.5587246417999268, -0.39351367950439453, 0.4256170094013214, 0.6114628314971924, 0.2809629440307617, -0.4853454828262329, 0.10387441515922546, -0.6445674300193787, -0.7200104594230652, 0.621571958065033, 0.12984812259674072, -0.1187145859003067, 0.11497937142848969, 0.18087349832057953, -0.11581028252840042, 0.020878693088889122, -0.5051352977752686, -0.13450311124324799, -0.3090016841888428, -0.15482869744300842, 0.4366464912891388, -0.23296330869197845, -0.11466115713119507, -0.3652265667915344, 0.3151763379573822, -0.1576700210571289, 0.2717083990573883, 0.3079735338687897, -0.11109866946935654, 0.07664291560649872, -0.06142519414424896, 0.20824068784713745, 0.46010807156562805, -0.4131206274032593, -0.30392006039619446, 0.06477329879999161, -0.5086566805839539, -0.037577129900455475, 0.2841315269470215, -0.35722172260284424, -0.07872523367404938, 0.10657218843698502, 0.7010211944580078, 0.7289462089538574, -0.1125682145357132, 0.6949565410614014, -0.3513842821121216, -0.14235100150108337, -0.5836819410324097, 0.038350097835063934, -0.018366098403930664, 0.34533753991127014, -0.07993968576192856, 0.4185689389705658, 0.21407580375671387, -0.17211082577705383, 0.49319905042648315, 0.3048824667930603, -0.8940000534057617, -0.36221688985824585, 0.5711213946342468, 0.5162359476089478, 0.11572235822677612, 0.69997638463974, 0.08834748715162277, -0.4202008545398712, 0.6794096827507019, 0.2270054817199707, 0.8914768695831299, -0.16802655160427094, 0.23864680528640747, 0.08896539360284805, -0.07193303853273392, 0.13148482143878937, 0.2413497269153595, -0.38711977005004883, -1.0053337812423706, -0.6638402342796326, -0.8984053730964661, -0.30513128638267517, -0.16842713952064514, -0.6623367667198181, 0.27904418110847473, -0.35578617453575134, 0.06205866113305092, 0.3256918489933014, 0.10375452786684036, -0.8296946287155151, 0.5893490314483643, 0.08117502927780151, 1.3411659002304077, -0.48830702900886536, 0.9824700355529785, 1.04636549949646, -0.4725515842437744, -0.9957858920097351, -0.30817919969558716, 0.2710186243057251, -0.7324175238609314, 0.6783474683761597, 0.36104142665863037, -0.2518889009952545, 0.21476638317108154, -0.5322105884552002, -0.5992392897605896, 1.131618618965149, 0.022707264870405197, -0.15377995371818542, -0.16967186331748962, -0.16019752621650696, 0.30303093791007996, -0.8267629742622375, 0.26526010036468506, 0.46296417713165283, 0.6834023594856262, 0.5411503911018372, -0.5308263301849365, 0.11834707111120224, -0.14088712632656097, 0.3514421582221985, -0.0029906583949923515, -0.6898890733718872, 0.7815860509872437, -0.16667819023132324, -0.361725777387619, 0.3901733458042145, 0.7570149302482605, 0.07198444753885269, 0.3170185387134552, 0.720034122467041, 0.7812293767929077, 0.4886692464351654, -0.31419631838798523, 1.1794003248214722, 0.047516632825136185, 0.25208568572998047, 1.1017165184020996, -0.003007035469636321, 0.3864211440086365, 0.3266836106777191, 0.20296625792980194, 0.6876890063285828, 0.8281664252281189, -0.3263367712497711, 0.4501374661922455, 0.22966420650482178, -0.09473210573196411, -0.3807434141635895, -0.18433786928653717, -0.3993115723133087, 0.9961557984352112, 0.32432687282562256, -0.28915056586265564, -0.7129920721054077, 0.14214028418064117, 0.0246764924377203, -0.0636056512594223, -0.5076075196266174, 0.7423416376113892, 0.1397601217031479, -0.3641997277736664, 0.3225608468055725, -0.07294490188360214, 0.41027310490608215, -0.5902138352394104, -0.08405403047800064, -0.16017355024814606, 0.5288467407226562, -0.23207536339759827, -0.8903854489326477, 0.5325371026992798, -0.4295389652252197, -0.09024210274219513, 0.061486609280109406, 1.2597180604934692, -0.15112601220607758, -0.3539222180843353, 0.6338464021682739, 0.31853628158569336, 0.17049551010131836, -0.15354099869728088, -1.1513525247573853, 0.2890999913215637, 0.039029233157634735, -0.4507922828197479, 0.5291145443916321, 0.5006505250930786, -0.19255675375461578, 0.7521129250526428, 0.6401631236076355, -0.21956561505794525, -0.1320890486240387, -0.03874271363019943, 1.3235688209533691, -0.5970534086227417, -0.5443598031997681, -0.5093449354171753, 0.9707379937171936, -0.544617772102356, -0.407868355512619, 1.0437803268432617, 0.28007370233535767, 1.0941187143325806, -0.11486833542585373, 0.2689744234085083, -0.1440829634666443, 0.31982186436653137, -0.29940125346183777, 0.4930863678455353, -0.8283851742744446, 0.060218021273612976, -0.36340606212615967, -1.0861728191375732, -0.462111234664917, 0.5377851128578186, -0.24367564916610718, -0.009070605039596558, 0.5538581609725952, 0.8573536276817322, -0.23962442576885223, 0.36711958050727844, 0.3853771984577179, -0.08194271475076675, 0.07944796979427338, 0.08495175838470459, 0.8224316239356995, -0.3638015389442444, 0.5838184952735901, -0.4916992485523224, -0.3407204747200012, -0.20141984522342682, -0.9720669984817505, -0.7449724674224854, -0.31695231795310974, -0.14710582792758942, -0.363838255405426, -0.021969400346279144, 0.568796694278717, 1.2517493963241577, -0.7426866292953491, -0.13472051918506622, -0.4358253479003906, 0.2761438488960266, 0.03143564984202385, -0.23516109585762024, 0.3996363580226898, -0.062195807695388794, -0.6856284737586975, 0.3598906993865967, 0.5259484052658081, 0.09937698394060135, -0.31688472628593445, -0.007341880816966295, -0.1944027841091156, -0.12212415784597397, 0.5220023393630981, 0.5426210761070251, -0.3535681664943695, -0.5721889734268188, -0.27451401948928833, 0.062122754752635956, 0.04981616139411926, 0.764527440071106, -0.586961567401886, 0.5529754757881165, 0.6376818418502808, 0.5242822766304016, 0.6001625657081604, 0.14156529307365417, 0.6632028818130493, -0.8556644916534424, 0.482999324798584, 0.01237975712865591, 0.4376736879348755, 0.36782148480415344, -0.15410983562469482, 0.5428047180175781, 0.428635835647583, -0.7574753761291504, -0.3719894587993622, 0.523967981338501, -1.3585695028305054, -0.26679351925849915, 0.6195233464241028, -0.19306614995002747, -0.8623802661895752, -0.24260002374649048, -0.2662450969219208, 0.04590202867984772, -0.2735234498977661, 0.2187757045030594, 0.3126305341720581, -0.09689701348543167, -0.11552388966083527, -0.17135564982891083, 0.736372172832489, 0.3001576066017151, -0.4646766781806946, -0.15551407635211945, 0.5015612840652466, 0.25040584802627563, 0.37080827355384827, 0.25102508068084717, -0.4101654589176178, 0.3125452399253845, 0.29353415966033936, 0.27033212780952454, -0.09084974229335785, -0.34613850712776184, -0.19685156643390656, 0.2694402039051056, -0.4671109914779663, -0.41856124997138977 ]
NousResearch/Obsidian-3B-V0.5
NousResearch
"2023-11-22T05:29:59Z"
25,237
74
transformers
[ "transformers", "pytorch", "llava_stablelm_epoch", "text-generation", "Multimodal", "StableLM", "en", "dataset:LDJnr/LessWrong-Amplify-Instruct", "dataset:LDJnr/Pure-Dove", "dataset:LDJnr/Verified-Camel", "license:cc-by-sa-4.0", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2023-10-24T02:00:29Z"
--- license: cc-by-sa-4.0 language: - en tags: - Multimodal - StableLM datasets: - LDJnr/LessWrong-Amplify-Instruct - LDJnr/Pure-Dove - LDJnr/Verified-Camel --- # Obsidian: Worlds smallest multi-modal LLM. First multi-modal model in size 3B ## Model Name: Obsidian-3B-V0.5 Obsidian is a brand new series of Multimodal Language Models. This first project is led by Quan N. and Luigi D.(LDJ). Obsidian-3B-V0.5 is a multi-modal AI model that has vision! it's smarts are built on [Capybara-3B-V1.9](https://huggingface.co/NousResearch/Capybara-3B-V1.9) based on [StableLM-3B-4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t). Capybara-3B-V1.9 achieves state-of-the-art performance when compared to model with similar size, even beats some 7B models. Current finetuning and inference code is available on our GitHub repo: [Here](https://github.com/NousResearch/Obsidian) ## Acknowledgement Obsidian-3B-V0.5 was developed and finetuned by [Nous Research](https://huggingface.co/NousResearch), in collaboration with [Virtual Interactive](https://huggingface.co/vilm). Special thank you to **LDJ** for the wonderful Capybara dataset, and **qnguyen3** for the model training procedure. ## Model Training Obsidian-3B-V0.5 followed the same training procedure as LLaVA 1.5 ## Prompt Format The model followed ChatML format. However, with `###` as the seperator ``` <|im_start|>user What is this sign about?\n<image> ### <|im_start|>assistant The sign is about bullying, and it is placed on a black background with a red background. ### ``` ## Benchmarks Coming Soon! Citation: ``` @article{nguyen2023Obsidian-3B, title={Obsidian-3B: First Multi-modal below 7B Parameters.}, author={Nguyen, Quan and Daniele}, journal={HuggingFace:https://huggingface.co/NousResearch/Obsidian-3B-V0.5}, year={2023} } ``` Acknowledgements: ``` @article{daniele2023amplify-instruct, title={Amplify-Instruct: Synthetically Generated Diverse Multi-turn Conversations for Effecient LLM Training.}, author={Daniele, Luigi and Suphavadeeprasit}, journal={arXiv preprint arXiv:(comming soon)}, year={2023} } ```
[ -0.4492957293987274, -0.9499602913856506, 0.4465128481388092, 0.3560052216053009, -0.15853899717330933, 0.08528666943311691, -0.10585521161556244, -0.7648099064826965, 0.4222635328769684, 0.1498357206583023, -0.6960979700088501, -0.47917377948760986, -0.47471198439598083, -0.0784214660525322, -0.04588866978883743, 0.8556273579597473, 0.1604740172624588, 0.08986148983240128, -0.0027359402738511562, -0.21399207413196564, -0.6510968804359436, -0.18261678516864777, -0.8547680974006653, -0.25132185220718384, 0.48047691583633423, 0.24181297421455383, 0.6470701694488525, 0.4594919681549072, 0.2764836847782135, 0.34694600105285645, -0.1328902542591095, 0.5809609889984131, -0.46433886885643005, -0.10769268870353699, 0.37809085845947266, -0.3449341058731079, -0.5683726668357849, 0.14852847158908844, 0.42863181233406067, 0.5188726186752319, 0.012361573055386543, 0.17000709474086761, 0.017883937805891037, 0.07972195744514465, -0.5301267504692078, 0.4890941083431244, -0.7652844786643982, -0.034116290509700775, -0.24801844358444214, 0.12299404293298721, -0.6764176487922668, -0.4363257586956024, -0.23095428943634033, -0.48793303966522217, 0.09423133730888367, 0.60157710313797, 0.8877136707305908, 0.1773311048746109, -0.6164310574531555, -0.21203388273715973, -0.36079785227775574, 0.9963731169700623, -0.6443653702735901, 0.5628916025161743, 0.34070470929145813, -0.03799872472882271, -0.11535075306892395, -0.6353804469108582, -0.7359659671783447, -0.25364693999290466, -0.02021009847521782, -0.013148668222129345, -0.2977607250213623, 0.3599482774734497, 0.10360783338546753, 0.4305691421031952, -0.470714271068573, 0.27518177032470703, -0.7418861389160156, -0.4926285147666931, 0.5861454010009766, 0.4126007556915283, 0.10094930231571198, -0.2366856187582016, -0.3976381719112396, -0.12217442691326141, -0.6211403012275696, 0.12934669852256775, 0.2378758192062378, 0.2715984880924225, -0.3832854926586151, 0.481132447719574, 0.0028384979814291, 0.8307207226753235, 0.1289406716823578, -0.6746943593025208, 0.5557453632354736, -0.4618516266345978, -0.30222782492637634, -0.009635034948587418, 1.0044548511505127, 0.45853379368782043, -0.2913070321083069, -0.062145061790943146, 0.0844055786728859, 0.025488384068012238, 0.07492316514253616, -0.9867183566093445, -0.028758563101291656, 0.3341548442840576, -0.6918141841888428, -0.2281397581100464, -0.4918997585773468, -0.349276065826416, -0.4174201786518097, -0.0742771103978157, 0.3794066607952118, -0.746506929397583, -0.23728373646736145, 0.18399354815483093, 0.3350008428096771, 0.30375802516937256, 0.43670427799224854, -1.097076654434204, 0.2709290683269501, 0.380514919757843, 1.0492033958435059, -0.1101914495229721, -0.45371970534324646, -0.06663022935390472, -0.07615188509225845, -0.3279159367084503, 0.5207531452178955, -0.2358366996049881, -0.22588956356048584, -0.4515531659126282, -0.21402807533740997, -0.11067232489585876, -0.3063834309577942, 0.4786635637283325, -0.33535537123680115, 0.40736857056617737, 0.24688749015331268, -0.15852315723896027, -0.5308229327201843, 0.30655407905578613, -0.6075780391693115, 1.2436484098434448, 0.07365889847278595, -0.482120156288147, 0.2674044966697693, -0.5205751061439514, -0.0802077054977417, -0.021949797868728638, -0.13549906015396118, -0.31604722142219543, 0.019182397052645683, 0.14056915044784546, 0.4770529270172119, -0.6868333220481873, -0.08860860019922256, -0.43503668904304504, -0.23835667967796326, 0.19123797118663788, -0.40976768732070923, 0.9561895132064819, 0.4204290807247162, -0.24416835606098175, -0.06508950889110565, -0.712798535823822, 0.2813263535499573, 0.0015712397871538997, -0.10323505848646164, -0.10572434961795807, -0.293124258518219, -0.049540746957063675, 0.2137652486562729, 0.2764264941215515, -0.7514331936836243, 0.3119718134403229, -0.47686949372291565, 0.3174908459186554, 0.801018238067627, -0.05234689265489578, 0.2740844488143921, -0.49978962540626526, 0.42092153429985046, -0.19239798188209534, 0.5676488876342773, -0.1273043155670166, -0.7670490741729736, -0.7423938512802124, -0.785310685634613, 0.08534125983715057, 0.3297821283340454, -0.5615232586860657, -0.02016432210803032, 0.0033082279842346907, -0.7473772764205933, -0.6806586384773254, 0.09488361328840256, 0.6683726906776428, 0.18716514110565186, 0.38932308554649353, -0.2876753509044647, -0.6412445902824402, -0.9966440796852112, 0.06717056035995483, -0.46221402287483215, 0.28493544459342957, 0.40592578053474426, 0.4373902976512909, -0.20448876917362213, 0.8840723633766174, -0.5572283864021301, -0.3250027298927307, -0.17414750158786774, 0.23705993592739105, 0.3435068428516388, 0.4052819311618805, 0.5554552674293518, -0.7461713552474976, -0.4353097677230835, -0.03750475123524666, -0.9847247004508972, 0.05136552080512047, -0.09618008881807327, 0.017343910411000252, -0.05212551727890968, 0.31997111439704895, -0.7328646779060364, 0.16810764372348785, 0.8169695138931274, -0.30592700839042664, 0.3288080096244812, 0.13924948871135712, 0.14742803573608398, -1.2202718257904053, -0.30253612995147705, -0.17996743321418762, -0.13689567148685455, -0.7015013098716736, 0.01951514184474945, -0.010061492212116718, 0.03761139512062073, -0.8719576001167297, 0.7889751195907593, -0.7598258852958679, 0.17394769191741943, -0.17942897975444794, 0.11128697544336319, 0.15687453746795654, 0.8572461605072021, -0.2889840602874756, 0.7101885676383972, 0.46198710799217224, -0.5809374451637268, 0.7461032271385193, 0.4971742033958435, -0.21175749599933624, 0.6238992214202881, -0.6751753091812134, 0.20280247926712036, 0.14470380544662476, 0.06059553846716881, -0.7933177351951599, -0.356143593788147, 0.3151091933250427, -0.6055970191955566, 0.2068975567817688, -0.22120507061481476, -0.30332884192466736, -0.4541027843952179, -0.584254801273346, 0.45161163806915283, 0.29196950793266296, -0.4089793264865875, 0.8012275099754333, 0.40473416447639465, -0.012820200994610786, -0.5968651175498962, -0.9146589636802673, 0.05859845131635666, -0.22385834157466888, -1.1510874032974243, 0.4718349874019623, -0.5462120771408081, -0.2047770917415619, -0.36945420503616333, -0.034258950501680374, -0.3435034453868866, 0.016713256016373634, 0.5729098320007324, 0.5014768242835999, -0.08336569368839264, -0.042127370834350586, -0.11497607827186584, 0.1289709508419037, -0.07108408212661743, 0.16134341061115265, 0.7106016874313354, -0.611207127571106, -0.4578651487827301, -0.5730870962142944, 0.08483552187681198, 0.6772574186325073, 0.028049785643815994, 0.979193925857544, 0.4941914975643158, -0.47570210695266724, 0.08913321793079376, -0.8885409832000732, -0.1901387721300125, -0.5090557932853699, 0.2054336965084076, -0.45284026861190796, -0.9525846838951111, 0.4226849675178528, 0.24482125043869019, -0.0634782612323761, 0.16078107059001923, 0.8125659823417664, 0.1736786961555481, 1.1025174856185913, 0.4880593717098236, 0.14551712572574615, 0.47092223167419434, -0.261447548866272, 0.32361388206481934, -1.0779750347137451, -0.7715553641319275, -0.23829104006290436, -0.19470998644828796, -0.45898231863975525, -0.5372916460037231, 0.5053630471229553, 0.1268589049577713, -0.1362651139497757, 0.3605285882949829, -0.43447113037109375, 0.42583131790161133, 0.4422447979450226, 0.23955202102661133, 0.2891888916492462, -0.04406564310193062, 0.059123340994119644, -0.12715286016464233, -0.6224509477615356, -0.3284642696380615, 1.1322557926177979, 0.42026156187057495, 0.9800840616226196, 0.3098340928554535, 0.7484976053237915, 0.03317403048276901, 0.04784531891345978, -0.7509838938713074, 0.6410877704620361, 0.4145309031009674, -0.9657758474349976, -0.03235841915011406, -0.23324142396450043, -1.0048843622207642, 0.5790048837661743, -0.5113654732704163, -0.7498889565467834, 0.16420458257198334, 0.04783637821674347, -0.5871384739875793, 0.41981011629104614, -1.077833890914917, 0.7308123111724854, -0.26920053362846375, -0.6668434739112854, -0.013598194345831871, -0.4215381443500519, 0.5140669345855713, -0.04066550359129906, 0.3985164761543274, -0.279214084148407, 0.003715760540217161, 0.514856219291687, -0.294800728559494, 0.8486303687095642, -0.107152558863163, 0.19392035901546478, 0.4569226801395416, 0.30877506732940674, 0.5402857065200806, 0.2968551218509674, 0.031209496781229973, 0.2922710180282593, -0.22245551645755768, -0.3200508654117584, -0.26917198300361633, 0.8552447557449341, -0.962544858455658, -0.42534351348876953, -0.615060031414032, -0.6439671516418457, -0.0882401093840599, 0.38282880187034607, 0.12137026339769363, 0.46254101395606995, -0.11459823697805405, 0.4909457862377167, 0.8004344701766968, -0.06617878377437592, 0.709201991558075, 0.543310284614563, -0.2526719570159912, -0.29374974966049194, 0.8175212740898132, -0.0698692798614502, 0.15763543546199799, -0.07909168303012848, -0.05902359262108803, -0.19840030372142792, -0.8142207264900208, -0.4755151569843292, 0.2876654863357544, -0.41793808341026306, -0.4858522117137909, -0.7220518589019775, -0.2209271490573883, -0.34826356172561646, -0.23498854041099548, -0.7257493734359741, -0.31457313895225525, -0.2506154477596283, -0.007658720947802067, 0.5141795873641968, 0.7201111316680908, -0.07711463421583176, 0.42762595415115356, -0.5080615878105164, 0.3507840931415558, 0.4604704976081848, 0.34752166271209717, -0.26657596230506897, -0.5317330360412598, -0.18424446880817413, 0.15353573858737946, -0.3706870973110199, -0.7358666062355042, 0.41790568828582764, 0.14730635285377502, 0.43300557136535645, 0.206724151968956, -0.26868313550949097, 0.6952341794967651, -0.25131022930145264, 0.9072059392929077, 0.5355076193809509, -0.7989404201507568, 0.3596577048301697, -0.34378501772880554, 0.08640764653682709, 0.5904754996299744, 0.3919677734375, -0.4945962727069855, -0.3153640925884247, -0.5994594097137451, -0.769422709941864, 1.2571496963500977, 0.42472031712532043, 0.28678634762763977, -0.12547244131565094, 0.08414622396230698, 0.15794368088245392, 0.23834216594696045, -1.399157166481018, -0.4376917779445648, -0.131621852517128, -0.2515030801296234, 0.4885976314544678, -0.3373931050300598, -0.20726118981838226, -0.0796433612704277, 0.8111127614974976, -0.2369292676448822, 0.4475119709968567, -0.20113486051559448, -0.26130637526512146, 0.2920335531234741, 0.005120565649122, 0.48749247193336487, 0.7167704105377197, -0.35645627975463867, -0.033292271196842194, 0.6781362295150757, -0.6412960290908813, 0.07930903136730194, -0.038998495787382126, -0.09416505694389343, -0.1505216658115387, 0.4236091077327728, 1.1511074304580688, 0.1936856061220169, -0.37659135460853577, 0.7776851654052734, -0.12254250049591064, -0.21056818962097168, -0.49407100677490234, 0.04080599173903465, -0.16192910075187683, 0.6003601551055908, 0.30200639367103577, 0.15919144451618195, 0.01079814787954092, -0.485291451215744, -0.4443581700325012, 0.43522435426712036, -0.2375563532114029, -0.1066201701760292, 0.7948616743087769, 0.23367787897586823, -0.14172548055648804, 0.5284842252731323, -0.2977951765060425, -0.0549679696559906, 0.318574994802475, 0.5916432738304138, 0.5306916832923889, -0.13165265321731567, 0.10679199546575546, 0.4585247039794922, 0.5242770314216614, 0.01064204704016447, 0.2042401134967804, 0.1690683662891388, -0.80711829662323, -0.33658021688461304, -0.6593248248100281, -0.33197522163391113, 0.06554378569126129, -0.41127240657806396, 0.5592650771141052, -0.6709724068641663, -0.0701189786195755, -0.09173928201198578, -0.06772080808877945, -0.5267267823219299, 0.3695180416107178, 0.40880540013313293, 0.637047290802002, -0.7392796874046326, 0.7738796472549438, 0.3880307376384735, -0.7395631670951843, -0.7775620818138123, -0.5860368609428406, 0.28917208313941956, -1.2292667627334595, 0.5817291736602783, 0.11674166470766068, -0.48912110924720764, -0.019490601494908333, -0.7643370032310486, -1.0546685457229614, 1.5134156942367554, 0.40167415142059326, -0.19133877754211426, -0.2522464692592621, -0.1661916822195053, 0.38285136222839355, -0.47034311294555664, 0.8872812986373901, 0.27841290831565857, 0.2739567160606384, 0.10847853124141693, -1.0076823234558105, -0.029547221958637238, -0.26039600372314453, 0.17374087870121002, -0.016921626403927803, -1.3948026895523071, 1.252482533454895, -0.1073484867811203, -0.0794367790222168, 0.10496637970209122, 0.6904777884483337, 0.4464678466320038, 0.24535158276557922, 0.4581502676010132, 0.5290868878364563, 0.8351468443870544, -0.32294464111328125, 1.0990289449691772, -0.3403722643852234, 0.37064287066459656, 0.947568953037262, 0.005449334159493446, 0.43811655044555664, 0.3885971009731293, -0.15521420538425446, 0.6607967019081116, 0.7425417304039001, 0.030048631131649017, 0.43008333444595337, -0.14379408955574036, -0.4052582383155823, -0.24084484577178955, -0.1563679575920105, -0.5706930756568909, 0.6469317078590393, 0.2902657091617584, -0.14684012532234192, 0.18777869641780853, 0.23414938151836395, 0.4788041114807129, -0.15112291276454926, -0.3440230190753937, 0.550517201423645, -0.11855986714363098, -0.459236204624176, 0.9557666778564453, 0.22589008510112762, 0.9077951908111572, -0.9050639867782593, 0.0006834579980932176, -0.5474531650543213, 0.04893944412469864, -0.40775376558303833, -0.536872923374176, 0.024168148636817932, -0.2228478193283081, -0.3148929476737976, -0.38363784551620483, 0.43992215394973755, -0.1656602919101715, -0.3261612057685852, 0.32066822052001953, 0.2673657536506653, 0.2991376221179962, 0.11725882440805435, -0.7011789083480835, 0.5275065302848816, 0.19965188205242157, -0.24907247722148895, 0.13473787903785706, 0.27319958806037903, -0.10618865489959717, 0.8577585816383362, 0.5820546746253967, -0.09902318567037582, 0.4564652442932129, -0.22275331616401672, 1.0740092992782593, -0.5337847471237183, -0.08293714374303818, -0.7092247009277344, 0.4299151301383972, -0.04986594617366791, -0.4997202455997467, 0.938148021697998, 0.8256987929344177, 0.8735741376876831, 0.11193874478340149, 0.5210193991661072, -0.6517812609672546, 0.4594884216785431, -0.6186937689781189, 0.2720494568347931, -0.668501079082489, 0.24156486988067627, -0.10875771194696426, -1.0346561670303345, -0.2909051179885864, 0.7128463983535767, -0.018470482900738716, 0.21158699691295624, 1.0483098030090332, 1.1889419555664062, -0.16977348923683167, 0.04775334894657135, 0.21696746349334717, 0.5569602847099304, 0.11467812210321426, 0.7816306352615356, 0.8114442229270935, -0.7115368843078613, 0.8789985775947571, -0.19288574159145355, -0.26562729477882385, -0.3016010522842407, -0.5818161964416504, -0.9343207478523254, -0.4983048439025879, -0.13723109662532806, -0.6183921694755554, -0.1212737113237381, 1.0676014423370361, 1.0125007629394531, -0.6866601705551147, -0.3223859965801239, 0.22630110383033752, 0.12725470960140228, 0.08973758667707443, -0.13678282499313354, 0.034105222672224045, -0.1302899718284607, -0.9643166661262512, 0.7838922142982483, 0.20490945875644684, -0.037360165268182755, -0.2692849338054657, -0.31653738021850586, -0.4965974688529968, -0.10432896018028259, 0.7778834700584412, 0.2516803741455078, -0.7942777872085571, -0.48686811327934265, 0.04135711491107941, -0.27347931265830994, 0.11596018821001053, 0.38473886251449585, -0.5953752398490906, 0.6390590667724609, 0.10155194252729416, 0.22503358125686646, 1.0441416501998901, -0.5457573533058167, 0.07785056531429291, -0.9150044918060303, 0.6011607646942139, 0.2323465347290039, 0.35476207733154297, 0.27411648631095886, -0.16850726306438446, 0.6597977876663208, 0.35869941115379333, -0.48595404624938965, -0.7866225838661194, 0.22789950668811798, -1.0846298933029175, -0.12216458469629288, 1.190028190612793, 0.3038284182548523, -0.2772326171398163, -0.1539604365825653, -0.7073437571525574, 0.03769078105688095, -0.42636892199516296, 0.6295878887176514, 0.7495782375335693, -0.4311298429965973, -0.27036193013191223, -0.589307963848114, 0.3331904113292694, 0.30178311467170715, -0.6903156042098999, -0.32735586166381836, 0.8307560086250305, 0.17020682990550995, 0.252151757478714, 0.8474651575088501, -0.14130909740924835, 0.1589767038822174, 0.2450641691684723, 0.49039337038993835, -0.4895879328250885, -0.39526742696762085, -0.06120700389146805, 0.2020898163318634, 0.21517425775527954, -0.10582289099693298 ]
adept/fuyu-8b
adept
"2023-11-04T11:13:11Z"
25,130
742
transformers
[ "transformers", "safetensors", "fuyu", "text-generation", "license:cc-by-nc-4.0", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2023-10-17T22:42:08Z"
--- license: cc-by-nc-4.0 --- # Fuyu-8B Model Card We’re releasing Fuyu-8B, a small version of the multimodal model that powers our product. The model is available on HuggingFace. We think Fuyu-8B is exciting because: 1. It has a much simpler architecture and training procedure than other multi-modal models, which makes it easier to understand, scale, and deploy. 2. It’s designed from the ground up for digital agents, so it can support arbitrary image resolutions, answer questions about graphs and diagrams, answer UI-based questions, and do fine-grained localization on screen images. 3. It’s fast - we can get responses for large images in less than 100 milliseconds. 4. Despite being optimized for our use-case, it performs well at standard image understanding benchmarks such as visual question-answering and natural-image-captioning. Please note that **the model we have released is a base model. We expect you to need to finetune the model for specific use cases like verbose captioning or multimodal chat.** In our experience, the model responds well to few-shotting and fine-tuning for a variety of use-cases. ## Model [Fuyu-8B](https://www.adept.ai/blog/fuyu-8b) is a multi-modal text and image transformer trained by [Adept AI](https://www.adept.ai/). Architecturally, Fuyu is a vanilla decoder-only transformer - there is no image encoder. Image patches are instead linearly projected into the first layer of the transformer, bypassing the embedding lookup. We simply treat the transformer decoder like an image transformer (albeit with no pooling and causal attention). See the below diagram for more details. ![architecture](architecture.png) This simplification allows us to support arbitrary image resolutions. To accomplish this, we treat the sequence of image tokens like the sequence of text tokens. We remove image-specific position embeddings and feed in as many image tokens as necessary in raster-scan order. To tell the model when a line has broken, we simply use a special image-newline character. The model can use its existing position embeddings to reason about different image sizes, and we can use images of arbitrary size at training time, removing the need for separate high and low-resolution training stages. ### Model Description - **Developed by:** Adept-AI - **Model type:** Decoder-only multi-modal transformer model - **License:** [CC-BY-NC](https://creativecommons.org/licenses/by-nc/4.0/deed.en) - **Model Description:** This is a multi-modal model that can consume images and text and produce text. - **Resources for more information:** Check out our [blog post](https://www.adept.ai/blog/fuyu-8b). ## Evaluation Though not the focus of this model, we did evaluate it on standard image understanding benchmarks: | Eval Task | Fuyu-8B | Fuyu-Medium | LLaVA 1.5 (13.5B) | QWEN-VL (10B) | PALI-X (55B) | PALM-e-12B | PALM-e-562B | | ------------------- | ------- | ----------------- | ----------------- | ------------- | ------------ | ---------- | ----------- | | VQAv2 | 74.2 | 77.4 | 80 | 79.5 | 86.1 | 76.2 | 80.0 | | OKVQA | 60.6 | 63.1 | n/a | 58.6 | 66.1 | 55.5 | 66.1 | | COCO Captions | 141 | 138 | n/a | n/a | 149 | 135 | 138 | | AI2D | 64.5 | 73.7 | n/a | 62.3 | 81.2 | n/a | n/a | ## How to Use You can load the model and perform inference as follows: ```python from transformers import FuyuProcessor, FuyuForCausalLM from PIL import Image import requests # load model and processor model_id = "adept/fuyu-8b" processor = FuyuProcessor.from_pretrained(model_id) model = FuyuForCausalLM.from_pretrained(model_id, device_map="cuda:0") # prepare inputs for the model text_prompt = "Generate a coco-style caption.\n" url = "https://huggingface.co/adept/fuyu-8b/resolve/main/bus.png" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(text=text_prompt, images=image, return_tensors="pt").to("cuda:0") # autoregressively generate text generation_output = model.generate(**inputs, max_new_tokens=7) generation_text = processor.batch_decode(generation_output[:, -7:], skip_special_tokens=True) assert generation_text == ['A blue bus parked on the side of a road.'] ``` N.B.: The token `|SPEAKER|` is a placeholder token for image patch embeddings, so it will show up in the model context (e.g., in the portion of `generation_output` representing the model context). `|NEWLINE|` is the "image newline" token, denoting new rows in the raster scan order input of the image patches. `\x04` is the "beginning of answer" token. Fuyu can also perform some question answering on natural images and charts/diagrams (thought fine-tuning may be required for good performance): ```python text_prompt = "What color is the bus?\n" url = "https://huggingface.co/adept/fuyu-8b/resolve/main/bus.png" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(text=text_prompt, images=image, return_tensors="pt").to("cuda:0") generation_output = model.generate(**inputs, max_new_tokens=6) generation_text = processor.batch_decode(generation_output[:, -6:], skip_special_tokens=True) assert generation_text == ["The bus is blue.\n"] text_prompt = "What is the highest life expectancy at birth of male?\n" url = "https://huggingface.co/adept/fuyu-8b/resolve/main/chart.png" image = Image.open(requests.get(url, stream=True).raw) model_inputs = processor(text=text_prompt, images=image, return_tensors="pt").to("cuda:0") generation_output = model.generate(**model_inputs, max_new_tokens=16) generation_text = processor.batch_decode(generation_output[:, -16:], skip_special_tokens=True) assert generation_text == ["The life expectancy at birth of males in 2018 is 80.7.\n"] ``` For best performance, it's recommended to end questions with `\n`, as shown above! ## Uses ### Direct Use The model is intended for research purposes only. **Because this is a raw model release, we have not added further finetuning, postprocessing or sampling strategies to control for undesirable outputs. You should expect to have to fine-tune the model for your use-case.** Possible research areas and tasks include - Applications in computer control or digital agents. - Research on multi-modal models generally. Excluded uses are described below. ### Out-of-Scope Use The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. ## Limitations and Bias ### Limitations - Faces and people in general may not be generated properly. ### Bias While the capabilities of these models are impressive, they can also reinforce or exacerbate social biases.
[ -0.6267405152320862, -1.0034290552139282, 0.22335578501224518, 0.19100630283355713, -0.26308873295783997, -0.3052845299243927, -0.08301776647567749, -0.6838138699531555, 0.049905773252248764, 0.3129602372646332, -0.6094125509262085, -0.15296585857868195, -0.5665417313575745, 0.04353906586766243, -0.1273229718208313, 0.8884950876235962, 0.1301696002483368, -0.024413250386714935, -0.29342901706695557, -0.09819500148296356, -0.5472639799118042, -0.15892793238162994, -0.7911695837974548, -0.22512850165367126, 0.28297722339630127, 0.1895168572664261, 0.883588433265686, 0.7096793055534363, 0.5329129099845886, 0.4017011523246765, -0.0927954837679863, 0.23163151741027832, -0.39282527565956116, -0.24508622288703918, 0.12585748732089996, -0.46852022409439087, -0.5008881092071533, -0.02961336262524128, 0.508571207523346, 0.34781235456466675, 0.1699759066104889, 0.1937239021062851, -0.15026788413524628, 0.2955431342124939, -0.35649633407592773, 0.34071606397628784, -0.33633026480674744, -0.1856229454278946, -0.14930443465709686, 0.19521315395832062, -0.3933703303337097, -0.018215518444776535, -0.186430424451828, -0.7133397459983826, 0.3093792796134949, 0.2103453129529953, 1.4067096710205078, 0.40341904759407043, -0.4536183476448059, 0.0652746632695198, -0.4519943296909332, 0.723627507686615, -0.8463042378425598, 0.3270932734012604, 0.28551021218299866, 0.3800026774406433, -0.1173485741019249, -0.8315878510475159, -0.8368518352508545, -0.2021135538816452, -0.31131529808044434, 0.07809682190418243, -0.32458019256591797, 0.09260927140712738, 0.3736727237701416, 0.4923115670681, -0.30231764912605286, -0.13787323236465454, -0.5806389451026917, -0.2604658901691437, 0.8620764017105103, 0.2167535424232483, 0.4338706433773041, -0.4572567045688629, -0.4685575067996979, -0.22174017131328583, -0.29215240478515625, 0.25306370854377747, 0.27824386954307556, -0.040316347032785416, -0.4040241837501526, 0.4816513955593109, -0.09592728316783905, 0.6449150443077087, 0.3597958981990814, -0.24706745147705078, 0.3908296227455139, -0.29311907291412354, -0.3112022578716278, -0.3679514527320862, 1.222205638885498, 0.24261850118637085, -0.2131161391735077, 0.05187169089913368, -0.34561610221862793, 0.0938224121928215, 0.21804790198802948, -0.7503894567489624, -0.2037353813648224, 0.3288312554359436, -0.5214130282402039, -0.3155544698238373, -0.009120306931436062, -0.7612396478652954, -0.29020488262176514, -0.02799672819674015, 0.5432385206222534, -0.7626531720161438, -0.4438609480857849, -0.04697296768426895, -0.0805969089269638, 0.4712024927139282, 0.3992196023464203, -0.7437764406204224, 0.1720430701971054, 0.3670399487018585, 0.7980536818504333, -0.06805839389562607, -0.3590347468852997, -0.284835547208786, -0.13241174817085266, -0.12592661380767822, 0.9911549687385559, -0.2481583058834076, -0.2327912151813507, -0.5060643553733826, 0.35427892208099365, -0.17172887921333313, -0.339567631483078, 0.4950774312019348, -0.3263784348964691, 0.13866624236106873, -0.22917403280735016, -0.3137044608592987, -0.4615173935890198, 0.22863319516181946, -0.9481552243232727, 0.8805250525474548, 0.223811537027359, -0.8901089429855347, 0.009953330270946026, -0.9311869144439697, -0.4664766490459442, 0.02347852662205696, -0.1620202660560608, -0.5964112877845764, -0.0910426527261734, 0.45564165711402893, 0.4818606376647949, -0.4021049737930298, 0.3494875431060791, -0.2973547577857971, -0.33357319235801697, 0.37628763914108276, -0.46289291977882385, 1.0199044942855835, 0.5292019248008728, -0.4954514801502228, 0.13369911909103394, -0.4933865964412689, -0.22173252701759338, 0.48350998759269714, -0.15650787949562073, 0.157928466796875, -0.24028220772743225, 0.3215652406215668, 0.1843363344669342, 0.32934895157814026, -0.5519945621490479, 0.15496966242790222, -0.2725343108177185, 0.44632431864738464, 0.7131056189537048, 0.041607268154621124, 0.3153337836265564, -0.6345095634460449, 0.5520437359809875, 0.4020911455154419, 0.369465172290802, -0.5358756184577942, -0.815000593662262, -0.8668039441108704, -0.33774879574775696, 0.2169257402420044, 0.3637814521789551, -0.8231717348098755, 0.1572546809911728, -0.15813712775707245, -0.6443711519241333, -0.6815211176872253, -0.03674386069178581, 0.4239412546157837, 0.38596367835998535, 0.35047879815101624, -0.11553569883108139, -0.40047433972358704, -0.8848397135734558, 0.10489758104085922, -0.04905000701546669, 0.2275371104478836, 0.3401521146297455, 0.6486009359359741, -0.43649929761886597, 0.6776389479637146, -0.6369093656539917, -0.21624083817005157, -0.5398567914962769, 0.1477801650762558, 0.27234652638435364, 0.6034335494041443, 0.7235846519470215, -1.0295764207839966, -0.25497692823410034, 0.07005871087312698, -0.7022870779037476, 0.2023497074842453, -0.38976535201072693, -0.25144603848457336, 0.3530527651309967, 0.18102945387363434, -0.7816469073295593, 0.5476321578025818, 0.41860175132751465, -0.43471628427505493, 0.5856727957725525, -0.1891823709011078, 0.28459036350250244, -1.2140408754348755, 0.3407645523548126, 0.13544227182865143, -0.23242895305156708, -0.5742202401161194, 0.3747093975543976, 0.14263997972011566, -0.1088319644331932, -0.46973365545272827, 0.6524778604507446, -0.5388696789741516, 0.13466987013816833, -0.1661786437034607, -0.13086390495300293, 0.16040703654289246, 0.8986619114875793, 0.0027086774352937937, 0.5028846859931946, 0.5018028616905212, -0.5703797340393066, 0.5946170687675476, 0.27457287907600403, -0.26442164182662964, 0.5250384211540222, -0.8181734085083008, 0.07467496395111084, -0.251934677362442, 0.0697278305888176, -1.1299306154251099, -0.3703617453575134, 0.40757375955581665, -0.6176812052726746, 0.46168407797813416, 0.04023445025086403, -0.34815818071365356, -0.5840736627578735, -0.110725998878479, 0.4325593411922455, 0.4080720543861389, -0.3941729664802551, 0.743899941444397, 0.4513379633426666, 0.1650455892086029, -0.47922587394714355, -0.7884234189987183, -0.0909942016005516, -0.08119828999042511, -0.853559136390686, 0.33538198471069336, -0.29099637269973755, -0.03139172121882439, 0.021955691277980804, 0.09932924807071686, -0.09534456580877304, 0.0341353639960289, 0.3889126777648926, 0.4836278259754181, -0.2272038459777832, -0.1966339498758316, 0.10730987787246704, -0.01889551803469658, 0.027200359851121902, 0.2964499890804291, 0.5638940334320068, -0.47767677903175354, -0.24096685647964478, -0.6593124866485596, 0.24945586919784546, 0.6946519613265991, -0.35977280139923096, 0.5943009853363037, 0.8074769973754883, -0.6377497911453247, 0.2579723000526428, -0.5637022256851196, 0.053232647478580475, -0.5092752575874329, 0.3687227666378021, -0.4607134461402893, -0.24191080033779144, 0.6864094138145447, 0.24549517035484314, 0.22711686789989471, 0.7084468603134155, 0.5004673004150391, -0.08511777967214584, 1.1187795400619507, 0.5259531140327454, 0.04649046063423157, 0.5096448659896851, -0.9127616882324219, 0.06282060593366623, -0.7870907783508301, -0.5507895946502686, -0.19383540749549866, -0.4328151345252991, -0.28404131531715393, -0.4353821277618408, 0.3984241485595703, -0.04279686510562897, -0.15343105792999268, 0.45602670311927795, -0.4658169448375702, 0.19532504677772522, 0.48819372057914734, 0.46195435523986816, 0.09115923941135406, -0.2611215114593506, -0.02736527845263481, 0.09029373526573181, -0.6080268621444702, -0.18180778622627258, 0.827003002166748, 0.42259421944618225, 0.8617249131202698, -0.049074117094278336, 0.41580188274383545, 0.188752219080925, 0.33839157223701477, -0.6980356574058533, 0.5374491810798645, 0.03385354205965996, -0.7998989224433899, -0.10627876222133636, -0.38751211762428284, -0.9172435402870178, 0.16061794757843018, -0.31932055950164795, -0.621404767036438, 0.22484537959098816, 0.13298960030078888, -0.456655353307724, 0.45000550150871277, -0.8208919167518616, 1.1907438039779663, -0.40775325894355774, -0.39578723907470703, 0.0057197748683393, -0.7765324115753174, 0.6330849528312683, 0.18846844136714935, 0.2135261446237564, 0.08229110389947891, 0.13937970995903015, 0.7762205600738525, -0.38991639018058777, 0.8002214431762695, -0.16254204511642456, 0.10682940483093262, 0.43082526326179504, -0.06284099072217941, 0.2237229347229004, 0.1057562604546547, -0.00335639133118093, 0.27249765396118164, 0.2560485005378723, -0.43146419525146484, -0.48414337635040283, 0.5632845163345337, -1.0315109491348267, -0.512923002243042, -0.4305090308189392, -0.7871938347816467, 0.1949174404144287, 0.36581704020500183, 0.5350838899612427, 0.5654368996620178, 0.009151676669716835, 0.10954288393259048, 0.5970886945724487, -0.4535066783428192, 0.500767171382904, 0.05632404610514641, -0.20213569700717926, -0.5512665510177612, 0.8661452531814575, -0.025362208485603333, 0.2924990952014923, 0.3594777584075928, 0.2486623078584671, -0.4005974233150482, -0.1168162003159523, -0.6137176156044006, 0.5044647455215454, -0.6960573196411133, -0.4923689067363739, -0.7898045778274536, -0.3387318253517151, -0.7368894815444946, -0.000806022493634373, -0.4221287965774536, -0.2048543244600296, -0.4927293062210083, 0.14878089725971222, 0.3975091278553009, 0.688880443572998, 0.05215643718838692, 0.325464129447937, -0.6136425137519836, 0.7633551955223083, 0.13193316757678986, 0.24495364725589752, 0.04897448047995567, -0.6060580611228943, -0.2155117392539978, 0.49133411049842834, -0.793981671333313, -0.9879456162452698, 0.41154226660728455, 0.1361258178949356, 0.701765239238739, 0.7034056782722473, 0.12254126369953156, 0.959916353225708, -0.01804284192621708, 0.8182408809661865, 0.23677881062030792, -0.887904703617096, 0.5604221820831299, -0.33183351159095764, 0.42025622725486755, 0.10975245386362076, 0.3204987347126007, -0.42581114172935486, -0.41459009051322937, -0.8681002259254456, -0.6242433190345764, 0.9230859279632568, 0.09462665766477585, 0.06584104895591736, 0.03010871820151806, 0.29074326157569885, 0.04726924002170563, 0.05440599098801613, -1.001290202140808, -0.5217213034629822, -0.5475292801856995, -0.18538765609264374, 0.11852742731571198, -0.008534611202776432, 0.10952142626047134, -0.6334629654884338, 0.6704520583152771, -0.0982528105378151, 0.7540034055709839, 0.2482234388589859, -0.240626260638237, -0.14689458906650543, -0.067898690700531, 0.5078880786895752, 0.3896404802799225, -0.04929536581039429, -0.0006948704249225557, 0.14031890034675598, -0.5974127054214478, -0.12964145839214325, 0.21926529705524445, -0.2507140338420868, -0.06262564659118652, 0.2976178228855133, 1.0710958242416382, 0.14641515910625458, -0.5315744876861572, 0.6040831208229065, -0.10653107613325119, -0.16459594666957855, -0.2160685807466507, 0.11542496830224991, 0.09312903136014938, 0.3260943293571472, 0.23479768633842468, 0.2885841429233551, 0.06527119129896164, -0.5424551367759705, 0.06332296133041382, 0.3665919005870819, -0.11774008721113205, -0.38622960448265076, 1.1550911664962769, 0.03163181245326996, -0.27212294936180115, 0.6751310229301453, -0.32735300064086914, -0.46881216764450073, 0.8839365243911743, 0.6817609071731567, 0.6561968326568604, -0.12213770300149918, 0.3093143701553345, 0.5803786516189575, 0.311556875705719, -0.043596357107162476, 0.28862473368644714, -0.017334554344415665, -0.6691482067108154, -0.1215866357088089, -0.5877446532249451, -0.10572989284992218, 0.29052919149398804, -0.6354231834411621, 0.5399367809295654, -0.43894296884536743, -0.2791246175765991, 0.08092150092124939, 0.17922870814800262, -0.8016291260719299, 0.3021242618560791, 0.19360598921775818, 0.9421423673629761, -0.7485789060592651, 0.798496425151825, 0.8016741275787354, -0.7530013918876648, -0.9036964178085327, -0.2748843729496002, -0.20459726452827454, -0.7953587174415588, 0.218807652592659, 0.4704112112522125, 0.2157491147518158, -0.011524072848260403, -0.7983692288398743, -0.6574835777282715, 1.312914252281189, 0.5044291019439697, -0.1355646848678589, -0.1945452243089676, 0.06839071959257126, 0.4108891487121582, -0.257181316614151, 0.5203147530555725, 0.4693647027015686, 0.6110402941703796, 0.23023277521133423, -0.7156528830528259, 0.3490848243236542, -0.6231497526168823, -0.013132326304912567, 0.00989557895809412, -0.8337317705154419, 1.0529649257659912, -0.7051991820335388, -0.30311471223831177, 0.3210660517215729, 0.8232888579368591, 0.17445966601371765, 0.4016314148902893, 0.5438709259033203, 0.6392755508422852, 0.5307879447937012, -0.15785270929336548, 1.1288187503814697, -0.24731111526489258, 0.4833243787288666, 0.7129039168357849, 0.33348211646080017, 0.5703706741333008, 0.4199961721897125, -0.15198808908462524, 0.4261341691017151, 0.6983596682548523, -0.3266755938529968, 0.4049595296382904, -0.22385849058628082, 0.09861589223146439, -0.24304945766925812, -0.09332748502492905, -0.3467453420162201, 0.37741079926490784, 0.32462531328201294, -0.26819172501564026, -0.009193554520606995, 0.20515282452106476, 0.10767677426338196, -0.21487390995025635, -0.1726660579442978, 0.49652954936027527, 0.005194227676838636, -0.6984109878540039, 0.7415258884429932, 0.2205251306295395, 0.7482016086578369, -0.539493203163147, 0.029980262741446495, -0.2725200951099396, 0.16742749512195587, -0.2646631896495819, -0.6764404773712158, 0.26758620142936707, -0.23246461153030396, 0.0012103740591555834, -0.062453679740428925, 0.5240950584411621, -0.36711275577545166, -0.6665315628051758, 0.04115595668554306, 0.18427003920078278, 0.23149511218070984, -0.07288404554128647, -0.9259544610977173, 0.20302528142929077, 0.027336791157722473, -0.37080931663513184, -0.027325814589858055, 0.3638914227485657, -0.02393198013305664, 0.7733993530273438, 0.5265010595321655, -0.11029154062271118, 0.23385514318943024, -0.23066481947898865, 0.9154825210571289, -0.619403064250946, -0.4206339716911316, -0.5851172804832458, 0.7496805191040039, -0.031113671138882637, -0.3797202706336975, 0.5974802374839783, 0.5201234817504883, 0.7982914447784424, -0.13454775512218475, 0.6001636981964111, -0.5144241452217102, -0.1075584813952446, -0.2750580310821533, 0.8624875545501709, -0.8236852884292603, 0.07238501310348511, -0.3877829313278198, -0.5248151421546936, -0.15486854314804077, 0.6714939475059509, -0.18976937234401703, 0.11603141576051712, 0.5986773371696472, 0.9774956107139587, -0.29838675260543823, 0.06845846027135849, 0.2703249156475067, 0.3148763179779053, 0.32874271273612976, 0.7591618895530701, 0.662793755531311, -0.9672415256500244, 0.6446682214736938, -0.7003743052482605, -0.2022785097360611, -0.11396302282810211, -0.583856999874115, -0.912674605846405, -0.8355870246887207, -0.3148418366909027, -0.31101304292678833, -0.33583584427833557, 0.659270167350769, 0.7226622104644775, -0.6417864561080933, -0.1200314536690712, 0.10012558102607727, 0.2682616710662842, -0.45987504720687866, -0.3069969117641449, 0.209025040268898, -0.0938645601272583, -0.8695228695869446, -0.06549400091171265, -0.08027362078428268, 0.183474600315094, -0.17969746887683868, -0.21491076052188873, -0.46147575974464417, -0.051150843501091, 0.33727192878723145, 0.2810055911540985, -0.6713951826095581, -0.18562914431095123, 0.2527095377445221, -0.11295324563980103, 0.22239291667938232, 0.5218899250030518, -0.5982714891433716, 0.41280579566955566, 0.5057674050331116, 0.48891568183898926, 0.5739850997924805, -0.08100283145904541, 0.3565272390842438, -0.41471949219703674, 0.22369198501110077, -0.08902136236429214, 0.7160193920135498, 0.3378334939479828, -0.7042242884635925, 0.28534942865371704, 0.4284878671169281, -0.4834303855895996, -0.8476897478103638, 0.043921735137701035, -1.2565011978149414, -0.34604090452194214, 1.1382757425308228, -0.17121580243110657, -0.5929345488548279, 0.09453705698251724, -0.5406450629234314, 0.5639211535453796, -0.2824242413043976, 0.6580629944801331, 0.29581817984580994, -0.13681425154209137, -0.4000384509563446, -0.3293039798736572, 0.11563532054424286, 0.07188068330287933, -0.8701794743537903, -0.23796556890010834, 0.48902377486228943, 0.4211375415325165, 0.33708035945892334, 0.5986620783805847, -0.24473761022090912, 0.5546423196792603, 0.16178062558174133, 0.165082186460495, -0.4371715188026428, -0.28301146626472473, -0.2718353867530823, -0.12641459703445435, -0.22624774277210236, -0.4023861885070801 ]
intfloat/multilingual-e5-small
intfloat
"2023-09-08T08:09:07Z"
25,057
50
sentence-transformers
[ "sentence-transformers", "pytorch", "onnx", "safetensors", "bert", "mteb", "Sentence Transformers", "sentence-similarity", "multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", "no", "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh", "arxiv:2212.03533", "arxiv:2108.08787", "arxiv:2104.08663", "arxiv:2210.07316", "license:mit", "model-index", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2023-06-30T07:31:03Z"
--- tags: - mteb - Sentence Transformers - sentence-similarity - sentence-transformers model-index: - name: multilingual-e5-small results: - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (en) config: en split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 73.79104477611939 - type: ap value: 36.9996434842022 - type: f1 value: 67.95453679103099 - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (de) config: de split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 71.64882226980728 - type: ap value: 82.11942130026586 - type: f1 value: 69.87963421606715 - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (en-ext) config: en-ext split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 75.8095952023988 - type: ap value: 24.46869495579561 - type: f1 value: 63.00108480037597 - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (ja) config: ja split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 64.186295503212 - type: ap value: 15.496804690197042 - type: f1 value: 52.07153895475031 - task: type: Classification dataset: type: mteb/amazon_polarity name: MTEB AmazonPolarityClassification config: default split: test revision: e2d317d38cd51312af73b3d32a06d1a08b442046 metrics: - type: accuracy value: 88.699325 - type: ap value: 85.27039559917269 - type: f1 value: 88.65556295032513 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (en) config: en split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 44.69799999999999 - type: f1 value: 43.73187348654165 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (de) config: de split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 40.245999999999995 - type: f1 value: 39.3863530637684 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (es) config: es split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 40.394 - type: f1 value: 39.301223469483446 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (fr) config: fr split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 38.864 - type: f1 value: 37.97974261868003 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (ja) config: ja split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 37.682 - type: f1 value: 37.07399369768313 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (zh) config: zh split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 37.504 - type: f1 value: 36.62317273874278 - task: type: Retrieval dataset: type: arguana name: MTEB ArguAna config: default split: test revision: None metrics: - type: map_at_1 value: 19.061 - type: map_at_10 value: 31.703 - type: map_at_100 value: 32.967 - type: map_at_1000 value: 33.001000000000005 - type: map_at_3 value: 27.466 - type: map_at_5 value: 29.564 - type: mrr_at_1 value: 19.559 - type: mrr_at_10 value: 31.874999999999996 - type: mrr_at_100 value: 33.146 - type: mrr_at_1000 value: 33.18 - type: mrr_at_3 value: 27.667 - type: mrr_at_5 value: 29.74 - type: ndcg_at_1 value: 19.061 - type: ndcg_at_10 value: 39.062999999999995 - type: ndcg_at_100 value: 45.184000000000005 - type: ndcg_at_1000 value: 46.115 - type: ndcg_at_3 value: 30.203000000000003 - type: ndcg_at_5 value: 33.953 - type: precision_at_1 value: 19.061 - type: precision_at_10 value: 6.279999999999999 - type: precision_at_100 value: 0.9129999999999999 - type: precision_at_1000 value: 0.099 - type: precision_at_3 value: 12.706999999999999 - type: precision_at_5 value: 9.431000000000001 - type: recall_at_1 value: 19.061 - type: recall_at_10 value: 62.802 - type: recall_at_100 value: 91.323 - type: recall_at_1000 value: 98.72 - type: recall_at_3 value: 38.122 - type: recall_at_5 value: 47.155 - task: type: Clustering dataset: type: mteb/arxiv-clustering-p2p name: MTEB ArxivClusteringP2P config: default split: test revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d metrics: - type: v_measure value: 39.22266660528253 - task: type: Clustering dataset: type: mteb/arxiv-clustering-s2s name: MTEB ArxivClusteringS2S config: default split: test revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53 metrics: - type: v_measure value: 30.79980849482483 - task: type: Reranking dataset: type: mteb/askubuntudupquestions-reranking name: MTEB AskUbuntuDupQuestions config: default split: test revision: 2000358ca161889fa9c082cb41daa8dcfb161a54 metrics: - type: map value: 57.8790068352054 - type: mrr value: 71.78791276436706 - task: type: STS dataset: type: mteb/biosses-sts name: MTEB BIOSSES config: default split: test revision: d3fb88f8f02e40887cd149695127462bbcf29b4a metrics: - type: cos_sim_pearson value: 82.36328364043163 - type: cos_sim_spearman value: 82.26211536195868 - type: euclidean_pearson value: 80.3183865039173 - type: euclidean_spearman value: 79.88495276296132 - type: manhattan_pearson value: 80.14484480692127 - type: manhattan_spearman value: 80.39279565980743 - task: type: BitextMining dataset: type: mteb/bucc-bitext-mining name: MTEB BUCC (de-en) config: de-en split: test revision: d51519689f32196a32af33b075a01d0e7c51e252 metrics: - type: accuracy value: 98.0375782881002 - type: f1 value: 97.86012526096033 - type: precision value: 97.77139874739039 - type: recall value: 98.0375782881002 - task: type: BitextMining dataset: type: mteb/bucc-bitext-mining name: MTEB BUCC (fr-en) config: fr-en split: test revision: d51519689f32196a32af33b075a01d0e7c51e252 metrics: - type: accuracy value: 93.35241030156286 - type: f1 value: 92.66050333846944 - type: precision value: 92.3306919069631 - type: recall value: 93.35241030156286 - task: type: BitextMining dataset: type: mteb/bucc-bitext-mining name: MTEB BUCC (ru-en) config: ru-en split: test revision: d51519689f32196a32af33b075a01d0e7c51e252 metrics: - type: accuracy value: 94.0699688257707 - type: f1 value: 93.50236693222492 - type: precision value: 93.22791825424315 - type: recall value: 94.0699688257707 - task: type: BitextMining dataset: type: mteb/bucc-bitext-mining name: MTEB BUCC (zh-en) config: zh-en split: test revision: d51519689f32196a32af33b075a01d0e7c51e252 metrics: - type: accuracy value: 89.25750394944708 - type: f1 value: 88.79234684921889 - type: precision value: 88.57293312269616 - type: recall value: 89.25750394944708 - task: type: Classification dataset: type: mteb/banking77 name: MTEB Banking77Classification config: default split: test revision: 0fd18e25b25c072e09e0d92ab615fda904d66300 metrics: - type: accuracy value: 79.41558441558442 - type: f1 value: 79.25886487487219 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-p2p name: MTEB BiorxivClusteringP2P config: default split: test revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40 metrics: - type: v_measure value: 35.747820820329736 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-s2s name: MTEB BiorxivClusteringS2S config: default split: test revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908 metrics: - type: v_measure value: 27.045143830596146 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 24.252999999999997 - type: map_at_10 value: 31.655916666666666 - type: map_at_100 value: 32.680749999999996 - type: map_at_1000 value: 32.79483333333334 - type: map_at_3 value: 29.43691666666666 - type: map_at_5 value: 30.717416666666665 - type: mrr_at_1 value: 28.602750000000004 - type: mrr_at_10 value: 35.56875 - type: mrr_at_100 value: 36.3595 - type: mrr_at_1000 value: 36.427749999999996 - type: mrr_at_3 value: 33.586166666666664 - type: mrr_at_5 value: 34.73641666666666 - type: ndcg_at_1 value: 28.602750000000004 - type: ndcg_at_10 value: 36.06933333333334 - type: ndcg_at_100 value: 40.70141666666667 - type: ndcg_at_1000 value: 43.24341666666667 - type: ndcg_at_3 value: 32.307916666666664 - type: ndcg_at_5 value: 34.129999999999995 - type: precision_at_1 value: 28.602750000000004 - type: precision_at_10 value: 6.097666666666667 - type: precision_at_100 value: 0.9809166666666668 - type: precision_at_1000 value: 0.13766666666666663 - type: precision_at_3 value: 14.628166666666667 - type: precision_at_5 value: 10.266916666666667 - type: recall_at_1 value: 24.252999999999997 - type: recall_at_10 value: 45.31916666666667 - type: recall_at_100 value: 66.03575000000001 - type: recall_at_1000 value: 83.94708333333334 - type: recall_at_3 value: 34.71941666666666 - type: recall_at_5 value: 39.46358333333333 - task: type: Retrieval dataset: type: climate-fever name: MTEB ClimateFEVER config: default split: test revision: None metrics: - type: map_at_1 value: 9.024000000000001 - type: map_at_10 value: 15.644 - type: map_at_100 value: 17.154 - type: map_at_1000 value: 17.345 - type: map_at_3 value: 13.028 - type: map_at_5 value: 14.251 - type: mrr_at_1 value: 19.674 - type: mrr_at_10 value: 29.826999999999998 - type: mrr_at_100 value: 30.935000000000002 - type: mrr_at_1000 value: 30.987 - type: mrr_at_3 value: 26.645000000000003 - type: mrr_at_5 value: 28.29 - type: ndcg_at_1 value: 19.674 - type: ndcg_at_10 value: 22.545 - type: ndcg_at_100 value: 29.207 - type: ndcg_at_1000 value: 32.912 - type: ndcg_at_3 value: 17.952 - type: ndcg_at_5 value: 19.363 - type: precision_at_1 value: 19.674 - type: precision_at_10 value: 7.212000000000001 - type: precision_at_100 value: 1.435 - type: precision_at_1000 value: 0.212 - type: precision_at_3 value: 13.507 - type: precision_at_5 value: 10.397 - type: recall_at_1 value: 9.024000000000001 - type: recall_at_10 value: 28.077999999999996 - type: recall_at_100 value: 51.403 - type: recall_at_1000 value: 72.406 - type: recall_at_3 value: 16.768 - type: recall_at_5 value: 20.737 - task: type: Retrieval dataset: type: dbpedia-entity name: MTEB DBPedia config: default split: test revision: None metrics: - type: map_at_1 value: 8.012 - type: map_at_10 value: 17.138 - type: map_at_100 value: 24.146 - type: map_at_1000 value: 25.622 - type: map_at_3 value: 12.552 - type: map_at_5 value: 14.435 - type: mrr_at_1 value: 62.25000000000001 - type: mrr_at_10 value: 71.186 - type: mrr_at_100 value: 71.504 - type: mrr_at_1000 value: 71.514 - type: mrr_at_3 value: 69.333 - type: mrr_at_5 value: 70.408 - type: ndcg_at_1 value: 49.75 - type: ndcg_at_10 value: 37.76 - type: ndcg_at_100 value: 42.071 - type: ndcg_at_1000 value: 49.309 - type: ndcg_at_3 value: 41.644 - type: ndcg_at_5 value: 39.812999999999995 - type: precision_at_1 value: 62.25000000000001 - type: precision_at_10 value: 30.15 - type: precision_at_100 value: 9.753 - type: precision_at_1000 value: 1.9189999999999998 - type: precision_at_3 value: 45.667 - type: precision_at_5 value: 39.15 - type: recall_at_1 value: 8.012 - type: recall_at_10 value: 22.599 - type: recall_at_100 value: 48.068 - type: recall_at_1000 value: 71.328 - type: recall_at_3 value: 14.043 - type: recall_at_5 value: 17.124 - task: type: Classification dataset: type: mteb/emotion name: MTEB EmotionClassification config: default split: test revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37 metrics: - type: accuracy value: 42.455 - type: f1 value: 37.59462649781862 - task: type: Retrieval dataset: type: fever name: MTEB FEVER config: default split: test revision: None metrics: - type: map_at_1 value: 58.092 - type: map_at_10 value: 69.586 - type: map_at_100 value: 69.968 - type: map_at_1000 value: 69.982 - type: map_at_3 value: 67.48100000000001 - type: map_at_5 value: 68.915 - type: mrr_at_1 value: 62.166 - type: mrr_at_10 value: 73.588 - type: mrr_at_100 value: 73.86399999999999 - type: mrr_at_1000 value: 73.868 - type: mrr_at_3 value: 71.6 - type: mrr_at_5 value: 72.99 - type: ndcg_at_1 value: 62.166 - type: ndcg_at_10 value: 75.27199999999999 - type: ndcg_at_100 value: 76.816 - type: ndcg_at_1000 value: 77.09700000000001 - type: ndcg_at_3 value: 71.36 - type: ndcg_at_5 value: 73.785 - type: precision_at_1 value: 62.166 - type: precision_at_10 value: 9.716 - type: precision_at_100 value: 1.065 - type: precision_at_1000 value: 0.11 - type: precision_at_3 value: 28.278 - type: precision_at_5 value: 18.343999999999998 - type: recall_at_1 value: 58.092 - type: recall_at_10 value: 88.73400000000001 - type: recall_at_100 value: 95.195 - type: recall_at_1000 value: 97.04599999999999 - type: recall_at_3 value: 78.45 - type: recall_at_5 value: 84.316 - task: type: Retrieval dataset: type: fiqa name: MTEB FiQA2018 config: default split: test revision: None metrics: - type: map_at_1 value: 16.649 - type: map_at_10 value: 26.457000000000004 - type: map_at_100 value: 28.169 - type: map_at_1000 value: 28.352 - type: map_at_3 value: 23.305 - type: map_at_5 value: 25.169000000000004 - type: mrr_at_1 value: 32.407000000000004 - type: mrr_at_10 value: 40.922 - type: mrr_at_100 value: 41.931000000000004 - type: mrr_at_1000 value: 41.983 - type: mrr_at_3 value: 38.786 - type: mrr_at_5 value: 40.205999999999996 - type: ndcg_at_1 value: 32.407000000000004 - type: ndcg_at_10 value: 33.314 - type: ndcg_at_100 value: 40.312 - type: ndcg_at_1000 value: 43.685 - type: ndcg_at_3 value: 30.391000000000002 - type: ndcg_at_5 value: 31.525 - type: precision_at_1 value: 32.407000000000004 - type: precision_at_10 value: 8.966000000000001 - type: precision_at_100 value: 1.6019999999999999 - type: precision_at_1000 value: 0.22200000000000003 - type: precision_at_3 value: 20.165 - type: precision_at_5 value: 14.722 - type: recall_at_1 value: 16.649 - type: recall_at_10 value: 39.117000000000004 - type: recall_at_100 value: 65.726 - type: recall_at_1000 value: 85.784 - type: recall_at_3 value: 27.914 - type: recall_at_5 value: 33.289 - task: type: Retrieval dataset: type: hotpotqa name: MTEB HotpotQA config: default split: test revision: None metrics: - type: map_at_1 value: 36.253 - type: map_at_10 value: 56.16799999999999 - type: map_at_100 value: 57.06099999999999 - type: map_at_1000 value: 57.126 - type: map_at_3 value: 52.644999999999996 - type: map_at_5 value: 54.909 - type: mrr_at_1 value: 72.505 - type: mrr_at_10 value: 79.66 - type: mrr_at_100 value: 79.869 - type: mrr_at_1000 value: 79.88 - type: mrr_at_3 value: 78.411 - type: mrr_at_5 value: 79.19800000000001 - type: ndcg_at_1 value: 72.505 - type: ndcg_at_10 value: 65.094 - type: ndcg_at_100 value: 68.219 - type: ndcg_at_1000 value: 69.515 - type: ndcg_at_3 value: 59.99 - type: ndcg_at_5 value: 62.909000000000006 - type: precision_at_1 value: 72.505 - type: precision_at_10 value: 13.749 - type: precision_at_100 value: 1.619 - type: precision_at_1000 value: 0.179 - type: precision_at_3 value: 38.357 - type: precision_at_5 value: 25.313000000000002 - type: recall_at_1 value: 36.253 - type: recall_at_10 value: 68.744 - type: recall_at_100 value: 80.925 - type: recall_at_1000 value: 89.534 - type: recall_at_3 value: 57.535000000000004 - type: recall_at_5 value: 63.282000000000004 - task: type: Classification dataset: type: mteb/imdb name: MTEB ImdbClassification config: default split: test revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7 metrics: - type: accuracy value: 80.82239999999999 - type: ap value: 75.65895781725314 - type: f1 value: 80.75880969095746 - task: type: Retrieval dataset: type: msmarco name: MTEB MSMARCO config: default split: dev revision: None metrics: - type: map_at_1 value: 21.624 - type: map_at_10 value: 34.075 - type: map_at_100 value: 35.229 - type: map_at_1000 value: 35.276999999999994 - type: map_at_3 value: 30.245 - type: map_at_5 value: 32.42 - type: mrr_at_1 value: 22.264 - type: mrr_at_10 value: 34.638000000000005 - type: mrr_at_100 value: 35.744 - type: mrr_at_1000 value: 35.787 - type: mrr_at_3 value: 30.891000000000002 - type: mrr_at_5 value: 33.042 - type: ndcg_at_1 value: 22.264 - type: ndcg_at_10 value: 40.991 - type: ndcg_at_100 value: 46.563 - type: ndcg_at_1000 value: 47.743 - type: ndcg_at_3 value: 33.198 - type: ndcg_at_5 value: 37.069 - type: precision_at_1 value: 22.264 - type: precision_at_10 value: 6.5089999999999995 - type: precision_at_100 value: 0.9299999999999999 - type: precision_at_1000 value: 0.10300000000000001 - type: precision_at_3 value: 14.216999999999999 - type: precision_at_5 value: 10.487 - type: recall_at_1 value: 21.624 - type: recall_at_10 value: 62.303 - type: recall_at_100 value: 88.124 - type: recall_at_1000 value: 97.08 - type: recall_at_3 value: 41.099999999999994 - type: recall_at_5 value: 50.381 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (en) config: en split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 91.06703146374831 - type: f1 value: 90.86867815863172 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (de) config: de split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 87.46970977740209 - type: f1 value: 86.36832872036588 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (es) config: es split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 89.26951300867245 - type: f1 value: 88.93561193959502 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (fr) config: fr split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 84.22799874725963 - type: f1 value: 84.30490069236556 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (hi) config: hi split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 86.02007888131948 - type: f1 value: 85.39376041027991 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (th) config: th split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 85.34900542495481 - type: f1 value: 85.39859673336713 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (en) config: en split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 71.078431372549 - type: f1 value: 53.45071102002276 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (de) config: de split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 65.85798816568047 - type: f1 value: 46.53112748993529 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (es) config: es split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 67.96864576384256 - type: f1 value: 45.966703022829506 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (fr) config: fr split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 61.31537738803633 - type: f1 value: 45.52601712835461 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (hi) config: hi split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 66.29616349946218 - type: f1 value: 47.24166485726613 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (th) config: th split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 67.51537070524412 - type: f1 value: 49.463476319014276 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (af) config: af split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.06792199058508 - type: f1 value: 54.094921857502285 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (am) config: am split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 51.960322797579025 - type: f1 value: 48.547371223370945 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ar) config: ar split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 54.425016812373904 - type: f1 value: 50.47069202054312 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (az) config: az split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 59.798251513113655 - type: f1 value: 57.05013069086648 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (bn) config: bn split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 59.37794216543376 - type: f1 value: 56.3607992649805 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (cy) config: cy split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 46.56018829858777 - type: f1 value: 43.87319715715134 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (da) config: da split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 62.9724277067922 - type: f1 value: 59.36480066245562 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (de) config: de split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 62.72696704774715 - type: f1 value: 59.143595966615855 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (el) config: el split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 61.5971755211836 - type: f1 value: 59.169445724946726 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (en) config: en split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 70.29589778076665 - type: f1 value: 67.7577001808977 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (es) config: es split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 66.31136516476126 - type: f1 value: 64.52032955983242 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (fa) config: fa split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.54472091459314 - type: f1 value: 61.47903120066317 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (fi) config: fi split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 61.45595158036314 - type: f1 value: 58.0891846024637 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (fr) config: fr split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.47074646940149 - type: f1 value: 62.84830858877575 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (he) config: he split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 58.046402151983855 - type: f1 value: 55.269074430533195 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (hi) config: hi split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 64.06523201075991 - type: f1 value: 61.35339643021369 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (hu) config: hu split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 60.954942837928726 - type: f1 value: 57.07035922704846 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (hy) config: hy split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.404169468728995 - type: f1 value: 53.94259011839138 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (id) config: id split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 64.16610625420309 - type: f1 value: 61.337103431499365 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (is) config: is split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 52.262945527908535 - type: f1 value: 49.7610691598921 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (it) config: it split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.54472091459314 - type: f1 value: 63.469099018440154 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ja) config: ja split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 68.22797579018157 - type: f1 value: 64.89098471083001 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (jv) config: jv split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 50.847343644922674 - type: f1 value: 47.8536963168393 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ka) config: ka split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 48.45326160053799 - type: f1 value: 46.370078045805556 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (km) config: km split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 42.83120376597175 - type: f1 value: 39.68948521599982 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (kn) config: kn split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.5084061869536 - type: f1 value: 53.961876160401545 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ko) config: ko split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 63.7895090786819 - type: f1 value: 61.134223684676 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (lv) config: lv split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 54.98991257565569 - type: f1 value: 52.579862862826296 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ml) config: ml split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 61.90316072629456 - type: f1 value: 58.203024538290336 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (mn) config: mn split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.09818426361802 - type: f1 value: 54.22718458445455 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ms) config: ms split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 58.991257565568255 - type: f1 value: 55.84892781767421 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (my) config: my split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 55.901143241425686 - type: f1 value: 52.25264332199797 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (nb) config: nb split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 61.96368527236047 - type: f1 value: 58.927243876153454 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (nl) config: nl split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.64223268325489 - type: f1 value: 62.340453718379706 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (pl) config: pl split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 64.52589105581708 - type: f1 value: 61.661113187022174 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (pt) config: pt split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 66.84599865501009 - type: f1 value: 64.59342572873005 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ro) config: ro split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 60.81035642232684 - type: f1 value: 57.5169089806797 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ru) config: ru split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.75991930060525 - type: f1 value: 62.89531115787938 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (sl) config: sl split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 56.51647612642906 - type: f1 value: 54.33154780100043 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (sq) config: sq split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.985877605917956 - type: f1 value: 54.46187524463802 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (sv) config: sv split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 65.03026227303296 - type: f1 value: 62.34377392877748 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (sw) config: sw split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 53.567585743106925 - type: f1 value: 50.73770655983206 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ta) config: ta split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.2595830531271 - type: f1 value: 53.657327291708626 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (te) config: te split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 57.82784129119032 - type: f1 value: 54.82518072665301 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (th) config: th split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 64.06859448554137 - type: f1 value: 63.00185280500495 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (tl) config: tl split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 58.91055817081371 - type: f1 value: 55.54116301224262 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (tr) config: tr split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 63.54404841963686 - type: f1 value: 59.57650946030184 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (ur) config: ur split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 59.27706792199059 - type: f1 value: 56.50010066083435 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (vi) config: vi split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 64.0719569603228 - type: f1 value: 61.817075925647956 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (zh-CN) config: zh-CN split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 68.23806321452591 - type: f1 value: 65.24917026029749 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (zh-TW) config: zh-TW split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 62.53530598520511 - type: f1 value: 61.71131132295768 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (af) config: af split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 63.04303967720243 - type: f1 value: 60.3950085685985 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (am) config: am split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 56.83591123066578 - type: f1 value: 54.95059828830849 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ar) config: ar split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 59.62340282447881 - type: f1 value: 59.525159996498225 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (az) config: az split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 60.85406859448555 - type: f1 value: 59.129299095681276 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (bn) config: bn split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 62.76731674512441 - type: f1 value: 61.159560612627715 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (cy) config: cy split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 50.181573638197705 - type: f1 value: 46.98422176289957 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (da) config: da split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.92737054472092 - type: f1 value: 67.69135611952979 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (de) config: de split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 69.18964357767318 - type: f1 value: 68.46106138186214 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (el) config: el split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 67.0712844653665 - type: f1 value: 66.75545422473901 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (en) config: en split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 74.4754539340955 - type: f1 value: 74.38427146553252 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (es) config: es split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 69.82515131136518 - type: f1 value: 69.63516462173847 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (fa) config: fa split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.70880968392737 - type: f1 value: 67.45420662567926 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (fi) config: fi split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 65.95494283792871 - type: f1 value: 65.06191009049222 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (fr) config: fr split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.75924680564896 - type: f1 value: 68.30833379585945 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (he) config: he split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 63.806321452589096 - type: f1 value: 63.273048243765054 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (hi) config: hi split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 67.68997982515133 - type: f1 value: 66.54703855381324 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (hu) config: hu split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 66.46940147948891 - type: f1 value: 65.91017343463396 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (hy) config: hy split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 59.49899125756556 - type: f1 value: 57.90333469917769 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (id) config: id split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 67.9219905850706 - type: f1 value: 67.23169403762938 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (is) config: is split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 56.486213853396094 - type: f1 value: 54.85282355583758 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (it) config: it split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 69.04169468728985 - type: f1 value: 68.83833333320462 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ja) config: ja split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 73.88702084734365 - type: f1 value: 74.04474735232299 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (jv) config: jv split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 56.63416274377943 - type: f1 value: 55.11332211687954 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ka) config: ka split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 52.23604572965702 - type: f1 value: 50.86529813991055 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (km) config: km split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 46.62407531943511 - type: f1 value: 43.63485467164535 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (kn) config: kn split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 59.15601882985878 - type: f1 value: 57.522837510959924 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ko) config: ko split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 69.84532616005382 - type: f1 value: 69.60021127179697 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (lv) config: lv split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 56.65770006724949 - type: f1 value: 55.84219135523227 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ml) config: ml split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 66.53665097511768 - type: f1 value: 65.09087787792639 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (mn) config: mn split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 59.31405514458642 - type: f1 value: 58.06135303831491 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ms) config: ms split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 64.88231338264964 - type: f1 value: 62.751099407787926 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (my) config: my split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 58.86012104909213 - type: f1 value: 56.29118323058282 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (nb) config: nb split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 67.37390719569602 - type: f1 value: 66.27922244885102 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (nl) config: nl split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 70.8675184936113 - type: f1 value: 70.22146529932019 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (pl) config: pl split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.2212508406187 - type: f1 value: 67.77454802056282 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (pt) config: pt split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.18090114324143 - type: f1 value: 68.03737625431621 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ro) config: ro split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 64.65030262273034 - type: f1 value: 63.792945486912856 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ru) config: ru split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 69.48217888365838 - type: f1 value: 69.96028997292197 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (sl) config: sl split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 60.17821116341627 - type: f1 value: 59.3935969827171 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (sq) config: sq split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 62.86146603900471 - type: f1 value: 60.133692735032376 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (sv) config: sv split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 70.89441829186282 - type: f1 value: 70.03064076194089 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (sw) config: sw split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 58.15063887020847 - type: f1 value: 56.23326278499678 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ta) config: ta split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 59.43846671149966 - type: f1 value: 57.70440450281974 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (te) config: te split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 60.8507061197041 - type: f1 value: 59.22916396061171 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (th) config: th split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 70.65568258238063 - type: f1 value: 69.90736239440633 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (tl) config: tl split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 60.8843308675185 - type: f1 value: 59.30332663713599 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (tr) config: tr split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.05312710154674 - type: f1 value: 67.44024062594775 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (ur) config: ur split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 62.111634162743776 - type: f1 value: 60.89083013084519 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (vi) config: vi split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 67.44115669132482 - type: f1 value: 67.92227541674552 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (zh-CN) config: zh-CN split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 74.4687289845326 - type: f1 value: 74.16376793486025 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (zh-TW) config: zh-TW split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 68.31876260928043 - type: f1 value: 68.5246745215607 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-p2p name: MTEB MedrxivClusteringP2P config: default split: test revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73 metrics: - type: v_measure value: 30.90431696479766 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-s2s name: MTEB MedrxivClusteringS2S config: default split: test revision: 35191c8c0dca72d8ff3efcd72aa802307d469663 metrics: - type: v_measure value: 27.259158476693774 - task: type: Reranking dataset: type: mteb/mind_small name: MTEB MindSmallReranking config: default split: test revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69 metrics: - type: map value: 30.28445330838555 - type: mrr value: 31.15758529581164 - task: type: Retrieval dataset: type: nfcorpus name: MTEB NFCorpus config: default split: test revision: None metrics: - type: map_at_1 value: 5.353 - type: map_at_10 value: 11.565 - type: map_at_100 value: 14.097000000000001 - type: map_at_1000 value: 15.354999999999999 - type: map_at_3 value: 8.749 - type: map_at_5 value: 9.974 - type: mrr_at_1 value: 42.105 - type: mrr_at_10 value: 50.589 - type: mrr_at_100 value: 51.187000000000005 - type: mrr_at_1000 value: 51.233 - type: mrr_at_3 value: 48.246 - type: mrr_at_5 value: 49.546 - type: ndcg_at_1 value: 40.402 - type: ndcg_at_10 value: 31.009999999999998 - type: ndcg_at_100 value: 28.026 - type: ndcg_at_1000 value: 36.905 - type: ndcg_at_3 value: 35.983 - type: ndcg_at_5 value: 33.764 - type: precision_at_1 value: 42.105 - type: precision_at_10 value: 22.786 - type: precision_at_100 value: 6.916 - type: precision_at_1000 value: 1.981 - type: precision_at_3 value: 33.333 - type: precision_at_5 value: 28.731 - type: recall_at_1 value: 5.353 - type: recall_at_10 value: 15.039 - type: recall_at_100 value: 27.348 - type: recall_at_1000 value: 59.453 - type: recall_at_3 value: 9.792 - type: recall_at_5 value: 11.882 - task: type: Retrieval dataset: type: nq name: MTEB NQ config: default split: test revision: None metrics: - type: map_at_1 value: 33.852 - type: map_at_10 value: 48.924 - type: map_at_100 value: 49.854 - type: map_at_1000 value: 49.886 - type: map_at_3 value: 44.9 - type: map_at_5 value: 47.387 - type: mrr_at_1 value: 38.035999999999994 - type: mrr_at_10 value: 51.644 - type: mrr_at_100 value: 52.339 - type: mrr_at_1000 value: 52.35999999999999 - type: mrr_at_3 value: 48.421 - type: mrr_at_5 value: 50.468999999999994 - type: ndcg_at_1 value: 38.007000000000005 - type: ndcg_at_10 value: 56.293000000000006 - type: ndcg_at_100 value: 60.167 - type: ndcg_at_1000 value: 60.916000000000004 - type: ndcg_at_3 value: 48.903999999999996 - type: ndcg_at_5 value: 52.978 - type: precision_at_1 value: 38.007000000000005 - type: precision_at_10 value: 9.041 - type: precision_at_100 value: 1.1199999999999999 - type: precision_at_1000 value: 0.11900000000000001 - type: precision_at_3 value: 22.084 - type: precision_at_5 value: 15.608 - type: recall_at_1 value: 33.852 - type: recall_at_10 value: 75.893 - type: recall_at_100 value: 92.589 - type: recall_at_1000 value: 98.153 - type: recall_at_3 value: 56.969 - type: recall_at_5 value: 66.283 - task: type: Retrieval dataset: type: quora name: MTEB QuoraRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 69.174 - type: map_at_10 value: 82.891 - type: map_at_100 value: 83.545 - type: map_at_1000 value: 83.56700000000001 - type: map_at_3 value: 79.944 - type: map_at_5 value: 81.812 - type: mrr_at_1 value: 79.67999999999999 - type: mrr_at_10 value: 86.279 - type: mrr_at_100 value: 86.39 - type: mrr_at_1000 value: 86.392 - type: mrr_at_3 value: 85.21 - type: mrr_at_5 value: 85.92999999999999 - type: ndcg_at_1 value: 79.69000000000001 - type: ndcg_at_10 value: 86.929 - type: ndcg_at_100 value: 88.266 - type: ndcg_at_1000 value: 88.428 - type: ndcg_at_3 value: 83.899 - type: ndcg_at_5 value: 85.56700000000001 - type: precision_at_1 value: 79.69000000000001 - type: precision_at_10 value: 13.161000000000001 - type: precision_at_100 value: 1.513 - type: precision_at_1000 value: 0.156 - type: precision_at_3 value: 36.603 - type: precision_at_5 value: 24.138 - type: recall_at_1 value: 69.174 - type: recall_at_10 value: 94.529 - type: recall_at_100 value: 99.15 - type: recall_at_1000 value: 99.925 - type: recall_at_3 value: 85.86200000000001 - type: recall_at_5 value: 90.501 - task: type: Clustering dataset: type: mteb/reddit-clustering name: MTEB RedditClustering config: default split: test revision: 24640382cdbf8abc73003fb0fa6d111a705499eb metrics: - type: v_measure value: 39.13064340585255 - task: type: Clustering dataset: type: mteb/reddit-clustering-p2p name: MTEB RedditClusteringP2P config: default split: test revision: 282350215ef01743dc01b456c7f5241fa8937f16 metrics: - type: v_measure value: 58.97884249325877 - task: type: Retrieval dataset: type: scidocs name: MTEB SCIDOCS config: default split: test revision: None metrics: - type: map_at_1 value: 3.4680000000000004 - type: map_at_10 value: 7.865 - type: map_at_100 value: 9.332 - type: map_at_1000 value: 9.587 - type: map_at_3 value: 5.800000000000001 - type: map_at_5 value: 6.8790000000000004 - type: mrr_at_1 value: 17.0 - type: mrr_at_10 value: 25.629 - type: mrr_at_100 value: 26.806 - type: mrr_at_1000 value: 26.889000000000003 - type: mrr_at_3 value: 22.8 - type: mrr_at_5 value: 24.26 - type: ndcg_at_1 value: 17.0 - type: ndcg_at_10 value: 13.895 - type: ndcg_at_100 value: 20.491999999999997 - type: ndcg_at_1000 value: 25.759999999999998 - type: ndcg_at_3 value: 13.347999999999999 - type: ndcg_at_5 value: 11.61 - type: precision_at_1 value: 17.0 - type: precision_at_10 value: 7.090000000000001 - type: precision_at_100 value: 1.669 - type: precision_at_1000 value: 0.294 - type: precision_at_3 value: 12.3 - type: precision_at_5 value: 10.02 - type: recall_at_1 value: 3.4680000000000004 - type: recall_at_10 value: 14.363000000000001 - type: recall_at_100 value: 33.875 - type: recall_at_1000 value: 59.711999999999996 - type: recall_at_3 value: 7.483 - type: recall_at_5 value: 10.173 - task: type: STS dataset: type: mteb/sickr-sts name: MTEB SICK-R config: default split: test revision: a6ea5a8cab320b040a23452cc28066d9beae2cee metrics: - type: cos_sim_pearson value: 83.04084311714061 - type: cos_sim_spearman value: 77.51342467443078 - type: euclidean_pearson value: 80.0321166028479 - type: euclidean_spearman value: 77.29249114733226 - type: manhattan_pearson value: 80.03105964262431 - type: manhattan_spearman value: 77.22373689514794 - task: type: STS dataset: type: mteb/sts12-sts name: MTEB STS12 config: default split: test revision: a0d554a64d88156834ff5ae9920b964011b16384 metrics: - type: cos_sim_pearson value: 84.1680158034387 - type: cos_sim_spearman value: 76.55983344071117 - type: euclidean_pearson value: 79.75266678300143 - type: euclidean_spearman value: 75.34516823467025 - type: manhattan_pearson value: 79.75959151517357 - type: manhattan_spearman value: 75.42330344141912 - task: type: STS dataset: type: mteb/sts13-sts name: MTEB STS13 config: default split: test revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca metrics: - type: cos_sim_pearson value: 76.48898993209346 - type: cos_sim_spearman value: 76.96954120323366 - type: euclidean_pearson value: 76.94139109279668 - type: euclidean_spearman value: 76.85860283201711 - type: manhattan_pearson value: 76.6944095091912 - type: manhattan_spearman value: 76.61096912972553 - task: type: STS dataset: type: mteb/sts14-sts name: MTEB STS14 config: default split: test revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375 metrics: - type: cos_sim_pearson value: 77.85082366246944 - type: cos_sim_spearman value: 75.52053350101731 - type: euclidean_pearson value: 77.1165845070926 - type: euclidean_spearman value: 75.31216065884388 - type: manhattan_pearson value: 77.06193941833494 - type: manhattan_spearman value: 75.31003701700112 - task: type: STS dataset: type: mteb/sts15-sts name: MTEB STS15 config: default split: test revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3 metrics: - type: cos_sim_pearson value: 86.36305246526497 - type: cos_sim_spearman value: 87.11704613927415 - type: euclidean_pearson value: 86.04199125810939 - type: euclidean_spearman value: 86.51117572414263 - type: manhattan_pearson value: 86.0805106816633 - type: manhattan_spearman value: 86.52798366512229 - task: type: STS dataset: type: mteb/sts16-sts name: MTEB STS16 config: default split: test revision: 4d8694f8f0e0100860b497b999b3dbed754a0513 metrics: - type: cos_sim_pearson value: 82.18536255599724 - type: cos_sim_spearman value: 83.63377151025418 - type: euclidean_pearson value: 83.24657467993141 - type: euclidean_spearman value: 84.02751481993825 - type: manhattan_pearson value: 83.11941806582371 - type: manhattan_spearman value: 83.84251281019304 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (ko-ko) config: ko-ko split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 78.95816528475514 - type: cos_sim_spearman value: 78.86607380120462 - type: euclidean_pearson value: 78.51268699230545 - type: euclidean_spearman value: 79.11649316502229 - type: manhattan_pearson value: 78.32367302808157 - type: manhattan_spearman value: 78.90277699624637 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (ar-ar) config: ar-ar split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 72.89126914997624 - type: cos_sim_spearman value: 73.0296921832678 - type: euclidean_pearson value: 71.50385903677738 - type: euclidean_spearman value: 73.13368899716289 - type: manhattan_pearson value: 71.47421463379519 - type: manhattan_spearman value: 73.03383242946575 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-ar) config: en-ar split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 59.22923684492637 - type: cos_sim_spearman value: 57.41013211368396 - type: euclidean_pearson value: 61.21107388080905 - type: euclidean_spearman value: 60.07620768697254 - type: manhattan_pearson value: 59.60157142786555 - type: manhattan_spearman value: 59.14069604103739 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-de) config: en-de split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 76.24345978774299 - type: cos_sim_spearman value: 77.24225743830719 - type: euclidean_pearson value: 76.66226095469165 - type: euclidean_spearman value: 77.60708820493146 - type: manhattan_pearson value: 76.05303324760429 - type: manhattan_spearman value: 76.96353149912348 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-en) config: en-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 85.50879160160852 - type: cos_sim_spearman value: 86.43594662965224 - type: euclidean_pearson value: 86.06846012826577 - type: euclidean_spearman value: 86.02041395794136 - type: manhattan_pearson value: 86.10916255616904 - type: manhattan_spearman value: 86.07346068198953 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-tr) config: en-tr split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 58.39803698977196 - type: cos_sim_spearman value: 55.96910950423142 - type: euclidean_pearson value: 58.17941175613059 - type: euclidean_spearman value: 55.03019330522745 - type: manhattan_pearson value: 57.333358138183286 - type: manhattan_spearman value: 54.04614023149965 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (es-en) config: es-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 70.98304089637197 - type: cos_sim_spearman value: 72.44071656215888 - type: euclidean_pearson value: 72.19224359033983 - type: euclidean_spearman value: 73.89871188913025 - type: manhattan_pearson value: 71.21098311547406 - type: manhattan_spearman value: 72.93405764824821 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (es-es) config: es-es split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 85.99792397466308 - type: cos_sim_spearman value: 84.83824377879495 - type: euclidean_pearson value: 85.70043288694438 - type: euclidean_spearman value: 84.70627558703686 - type: manhattan_pearson value: 85.89570850150801 - type: manhattan_spearman value: 84.95806105313007 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (fr-en) config: fr-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 72.21850322994712 - type: cos_sim_spearman value: 72.28669398117248 - type: euclidean_pearson value: 73.40082510412948 - type: euclidean_spearman value: 73.0326539281865 - type: manhattan_pearson value: 71.8659633964841 - type: manhattan_spearman value: 71.57817425823303 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (it-en) config: it-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 75.80921368595645 - type: cos_sim_spearman value: 77.33209091229315 - type: euclidean_pearson value: 76.53159540154829 - type: euclidean_spearman value: 78.17960842810093 - type: manhattan_pearson value: 76.13530186637601 - type: manhattan_spearman value: 78.00701437666875 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (nl-en) config: nl-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 74.74980608267349 - type: cos_sim_spearman value: 75.37597374318821 - type: euclidean_pearson value: 74.90506081911661 - type: euclidean_spearman value: 75.30151613124521 - type: manhattan_pearson value: 74.62642745918002 - type: manhattan_spearman value: 75.18619716592303 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (en) config: en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 59.632662289205584 - type: cos_sim_spearman value: 60.938543391610914 - type: euclidean_pearson value: 62.113200529767056 - type: euclidean_spearman value: 61.410312633261164 - type: manhattan_pearson value: 61.75494698945686 - type: manhattan_spearman value: 60.92726195322362 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (de) config: de split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 45.283470551557244 - type: cos_sim_spearman value: 53.44833015864201 - type: euclidean_pearson value: 41.17892011120893 - type: euclidean_spearman value: 53.81441383126767 - type: manhattan_pearson value: 41.17482200420659 - type: manhattan_spearman value: 53.82180269276363 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (es) config: es split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 60.5069165306236 - type: cos_sim_spearman value: 66.87803259033826 - type: euclidean_pearson value: 63.5428979418236 - type: euclidean_spearman value: 66.9293576586897 - type: manhattan_pearson value: 63.59789526178922 - type: manhattan_spearman value: 66.86555009875066 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (pl) config: pl split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 28.23026196280264 - type: cos_sim_spearman value: 35.79397812652861 - type: euclidean_pearson value: 17.828102102767353 - type: euclidean_spearman value: 35.721501145568894 - type: manhattan_pearson value: 17.77134274219677 - type: manhattan_spearman value: 35.98107902846267 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (tr) config: tr split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 56.51946541393812 - type: cos_sim_spearman value: 63.714686006214485 - type: euclidean_pearson value: 58.32104651305898 - type: euclidean_spearman value: 62.237110895702216 - type: manhattan_pearson value: 58.579416468759185 - type: manhattan_spearman value: 62.459738981727 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (ar) config: ar split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 48.76009839569795 - type: cos_sim_spearman value: 56.65188431953149 - type: euclidean_pearson value: 50.997682160915595 - type: euclidean_spearman value: 55.99910008818135 - type: manhattan_pearson value: 50.76220659606342 - type: manhattan_spearman value: 55.517347595391456 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (ru) config: ru split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 51.232731157702425 - type: cos_sim_spearman value: 59.89531877658345 - type: euclidean_pearson value: 49.937914570348376 - type: euclidean_spearman value: 60.220905659334036 - type: manhattan_pearson value: 50.00987996844193 - type: manhattan_spearman value: 60.081341480977926 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (zh) config: zh split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 54.717524559088005 - type: cos_sim_spearman value: 66.83570886252286 - type: euclidean_pearson value: 58.41338625505467 - type: euclidean_spearman value: 66.68991427704938 - type: manhattan_pearson value: 58.78638572916807 - type: manhattan_spearman value: 66.58684161046335 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (fr) config: fr split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 73.2962042954962 - type: cos_sim_spearman value: 76.58255504852025 - type: euclidean_pearson value: 75.70983192778257 - type: euclidean_spearman value: 77.4547684870542 - type: manhattan_pearson value: 75.75565853870485 - type: manhattan_spearman value: 76.90208974949428 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (de-en) config: de-en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 54.47396266924846 - type: cos_sim_spearman value: 56.492267162048606 - type: euclidean_pearson value: 55.998505203070195 - type: euclidean_spearman value: 56.46447012960222 - type: manhattan_pearson value: 54.873172394430995 - type: manhattan_spearman value: 56.58111534551218 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (es-en) config: es-en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 69.87177267688686 - type: cos_sim_spearman value: 74.57160943395763 - type: euclidean_pearson value: 70.88330406826788 - type: euclidean_spearman value: 74.29767636038422 - type: manhattan_pearson value: 71.38245248369536 - type: manhattan_spearman value: 74.53102232732175 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (it) config: it split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 72.80225656959544 - type: cos_sim_spearman value: 76.52646173725735 - type: euclidean_pearson value: 73.95710720200799 - type: euclidean_spearman value: 76.54040031984111 - type: manhattan_pearson value: 73.89679971946774 - type: manhattan_spearman value: 76.60886958161574 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (pl-en) config: pl-en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 70.70844249898789 - type: cos_sim_spearman value: 72.68571783670241 - type: euclidean_pearson value: 72.38800772441031 - type: euclidean_spearman value: 72.86804422703312 - type: manhattan_pearson value: 71.29840508203515 - type: manhattan_spearman value: 71.86264441749513 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (zh-en) config: zh-en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 58.647478923935694 - type: cos_sim_spearman value: 63.74453623540931 - type: euclidean_pearson value: 59.60138032437505 - type: euclidean_spearman value: 63.947930832166065 - type: manhattan_pearson value: 58.59735509491861 - type: manhattan_spearman value: 62.082503844627404 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (es-it) config: es-it split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 65.8722516867162 - type: cos_sim_spearman value: 71.81208592523012 - type: euclidean_pearson value: 67.95315252165956 - type: euclidean_spearman value: 73.00749822046009 - type: manhattan_pearson value: 68.07884688638924 - type: manhattan_spearman value: 72.34210325803069 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (de-fr) config: de-fr split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 54.5405814240949 - type: cos_sim_spearman value: 60.56838649023775 - type: euclidean_pearson value: 53.011731611314104 - type: euclidean_spearman value: 58.533194841668426 - type: manhattan_pearson value: 53.623067729338494 - type: manhattan_spearman value: 58.018756154446926 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (de-pl) config: de-pl split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 13.611046866216112 - type: cos_sim_spearman value: 28.238192909158492 - type: euclidean_pearson value: 22.16189199885129 - type: euclidean_spearman value: 35.012895679076564 - type: manhattan_pearson value: 21.969771178698387 - type: manhattan_spearman value: 32.456985088607475 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (fr-pl) config: fr-pl split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 74.58077407011655 - type: cos_sim_spearman value: 84.51542547285167 - type: euclidean_pearson value: 74.64613843596234 - type: euclidean_spearman value: 84.51542547285167 - type: manhattan_pearson value: 75.15335973101396 - type: manhattan_spearman value: 84.51542547285167 - task: type: STS dataset: type: mteb/stsbenchmark-sts name: MTEB STSBenchmark config: default split: test revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831 metrics: - type: cos_sim_pearson value: 82.0739825531578 - type: cos_sim_spearman value: 84.01057479311115 - type: euclidean_pearson value: 83.85453227433344 - type: euclidean_spearman value: 84.01630226898655 - type: manhattan_pearson value: 83.75323603028978 - type: manhattan_spearman value: 83.89677983727685 - task: type: Reranking dataset: type: mteb/scidocs-reranking name: MTEB SciDocsRR config: default split: test revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab metrics: - type: map value: 78.12945623123957 - type: mrr value: 93.87738713719106 - task: type: Retrieval dataset: type: scifact name: MTEB SciFact config: default split: test revision: None metrics: - type: map_at_1 value: 52.983000000000004 - type: map_at_10 value: 62.946000000000005 - type: map_at_100 value: 63.514 - type: map_at_1000 value: 63.554 - type: map_at_3 value: 60.183 - type: map_at_5 value: 61.672000000000004 - type: mrr_at_1 value: 55.667 - type: mrr_at_10 value: 64.522 - type: mrr_at_100 value: 64.957 - type: mrr_at_1000 value: 64.995 - type: mrr_at_3 value: 62.388999999999996 - type: mrr_at_5 value: 63.639 - type: ndcg_at_1 value: 55.667 - type: ndcg_at_10 value: 67.704 - type: ndcg_at_100 value: 70.299 - type: ndcg_at_1000 value: 71.241 - type: ndcg_at_3 value: 62.866 - type: ndcg_at_5 value: 65.16999999999999 - type: precision_at_1 value: 55.667 - type: precision_at_10 value: 9.033 - type: precision_at_100 value: 1.053 - type: precision_at_1000 value: 0.11299999999999999 - type: precision_at_3 value: 24.444 - type: precision_at_5 value: 16.133 - type: recall_at_1 value: 52.983000000000004 - type: recall_at_10 value: 80.656 - type: recall_at_100 value: 92.5 - type: recall_at_1000 value: 99.667 - type: recall_at_3 value: 67.744 - type: recall_at_5 value: 73.433 - task: type: PairClassification dataset: type: mteb/sprintduplicatequestions-pairclassification name: MTEB SprintDuplicateQuestions config: default split: test revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46 metrics: - type: cos_sim_accuracy value: 99.72772277227723 - type: cos_sim_ap value: 92.17845897992215 - type: cos_sim_f1 value: 85.9746835443038 - type: cos_sim_precision value: 87.07692307692308 - type: cos_sim_recall value: 84.89999999999999 - type: dot_accuracy value: 99.3039603960396 - type: dot_ap value: 60.70244020124878 - type: dot_f1 value: 59.92742353551063 - type: dot_precision value: 62.21743810548978 - type: dot_recall value: 57.8 - type: euclidean_accuracy value: 99.71683168316832 - type: euclidean_ap value: 91.53997039964659 - type: euclidean_f1 value: 84.88372093023257 - type: euclidean_precision value: 90.02242152466367 - type: euclidean_recall value: 80.30000000000001 - type: manhattan_accuracy value: 99.72376237623763 - type: manhattan_ap value: 91.80756777790289 - type: manhattan_f1 value: 85.48468106479157 - type: manhattan_precision value: 85.8728557013118 - type: manhattan_recall value: 85.1 - type: max_accuracy value: 99.72772277227723 - type: max_ap value: 92.17845897992215 - type: max_f1 value: 85.9746835443038 - task: type: Clustering dataset: type: mteb/stackexchange-clustering name: MTEB StackExchangeClustering config: default split: test revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259 metrics: - type: v_measure value: 53.52464042600003 - task: type: Clustering dataset: type: mteb/stackexchange-clustering-p2p name: MTEB StackExchangeClusteringP2P config: default split: test revision: 815ca46b2622cec33ccafc3735d572c266efdb44 metrics: - type: v_measure value: 32.071631948736 - task: type: Reranking dataset: type: mteb/stackoverflowdupquestions-reranking name: MTEB StackOverflowDupQuestions config: default split: test revision: e185fbe320c72810689fc5848eb6114e1ef5ec69 metrics: - type: map value: 49.19552407604654 - type: mrr value: 49.95269130379425 - task: type: Summarization dataset: type: mteb/summeval name: MTEB SummEval config: default split: test revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c metrics: - type: cos_sim_pearson value: 29.345293033095427 - type: cos_sim_spearman value: 29.976931423258403 - type: dot_pearson value: 27.047078008958408 - type: dot_spearman value: 27.75894368380218 - task: type: Retrieval dataset: type: trec-covid name: MTEB TRECCOVID config: default split: test revision: None metrics: - type: map_at_1 value: 0.22 - type: map_at_10 value: 1.706 - type: map_at_100 value: 9.634 - type: map_at_1000 value: 23.665 - type: map_at_3 value: 0.5950000000000001 - type: map_at_5 value: 0.95 - type: mrr_at_1 value: 86.0 - type: mrr_at_10 value: 91.8 - type: mrr_at_100 value: 91.8 - type: mrr_at_1000 value: 91.8 - type: mrr_at_3 value: 91.0 - type: mrr_at_5 value: 91.8 - type: ndcg_at_1 value: 80.0 - type: ndcg_at_10 value: 72.573 - type: ndcg_at_100 value: 53.954 - type: ndcg_at_1000 value: 47.760999999999996 - type: ndcg_at_3 value: 76.173 - type: ndcg_at_5 value: 75.264 - type: precision_at_1 value: 86.0 - type: precision_at_10 value: 76.4 - type: precision_at_100 value: 55.50000000000001 - type: precision_at_1000 value: 21.802 - type: precision_at_3 value: 81.333 - type: precision_at_5 value: 80.4 - type: recall_at_1 value: 0.22 - type: recall_at_10 value: 1.925 - type: recall_at_100 value: 12.762 - type: recall_at_1000 value: 44.946000000000005 - type: recall_at_3 value: 0.634 - type: recall_at_5 value: 1.051 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (sqi-eng) config: sqi-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 91.0 - type: f1 value: 88.55666666666666 - type: precision value: 87.46166666666667 - type: recall value: 91.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (fry-eng) config: fry-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 57.22543352601156 - type: f1 value: 51.03220478943021 - type: precision value: 48.8150289017341 - type: recall value: 57.22543352601156 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kur-eng) config: kur-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 46.58536585365854 - type: f1 value: 39.66870798578116 - type: precision value: 37.416085946573745 - type: recall value: 46.58536585365854 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tur-eng) config: tur-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 89.7 - type: f1 value: 86.77999999999999 - type: precision value: 85.45333333333332 - type: recall value: 89.7 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (deu-eng) config: deu-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 97.39999999999999 - type: f1 value: 96.58333333333331 - type: precision value: 96.2 - type: recall value: 97.39999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (nld-eng) config: nld-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 92.4 - type: f1 value: 90.3 - type: precision value: 89.31666666666668 - type: recall value: 92.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ron-eng) config: ron-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 86.9 - type: f1 value: 83.67190476190476 - type: precision value: 82.23333333333332 - type: recall value: 86.9 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ang-eng) config: ang-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 50.0 - type: f1 value: 42.23229092632078 - type: precision value: 39.851634683724235 - type: recall value: 50.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ido-eng) config: ido-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 76.3 - type: f1 value: 70.86190476190477 - type: precision value: 68.68777777777777 - type: recall value: 76.3 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (jav-eng) config: jav-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 57.073170731707314 - type: f1 value: 50.658958927251604 - type: precision value: 48.26480836236933 - type: recall value: 57.073170731707314 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (isl-eng) config: isl-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 68.2 - type: f1 value: 62.156507936507936 - type: precision value: 59.84964285714286 - type: recall value: 68.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (slv-eng) config: slv-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 77.52126366950182 - type: f1 value: 72.8496210148701 - type: precision value: 70.92171498003819 - type: recall value: 77.52126366950182 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cym-eng) config: cym-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 70.78260869565217 - type: f1 value: 65.32422360248447 - type: precision value: 63.063067367415194 - type: recall value: 70.78260869565217 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kaz-eng) config: kaz-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 78.43478260869566 - type: f1 value: 73.02608695652172 - type: precision value: 70.63768115942028 - type: recall value: 78.43478260869566 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (est-eng) config: est-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 60.9 - type: f1 value: 55.309753694581275 - type: precision value: 53.130476190476195 - type: recall value: 60.9 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (heb-eng) config: heb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 72.89999999999999 - type: f1 value: 67.92023809523809 - type: precision value: 65.82595238095237 - type: recall value: 72.89999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (gla-eng) config: gla-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 46.80337756332931 - type: f1 value: 39.42174900558496 - type: precision value: 36.97101116280851 - type: recall value: 46.80337756332931 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (mar-eng) config: mar-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 89.8 - type: f1 value: 86.79 - type: precision value: 85.375 - type: recall value: 89.8 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (lat-eng) config: lat-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 47.199999999999996 - type: f1 value: 39.95484348984349 - type: precision value: 37.561071428571424 - type: recall value: 47.199999999999996 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (bel-eng) config: bel-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 87.8 - type: f1 value: 84.68190476190475 - type: precision value: 83.275 - type: recall value: 87.8 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (pms-eng) config: pms-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 48.76190476190476 - type: f1 value: 42.14965986394558 - type: precision value: 39.96743626743626 - type: recall value: 48.76190476190476 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (gle-eng) config: gle-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 66.10000000000001 - type: f1 value: 59.58580086580086 - type: precision value: 57.150238095238095 - type: recall value: 66.10000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (pes-eng) config: pes-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 87.3 - type: f1 value: 84.0 - type: precision value: 82.48666666666666 - type: recall value: 87.3 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (nob-eng) config: nob-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 90.4 - type: f1 value: 87.79523809523809 - type: precision value: 86.6 - type: recall value: 90.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (bul-eng) config: bul-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 87.0 - type: f1 value: 83.81 - type: precision value: 82.36666666666666 - type: recall value: 87.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cbk-eng) config: cbk-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 63.9 - type: f1 value: 57.76533189033189 - type: precision value: 55.50595238095239 - type: recall value: 63.9 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (hun-eng) config: hun-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 76.1 - type: f1 value: 71.83690476190478 - type: precision value: 70.04928571428573 - type: recall value: 76.1 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (uig-eng) config: uig-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 66.3 - type: f1 value: 59.32626984126984 - type: precision value: 56.62535714285713 - type: recall value: 66.3 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (rus-eng) config: rus-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 90.60000000000001 - type: f1 value: 87.96333333333334 - type: precision value: 86.73333333333333 - type: recall value: 90.60000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (spa-eng) config: spa-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 93.10000000000001 - type: f1 value: 91.10000000000001 - type: precision value: 90.16666666666666 - type: recall value: 93.10000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (hye-eng) config: hye-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 85.71428571428571 - type: f1 value: 82.29142600436403 - type: precision value: 80.8076626877166 - type: recall value: 85.71428571428571 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tel-eng) config: tel-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.88888888888889 - type: f1 value: 85.7834757834758 - type: precision value: 84.43732193732193 - type: recall value: 88.88888888888889 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (afr-eng) config: afr-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.5 - type: f1 value: 85.67190476190476 - type: precision value: 84.43333333333332 - type: recall value: 88.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (mon-eng) config: mon-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 82.72727272727273 - type: f1 value: 78.21969696969695 - type: precision value: 76.18181818181819 - type: recall value: 82.72727272727273 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (arz-eng) config: arz-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 61.0062893081761 - type: f1 value: 55.13976240391334 - type: precision value: 52.92112499659669 - type: recall value: 61.0062893081761 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (hrv-eng) config: hrv-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 89.5 - type: f1 value: 86.86666666666666 - type: precision value: 85.69166666666668 - type: recall value: 89.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (nov-eng) config: nov-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 73.54085603112841 - type: f1 value: 68.56031128404669 - type: precision value: 66.53047989623866 - type: recall value: 73.54085603112841 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (gsw-eng) config: gsw-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 43.58974358974359 - type: f1 value: 36.45299145299145 - type: precision value: 33.81155881155882 - type: recall value: 43.58974358974359 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (nds-eng) config: nds-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 59.599999999999994 - type: f1 value: 53.264689754689755 - type: precision value: 50.869166666666665 - type: recall value: 59.599999999999994 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ukr-eng) config: ukr-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 85.2 - type: f1 value: 81.61666666666665 - type: precision value: 80.02833333333335 - type: recall value: 85.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (uzb-eng) config: uzb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 63.78504672897196 - type: f1 value: 58.00029669188548 - type: precision value: 55.815809968847354 - type: recall value: 63.78504672897196 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (lit-eng) config: lit-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 66.5 - type: f1 value: 61.518333333333345 - type: precision value: 59.622363699102834 - type: recall value: 66.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ina-eng) config: ina-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.6 - type: f1 value: 85.60222222222221 - type: precision value: 84.27916666666665 - type: recall value: 88.6 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (lfn-eng) config: lfn-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 58.699999999999996 - type: f1 value: 52.732375957375965 - type: precision value: 50.63214035964035 - type: recall value: 58.699999999999996 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (zsm-eng) config: zsm-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 92.10000000000001 - type: f1 value: 89.99666666666667 - type: precision value: 89.03333333333333 - type: recall value: 92.10000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ita-eng) config: ita-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 90.10000000000001 - type: f1 value: 87.55666666666667 - type: precision value: 86.36166666666668 - type: recall value: 90.10000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cmn-eng) config: cmn-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 91.4 - type: f1 value: 88.89000000000001 - type: precision value: 87.71166666666666 - type: recall value: 91.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (lvs-eng) config: lvs-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 65.7 - type: f1 value: 60.67427750410509 - type: precision value: 58.71785714285714 - type: recall value: 65.7 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (glg-eng) config: glg-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 85.39999999999999 - type: f1 value: 81.93190476190475 - type: precision value: 80.37833333333333 - type: recall value: 85.39999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ceb-eng) config: ceb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 47.833333333333336 - type: f1 value: 42.006625781625786 - type: precision value: 40.077380952380956 - type: recall value: 47.833333333333336 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (bre-eng) config: bre-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 10.4 - type: f1 value: 8.24465007215007 - type: precision value: 7.664597069597071 - type: recall value: 10.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ben-eng) config: ben-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 82.6 - type: f1 value: 77.76333333333334 - type: precision value: 75.57833333333332 - type: recall value: 82.6 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (swg-eng) config: swg-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 52.67857142857143 - type: f1 value: 44.302721088435376 - type: precision value: 41.49801587301587 - type: recall value: 52.67857142857143 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (arq-eng) config: arq-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 28.3205268935236 - type: f1 value: 22.426666605171157 - type: precision value: 20.685900116470915 - type: recall value: 28.3205268935236 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kab-eng) config: kab-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 22.7 - type: f1 value: 17.833970473970474 - type: precision value: 16.407335164835164 - type: recall value: 22.7 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (fra-eng) config: fra-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 92.2 - type: f1 value: 89.92999999999999 - type: precision value: 88.87 - type: recall value: 92.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (por-eng) config: por-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 91.4 - type: f1 value: 89.25 - type: precision value: 88.21666666666667 - type: recall value: 91.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tat-eng) config: tat-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 69.19999999999999 - type: f1 value: 63.38269841269841 - type: precision value: 61.14773809523809 - type: recall value: 69.19999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (oci-eng) config: oci-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 48.8 - type: f1 value: 42.839915639915645 - type: precision value: 40.770287114845935 - type: recall value: 48.8 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (pol-eng) config: pol-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.8 - type: f1 value: 85.90666666666668 - type: precision value: 84.54166666666666 - type: recall value: 88.8 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (war-eng) config: war-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 46.6 - type: f1 value: 40.85892920804686 - type: precision value: 38.838223114604695 - type: recall value: 46.6 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (aze-eng) config: aze-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 84.0 - type: f1 value: 80.14190476190475 - type: precision value: 78.45333333333333 - type: recall value: 84.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (vie-eng) config: vie-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 90.5 - type: f1 value: 87.78333333333333 - type: precision value: 86.5 - type: recall value: 90.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (nno-eng) config: nno-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 74.5 - type: f1 value: 69.48397546897547 - type: precision value: 67.51869047619049 - type: recall value: 74.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cha-eng) config: cha-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 32.846715328467155 - type: f1 value: 27.828177499710343 - type: precision value: 26.63451511991658 - type: recall value: 32.846715328467155 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (mhr-eng) config: mhr-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 8.0 - type: f1 value: 6.07664116764988 - type: precision value: 5.544177607179943 - type: recall value: 8.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (dan-eng) config: dan-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 87.6 - type: f1 value: 84.38555555555554 - type: precision value: 82.91583333333334 - type: recall value: 87.6 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ell-eng) config: ell-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 87.5 - type: f1 value: 84.08333333333331 - type: precision value: 82.47333333333333 - type: recall value: 87.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (amh-eng) config: amh-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 80.95238095238095 - type: f1 value: 76.13095238095238 - type: precision value: 74.05753968253967 - type: recall value: 80.95238095238095 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (pam-eng) config: pam-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 8.799999999999999 - type: f1 value: 6.971422975172975 - type: precision value: 6.557814916172301 - type: recall value: 8.799999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (hsb-eng) config: hsb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 44.099378881987576 - type: f1 value: 37.01649742022413 - type: precision value: 34.69420618488942 - type: recall value: 44.099378881987576 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (srp-eng) config: srp-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 84.3 - type: f1 value: 80.32666666666667 - type: precision value: 78.60666666666665 - type: recall value: 84.3 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (epo-eng) config: epo-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 92.5 - type: f1 value: 90.49666666666666 - type: precision value: 89.56666666666668 - type: recall value: 92.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kzj-eng) config: kzj-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 10.0 - type: f1 value: 8.268423529875141 - type: precision value: 7.878118605532398 - type: recall value: 10.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (awa-eng) config: awa-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 79.22077922077922 - type: f1 value: 74.27128427128426 - type: precision value: 72.28715728715729 - type: recall value: 79.22077922077922 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (fao-eng) config: fao-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 65.64885496183206 - type: f1 value: 58.87495456197747 - type: precision value: 55.992366412213734 - type: recall value: 65.64885496183206 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (mal-eng) config: mal-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 96.06986899563319 - type: f1 value: 94.78408539543909 - type: precision value: 94.15332362930616 - type: recall value: 96.06986899563319 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ile-eng) config: ile-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 77.2 - type: f1 value: 71.72571428571428 - type: precision value: 69.41000000000001 - type: recall value: 77.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (bos-eng) config: bos-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 86.4406779661017 - type: f1 value: 83.2391713747646 - type: precision value: 81.74199623352166 - type: recall value: 86.4406779661017 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cor-eng) config: cor-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 8.4 - type: f1 value: 6.017828743398003 - type: precision value: 5.4829865484756795 - type: recall value: 8.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (cat-eng) config: cat-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 83.5 - type: f1 value: 79.74833333333333 - type: precision value: 78.04837662337664 - type: recall value: 83.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (eus-eng) config: eus-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 60.4 - type: f1 value: 54.467301587301584 - type: precision value: 52.23242424242424 - type: recall value: 60.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (yue-eng) config: yue-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 74.9 - type: f1 value: 69.68699134199134 - type: precision value: 67.59873015873016 - type: recall value: 74.9 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (swe-eng) config: swe-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.0 - type: f1 value: 84.9652380952381 - type: precision value: 83.66166666666666 - type: recall value: 88.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (dtp-eng) config: dtp-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 9.1 - type: f1 value: 7.681244588744588 - type: precision value: 7.370043290043291 - type: recall value: 9.1 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kat-eng) config: kat-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 80.9651474530831 - type: f1 value: 76.84220605132133 - type: precision value: 75.19606398962966 - type: recall value: 80.9651474530831 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (jpn-eng) config: jpn-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 86.9 - type: f1 value: 83.705 - type: precision value: 82.3120634920635 - type: recall value: 86.9 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (csb-eng) config: csb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 29.64426877470356 - type: f1 value: 23.98763072676116 - type: precision value: 22.506399397703746 - type: recall value: 29.64426877470356 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (xho-eng) config: xho-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 70.4225352112676 - type: f1 value: 62.84037558685445 - type: precision value: 59.56572769953053 - type: recall value: 70.4225352112676 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (orv-eng) config: orv-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 19.64071856287425 - type: f1 value: 15.125271011207756 - type: precision value: 13.865019261197494 - type: recall value: 19.64071856287425 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ind-eng) config: ind-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 90.2 - type: f1 value: 87.80666666666666 - type: precision value: 86.70833333333331 - type: recall value: 90.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tuk-eng) config: tuk-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 23.15270935960591 - type: f1 value: 18.407224958949097 - type: precision value: 16.982385430661292 - type: recall value: 23.15270935960591 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (max-eng) config: max-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 55.98591549295775 - type: f1 value: 49.94718309859154 - type: precision value: 47.77864154624717 - type: recall value: 55.98591549295775 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (swh-eng) config: swh-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 73.07692307692307 - type: f1 value: 66.74358974358974 - type: precision value: 64.06837606837607 - type: recall value: 73.07692307692307 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (hin-eng) config: hin-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 94.89999999999999 - type: f1 value: 93.25 - type: precision value: 92.43333333333332 - type: recall value: 94.89999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (dsb-eng) config: dsb-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 37.78705636743215 - type: f1 value: 31.63899658680452 - type: precision value: 29.72264397629742 - type: recall value: 37.78705636743215 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ber-eng) config: ber-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 21.6 - type: f1 value: 16.91697302697303 - type: precision value: 15.71225147075147 - type: recall value: 21.6 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tam-eng) config: tam-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 85.01628664495115 - type: f1 value: 81.38514037536838 - type: precision value: 79.83170466883823 - type: recall value: 85.01628664495115 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (slk-eng) config: slk-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 83.39999999999999 - type: f1 value: 79.96380952380952 - type: precision value: 78.48333333333333 - type: recall value: 83.39999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tgl-eng) config: tgl-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 83.2 - type: f1 value: 79.26190476190476 - type: precision value: 77.58833333333334 - type: recall value: 83.2 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ast-eng) config: ast-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 75.59055118110236 - type: f1 value: 71.66854143232096 - type: precision value: 70.30183727034121 - type: recall value: 75.59055118110236 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (mkd-eng) config: mkd-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 65.5 - type: f1 value: 59.26095238095238 - type: precision value: 56.81909090909092 - type: recall value: 65.5 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (khm-eng) config: khm-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 55.26315789473685 - type: f1 value: 47.986523325858506 - type: precision value: 45.33950006595436 - type: recall value: 55.26315789473685 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ces-eng) config: ces-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 82.89999999999999 - type: f1 value: 78.835 - type: precision value: 77.04761904761905 - type: recall value: 82.89999999999999 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tzl-eng) config: tzl-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 43.269230769230774 - type: f1 value: 36.20421245421245 - type: precision value: 33.57371794871795 - type: recall value: 43.269230769230774 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (urd-eng) config: urd-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 88.0 - type: f1 value: 84.70666666666666 - type: precision value: 83.23166666666665 - type: recall value: 88.0 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (ara-eng) config: ara-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 77.4 - type: f1 value: 72.54666666666667 - type: precision value: 70.54318181818181 - type: recall value: 77.4 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (kor-eng) config: kor-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 78.60000000000001 - type: f1 value: 74.1588888888889 - type: precision value: 72.30250000000001 - type: recall value: 78.60000000000001 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (yid-eng) config: yid-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 72.40566037735849 - type: f1 value: 66.82587328813744 - type: precision value: 64.75039308176099 - type: recall value: 72.40566037735849 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (fin-eng) config: fin-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 73.8 - type: f1 value: 68.56357142857144 - type: precision value: 66.3178822055138 - type: recall value: 73.8 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (tha-eng) config: tha-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 91.78832116788321 - type: f1 value: 89.3552311435523 - type: precision value: 88.20559610705597 - type: recall value: 91.78832116788321 - task: type: BitextMining dataset: type: mteb/tatoeba-bitext-mining name: MTEB Tatoeba (wuu-eng) config: wuu-eng split: test revision: 9080400076fbadbb4c4dcb136ff4eddc40b42553 metrics: - type: accuracy value: 74.3 - type: f1 value: 69.05085581085581 - type: precision value: 66.955 - type: recall value: 74.3 - task: type: Retrieval dataset: type: webis-touche2020 name: MTEB Touche2020 config: default split: test revision: None metrics: - type: map_at_1 value: 2.896 - type: map_at_10 value: 8.993 - type: map_at_100 value: 14.133999999999999 - type: map_at_1000 value: 15.668000000000001 - type: map_at_3 value: 5.862 - type: map_at_5 value: 7.17 - type: mrr_at_1 value: 34.694 - type: mrr_at_10 value: 42.931000000000004 - type: mrr_at_100 value: 44.81 - type: mrr_at_1000 value: 44.81 - type: mrr_at_3 value: 38.435 - type: mrr_at_5 value: 41.701 - type: ndcg_at_1 value: 31.633 - type: ndcg_at_10 value: 21.163 - type: ndcg_at_100 value: 33.306000000000004 - type: ndcg_at_1000 value: 45.275999999999996 - type: ndcg_at_3 value: 25.685999999999996 - type: ndcg_at_5 value: 23.732 - type: precision_at_1 value: 34.694 - type: precision_at_10 value: 17.755000000000003 - type: precision_at_100 value: 6.938999999999999 - type: precision_at_1000 value: 1.48 - type: precision_at_3 value: 25.85 - type: precision_at_5 value: 23.265 - type: recall_at_1 value: 2.896 - type: recall_at_10 value: 13.333999999999998 - type: recall_at_100 value: 43.517 - type: recall_at_1000 value: 79.836 - type: recall_at_3 value: 6.306000000000001 - type: recall_at_5 value: 8.825 - task: type: Classification dataset: type: mteb/toxic_conversations_50k name: MTEB ToxicConversationsClassification config: default split: test revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c metrics: - type: accuracy value: 69.3874 - type: ap value: 13.829909072469423 - type: f1 value: 53.54534203543492 - task: type: Classification dataset: type: mteb/tweet_sentiment_extraction name: MTEB TweetSentimentExtractionClassification config: default split: test revision: d604517c81ca91fe16a244d1248fc021f9ecee7a metrics: - type: accuracy value: 62.62026032823995 - type: f1 value: 62.85251350485221 - task: type: Clustering dataset: type: mteb/twentynewsgroups-clustering name: MTEB TwentyNewsgroupsClustering config: default split: test revision: 6125ec4e24fa026cec8a478383ee943acfbd5449 metrics: - type: v_measure value: 33.21527881409797 - task: type: PairClassification dataset: type: mteb/twittersemeval2015-pairclassification name: MTEB TwitterSemEval2015 config: default split: test revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1 metrics: - type: cos_sim_accuracy value: 84.97943613280086 - type: cos_sim_ap value: 70.75454316885921 - type: cos_sim_f1 value: 65.38274012676743 - type: cos_sim_precision value: 60.761214318078835 - type: cos_sim_recall value: 70.76517150395777 - type: dot_accuracy value: 79.0546581629612 - type: dot_ap value: 47.3197121792147 - type: dot_f1 value: 49.20106524633821 - type: dot_precision value: 42.45499808502489 - type: dot_recall value: 58.49604221635884 - type: euclidean_accuracy value: 85.08076533349228 - type: euclidean_ap value: 70.95016106374474 - type: euclidean_f1 value: 65.43987900176455 - type: euclidean_precision value: 62.64478764478765 - type: euclidean_recall value: 68.49604221635884 - type: manhattan_accuracy value: 84.93771234428085 - type: manhattan_ap value: 70.63668388755362 - type: manhattan_f1 value: 65.23895401262398 - type: manhattan_precision value: 56.946084218811485 - type: manhattan_recall value: 76.35883905013192 - type: max_accuracy value: 85.08076533349228 - type: max_ap value: 70.95016106374474 - type: max_f1 value: 65.43987900176455 - task: type: PairClassification dataset: type: mteb/twitterurlcorpus-pairclassification name: MTEB TwitterURLCorpus config: default split: test revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf metrics: - type: cos_sim_accuracy value: 88.69096130709822 - type: cos_sim_ap value: 84.82526278228542 - type: cos_sim_f1 value: 77.65485060585536 - type: cos_sim_precision value: 75.94582658619167 - type: cos_sim_recall value: 79.44256236526024 - type: dot_accuracy value: 80.97954748321496 - type: dot_ap value: 64.81642914145866 - type: dot_f1 value: 60.631996987229975 - type: dot_precision value: 54.5897293631712 - type: dot_recall value: 68.17831844779796 - type: euclidean_accuracy value: 88.6987231730508 - type: euclidean_ap value: 84.80003825477253 - type: euclidean_f1 value: 77.67194179854496 - type: euclidean_precision value: 75.7128235122094 - type: euclidean_recall value: 79.73514012935017 - type: manhattan_accuracy value: 88.62692591298949 - type: manhattan_ap value: 84.80451408255276 - type: manhattan_f1 value: 77.69888949572183 - type: manhattan_precision value: 73.70311528631622 - type: manhattan_recall value: 82.15275639051433 - type: max_accuracy value: 88.6987231730508 - type: max_ap value: 84.82526278228542 - type: max_f1 value: 77.69888949572183 language: - multilingual - af - am - ar - as - az - be - bg - bn - br - bs - ca - cs - cy - da - de - el - en - eo - es - et - eu - fa - fi - fr - fy - ga - gd - gl - gu - ha - he - hi - hr - hu - hy - id - is - it - ja - jv - ka - kk - km - kn - ko - ku - ky - la - lo - lt - lv - mg - mk - ml - mn - mr - ms - my - ne - nl - 'no' - om - or - pa - pl - ps - pt - ro - ru - sa - sd - si - sk - sl - so - sq - sr - su - sv - sw - ta - te - th - tl - tr - ug - uk - ur - uz - vi - xh - yi - zh license: mit --- ## Multilingual-E5-small [Text Embeddings by Weakly-Supervised Contrastive Pre-training](https://arxiv.org/pdf/2212.03533.pdf). Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022 This model has 12 layers and the embedding size is 384. ## Usage Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset. ```python import torch.nn.functional as F from torch import Tensor from transformers import AutoTokenizer, AutoModel def average_pool(last_hidden_states: Tensor, attention_mask: Tensor) -> Tensor: last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0) return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None] # Each input text should start with "query: " or "passage: ", even for non-English texts. # For tasks other than retrieval, you can simply use the "query: " prefix. input_texts = ['query: how much protein should a female eat', 'query: 南瓜的家常做法', "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.", "passage: 1.清炒南瓜丝 原料:嫩南瓜半个 调料:葱、盐、白糖、鸡精 做法: 1、南瓜用刀薄薄的削去表面一层皮,用勺子刮去瓤 2、擦成细丝(没有擦菜板就用刀慢慢切成细丝) 3、锅烧热放油,入葱花煸出香味 4、入南瓜丝快速翻炒一分钟左右,放盐、一点白糖和鸡精调味出锅 2.香葱炒南瓜 原料:南瓜1只 调料:香葱、蒜末、橄榄油、盐 做法: 1、将南瓜去皮,切成片 2、油锅8成热后,将蒜末放入爆香 3、爆香后,将南瓜片放入,翻炒 4、在翻炒的同时,可以不时地往锅里加水,但不要太多 5、放入盐,炒匀 6、南瓜差不多软和绵了之后,就可以关火 7、撒入香葱,即可出锅"] tokenizer = AutoTokenizer.from_pretrained('intfloat/multilingual-e5-small') model = AutoModel.from_pretrained('intfloat/multilingual-e5-small') # Tokenize the input texts batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt') outputs = model(**batch_dict) embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask']) # normalize embeddings embeddings = F.normalize(embeddings, p=2, dim=1) scores = (embeddings[:2] @ embeddings[2:].T) * 100 print(scores.tolist()) ``` ## Supported Languages This model is initialized from [microsoft/Multilingual-MiniLM-L12-H384](https://huggingface.co/microsoft/Multilingual-MiniLM-L12-H384) and continually trained on a mixture of multilingual datasets. It supports 100 languages from xlm-roberta, but low-resource languages may see performance degradation. ## Training Details **Initialization**: [microsoft/Multilingual-MiniLM-L12-H384](https://huggingface.co/microsoft/Multilingual-MiniLM-L12-H384) **First stage**: contrastive pre-training with weak supervision | Dataset | Weak supervision | # of text pairs | |--------------------------------------------------------------------------------------------------------|---------------------------------------|-----------------| | Filtered [mC4](https://huggingface.co/datasets/mc4) | (title, page content) | 1B | | [CC News](https://huggingface.co/datasets/intfloat/multilingual_cc_news) | (title, news content) | 400M | | [NLLB](https://huggingface.co/datasets/allenai/nllb) | translation pairs | 2.4B | | [Wikipedia](https://huggingface.co/datasets/intfloat/wikipedia) | (hierarchical section title, passage) | 150M | | Filtered [Reddit](https://www.reddit.com/) | (comment, response) | 800M | | [S2ORC](https://github.com/allenai/s2orc) | (title, abstract) and citation pairs | 100M | | [Stackexchange](https://stackexchange.com/) | (question, answer) | 50M | | [xP3](https://huggingface.co/datasets/bigscience/xP3) | (input prompt, response) | 80M | | [Miscellaneous unsupervised SBERT data](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) | - | 10M | **Second stage**: supervised fine-tuning | Dataset | Language | # of text pairs | |----------------------------------------------------------------------------------------|--------------|-----------------| | [MS MARCO](https://microsoft.github.io/msmarco/) | English | 500k | | [NQ](https://github.com/facebookresearch/DPR) | English | 70k | | [Trivia QA](https://github.com/facebookresearch/DPR) | English | 60k | | [NLI from SimCSE](https://github.com/princeton-nlp/SimCSE) | English | <300k | | [ELI5](https://huggingface.co/datasets/eli5) | English | 500k | | [DuReader Retrieval](https://github.com/baidu/DuReader/tree/master/DuReader-Retrieval) | Chinese | 86k | | [KILT Fever](https://huggingface.co/datasets/kilt_tasks) | English | 70k | | [KILT HotpotQA](https://huggingface.co/datasets/kilt_tasks) | English | 70k | | [SQuAD](https://huggingface.co/datasets/squad) | English | 87k | | [Quora](https://huggingface.co/datasets/quora) | English | 150k | | [Mr. TyDi](https://huggingface.co/datasets/castorini/mr-tydi) | 11 languages | 50k | | [MIRACL](https://huggingface.co/datasets/miracl/miracl) | 16 languages | 40k | For all labeled datasets, we only use its training set for fine-tuning. For other training details, please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf). ## Benchmark Results on [Mr. TyDi](https://arxiv.org/abs/2108.08787) | Model | Avg MRR@10 | | ar | bn | en | fi | id | ja | ko | ru | sw | te | th | |-----------------------|------------|-------|------| --- | --- | --- | --- | --- | --- | --- |------| --- | --- | | BM25 | 33.3 | | 36.7 | 41.3 | 15.1 | 28.8 | 38.2 | 21.7 | 28.1 | 32.9 | 39.6 | 42.4 | 41.7 | | mDPR | 16.7 | | 26.0 | 25.8 | 16.2 | 11.3 | 14.6 | 18.1 | 21.9 | 18.5 | 7.3 | 10.6 | 13.5 | | BM25 + mDPR | 41.7 | | 49.1 | 53.5 | 28.4 | 36.5 | 45.5 | 35.5 | 36.2 | 42.7 | 40.5 | 42.0 | 49.2 | | | | | multilingual-e5-small | 64.4 | | 71.5 | 66.3 | 54.5 | 57.7 | 63.2 | 55.4 | 54.3 | 60.8 | 65.4 | 89.1 | 70.1 | | multilingual-e5-base | 65.9 | | 72.3 | 65.0 | 58.5 | 60.8 | 64.9 | 56.6 | 55.8 | 62.7 | 69.0 | 86.6 | 72.7 | | multilingual-e5-large | **70.5** | | 77.5 | 73.2 | 60.8 | 66.8 | 68.5 | 62.5 | 61.6 | 65.8 | 72.7 | 90.2 | 76.2 | ## MTEB Benchmark Evaluation Check out [unilm/e5](https://github.com/microsoft/unilm/tree/master/e5) to reproduce evaluation results on the [BEIR](https://arxiv.org/abs/2104.08663) and [MTEB benchmark](https://arxiv.org/abs/2210.07316). ## Support for Sentence Transformers Below is an example for usage with sentence_transformers. ```python from sentence_transformers import SentenceTransformer model = SentenceTransformer('intfloat/multilingual-e5-small') input_texts = [ 'query: how much protein should a female eat', 'query: 南瓜的家常做法', "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 i s 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or traini ng for a marathon. Check out the chart below to see how much protein you should be eating each day.", "passage: 1.清炒南瓜丝 原料:嫩南瓜半个 调料:葱、盐、白糖、鸡精 做法: 1、南瓜用刀薄薄的削去表面一层皮 ,用勺子刮去瓤 2、擦成细丝(没有擦菜板就用刀慢慢切成细丝) 3、锅烧热放油,入葱花煸出香味 4、入南瓜丝快速翻炒一分钟左右, 放盐、一点白糖和鸡精调味出锅 2.香葱炒南瓜 原料:南瓜1只 调料:香葱、蒜末、橄榄油、盐 做法: 1、将南瓜去皮,切成片 2、油 锅8成热后,将蒜末放入爆香 3、爆香后,将南瓜片放入,翻炒 4、在翻炒的同时,可以不时地往锅里加水,但不要太多 5、放入盐,炒匀 6、南瓜差不多软和绵了之后,就可以关火 7、撒入香葱,即可出锅" ] embeddings = model.encode(input_texts, normalize_embeddings=True) ``` Package requirements `pip install sentence_transformers~=2.2.2` Contributors: [michaelfeil](https://huggingface.co/michaelfeil) ## FAQ **1. Do I need to add the prefix "query: " and "passage: " to input texts?** Yes, this is how the model is trained, otherwise you will see a performance degradation. Here are some rules of thumb: - Use "query: " and "passage: " correspondingly for asymmetric tasks such as passage retrieval in open QA, ad-hoc information retrieval. - Use "query: " prefix for symmetric tasks such as semantic similarity, bitext mining, paraphrase retrieval. - Use "query: " prefix if you want to use embeddings as features, such as linear probing classification, clustering. **2. Why are my reproduced results slightly different from reported in the model card?** Different versions of `transformers` and `pytorch` could cause negligible but non-zero performance differences. **3. Why does the cosine similarity scores distribute around 0.7 to 1.0?** This is a known and expected behavior as we use a low temperature 0.01 for InfoNCE contrastive loss. For text embedding tasks like text retrieval or semantic similarity, what matters is the relative order of the scores instead of the absolute values, so this should not be an issue. ## Citation If you find our paper or models helpful, please consider cite as follows: ``` @article{wang2022text, title={Text Embeddings by Weakly-Supervised Contrastive Pre-training}, author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Jiao, Binxing and Yang, Linjun and Jiang, Daxin and Majumder, Rangan and Wei, Furu}, journal={arXiv preprint arXiv:2212.03533}, year={2022} } ``` ## Limitations Long texts will be truncated to at most 512 tokens.
[ -0.5271661281585693, -0.5155932307243347, 0.0854799821972847, 0.27340516448020935, -0.24393439292907715, -0.09559576958417892, -0.28078025579452515, -0.4843234419822693, 0.3998955488204956, 0.1875055581331253, -0.5801137089729309, -0.734853982925415, -0.7184620499610901, 0.3020704388618469, 0.11811338365077972, 1.099326491355896, -0.12613601982593536, 0.07606061547994614, -0.04505561664700508, -0.4286949038505554, -0.2830846607685089, -0.4118162989616394, -0.6859380006790161, -0.2151820957660675, 0.3575534522533417, 0.46009203791618347, 0.48940086364746094, 0.6533886790275574, 0.4890347421169281, 0.32918599247932434, -0.1401042342185974, 0.3556087613105774, -0.4174599349498749, -0.27143532037734985, 0.16737939417362213, -0.4177853465080261, -0.499327152967453, -0.025305839255452156, 0.6211188435554504, 0.6079132556915283, 0.0154833123087883, 0.3178592324256897, 0.2760699689388275, 0.9171033501625061, -0.32476553320884705, 0.27150359749794006, -0.21754716336727142, 0.09753505885601044, -0.30183273553848267, 0.05018152669072151, -0.14513210952281952, -0.07835119962692261, 0.007901707664132118, -0.5582912564277649, 0.009533870033919811, 0.1290162205696106, 1.2852027416229248, 0.20478518307209015, -0.4050748348236084, -0.250495970249176, -0.05762496590614319, 0.8811352849006653, -0.7565208673477173, 0.5392701029777527, 0.6717492938041687, 0.018945401534438133, 0.010309389792382717, -0.6729311347007751, -0.5147766470909119, 0.008508775383234024, -0.54930180311203, 0.34904319047927856, -0.19249479472637177, -0.14714403450489044, 0.31664445996284485, 0.42602047324180603, -0.9127803444862366, 0.1081819012761116, -0.32694149017333984, -0.20081102848052979, 0.7876245975494385, 0.11131495237350464, 0.3902052044868469, -0.5396168828010559, -0.3074477016925812, -0.1719459742307663, -0.4742853045463562, 0.3553428053855896, 0.3488002121448517, 0.30921414494514465, -0.679619550704956, 0.5045047998428345, -0.30620190501213074, 0.6316723823547363, 0.12662433087825775, -0.22372505068778992, 0.7040178775787354, -0.7731178402900696, -0.2549753189086914, -0.2054663896560669, 1.1792598962783813, 0.36291375756263733, -0.003440470900386572, 0.1564842313528061, -0.13703297078609467, -0.05580364167690277, -0.3050493001937866, -0.8789512515068054, -0.3693593740463257, 0.4113536775112152, -0.5964826941490173, -0.24700859189033508, -0.03136855363845825, -0.8117542862892151, 0.04122532531619072, -0.21128655970096588, 0.254652202129364, -0.6098566055297852, -0.2717145085334778, 0.016198113560676575, 0.0649334266781807, 0.18814508616924286, 0.1432081013917923, -0.7744906544685364, 0.22971993684768677, 0.14676301181316376, 0.9441046714782715, -0.1620795875787735, -0.3035305142402649, -0.30084145069122314, 0.014402465894818306, -0.10713846236467361, 0.6263479590415955, -0.23200201988220215, -0.1698075830936432, -0.10115121304988861, 0.41237348318099976, -0.4160729646682739, -0.33626076579093933, 0.5966609120368958, -0.20006293058395386, 0.508056640625, -0.35760435461997986, -0.3989705741405487, -0.03528088331222534, 0.3873281180858612, -0.660737156867981, 1.4465421438217163, 0.2224288284778595, -1.1093024015426636, 0.28294140100479126, -0.6374207139015198, -0.37351447343826294, -0.17035207152366638, -0.2675255239009857, -0.6066709756851196, -0.32910144329071045, 0.5113540291786194, 0.4926930069923401, -0.20388461649417877, 0.06537952274084091, -0.05962242931127548, -0.23085246980190277, -0.07997678220272064, -0.1492384523153305, 1.1833590269088745, 0.2987862527370453, -0.6132317185401917, -0.004529079422354698, -0.9148529767990112, 0.04601695388555527, 0.3068115711212158, -0.4154595732688904, -0.16029630601406097, -0.27827176451683044, 0.007508968468755484, 0.5707715749740601, 0.40913981199264526, -0.5139009356498718, 0.22544564306735992, -0.6480667591094971, 0.4468753933906555, 0.5601124167442322, -0.09874717891216278, 0.40523552894592285, -0.4504365026950836, 0.45106327533721924, 0.40185144543647766, 0.04247644916176796, -0.1691453605890274, -0.6409755945205688, -0.9521017074584961, -0.39839789271354675, 0.4290908873081207, 0.6831190586090088, -0.9024123549461365, 0.5159205794334412, -0.3628854751586914, -0.43858861923217773, -0.8716977834701538, 0.33002185821533203, 0.6085578799247742, 0.46435195207595825, 0.6361386775970459, -0.01976977102458477, -0.6479870080947876, -1.0558885335922241, -0.1611381322145462, 0.0046753669157624245, 0.06776145100593567, 0.36333298683166504, 0.7874752283096313, -0.32302576303482056, 0.6584050059318542, -0.5067077279090881, -0.5946365594863892, -0.354929655790329, -0.05482586845755577, 0.4648614227771759, 0.6427803635597229, 0.7127053141593933, -0.8709607720375061, -0.8796889185905457, 0.08463992923498154, -0.9062141180038452, 0.06316963583230972, 0.08471459895372391, -0.2185496836900711, 0.5660232305526733, 0.519148588180542, -0.5735061168670654, 0.3534261882305145, 0.7246862649917603, -0.4073764979839325, 0.4733174443244934, -0.29391947388648987, 0.10753108561038971, -1.367191195487976, 0.21394945681095123, 0.05610963702201843, -0.13823994994163513, -0.4263809621334076, -0.0029379399493336678, 0.07486361265182495, 0.05125075578689575, -0.4710536301136017, 0.7335297465324402, -0.8011239767074585, 0.20254266262054443, 0.13527964055538177, 0.33805519342422485, 0.002882895292714238, 0.6743500828742981, 0.03409700468182564, 0.7615785598754883, 0.48306357860565186, -0.5943636298179626, 0.056387655436992645, 0.42083486914634705, -0.41927000880241394, 0.4109496772289276, -0.6228086352348328, -0.07601404935121536, -0.02834601141512394, 0.23694397509098053, -1.1011676788330078, -0.26898545026779175, 0.246583953499794, -0.572981595993042, 0.45027536153793335, -0.14963661134243011, -0.5776975154876709, -0.6741285920143127, -0.6522998213768005, 0.16238218545913696, 0.2732449173927307, -0.4179960787296295, 0.45627713203430176, 0.3145335018634796, -0.06561195850372314, -0.814531683921814, -1.0475283861160278, -0.15401093661785126, -0.07646443694829941, -0.8672244548797607, 0.42916831374168396, -0.18729932606220245, 0.11809717863798141, 0.048842187970876694, 0.026750344783067703, 0.1670721024274826, -0.10596415400505066, 0.07620260864496231, 0.19703836739063263, -0.17140653729438782, -0.0899813324213028, 0.0550634041428566, -0.0659351721405983, -0.2970047891139984, -0.0743846520781517, 0.6059601306915283, -0.4419511556625366, 0.0161729846149683, -0.5274701714515686, 0.3372367322444916, 0.4169776737689972, -0.23007743060588837, 1.09517502784729, 1.0026144981384277, -0.3180449903011322, 0.09800530225038528, -0.5027348399162292, -0.09782112389802933, -0.4838201403617859, 0.4632852375507355, -0.6820931434631348, -0.9026452302932739, 0.7456514835357666, 0.14983274042606354, 0.10560730844736099, 0.8486545085906982, 0.5233585834503174, -0.22235716879367828, 1.140307903289795, 0.4807230830192566, -0.16368341445922852, 0.42067950963974, -0.7141393423080444, -0.03401586413383484, -0.8800469636917114, -0.35627099871635437, -0.46535131335258484, -0.3329460918903351, -1.0038201808929443, -0.4222177565097809, 0.26831701397895813, 0.07706227898597717, -0.36024317145347595, 0.414054274559021, -0.6022279858589172, 0.16449390351772308, 0.5363154411315918, 0.23006512224674225, 0.07484768331050873, 0.11393895000219345, -0.4755595028400421, -0.2943651080131531, -0.9060624837875366, -0.43146005272865295, 1.071247935295105, 0.4241212010383606, 0.47050049901008606, 0.2041810303926468, 0.736216127872467, 0.0670074075460434, 0.1218743696808815, -0.4963145852088928, 0.41976115107536316, -0.3106343448162079, -0.5827935934066772, -0.2044614553451538, -0.6895247101783752, -1.0164355039596558, 0.3557034134864807, -0.28104594349861145, -0.7776548862457275, 0.2142409384250641, 0.06928833574056625, -0.29791978001594543, 0.2782685160636902, -0.9610294103622437, 1.0654853582382202, -0.30246642231941223, -0.5035079121589661, 0.22920913994312286, -0.8864309191703796, 0.31192439794540405, 0.09604303538799286, 0.4401404857635498, -0.0590224489569664, -0.14250999689102173, 0.9736279845237732, -0.44910866022109985, 0.7529866695404053, -0.20301207900047302, 0.11260150372982025, 0.21073247492313385, -0.1592767834663391, 0.7329084873199463, -0.03463619947433472, -0.09665761888027191, 0.355093777179718, 0.23639824986457825, -0.6280155777931213, -0.3147853910923004, 0.8692677021026611, -1.039328932762146, -0.4405606985092163, -0.6543321013450623, -0.36987748742103577, -0.10949225723743439, 0.3944215774536133, 0.5655591487884521, 0.1274377703666687, 0.1061677485704422, 0.3422202467918396, 0.6223750710487366, -0.42024365067481995, 0.5753306150436401, 0.477836549282074, -0.09116091579198837, -0.7056492567062378, 0.9337514638900757, 0.31099292635917664, 0.1646280288696289, 0.43793389201164246, 0.17371830344200134, -0.3910573720932007, -0.45060721039772034, -0.675777018070221, 0.515967071056366, -0.4712376594543457, -0.3540014922618866, -0.9611689448356628, -0.2273758053779602, -0.6911646723747253, -0.008494403213262558, -0.3916463851928711, -0.37609899044036865, -0.36073175072669983, -0.12521611154079437, 0.29326772689819336, 0.4869796335697174, -0.03894684836268425, 0.2102629691362381, -0.6738969087600708, 0.22901152074337006, -0.07160712778568268, 0.2638765871524811, -0.15694276988506317, -0.7671394944190979, -0.5984997153282166, 0.21894259750843048, -0.3259299099445343, -0.7351884245872498, 0.6821151375770569, 0.3040081262588501, 0.5805335640907288, 0.3442282974720001, -0.024219142273068428, 0.7371640205383301, -0.36523810029029846, 0.9651989936828613, 0.2896993160247803, -0.7515295147895813, 0.6883107423782349, -0.33084672689437866, 0.483812153339386, 0.7450982332229614, 0.724958062171936, -0.4815188944339752, -0.2702161967754364, -0.7050638198852539, -0.9541420936584473, 0.9322206974029541, 0.3887362480163574, -0.08988675475120544, 0.0785852000117302, 0.19261226058006287, -0.15998318791389465, 0.190211683511734, -0.979090690612793, -0.7548994421958923, -0.2087746411561966, -0.5160582661628723, -0.10898622125387192, -0.25922995805740356, -0.09121977537870407, -0.6008264422416687, 0.8313494324684143, -0.15937091410160065, 0.4927048981189728, 0.3371165096759796, -0.21007385849952698, 0.06452717632055283, 0.04081406816840172, 0.7522402405738831, 0.47492852807044983, -0.3120678961277008, 0.13942059874534607, 0.3539028465747833, -0.681113064289093, -0.078721784055233, 0.23243656754493713, -0.25244975090026855, 0.0643031969666481, 0.4091600477695465, 0.7661516070365906, 0.24720604717731476, -0.4675128161907196, 0.5528299808502197, -0.09326819330453873, -0.3270914554595947, -0.2665356993675232, -0.20335057377815247, 0.2115425318479538, 0.1763984113931656, 0.3292107880115509, -0.19250215590000153, -0.004663312342017889, -0.5630599856376648, 0.23034018278121948, 0.20954766869544983, -0.43298184871673584, -0.2799195945262909, 0.6201891899108887, 0.09371955692768097, 0.11265292763710022, 0.5591705441474915, -0.26634836196899414, -0.6264036893844604, 0.5847596526145935, 0.4826197028160095, 0.5652495622634888, -0.3166024684906006, 0.15638510882854462, 0.9017701745033264, 0.599338173866272, 0.08250253647565842, 0.39072734117507935, 0.19478541612625122, -0.6589872241020203, -0.2232564240694046, -0.8741284608840942, 0.05385300889611244, 0.2128356248140335, -0.4819146692752838, 0.32323622703552246, -0.23151293396949768, -0.19271227717399597, 0.006073811557143927, 0.636635422706604, -0.8555906414985657, 0.26737672090530396, -0.00013347934873308986, 1.0201019048690796, -0.8761597871780396, 0.9755158424377441, 0.8715568780899048, -0.8656896352767944, -0.9235800504684448, -0.2655183970928192, 0.005954810883849859, -0.7513265013694763, 0.7612699270248413, 0.27757230401039124, 0.13316623866558075, -0.03888540714979172, -0.3939129412174225, -0.9896543025970459, 1.3140192031860352, 0.25912630558013916, -0.5389882922172546, -0.04352475330233574, 0.230097696185112, 0.6056557893753052, -0.359054833650589, 0.4546525180339813, 0.6481393575668335, 0.5729531049728394, -0.16303524374961853, -0.9937987923622131, 0.17633770406246185, -0.6495605111122131, -0.03371100127696991, 0.017612755298614502, -1.1009751558303833, 1.011627435684204, -0.12754347920417786, -0.08723899722099304, -0.14376620948314667, 0.7325888872146606, 0.3780803680419922, 0.3615626096725464, 0.33315154910087585, 0.8563741445541382, 0.7768133282661438, -0.19024322926998138, 1.245316505432129, -0.47999465465545654, 0.5195552706718445, 1.0331777334213257, 0.2791202962398529, 0.8156019449234009, 0.46389031410217285, -0.3966033160686493, 0.6578632593154907, 0.9628257751464844, 0.030099164694547653, 0.5362826585769653, -0.15161553025245667, -0.05046013370156288, -0.04626603424549103, -0.047927308827638626, -0.5574203133583069, 0.3148634433746338, 0.29114675521850586, -0.5135641098022461, 0.05660848319530487, 0.16952593624591827, 0.4054866433143616, -0.10467292368412018, -0.19311900436878204, 0.7739182710647583, 0.20577742159366608, -0.48710739612579346, 0.8892719745635986, 0.04248075932264328, 0.9509544372558594, -0.7158610820770264, 0.19244948029518127, -0.432235985994339, 0.22224391996860504, -0.4530439078807831, -0.8309653997421265, 0.18129925429821014, -0.0872858539223671, -0.2699849307537079, -0.20483578741550446, 0.5480205416679382, -0.6566115617752075, -0.5815393328666687, 0.4952698051929474, 0.5613536834716797, 0.2339552491903305, 0.14145387709140778, -1.1878055334091187, 0.08007288724184036, 0.28934311866760254, -0.5709681510925293, 0.4798847734928131, 0.49384576082229614, 0.06745104491710663, 0.5640700459480286, 0.6955156922340393, 0.14321376383304596, 0.1018538773059845, -0.007645425386726856, 1.0025728940963745, -0.7083284854888916, -0.5388035178184509, -0.7789319753646851, 0.5247446298599243, -0.3228614032268524, -0.41954749822616577, 1.0971295833587646, 0.8145765066146851, 1.014568567276001, 0.04509411007165909, 0.6899911165237427, -0.20526830852031708, 0.511786699295044, -0.49803438782691956, 0.8201538324356079, -0.9274387955665588, -0.029531504958868027, -0.4402736723423004, -0.7689940333366394, -0.2960844337940216, 0.76412433385849, -0.4112881124019623, 0.19400928914546967, 0.8395100235939026, 0.8080495595932007, -0.013919094577431679, -0.22513672709465027, 0.20939108729362488, 0.4022752046585083, 0.17213687300682068, 0.7977610230445862, 0.32730939984321594, -0.9905097484588623, 0.7254652976989746, -0.5421679019927979, -0.15230046212673187, -0.29673099517822266, -0.6193392872810364, -0.8839335441589355, -0.7789257764816284, -0.4506714344024658, -0.5034147500991821, -0.05828294903039932, 1.0337307453155518, 0.6696682572364807, -0.9574018120765686, -0.28900834918022156, 0.07071952521800995, 0.05736035481095314, -0.2726418375968933, -0.24508415162563324, 0.8408326506614685, -0.2912868559360504, -0.9033572673797607, 0.18305756151676178, 0.01650138758122921, 0.14198188483715057, -0.05664285644888878, -0.33050718903541565, -0.691303014755249, -0.10792809724807739, 0.7621007561683655, 0.29335299134254456, -0.5626593232154846, -0.04645110294222832, 0.06822545826435089, -0.42772945761680603, 0.12766806781291962, 0.12400229275226593, -0.3824427127838135, 0.41940099000930786, 0.5068005919456482, 0.4697490632534027, 0.8363025784492493, -0.0852772668004036, 0.13346439599990845, -0.7511830925941467, 0.35399457812309265, 0.04837929084897041, 0.4536314010620117, 0.3808754086494446, -0.3618282377719879, 0.8375769853591919, 0.3983437418937683, -0.4660513699054718, -0.8259769082069397, -0.24316321313381195, -1.1353541612625122, -0.16838307678699493, 1.2392197847366333, -0.28568950295448303, -0.4683193266391754, -0.07293324172496796, -0.23785509169101715, 0.3113675117492676, -0.44820716977119446, 0.4996016323566437, 0.8150555491447449, -0.20110327005386353, -0.32044774293899536, -0.7665533423423767, 0.6852155923843384, 0.47332170605659485, -0.835411548614502, -0.16462324559688568, 0.215931236743927, 0.36830592155456543, 0.20816533267498016, 0.8121746182441711, -0.16027648746967316, -0.0006665632245130837, -0.004533190745860338, 0.09615432471036911, -0.07882532477378845, -0.0425909087061882, -0.1411687433719635, 0.002356965560466051, -0.33436745405197144, -0.19560854136943817 ]
lucadiliello/BLEURT-20
lucadiliello
"2023-01-19T15:56:04Z"
25,020
1
transformers
[ "transformers", "pytorch", "bleurt", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2023-01-19T14:59:41Z"
This model is based on a custom Transformer model that can be installed with: ```bash pip install git+https://github.com/lucadiliello/bleurt-pytorch.git ``` Now load the model and make predictions with: ```python import torch from bleurt_pytorch import BleurtConfig, BleurtForSequenceClassification, BleurtTokenizer config = BleurtConfig.from_pretrained('lucadiliello/BLEURT-20') model = BleurtForSequenceClassification.from_pretrained('lucadiliello/BLEURT-20') tokenizer = BleurtTokenizer.from_pretrained('lucadiliello/BLEURT-20') references = ["a bird chirps by the window", "this is a random sentence"] candidates = ["a bird chirps by the window", "this looks like a random sentence"] model.eval() with torch.no_grad(): inputs = tokenizer(references, candidates, padding='longest', return_tensors='pt') res = model(**inputs).logits.flatten().tolist() print(res) # [0.9990496635437012, 0.7930182218551636] ``` Take a look at this [repository](https://github.com/lucadiliello/bleurt-pytorch) for the definition of `BleurtConfig`, `BleurtForSequenceClassification` and `BleurtTokenizer` in PyTorch.
[ -0.2667456567287445, -0.5667910575866699, 0.3817807137966156, 0.08180859684944153, -0.052689459174871445, -0.06314007937908173, -0.22372323274612427, -0.23513467609882355, 0.1651938408613205, 0.3606378138065338, -0.586078405380249, -0.46719011664390564, -0.7383584380149841, -0.12614752352237701, -0.3854702413082123, 1.0402387380599976, 0.1871746927499771, 0.04532697796821594, 0.2879723608493805, 0.08837035298347473, -0.4306436777114868, -0.0940665602684021, -0.2064136415719986, -0.8944892287254333, 0.47775596380233765, 0.27518153190612793, 0.7863327860832214, 0.19533880054950714, 0.6433881521224976, 0.31623396277427673, -0.2036137580871582, -0.20206747949123383, -0.13754300773143768, -0.10092068463563919, -0.34160280227661133, -0.5354898571968079, -0.04672117903828621, 0.03839309141039848, 0.41696515679359436, 0.22887560725212097, -0.29980045557022095, 0.3606392741203308, -0.2899687886238098, 0.30426397919654846, -0.6107581853866577, 0.044048842042684555, -0.6492828726768494, 0.06506156921386719, 0.06136023625731468, 0.14536049962043762, -0.7040003538131714, -0.23226188123226166, 0.39842039346694946, -0.3646155595779419, 0.50954669713974, 0.17030659317970276, 1.3670953512191772, 0.23343448340892792, -0.45647993683815, -0.170151025056839, -0.8584169149398804, 0.6192347407341003, -0.6827813982963562, 0.5413592457771301, 0.04058147594332695, 0.7357268333435059, -0.031374577432870865, -1.3375730514526367, -0.4659249782562256, -0.28192123770713806, -0.565467894077301, 0.2356073409318924, -0.5120970606803894, 0.21258091926574707, 0.6278107166290283, 0.2892809808254242, -0.9119508862495422, -0.18026067316532135, -0.6848275065422058, -0.33030104637145996, 0.4303084909915924, 0.10061051696538925, 0.0019102123333141208, -0.537337601184845, -0.3229379951953888, -0.23430372774600983, -0.32750898599624634, -0.0376027375459671, 0.27423447370529175, 0.09402769058942795, -0.27108603715896606, 0.7752490639686584, -0.07249176502227783, 0.5038643479347229, 0.2885991930961609, 0.34204453229904175, 0.5178838968276978, 0.30640533566474915, -0.45022255182266235, 0.16355590522289276, 1.0626699924468994, 0.11295389384031296, 0.224295511841774, -0.14036497473716736, -0.3120219111442566, 0.09096329659223557, 0.4576188027858734, -1.1142282485961914, -0.8937711715698242, 0.38770928978919983, -0.4389062225818634, -0.3570515513420105, 0.01686220057308674, -0.7244240045547485, -0.2621382176876068, -0.0725226178765297, 0.9142817258834839, -0.5700873732566833, -0.2650444805622101, -0.049501366913318634, -0.08289263397455215, 0.16958044469356537, 0.14448851346969604, -0.9988205432891846, -0.009812270291149616, 0.3262440860271454, 1.1643410921096802, 0.16957084834575653, -0.3681236207485199, -0.4162112772464752, -0.052633725106716156, -0.053343404084444046, 0.523197591304779, -0.29689502716064453, -0.4552479684352875, 0.021179277449846268, 0.25277450680732727, -0.2887731194496155, -0.1544724553823471, 0.7042254209518433, -0.5805920958518982, 0.43832188844680786, 0.1930244415998459, -0.752458930015564, -0.6054113507270813, 0.2375209927558899, -0.6730157732963562, 1.0176483392715454, 0.3116637170314789, -1.0142236948013306, 0.3353468179702759, -0.8648765683174133, -0.1879809945821762, 0.25361472368240356, 0.09627702087163925, -0.8077725172042847, 0.16999325156211853, 0.19243285059928894, 0.4240502715110779, -0.027582047507166862, 0.3229365646839142, -0.06772612780332565, -0.3519127070903778, 0.3256491422653198, -0.3675398826599121, 0.9349443316459656, 0.29809510707855225, -0.5013391971588135, 0.43378975987434387, -0.6330236196517944, 0.006572056096047163, -0.2185521125793457, -0.033190950751304626, 0.17468006908893585, -0.2464739978313446, 0.4217897057533264, 0.01516014989465475, 0.22850388288497925, -0.7710742950439453, 0.2531134784221649, -0.5042230486869812, 0.4948881268501282, 0.5314117670059204, -0.08698323369026184, 0.3632035255432129, -0.3386600613594055, 0.3521798849105835, 0.011573642492294312, 0.017416900023818016, -0.25311899185180664, -0.5481357574462891, -0.7754672169685364, -0.40196922421455383, 0.31389161944389343, 0.3444976806640625, -0.47138479351997375, 0.6087462902069092, -0.2735605537891388, -0.9089515805244446, -0.27983132004737854, -0.4117636978626251, -0.028957298025488853, 0.5460377931594849, 0.45736491680145264, 0.15677641332149506, -0.7968870401382446, -0.7962042093276978, -0.07321196049451828, -0.21228083968162537, -0.25631341338157654, -0.1033763438463211, 0.9912605881690979, -0.6155871152877808, 1.0645748376846313, -0.7869138121604919, -0.13487587869167328, -0.2572134733200073, 0.24755613505840302, 0.7480150461196899, 0.5124754309654236, 0.4373832046985626, -0.36599570512771606, -0.3697126805782318, 0.046058401465415955, -0.5123556852340698, 0.11284768581390381, 0.10152040421962738, -0.2292056381702423, -0.017229776829481125, 0.12639132142066956, -1.0529810190200806, 0.49127399921417236, 0.6736037731170654, -0.5748042464256287, 1.018600583076477, -0.18972229957580566, -0.10270409286022186, -1.3689892292022705, 0.30380457639694214, 0.10905435681343079, -0.27564603090286255, -0.5264641046524048, 0.09026414155960083, 0.18998245894908905, -0.24593158066272736, -0.2346128672361374, 0.7410469651222229, 0.017213085666298866, 0.25097161531448364, -0.08192939311265945, -0.42082875967025757, -0.07632910460233688, 0.38694414496421814, 0.13623060286045074, 0.4421736001968384, 0.8060449361801147, -0.2745295464992523, 0.569835901260376, 0.5156877636909485, -0.3745861351490021, 0.036464374512434006, -0.9446727633476257, 0.20429089665412903, 0.138106569647789, 0.08319435268640518, -0.8892426490783691, -0.3109368085861206, 0.3628716766834259, -0.6021252870559692, 0.10947459936141968, -0.5441914796829224, -0.29577475786209106, -0.6512354612350464, 0.01974937878549099, 0.15051423013210297, 0.7409627437591553, -0.9570310711860657, 1.1777777671813965, -0.08601386100053787, 0.4386870563030243, -0.44184350967407227, -0.7927432060241699, -0.18169569969177246, -0.16161176562309265, -0.8029397130012512, 0.2974429428577423, -0.056555233895778656, 0.12829826772212982, 0.009383294731378555, 0.1823640912771225, 0.1809154599905014, -0.1746768355369568, 0.47456151247024536, 0.37440377473831177, -0.1445450335741043, 0.15532177686691284, -0.13532280921936035, -0.19052785634994507, 0.16451425850391388, -0.6173513531684875, 0.8746336102485657, -0.2272976040840149, -0.16715924441814423, -0.4623107612133026, -0.41592898964881897, 0.5885147452354431, -0.19011975824832916, 0.6910847425460815, 1.1080385446548462, -0.429822713136673, -0.24472658336162567, -0.5905677080154419, -0.4008781909942627, -0.5756770372390747, 0.4868622124195099, -0.4399563670158386, -0.4753294885158539, 0.6437541246414185, 0.10705849528312683, 0.07657714188098907, 0.4667372703552246, 0.9635949730873108, 0.00493363244459033, 0.6880900859832764, 0.6613532304763794, 0.03530246764421463, 0.7870604395866394, -0.907632052898407, 0.1328308880329132, -0.6289783716201782, -0.2463245987892151, -0.2836374044418335, -0.37205302715301514, -0.8562348484992981, -0.015282045118510723, 0.18940302729606628, -0.08652932941913605, -0.6565960645675659, 0.6741642951965332, -0.8043244481086731, 0.2210608422756195, 0.7441161274909973, 0.20900776982307434, 0.010667822323739529, 0.19348521530628204, -0.19444067776203156, 0.09314762055873871, -0.6801782250404358, -0.5649738311767578, 1.2951785326004028, 0.47926899790763855, 0.8209813833236694, -0.06035008653998375, 0.8077439665794373, -0.07624714821577072, 0.4039408564567566, -0.8983072638511658, 0.18677867949008942, 0.04581720381975174, -0.7377570271492004, -0.16243106126785278, -0.482413649559021, -1.030314326286316, 0.2671317458152771, -0.25300413370132446, -1.0679231882095337, 0.05558290705084801, 0.16922733187675476, -0.30091592669487, 0.412915974855423, -0.8658047914505005, 1.1054775714874268, 0.056488554924726486, -0.23971308767795563, -0.14340749382972717, -0.27413663268089294, 0.3752848207950592, 0.25725531578063965, -0.0947740375995636, 0.12440235912799835, 0.5056226253509521, 0.8556622862815857, -0.5370582938194275, 0.459634393453598, -0.1926710158586502, 0.5043153762817383, 0.5672004818916321, 0.12511849403381348, 0.5915078520774841, 0.1937033087015152, -0.2686523199081421, 0.3390670716762543, 0.11034644395112991, -0.29480305314064026, -0.6766852140426636, 0.6142076253890991, -1.154883623123169, -0.3810919225215912, -0.6070622801780701, -0.7191555500030518, 0.2825844883918762, 0.2893402576446533, 0.7829840779304504, 0.3764340281486511, -0.0917154848575592, 0.009699245914816856, 0.314030259847641, 0.012049409560859203, 0.8455860614776611, 0.24030107259750366, -0.4030785858631134, -0.6943771839141846, 0.7946122288703918, 0.001930659986101091, -0.16933301091194153, 0.1885102093219757, 0.5937767624855042, -0.4460638165473938, -0.41467252373695374, -0.5044505596160889, 0.2605289816856384, -0.509978175163269, -0.29350921511650085, -0.6235201954841614, -0.6249681711196899, -0.3382760286331177, -0.16479362547397614, -0.14179503917694092, -0.2837088108062744, -0.1444682627916336, -0.2091614007949829, 0.738490879535675, 0.7635727524757385, 0.12507374584674835, 0.9078357219696045, -0.7899438142776489, 0.014419936574995518, 0.16554272174835205, 0.2987585961818695, -0.08172895759344101, -0.7988879680633545, -0.39024269580841064, 0.08501825481653214, -0.6517636775970459, -0.8150610327720642, 0.7327941060066223, -0.0965871512889862, 0.4356797933578491, 0.1295948177576065, -0.11365368962287903, 0.27480289340019226, -0.4444214403629303, 0.6975112557411194, 0.4636259973049164, -0.8341220021247864, 0.45475050806999207, -0.28761452436447144, 0.37192830443382263, 0.14456337690353394, 0.22902821004390717, -0.5245798230171204, -0.31379106640815735, -0.9511436223983765, -0.7178418040275574, 0.7754749059677124, 0.6453416347503662, 0.01961994729936123, 0.41550716757774353, 0.22015176713466644, -0.06358669698238373, 0.16610971093177795, -0.9099409580230713, -0.0863908976316452, -0.6434581279754639, -0.46766412258148193, -0.36379796266555786, -0.0069155399687588215, -0.03743920847773552, -0.2758769690990448, 0.6829197406768799, 0.05582447722554207, 0.369444340467453, 0.10705273598432541, -0.44816023111343384, -0.19567559659481049, -0.1120414137840271, 0.44976481795310974, 0.4627196788787842, -0.5353062152862549, 0.177840918302536, 0.19117827713489532, -0.8269935846328735, 0.05671236664056778, 0.2237055003643036, -0.34849005937576294, 0.4845591187477112, 0.4088137149810791, 1.0443254709243774, -0.24577558040618896, -0.1587453931570053, 0.26447391510009766, 0.013770882040262222, -0.11937396228313446, -0.5524560213088989, 0.04133595526218414, 0.16033931076526642, 0.4519190788269043, 0.4388779401779175, 0.40561121702194214, -0.046675775200128555, -0.20097334682941437, 0.28621870279312134, 0.2003110945224762, -0.32497042417526245, -0.4769483506679535, 0.7314271330833435, 0.01888107694685459, -0.6468175649642944, 0.7347631454467773, -0.2589021921157837, -0.6799875497817993, 0.6755777597427368, 0.3610472083091736, 1.2391347885131836, -0.16268384456634521, 0.27495428919792175, 0.7232773900032043, 0.4581136405467987, -0.15363144874572754, 0.07346334308385849, 0.3156278133392334, -0.7301217317581177, -0.21380515396595, -0.8665294647216797, -0.3892444670200348, 0.015091970562934875, -0.2338980883359909, 0.8539896011352539, -0.49278485774993896, -0.17752069234848022, 0.18136917054653168, 0.2925846576690674, -0.8856210112571716, 0.32840079069137573, 0.02141398936510086, 0.9505066871643066, -0.9385054111480713, 0.9039937853813171, 0.6980726718902588, -0.6568296551704407, -1.1889445781707764, -0.04206980764865875, -0.41960981488227844, -0.5760419368743896, 0.7701464891433716, 0.3797091543674469, 0.16227957606315613, 0.3900229334831238, -0.3115919530391693, -0.866761326789856, 1.2963447570800781, 0.4520382285118103, -0.7002336382865906, -0.24581299722194672, -0.057382263243198395, 0.5282207727432251, -0.16117016971111298, 1.0193841457366943, 0.44380784034729004, 0.4503101408481598, 0.4457264542579651, -0.8658972978591919, -0.013260993175208569, -0.12696419656276703, -0.10603082925081253, 0.09018714725971222, -0.5339179039001465, 1.021287202835083, -0.21338456869125366, 0.0547163262963295, 0.0693560317158699, 0.7581222057342529, 0.19621293246746063, 0.22030901908874512, 0.1666140854358673, 0.6374762654304504, 0.7532672882080078, -0.2562030255794525, 0.8802914023399353, -0.5728996992111206, 1.1650021076202393, 0.8889055848121643, 0.283613383769989, 0.531062126159668, 0.24037298560142517, -0.10956940054893494, 0.8577787280082703, 0.7487592697143555, -0.5802599787712097, 0.4987392723560333, 0.07576583325862885, -0.11120644956827164, -0.036132268607616425, 0.43495720624923706, -0.32914072275161743, 0.3422014117240906, 0.25863975286483765, -0.4927540421485901, -0.24453891813755035, 0.11776500195264816, -0.28377753496170044, -0.4535410702228546, -0.37081480026245117, 0.3001032769680023, -0.011068818159401417, -0.503402054309845, 0.6644008159637451, 0.05898164585232735, 0.7258264422416687, -0.5045582056045532, 0.11019282788038254, 0.045846350491046906, 0.4495414197444916, -0.6772133708000183, -0.6948205232620239, 0.3054637014865875, -0.24267607927322388, -0.12287978082895279, 0.16236978769302368, 0.6092708110809326, -0.47043636441230774, -0.9587602019309998, 0.10289447009563446, 0.16246598958969116, 0.03910093382000923, 0.003397394437342882, -0.5259995460510254, -0.07656657695770264, -0.11685864627361298, -0.6870320439338684, -0.1323569416999817, 0.281497985124588, 0.13256362080574036, 0.8400749564170837, 0.49646589159965515, -0.06314025819301605, 0.2562844753265381, 0.06458183377981186, 0.7697163820266724, -0.4533452093601227, -0.5813584327697754, -0.8541197180747986, 0.683375895023346, 0.10201557725667953, -0.44425663352012634, 0.5393461585044861, 0.7922855615615845, 0.6467896103858948, -0.3160794675350189, 0.6509842276573181, -0.3550615608692169, 0.05397319793701172, -0.43777546286582947, 0.9294575452804565, -0.22400344908237457, 0.00753794377669692, -0.2730746567249298, -1.0095405578613281, -0.09522423148155212, 0.9330148100852966, -0.5996980667114258, 0.1554519683122635, 0.9354867339134216, 1.2534030675888062, -0.40707042813301086, 0.08688001334667206, 0.5201641321182251, 0.4090706706047058, 0.4495522379875183, 0.3585592210292816, 0.7328080534934998, -0.5887676477432251, 0.6950672268867493, -0.4102627635002136, -0.002633270574733615, -0.2673651874065399, -0.6063715219497681, -1.1562467813491821, -0.49621936678886414, -0.4648953378200531, -0.7164444923400879, -0.10916466265916824, 1.1840057373046875, 0.7074939012527466, -1.0005909204483032, -0.4245631992816925, -0.5405673980712891, 0.13617734611034393, 0.007463611196726561, -0.27994978427886963, 0.6015809774398804, -0.4157836437225342, -0.7810108661651611, -0.06328550726175308, -0.2880687117576599, 0.02876090072095394, -0.21546900272369385, -0.0785427913069725, -0.1501377522945404, -0.1633758395910263, 0.2903210520744324, -0.15663646161556244, -0.5012542605400085, -0.7351568341255188, 0.11360330134630203, -0.13955336809158325, 0.06701894104480743, 0.637694239616394, -0.9228613972663879, 0.31504443287849426, 0.5440054535865784, 0.1881430447101593, 1.0626391172409058, -0.4016994535923004, 0.540401041507721, -0.5443059206008911, 0.24741347134113312, 0.3056671619415283, 0.6382120847702026, 0.14562170207500458, -0.4561787247657776, 0.45649453997612, 0.397726446390152, -0.6661555171012878, -0.7071030735969543, 0.22294609248638153, -0.8765787482261658, 0.024568108841776848, 1.046828269958496, -0.25731125473976135, -0.3611900508403778, 0.3074875771999359, -0.47529345750808716, 0.5002965331077576, -0.5255606770515442, 0.9678376317024231, 0.4719369411468506, 0.016882358118891716, -0.29866236448287964, -0.1948355734348297, 0.24501539766788483, 0.1671769767999649, -0.37879693508148193, -0.013216789811849594, 0.166207417845726, 0.639298141002655, 0.3663129508495331, 0.06360972672700882, 0.29535359144210815, 0.38301265239715576, 0.13002941012382507, 0.4562123417854309, -0.28497397899627686, -0.16108322143554688, -0.350128710269928, 0.13630327582359314, -0.09200664609670639, -0.42306140065193176 ]
amazon/FalconLite2
amazon
"2023-11-02T13:14:33Z"
25,019
46
transformers
[ "transformers", "RefinedWeb", "text-generation", "custom_code", "license:apache-2.0", "text-generation-inference", "region:us" ]
text-generation
"2023-10-04T06:53:57Z"
--- license: apache-2.0 inference: false --- # FalconLite2 Model FalconLit2 is a fine-tuned and quantized [Falcon 40B](https://huggingface.co/tiiuae/falcon-40b) language model, capable of processing long (up to 24K tokens) input sequences. By utilizing 4-bit [GPTQ quantization](https://github.com/PanQiWei/AutoGPTQ) and adapted RotaryEmbedding, FalconLite2 is able to process 10x longer contexts while consuming 4x less GPU memory than the original model. FalconLite2 is useful for applications such as topic retrieval, summarization, and question-answering. FalconLite2 can be deployed on a single AWS `g5.12x` instance with [TGI 1.0.3](https://github.com/huggingface/text-generation-inference/tree/v1.0.3) and [TGI 1.1.0](https://github.com/huggingface/text-generation-inference/tree/v1.1.0), making it suitable for applications that require high performance in resource-constrained environments. You can also deploy FalconLite2 directly on SageMaker endpoints. FalconLite2 evolves from [FalconLite](https://huggingface.co/amazon/FalconLite), and their similarities and differences are summarized below: |Model|Fine-tuned on long contexts| Quantization | Max context length| RotaryEmbedding adaptation| Inference framework| |----------|-------------:|-------------:|------------:|-----------:|-----------:| | FalconLite | No | 4-bit GPTQ |12K | [dNTK](https://www.reddit.com/r/LocalLLaMA/comments/14mrgpr/dynamically_scaled_rope_further_increases/) | TGI 0.9.2 | | FalconLite2 | Yes | 4-bit GPTQ |24K | rope_theta = 1000000 | TGI 1.0.3 & 1.1.0 | ## Model Details - **Developed by:** [AWS Contributors](https://github.com/orgs/aws-samples/teams/aws-prototype-ml-apac) - **Model type:** [Falcon 40B](https://huggingface.co/tiiuae/falcon-40b) - **Language:** English - **Finetuned from weights:** [Falcon 40B SFT OASST-TOP1 model](https://huggingface.co/OpenAssistant/falcon-40b-sft-top1-560) - **Finetuned on data:** - [SLidingEncoder and Decoder (SLED)](https://huggingface.co/datasets/tau/sled) - [(Long) Natural Questions (NQ)](https://huggingface.co/datasets/togethercomputer/Long-Data-Collections#multi-passage-qa-from-natural-questions) - [OpenAssistant Conversations Dataset (OASST1)](https://huggingface.co/datasets/OpenAssistant/oasst1) - **Served using framework:** [Text-Generation-Inference 1.0.3](https://github.com/huggingface/text-generation-inference/tree/v1.0.3) - **Model License:** Apache 2.0 - **Contact:** [GitHub issues](https://github.com/awslabs/extending-the-context-length-of-open-source-llms/issues) ## Deploy FalconLite2 on EC2 ## SSH login to an AWS `g5.12x` instance with the [Deep Learning AMI](https://aws.amazon.com/releasenotes/aws-deep-learning-ami-gpu-pytorch-2-0-ubuntu-20-04/). ### Start TGI server-1.0.3 ```bash git clone https://github.com/awslabs/extending-the-context-length-of-open-source-llms.git falconlite-dev cd falconlite-dev/falconlite2 # this may take a while to build updated vLLM CUDA kernels ./docker_build.sh ./start_falconlite.sh ``` ### Start TGI server-1.1.0 ```bash git clone https://github.com/awslabs/extending-the-context-length-of-open-source-llms.git falconlite-dev cd falconlite-dev/falconlite2-tgi1.1.0 # this may take a while to build updated vLLM CUDA kernels ./docker_build_rebuild_vllm_rope-theta.sh ./start_falconlite.sh ``` ### Perform inference ```bash # after FalconLite has been completely started pip install -r ../script/requirements-client.txt # test short context python falconlite_client.py # test long context of 13400 tokens, # which are copied from [Amazon Aurora FAQs](https://aws.amazon.com/rds/aurora/faqs/) python falconlite_client.py -l ``` **Important** - Use the prompt template below for FalconLite2: ``` <|prompter|>What are the main challenges to support a long context for LLM?<|endoftext|><|assistant|> ``` **Important** - When using FalconLite2 for inference for the first time, it may require a brief 'warm-up' period that can take 10s of seconds. However, subsequent inferences should be faster and return results in a more timely manner. This warm-up period is normal and should not affect the overall performance of the system once the initialisation period has been completed. ## Deploy FalconLite2 on Amazon SageMaker ## To deploy FalconLite2 on a SageMaker endpoint with TGI-1.0.3, please follow [this notebook](https://github.com/awslabs/extending-the-context-length-of-open-source-llms/blob/main/falconlite2/sm_deploy.ipynb) running on a SageMaker Notebook instance (e.g. `g5.xlarge`). To deploy FalconLite2 on a SageMaker endpoint with TGI-1.1.0, please follow [this notebook](https://github.com/awslabs/extending-the-context-length-of-open-source-llms/blob/main/falconlite2-tgi1.1.0/sm_deploy.ipynb) running on a SageMaker Notebook instance (e.g. `g5.xlarge`). ## Evalution Result ## We evaluated FalconLite2 against benchmarks that are specifically designed to assess the capabilities of LLMs in handling longer contexts. ### Accuracy ### |Eval task|Input length| Input length | Input length| Input length| Input length| |----------|-------------:|-------------:|------------:|-----------:|-----------:| | | 2851| 5568 |8313 | 11044 | 13780 | [Topic Retrieval](https://lmsys.org/blog/2023-06-29-longchat/) | 100% | 100% | 100% | 100% | 90% | |Eval task|Input length| Input length | Input length| Input length| Input length|Input length| |----------|-------------:|-------------:|------------:|-----------:|-----------:|-----------:| | | 3818| 5661 |7505 | 9354 | 11188 | 12657 | [Line Retrieval](https://lmsys.org/blog/2023-06-29-longchat/#longeval-results) | 84% | 82% | 66% | 56% | 62% | 34% | |Eval task|Input length| Input length | Input length| Input length| |----------|-------------:|-------------:|------------:|-----------:| | | 3264| 5396 |8329 | 10197 | | [Pass key Retrieval](https://github.com/epfml/landmark-attention/blob/main/llama/run_test.py#L101) | 100% | 100% | 100% | 100% | |Eval task| Test set Accuracy | Hard subset Accuracy| |----------|-------------:|-------------:| | [Question Answering with Long Input Texts](https://nyu-mll.github.io/quality/) | 53.4% | 45.4% | ## Limitations ## Before using the FalconLite model, it is important to perform your own independent assessment, and take measures to ensure that your use would comply with your own specific quality control practices and standards, and that your use would comply with the local rules, laws, regulations, licenses and terms that apply to you, and your content.
[ -0.4761645197868347, -0.9576552510261536, 0.6527608633041382, 0.28304240107536316, -0.030261628329753876, 0.005828099325299263, -0.1346798837184906, -0.5055106282234192, 0.2186158150434494, 0.3895534873008728, -0.5355662107467651, -0.6536064743995667, -0.4156542122364044, 0.001948310062289238, -0.2970176339149475, 0.968221127986908, -0.06792374700307846, -0.25908172130584717, -0.10159250348806381, -0.1334385871887207, -0.32184475660324097, -0.4007509648799896, -0.9243899583816528, -0.07718852907419205, 0.2608688473701477, 0.45880386233329773, 0.514640748500824, 0.37433409690856934, 0.5396439433097839, 0.2037908434867859, -0.3213169276714325, 0.28912708163261414, -0.4462391436100006, 0.018889477476477623, -0.030510667711496353, -0.25264495611190796, -0.566003143787384, -0.2500397264957428, 0.7919197678565979, 0.5107144713401794, -0.008854806423187256, 0.2924612760543823, 0.11705826967954636, 0.8255898952484131, -0.5620378851890564, 0.1854919195175171, -0.26849788427352905, 0.09743757545948029, -0.23362703621387482, -0.015546368435025215, -0.21523982286453247, 0.13171961903572083, -0.03467806801199913, -0.6701586842536926, 0.03729813173413277, 0.27606263756752014, 0.9298728108406067, 0.30039510130882263, -0.5111150741577148, -0.35984569787979126, -0.3431812822818756, 1.0587761402130127, -0.8432846069335938, 0.45158687233924866, 0.4319007098674774, 0.3235623240470886, -0.15263982117176056, -1.0571894645690918, -0.28709903359413147, -0.1600123941898346, -0.28163543343544006, 0.31290990114212036, 0.04265162721276283, 0.08940054476261139, 0.4298601448535919, 0.3005533218383789, -0.5939393639564514, 0.12071298062801361, -0.3973080515861511, -0.05868319422006607, 0.7435681819915771, 0.24823662638664246, -0.04562149569392204, -0.430900901556015, -0.3802834749221802, -0.01600331813097, -0.642900288105011, 0.5734590291976929, 0.06588234007358551, 0.15628807246685028, -0.10822742432355881, 0.44789326190948486, -0.43872755765914917, 0.4162783920764923, 0.242300882935524, -0.05490860342979431, 0.3424427807331085, -0.5792236924171448, -0.38814324140548706, -0.029142701998353004, 1.001520037651062, 0.3603067100048065, -0.1656835973262787, 0.01995887979865074, -0.29782551527023315, -0.2766536474227905, 0.07610782235860825, -1.191016674041748, 0.15757770836353302, 0.5754007697105408, -0.43788519501686096, -0.2884009778499603, 0.053205277770757675, -0.806163489818573, -0.1655970960855484, 0.23355558514595032, 0.23969756066799164, -0.391176700592041, -0.10971390455961227, 0.10543208569288254, -0.013691142201423645, 0.1453835815191269, 0.15055814385414124, -1.037391185760498, 0.509411096572876, 0.8753621578216553, 1.0140835046768188, -0.12641100585460663, -0.25378474593162537, -0.7104315161705017, -0.13254639506340027, -0.426543653011322, 0.44976717233657837, -0.24343103170394897, -0.5399416089057922, -0.14818698167800903, 0.3362642228603363, -0.06944677978754044, -0.3350483477115631, 0.7760501503944397, -0.42706581950187683, 0.39046192169189453, -0.4458896517753601, -0.7541282176971436, -0.2110264003276825, -0.049472786486148834, -0.4736960828304291, 1.3473501205444336, 0.3503035008907318, -0.7567797899246216, 0.15431345999240875, -0.8843980431556702, -0.24877279996871948, 0.1180596873164177, -0.16267669200897217, -0.5628175735473633, -0.13212800025939941, 0.25342777371406555, 0.6185077428817749, -0.2776956856250763, 0.36233097314834595, -0.21452707052230835, -0.7561280727386475, 0.11746953427791595, -0.021748607978224754, 0.8463125824928284, 0.4233972728252411, -0.5566481947898865, 0.17485609650611877, -0.42251813411712646, 0.1516313999891281, 0.09668038040399551, -0.19192373752593994, 0.09584133327007294, 0.14241576194763184, 0.1580420285463333, -0.020500367507338524, 0.30768755078315735, -0.5160456895828247, 0.07246232032775879, -0.44019418954849243, 0.7579559683799744, 0.5210322141647339, 0.15221649408340454, 0.4364844560623169, -0.5325073003768921, 0.36052650213241577, 0.05569969490170479, 0.19680573046207428, -0.23276686668395996, -0.45801395177841187, -1.0524991750717163, -0.17057746648788452, 0.004481746815145016, 0.576749324798584, -0.5434687733650208, 0.48906609416007996, -0.3590894937515259, -0.5622968673706055, -0.4367426633834839, 0.21967709064483643, 0.5368651151657104, 0.6967567801475525, 0.6997183561325073, -0.015514550730586052, -0.48777925968170166, -0.9892991185188293, -0.05005120113492012, -0.13400885462760925, -0.017261631786823273, 0.6620901823043823, 0.7540346384048462, -0.42282041907310486, 0.846630871295929, -0.4917651414871216, -0.3554046154022217, -0.09107173979282379, -0.11449220031499863, 0.5081782937049866, 0.4517076015472412, 0.8212342262268066, -0.6485115885734558, -0.5617263317108154, -0.04931142181158066, -0.828956663608551, 0.03772677853703499, -0.09162907302379608, -0.07567340135574341, 0.6464648246765137, 0.5324696898460388, -0.7371881008148193, 0.2231261432170868, 0.4180906414985657, -0.5485513806343079, 0.5498945713043213, -0.04533017426729202, 0.23785103857517242, -1.2866820096969604, 0.34005337953567505, 0.103413425385952, -0.19253140687942505, -0.6146617531776428, 0.30453044176101685, 0.33834603428840637, 0.07313726097345352, -0.6271138787269592, 0.7759928703308105, -0.3778228461742401, -0.0686504989862442, 0.016257671639323235, -0.023654339835047722, 0.13177980482578278, 0.42123422026634216, -0.036120928823947906, 1.3904253244400024, 0.42727887630462646, -0.5857875347137451, 0.2470860630273819, 0.2293882668018341, -0.4936164915561676, 0.30234193801879883, -0.9286712408065796, 0.05333370342850685, 0.07422459125518799, 0.3962324261665344, -0.9333211779594421, -0.26001015305519104, 0.15129883587360382, -0.4616931974887848, 0.1638156622648239, -0.11491603404283524, -0.35652098059654236, -0.4569186270236969, -0.5502750873565674, 0.18969230353832245, 0.8239633440971375, -0.5494704246520996, 0.3188669979572296, 0.08637812733650208, -0.1291235238313675, -0.7359012365341187, -0.8344883322715759, 0.12998302280902863, -0.44534072279930115, -0.8815442323684692, 0.6474404335021973, -0.20505830645561218, -0.2478393316268921, -0.1597958654165268, -0.03280685096979141, -0.030703751370310783, 0.26518458127975464, 0.43036654591560364, 0.1316203624010086, -0.3044995069503784, 0.2029130458831787, 0.2056744396686554, -0.07533338665962219, 0.051958195865154266, -0.12365349382162094, 0.5067797899246216, -0.6183637380599976, -0.17271678149700165, -0.497152179479599, 0.24501541256904602, 0.5633478164672852, -0.12439803779125214, 0.6912257671356201, 0.6139565110206604, -0.29187139868736267, -0.07084467262029648, -0.6914013624191284, -0.1938857138156891, -0.5763545036315918, 0.5370284914970398, -0.4266131520271301, -1.0375111103057861, 0.6110456585884094, 0.13476626574993134, 0.2567072808742523, 0.6958960294723511, 0.2982899844646454, -0.2598898112773895, 0.7922865152359009, 0.3334546387195587, -0.008906910195946693, 0.4623720049858093, -0.5463252663612366, 0.09550096094608307, -1.2641866207122803, -0.19849789142608643, -0.337724894285202, -0.16474081575870514, -0.4605352282524109, -0.42709842324256897, 0.25236138701438904, 0.22739103436470032, -0.41219446063041687, 0.31305691599845886, -0.5126029253005981, 0.26232022047042847, 0.34820088744163513, 0.00022856821306049824, 0.08868467807769775, -0.07450522482395172, -0.1003422662615776, -0.058004721999168396, -0.5565151572227478, -0.5407844185829163, 1.2055314779281616, 0.37797611951828003, 0.4657284617424011, 0.10862614959478378, 0.906834602355957, 0.17777273058891296, 0.13388964533805847, -0.7985427379608154, 0.6227731704711914, -0.0667620524764061, -0.5878802537918091, -0.2970600128173828, -0.4015386998653412, -0.8614566922187805, 0.14687871932983398, -0.012761213816702366, -0.8275251388549805, -0.09027798473834991, -0.21870404481887817, -0.5291259288787842, 0.24449031054973602, -0.6334410309791565, 0.7510366439819336, -0.30410000681877136, -0.6021063327789307, 0.033315498381853104, -0.561783492565155, 0.32440218329429626, -0.28103771805763245, 0.28660690784454346, -0.031138017773628235, -0.2828778326511383, 1.0096330642700195, -0.5753907561302185, 0.5591045022010803, -0.18445974588394165, 0.12007229030132294, 0.4687534272670746, -0.09445157647132874, 0.6198317408561707, 0.3218310475349426, -0.2993184030056, 0.23180434107780457, 0.30360540747642517, -0.4341919720172882, -0.5525078177452087, 1.0260175466537476, -0.8193472623825073, -0.8095280528068542, -0.522722065448761, -0.4218943417072296, 0.05336553975939751, 0.15511882305145264, 0.23687665164470673, 0.23275472223758698, -0.1312600076198578, 0.4963662624359131, 0.6130561232566833, -0.17451924085617065, 0.7678107023239136, 0.33872509002685547, -0.4159807860851288, -0.37529805302619934, 0.6614505648612976, 0.22632910311222076, 0.1790955811738968, 0.2307872474193573, -0.0330158993601799, -0.366396427154541, -0.624535322189331, -0.5909326076507568, 0.26458093523979187, -0.5795181393623352, -0.16889800131320953, -0.7652496099472046, -0.45488664507865906, -0.4165009558200836, -0.2919961214065552, -0.4045303761959076, -0.5361489653587341, -0.7166109681129456, -0.14338406920433044, 0.556697428226471, 0.45591703057289124, 0.2733123004436493, 0.2408985197544098, -0.7186184525489807, -0.01801200956106186, 0.17033641040325165, 0.1804182082414627, -0.13183051347732544, -0.719178318977356, -0.23805475234985352, 0.3109138607978821, -0.34470421075820923, -0.640190601348877, 0.41926243901252747, 0.2862638235092163, 0.40523216128349304, 0.3587460517883301, 0.038126956671476364, 0.8074424862861633, -0.301971435546875, 1.145992398262024, 0.00976556446403265, -0.92176353931427, 0.6247807741165161, -0.4167560338973999, 0.2033424973487854, 0.695435643196106, 0.45014217495918274, -0.7011381387710571, -0.09391535818576813, -0.6101414561271667, -0.8406972885131836, 0.5961771607398987, 0.3834218382835388, -0.027436207979917526, -0.04853365942835808, 0.5204651355743408, -0.13952693343162537, -0.06554479151964188, -0.46324267983436584, -0.1754586398601532, -0.19866308569908142, -0.15858489274978638, -0.34855392575263977, -0.35158389806747437, -0.09238099306821823, -0.25419119000434875, 0.73563152551651, -0.1847638189792633, 0.41195613145828247, 0.36997705698013306, -0.1783907115459442, -0.0023811799474060535, 0.20203839242458344, 0.6578729152679443, 0.761364758014679, -0.4445568025112152, -0.05330095812678337, 0.5263189673423767, -0.46014922857284546, -0.014852125197649002, 0.19201935827732086, -0.2857137620449066, -0.19310681521892548, 0.403383731842041, 0.7540155649185181, 0.2705320119857788, -0.6623460650444031, 0.49953341484069824, -0.09705518931150436, -0.37570956349372864, -0.5488142371177673, 0.3845248818397522, 0.26011860370635986, 0.34055832028388977, 0.5690686702728271, -0.3457448184490204, 0.2160365879535675, -0.4818836748600006, 0.1367109715938568, 0.49311986565589905, -0.4291694462299347, -0.04831662029027939, 0.6589661240577698, 0.20908130705356598, -0.41240251064300537, 0.7000609636306763, -0.24749469757080078, -0.4780549108982086, 0.9431330561637878, 0.4847356975078583, 0.6622229814529419, 0.0048942058347165585, 0.08589679002761841, 0.5903738737106323, 0.10621554404497147, -0.1795484721660614, 0.33986708521842957, -0.06038980558514595, -0.3038659989833832, -0.20527468621730804, -0.7896913290023804, -0.2897323668003082, 0.07169897109270096, -0.5318787097930908, 0.19161273539066315, -0.6304688453674316, -0.3007461726665497, -0.10018932819366455, 0.7273941040039062, -0.5674216747283936, 0.024874631315469742, -0.14763954281806946, 1.0631924867630005, -0.520244836807251, 0.7699578404426575, 0.6128783822059631, -0.44135767221450806, -0.6451745629310608, -0.356937438249588, 0.011207968927919865, -0.6974228024482727, 0.6753878593444824, 0.4444414973258972, 0.014581297524273396, 0.1615622192621231, -0.3313523530960083, -1.0690652132034302, 1.7862739562988281, -0.26395145058631897, -0.6723748445510864, -0.042175181210041046, 0.16060559451580048, 0.5071431994438171, -0.4020073413848877, 0.5428198575973511, 0.5458421111106873, 0.5525954961776733, 0.1026538833975792, -1.0467686653137207, 0.39791545271873474, -0.3423825204372406, 0.040229108184576035, 0.22073815762996674, -1.1141937971115112, 1.0031768083572388, -0.24588315188884735, -0.299911767244339, 0.4424460232257843, 0.695106565952301, 0.4949793219566345, 0.43320560455322266, 0.19582687318325043, 0.6809605956077576, 0.9007654786109924, -0.19945263862609863, 1.0305471420288086, -0.4659495949745178, 0.6900195479393005, 0.7776633501052856, -0.15468449890613556, 0.9009169340133667, 0.46362417936325073, -0.2571471333503723, 0.4843434989452362, 0.9129164814949036, -0.08754944801330566, 0.34772902727127075, -0.07521343976259232, -0.23810546100139618, -0.02887148968875408, 0.003936383873224258, -0.7162660360336304, 0.11228548735380173, 0.46153655648231506, -0.3994728624820709, 0.015772346407175064, -0.2606717348098755, 0.2986111044883728, -0.3835965096950531, -0.07252004742622375, 0.5094171166419983, 0.22280053794384003, -0.8278573155403137, 0.9315606355667114, 0.17684049904346466, 0.928182065486908, -0.5755025744438171, 0.21874181926250458, -0.5338607430458069, 0.1524548977613449, -0.440583199262619, -0.8099161386489868, 0.29212549328804016, 0.001989288255572319, 0.06609857827425003, -0.13685546815395355, 0.564172089099884, -0.10231126844882965, -0.5750534534454346, 0.32249221205711365, 0.3886141777038574, 0.18937544524669647, -0.07817026227712631, -0.7883543968200684, 0.23066246509552002, -0.08287706226110458, -0.6092411279678345, 0.4201585650444031, 0.0779515951871872, -0.035640474408864975, 0.8123341798782349, 0.7320647239685059, -0.28743839263916016, -0.05476373806595802, -0.2712685465812683, 0.8648896813392639, -0.8827353715896606, -0.2933710515499115, -0.8038943409919739, 0.4665865898132324, -0.2575256824493408, -0.4368916451931, 0.8503183722496033, 0.8235001564025879, 0.5486848950386047, 0.25052809715270996, 0.5495849847793579, -0.022846871986985207, 0.28055158257484436, -0.5325257182121277, 0.90317302942276, -0.8280152678489685, 0.2706505358219147, -0.1512039750814438, -1.0414080619812012, -0.1193762794137001, 0.6601463556289673, -0.22766877710819244, 0.1925024539232254, 0.9472761750221252, 0.9450736045837402, -0.1400148570537567, 0.014309672638773918, 0.07685885578393936, 0.24728576838970184, 0.6438072919845581, 1.0243502855300903, 0.6358805298805237, -0.7509142160415649, 0.43054071068763733, -0.29789620637893677, -0.1771620213985443, -0.4459863305091858, -0.7144156098365784, -0.9833511710166931, -0.5650913715362549, -0.16624613106250763, -0.3746556341648102, 0.15808849036693573, 0.8075687289237976, 0.7707193493843079, -0.5601747035980225, -0.38161635398864746, -0.22843055427074432, -0.10731896013021469, -0.02886459231376648, -0.2904832065105438, 0.5437272787094116, -0.4783232808113098, -0.6692643165588379, 0.5214241147041321, 0.07705491781234741, 0.0769297257065773, -0.2534429132938385, -0.3937786817550659, -0.18477016687393188, 0.011689959093928337, 0.6193430423736572, 0.3473382294178009, -0.7401964664459229, -0.38263076543807983, 0.2898367941379547, -0.25304466485977173, 0.08978026360273361, 0.16084511578083038, -0.7984362840652466, 0.1123504564166069, 0.4968210458755493, 0.582836925983429, 0.9547744393348694, -0.004117222502827644, -0.07823435962200165, -0.384015828371048, 0.08218628168106079, 0.21499621868133545, 0.417560338973999, 0.19324029982089996, -0.5462248921394348, 0.8016673922538757, 0.07222651690244675, -0.7660014629364014, -0.7580427527427673, 0.15727008879184723, -1.1547564268112183, -0.3238179087638855, 1.3225115537643433, -0.1803952157497406, -0.32613423466682434, 0.23826095461845398, -0.24664930999279022, 0.060012318193912506, -0.53328537940979, 0.7096704244613647, 0.7487677335739136, -0.2080184519290924, -0.10339716076850891, -0.601486086845398, 0.48612940311431885, 0.5326018333435059, -0.9602565169334412, -0.23751108348369598, 0.4491950273513794, 0.49101221561431885, 0.1166100800037384, 0.6862266063690186, 0.1123083308339119, 0.25467297434806824, -0.1848064363002777, -0.37292471528053284, -0.42824921011924744, -0.17514003813266754, -0.19314077496528625, 0.09796404838562012, -0.22932425141334534, 0.05477561429142952 ]
Helsinki-NLP/opus-mt-ko-en
Helsinki-NLP
"2023-08-16T11:59:39Z"
25,013
28
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ko", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - ko - en tags: - translation license: apache-2.0 --- ### kor-eng * source group: Korean * target group: English * OPUS readme: [kor-eng](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/kor-eng/README.md) * model: transformer-align * source language(s): kor kor_Hang kor_Latn * target language(s): eng * model: transformer-align * pre-processing: normalization + SentencePiece (spm32k,spm32k) * download original weights: [opus-2020-06-17.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.zip) * test set translations: [opus-2020-06-17.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.test.txt) * test set scores: [opus-2020-06-17.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba-test.kor.eng | 41.3 | 0.588 | ### System Info: - hf_name: kor-eng - source_languages: kor - target_languages: eng - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/kor-eng/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['ko', 'en'] - src_constituents: {'kor_Hani', 'kor_Hang', 'kor_Latn', 'kor'} - tgt_constituents: {'eng'} - src_multilingual: False - tgt_multilingual: False - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.test.txt - src_alpha3: kor - tgt_alpha3: eng - short_pair: ko-en - chrF2_score: 0.588 - bleu: 41.3 - brevity_penalty: 0.9590000000000001 - ref_len: 17711.0 - src_name: Korean - tgt_name: English - train_date: 2020-06-17 - src_alpha2: ko - tgt_alpha2: en - prefer_old: False - long_pair: kor-eng - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.3682325780391693, -0.5832757353782654, 0.37261319160461426, 0.45643478631973267, -0.5034811496734619, -0.15892545878887177, -0.36219534277915955, -0.4048599302768707, 0.22133952379226685, 0.3401561677455902, -0.6438791155815125, -0.8491483926773071, -0.5481681227684021, 0.4001031517982483, 0.13956211507320404, 0.9738699793815613, -0.2391817569732666, 0.18124617636203766, 0.42856088280677795, -0.5298751592636108, -0.577193021774292, -0.30455291271209717, -0.6676501035690308, -0.3268437385559082, 0.45439115166664124, 0.4299604594707489, 0.5155432224273682, 0.5490938425064087, 0.644110918045044, 0.3286861479282379, -0.35561662912368774, 0.14437948167324066, -0.17083640396595, -0.0822119489312172, -0.04079112410545349, -0.5293950438499451, -0.5888987183570862, -0.32750797271728516, 0.9206293225288391, 0.46357157826423645, 0.17294780910015106, 0.47775954008102417, -0.17907869815826416, 0.8619204759597778, -0.24499326944351196, 0.19528360664844513, -0.5118238925933838, -0.07010181248188019, -0.4388095736503601, -0.29442310333251953, -0.5526673793792725, -0.37287193536758423, 0.13590312004089355, -0.6813169717788696, -0.0041372147388756275, 0.0671161636710167, 1.8180536031723022, 0.09479488432407379, -0.4867223799228668, -0.26145026087760925, -0.3914276361465454, 0.8839825391769409, -0.8485027551651001, 0.5253165364265442, 0.48497557640075684, 0.017554007470607758, -0.0006254962063394487, -0.4035693109035492, -0.33866676688194275, 0.02700083702802658, -0.3421522378921509, 0.38730207085609436, -0.055632270872592926, -0.15635520219802856, 0.19123949110507965, 0.5466837882995605, -0.7568978071212769, -0.014737687073647976, -0.41492336988449097, -0.22971415519714355, 0.6171353459358215, 0.05863909050822258, 0.4604590833187103, -0.6939290761947632, -0.4256349802017212, -0.5448336601257324, -0.423700213432312, 0.32202523946762085, 0.5479974150657654, 0.4819360673427582, -0.5306004881858826, 0.7550624012947083, -0.19398178160190582, 0.5309364795684814, 0.1146804690361023, -0.23698320984840393, 0.7560412287712097, -0.7683169841766357, -0.08168589323759079, -0.06411632150411606, 1.2910568714141846, 0.3350866734981537, 0.07100045680999756, 0.09370981901884079, -0.1665186733007431, -0.17987775802612305, -0.14476893842220306, -0.8818739056587219, 0.022298667579889297, 0.2508211135864258, -0.4211124777793884, -0.17358849942684174, 0.06421032547950745, -0.8802604079246521, 0.15343591570854187, -0.002488093450665474, 0.5156152248382568, -0.898823082447052, -0.3062448501586914, 0.3641461133956909, -0.01363945472985506, 0.3506498336791992, -0.06634411215782166, -0.46744266152381897, 0.062167197465896606, 0.2861342430114746, 0.9853693246841431, -0.04294770956039429, -0.379470556974411, -0.17324207723140717, 0.04449527710676193, -0.19651435315608978, 0.6635910272598267, -0.21145732700824738, -0.45067548751831055, -0.10682352632284164, 0.5079771280288696, -0.24603725969791412, -0.2328539788722992, 1.065413236618042, -0.3377014994621277, 0.4569019377231598, -0.45237305760383606, -0.5755256414413452, -0.3979058861732483, 0.321406751871109, -0.7821029424667358, 1.343811273574829, 0.2495008111000061, -0.9497645497322083, 0.3724691569805145, -0.8155106902122498, -0.30145448446273804, -0.009273428469896317, 0.1504475474357605, -0.8326123356819153, -0.07411675900220871, 0.2773817181587219, 0.3650389313697815, -0.20948775112628937, 0.4313696324825287, -0.017241626977920532, -0.20098403096199036, -0.012449165806174278, -0.24166105687618256, 1.2785859107971191, 0.23009692132472992, -0.37152719497680664, 0.056071747094392776, -0.8443337082862854, 0.14765526354312897, 0.3700399398803711, -0.5221725702285767, -0.3286841809749603, -0.1391679346561432, 0.28421247005462646, 0.18312056362628937, 0.3281594216823578, -0.6124334931373596, 0.35622382164001465, -0.6888906955718994, 0.15337570011615753, 0.7531270384788513, 0.15074791014194489, 0.33117929100990295, -0.38895726203918457, 0.5338387489318848, 0.19714677333831787, 0.04524678364396095, 0.011497688479721546, -0.5401041507720947, -0.7067140340805054, -0.24249371886253357, 0.6005725264549255, 0.8117246627807617, -0.8277797102928162, 0.8041006922721863, -0.8181911110877991, -0.8731095790863037, -0.8216099739074707, -0.15843839943408966, 0.6768558025360107, 0.307601660490036, 0.47549906373023987, -0.19637659192085266, -0.608673632144928, -1.0504601001739502, -0.30555662512779236, -0.25263816118240356, 0.020828286185860634, 0.3000754714012146, 0.801713764667511, 0.017972450703382492, 0.6470474004745483, -0.46000051498413086, -0.5284990668296814, -0.1768524944782257, 0.15532802045345306, 0.42356210947036743, 0.6764854788780212, 0.7199437618255615, -0.9224398732185364, -0.7923246026039124, 0.22314606606960297, -0.7275872230529785, -0.23306861519813538, -0.04859897494316101, -0.2314441204071045, 0.4273494780063629, 0.07793101668357849, -0.5300437211990356, 0.2505638599395752, 0.5766834020614624, -0.8736423254013062, 0.591285765171051, -0.16773082315921783, 0.5044686198234558, -1.618947982788086, 0.19798405468463898, -0.172093003988266, -0.12014101445674896, -0.40020132064819336, 0.041765566915273666, 0.19544240832328796, 0.17566810548305511, -0.5885465741157532, 0.7962107062339783, -0.6679515242576599, 0.04831825569272041, 0.3411872088909149, 0.2742859125137329, -0.004693676717579365, 0.7976285219192505, -0.15332956612110138, 1.0018963813781738, 0.47921985387802124, -0.3984721899032593, 0.048393070697784424, 0.5118911862373352, -0.47593992948532104, 0.3526434004306793, -0.6903359293937683, -0.2137122005224228, 0.2892853021621704, -0.0016226551961153746, -0.8688575029373169, -0.2781309187412262, 0.25150516629219055, -0.7622473835945129, 0.30736592411994934, -0.22942611575126648, -0.6690278053283691, -0.2560829818248749, -0.4548148512840271, 0.5761906504631042, 0.4561147093772888, -0.21492837369441986, 0.8111532330513, 0.10644351691007614, -0.09773726761341095, -0.6653371453285217, -0.8488936424255371, -0.09787392616271973, -0.2227829396724701, -0.6986278295516968, 0.40781164169311523, -0.1988079845905304, 0.07005542516708374, 0.20716197788715363, -0.09089066088199615, -0.1156231239438057, 0.0172684695571661, 0.048304274678230286, 0.3363754153251648, -0.3487476408481598, 0.07301584631204605, -0.010256045497953892, -0.09248629212379456, -0.24689413607120514, -0.16386088728904724, 0.8644769191741943, -0.5319398045539856, -0.3123434782028198, -0.7697715759277344, 0.05389115586876869, 0.5912632346153259, -0.35423964262008667, 1.0301544666290283, 0.6777740716934204, -0.22424788773059845, 0.287210077047348, -0.5709523558616638, 0.20662111043930054, -0.4508712887763977, 0.4123152792453766, -0.6669807434082031, -0.7424428462982178, 0.9987839460372925, 0.17409850656986237, 0.1260489672422409, 0.9875531792640686, 0.6272650361061096, 0.21990136802196503, 0.7668642997741699, 0.27512794733047485, 0.04315706342458725, 0.5812344551086426, -0.5559374690055847, -0.004031458869576454, -0.91239333152771, -0.2939605116844177, -0.7426226735115051, -0.15834610164165497, -1.0416771173477173, -0.20553797483444214, 0.2510278522968292, 0.14512990415096283, -0.20632095634937286, 0.7713537812232971, -0.6374944448471069, 0.47346100211143494, 0.5923384428024292, 0.1724167764186859, 0.3499077558517456, -0.1437888890504837, -0.4894406199455261, -0.1376456469297409, -0.4818360209465027, -0.653040885925293, 1.2727562189102173, 0.3043990433216095, 0.2056599110364914, 0.2965802550315857, 0.6498769521713257, 0.010839937254786491, 0.0475023053586483, -0.7519363164901733, 0.6337323188781738, -0.12061194330453873, -0.8614720702171326, -0.3796573579311371, -0.40042585134506226, -1.0043268203735352, 0.24370431900024414, -0.10347482562065125, -0.7804911732673645, 0.07586341351270676, -0.15320749580860138, -0.07639473676681519, 0.693735659122467, -0.8740155100822449, 0.9974138736724854, 0.0018118121661245823, -0.21087971329689026, 0.29649046063423157, -0.7041283845901489, 0.25055232644081116, -0.095781609416008, 0.19127008318901062, -0.19446782767772675, -0.10481645166873932, 0.9272300601005554, -0.3030986785888672, 0.5455120205879211, -0.11964400857686996, -0.11953307688236237, 0.24944712221622467, 0.12726043164730072, 0.6020426154136658, -0.06042316183447838, -0.23649969696998596, 0.3464772403240204, 0.15782926976680756, -0.6122270822525024, -0.23754863440990448, 0.5797330141067505, -0.8733933568000793, -0.3849147856235504, -0.5596732497215271, -0.751370370388031, -0.011273526586592197, 0.5773717761039734, 0.6236948370933533, 0.5358830094337463, 0.01702488213777542, 0.6464364528656006, 0.6551427245140076, -0.3407338857650757, 0.5748254060745239, 0.571252167224884, -0.11425488442182541, -0.7374613881111145, 0.7702732086181641, 0.30774131417274475, 0.25738728046417236, 0.5294623970985413, 0.15058717131614685, -0.29768744111061096, -0.8217196464538574, -0.555908739566803, 0.3906612694263458, -0.4535108804702759, -0.38524219393730164, -0.6276070475578308, -0.13481658697128296, -0.4197925627231598, 0.05112937465310097, -0.4738645553588867, -0.4023025631904602, -0.0733894631266594, -0.2830869257450104, 0.47267574071884155, 0.4091627895832062, 0.0871221125125885, 0.3415730595588684, -0.9612601399421692, 0.19596055150032043, -0.23305445909500122, 0.6040729284286499, -0.2220194935798645, -0.7867543697357178, -0.36271992325782776, -0.018306555226445198, -0.3537050187587738, -1.0913563966751099, 0.5559648275375366, -0.11053573340177536, 0.26420313119888306, 0.1855800300836563, 0.19169163703918457, 0.7089279890060425, -0.5696572661399841, 1.0804145336151123, -0.07261145114898682, -0.9177043437957764, 0.6682738661766052, -0.5499626994132996, 0.5530475378036499, 0.8296619653701782, 0.3173864483833313, -0.4386238157749176, -0.6878554224967957, -0.7590652108192444, -1.0011283159255981, 0.9384685158729553, 0.6598024964332581, -0.15268287062644958, -0.010640127584338188, 0.1488441824913025, -0.04318665713071823, -0.2503066956996918, -1.2633432149887085, -0.4697049856185913, 0.09158879518508911, -0.5695089101791382, 0.14048410952091217, -0.414948046207428, -0.09473488479852676, -0.30034202337265015, 1.2201590538024902, 0.1866736263036728, 0.12167983502149582, 0.6384365558624268, -0.17131096124649048, -0.029731161892414093, 0.4318743646144867, 0.7912396192550659, 0.4583723247051239, -0.3596140146255493, -0.26314234733581543, 0.4011840522289276, -0.6562656164169312, 0.11589106917381287, 0.06724400073289871, -0.4983457326889038, 0.3463296890258789, 0.5613215565681458, 0.9515700936317444, 0.2655739486217499, -0.5929164290428162, 0.5154018402099609, -0.055444564670324326, -0.49531257152557373, -0.4658627212047577, -0.3477003872394562, 0.18200580775737762, 0.19935929775238037, 0.32874664664268494, -0.0829787626862526, -0.0726211667060852, -0.1762731373310089, 0.06931202858686447, 0.09370756894350052, -0.33753037452697754, -0.45960426330566406, 0.5454404354095459, -0.03487471491098404, -0.4357929527759552, 0.3520253896713257, -0.4224351942539215, -0.5532718300819397, 0.6601115465164185, 0.350612998008728, 1.1236084699630737, -0.26530057191848755, -0.1536923050880432, 0.8514525890350342, 0.5302356481552124, -0.06776158511638641, 0.49759700894355774, 0.24739526212215424, -0.6207665205001831, -0.3938114047050476, -0.9184288382530212, 0.13669385015964508, 0.20346412062644958, -0.8772239685058594, 0.37516337633132935, 0.10001155734062195, -0.3288366496562958, -0.12242218106985092, 0.4510830342769623, -0.588225245475769, 0.0012840203708037734, -0.4285649061203003, 1.0296661853790283, -0.9761607050895691, 0.7896936535835266, 0.8280231952667236, -0.7950503826141357, -1.2302347421646118, -0.046817149966955185, -0.31237784028053284, -0.583164393901825, 0.6047547459602356, 0.058535136282444, 0.09267372637987137, -0.04929317533969879, -0.309851735830307, -0.922576904296875, 1.3172500133514404, 0.36089226603507996, -0.43641260266304016, -0.1603775918483734, 0.04387635737657547, 0.5830221772193909, -0.015691367909312248, 0.18998824059963226, 0.4061691164970398, 0.8293613195419312, -0.153615340590477, -1.2109079360961914, 0.1340453177690506, -0.5552542209625244, -0.030963826924562454, 0.4375820457935333, -0.9731305837631226, 0.807334840297699, 0.17647653818130493, -0.2851635813713074, 0.15108954906463623, 0.5641330480575562, 0.5005224943161011, 0.17321282625198364, 0.5270189642906189, 0.9924665093421936, 0.503348171710968, -0.5447622537612915, 1.099739909172058, -0.4181642532348633, 0.6849694848060608, 1.0859659910202026, 0.18536913394927979, 0.8572161793708801, 0.5443775057792664, -0.3202381134033203, 0.6957749128341675, 0.7914021611213684, -0.2000308632850647, 0.4022524058818817, -0.08941876143217087, -0.05121730640530586, -0.1724727898836136, -0.19241484999656677, -0.5114603042602539, 0.5112190246582031, -0.00522520300000906, -0.18533745408058167, -0.02356218360364437, -0.15774816274642944, 0.48250582814216614, 0.1290510892868042, -0.18771982192993164, 0.7134918570518494, -0.19000555574893951, -0.7218892574310303, 0.6662629246711731, -0.06107265502214432, 0.683074414730072, -0.7352809906005859, 0.08563220500946045, -0.14354178309440613, 0.2251674085855484, -0.011754229664802551, -0.8609766960144043, 0.32724320888519287, 0.16838644444942474, -0.3128719627857208, -0.23454979062080383, 0.3284401595592499, -0.5733709931373596, -0.8666483163833618, 0.5145418047904968, 0.4640964865684509, 0.23813249170780182, 0.2826794385910034, -0.7807170152664185, 0.009449289180338383, 0.20030106604099274, -0.7777001857757568, 0.03627018257975578, 0.8090682029724121, 0.041659511625766754, 0.727261483669281, 0.5177503228187561, 0.19645653665065765, 0.1859212964773178, 0.028553426265716553, 0.6471004486083984, -0.8708786368370056, -0.48411065340042114, -0.8888419270515442, 0.611403226852417, -0.1863945871591568, -0.617875337600708, 0.8033349514007568, 0.9101850986480713, 1.0624808073043823, -0.12180444598197937, 0.4305861294269562, -0.22884242236614227, 0.5137234926223755, -0.7174642086029053, 0.8846582770347595, -0.9755719304084778, -0.026022491976618767, -0.2920829951763153, -0.7647625803947449, -0.30229076743125916, 0.3072819709777832, -0.21997396647930145, 0.03178434073925018, 1.0721367597579956, 0.7327610850334167, 0.0857197716832161, -0.3482987880706787, 0.017136193811893463, 0.46590369939804077, 0.25297123193740845, 0.8844743967056274, 0.27684485912323, -1.0849065780639648, 0.8602609634399414, -0.394082248210907, 0.12119656056165695, -0.024732787162065506, -0.8504762053489685, -0.8946722149848938, -0.7784548997879028, -0.21911028027534485, -0.41800934076309204, -0.20824618637561798, 1.021721363067627, 0.34737715125083923, -1.0728179216384888, -0.26793360710144043, -0.0579141303896904, 0.18321901559829712, -0.28591954708099365, -0.3240613639354706, 0.8918852806091309, -0.22177046537399292, -1.1315836906433105, 0.17966677248477936, 0.01937076821923256, 0.16037562489509583, 0.23629198968410492, -0.1529855728149414, -0.7726166844367981, -0.06049744784832001, 0.3596678376197815, 0.15056411921977997, -0.9541361331939697, -0.2003716379404068, 0.16487857699394226, -0.2700550854206085, 0.2520079016685486, 0.05404345318675041, -0.2579337954521179, 0.35655128955841064, 0.8141160607337952, 0.436989426612854, 0.46949371695518494, -0.02662612497806549, 0.3109320402145386, -0.8385607600212097, 0.3723665177822113, 0.24323683977127075, 0.6030452251434326, 0.2478044182062149, -0.17386417090892792, 0.9353358745574951, 0.37530824542045593, -0.46520426869392395, -1.1196088790893555, -0.09575846046209335, -1.3787702322006226, -0.10060181468725204, 1.0848826169967651, -0.2600419223308563, -0.3753499984741211, 0.1491774469614029, -0.33184415102005005, 0.5884589552879333, -0.45429351925849915, 0.5888426899909973, 1.1318000555038452, 0.3418140411376953, 0.1906651109457016, -0.6318450570106506, 0.3231031000614166, 0.5680801868438721, -0.7910694479942322, -0.13106754422187805, 0.19934633374214172, 0.39653247594833374, 0.44375932216644287, 0.714347243309021, -0.44168582558631897, 0.17217186093330383, -0.14826950430870056, 0.3849581778049469, -0.1546214520931244, -0.04114685580134392, -0.3256678581237793, 0.10260500013828278, -0.2151668518781662, -0.2956370413303375 ]
studio-ousia/luke-japanese-base-lite
studio-ousia
"2022-11-09T06:22:22Z"
24,988
4
transformers
[ "transformers", "pytorch", "luke", "fill-mask", "named entity recognition", "entity typing", "relation classification", "question answering", "ja", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-10-25T09:27:16Z"
--- language: ja thumbnail: https://github.com/studio-ousia/luke/raw/master/resources/luke_logo.png tags: - luke - named entity recognition - entity typing - relation classification - question answering license: apache-2.0 --- ## luke-japanese **luke-japanese** is the Japanese version of **LUKE** (**L**anguage **U**nderstanding with **K**nowledge-based **E**mbeddings), a pre-trained _knowledge-enhanced_ contextualized representation of words and entities. LUKE treats words and entities in a given text as independent tokens, and outputs contextualized representations of them. Please refer to our [GitHub repository](https://github.com/studio-ousia/luke) for more details and updates. This model is a lightweight version which does not contain Wikipedia entity embeddings. Please use the [full version](https://huggingface.co/studio-ousia/luke-japanese-base/) for tasks that use Wikipedia entities as inputs. **luke-japanese**は、単語とエンティティの知識拡張型訓練済み Transformer モデル**LUKE**の日本語版です。LUKE は単語とエンティティを独立したトークンとして扱い、これらの文脈を考慮した表現を出力します。詳細については、[GitHub リポジトリ](https://github.com/studio-ousia/luke)を参照してください。 このモデルは、Wikipedia エンティティのエンベディングを含まない軽量版のモデルです。Wikipedia エンティティを入力として使うタスクには、[full version](https://huggingface.co/studio-ousia/luke-japanese-base/)を使用してください。 ### Experimental results on JGLUE The experimental results evaluated on the dev set of [JGLUE](https://github.com/yahoojapan/JGLUE) are shown as follows: | Model | MARC-ja | JSTS | JNLI | JCommonsenseQA | | ---------------------- | --------- | ------------------- | --------- | -------------- | | | acc | Pearson/Spearman | acc | acc | | **LUKE Japanese base** | **0.965** | **0.916**/**0.877** | **0.912** | **0.842** | | _Baselines:_ | | | Tohoku BERT base | 0.958 | 0.909/0.868 | 0.899 | 0.808 | | NICT BERT base | 0.958 | 0.910/0.871 | 0.902 | 0.823 | | Waseda RoBERTa base | 0.962 | 0.913/0.873 | 0.895 | 0.840 | | XLM RoBERTa base | 0.961 | 0.877/0.831 | 0.893 | 0.687 | The baseline scores are obtained from [here](https://github.com/yahoojapan/JGLUE/blob/a6832af23895d6faec8ecf39ec925f1a91601d62/README.md). ### Citation ```latex @inproceedings{yamada2020luke, title={LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attention}, author={Ikuya Yamada and Akari Asai and Hiroyuki Shindo and Hideaki Takeda and Yuji Matsumoto}, booktitle={EMNLP}, year={2020} } ```
[ -0.6379337310791016, -1.131701946258545, 0.6015820503234863, -0.16486966609954834, -0.19607685506343842, 0.040534988045692444, -0.4640662670135498, -0.5935184955596924, 0.7890896797180176, 0.3363873064517975, -0.5330854654312134, -0.8471120595932007, -0.6721889972686768, 0.10382582247257233, -0.025146348401904106, 0.9776774048805237, -0.386049747467041, 0.0067636314779520035, -0.030768202617764473, -0.12998969852924347, -0.566908061504364, -0.10342443734407425, -0.596861720085144, -0.2696353793144226, 0.30284392833709717, 0.3782190680503845, 0.780153751373291, 0.5066030621528625, 0.598556399345398, 0.34745508432388306, 0.16715309023857117, -0.22016917169094086, -0.4789770841598511, 0.0596875324845314, 0.016087714582681656, -0.4342125654220581, -0.5555145144462585, -0.09011735022068024, 0.7103047966957092, 0.7944753170013428, 0.07804440706968307, 0.3522050082683563, -0.1163225993514061, 0.6829480528831482, -0.7074605226516724, 0.28022336959838867, -0.17030110955238342, 0.07940200716257095, -0.24988697469234467, -0.14409790933132172, -0.1699831336736679, 0.021584616973996162, -0.08051688224077225, -1.0690245628356934, 0.18841296434402466, -0.1826373189687729, 1.2691447734832764, 0.14578314125537872, -0.23798276484012604, -0.10237106680870056, -0.43748027086257935, 0.6755196452140808, -0.673992395401001, 0.5474335551261902, 0.19981443881988525, 0.1927831918001175, -0.12103758007287979, -0.7364490032196045, -0.618270754814148, -0.34697669744491577, -0.28781574964523315, 0.6584871411323547, 0.09206866472959518, -0.131611168384552, 0.39722663164138794, 0.34851592779159546, -0.7535567283630371, 0.017835108563303947, -0.19640523195266724, 0.06883259862661362, 0.7477473616600037, 0.03474230319261551, 0.7635361552238464, -0.5835704803466797, -0.6211778521537781, -0.2923522889614105, -0.5088779330253601, 0.3605060577392578, 0.19498904049396515, 0.3235936462879181, -0.5366353392601013, 0.6309880018234253, -0.299505352973938, 0.5240597128868103, 0.1339300274848938, -0.365790992975235, 0.5338719487190247, -0.42152121663093567, -0.20926037430763245, -0.03946572542190552, 1.1940804719924927, 0.6167111396789551, 0.2371237874031067, -0.0581655353307724, -0.0032928679138422012, -0.00994815956801176, 0.11586520075798035, -0.8748682737350464, 0.03118978440761566, -0.04361019656062126, -0.5496871471405029, 0.06988627463579178, 0.28379085659980774, -0.9095333218574524, -0.006822123192250729, -0.1616785228252411, 0.45905178785324097, -0.4998653531074524, -0.6359248161315918, -0.07689562439918518, -0.0726897269487381, 0.0867522582411766, 0.2539004683494568, -0.8421990871429443, 0.24985884130001068, 0.2798677384853363, 0.602459728717804, -0.03367041051387787, -0.5282366871833801, 0.24011102318763733, 0.37218528985977173, -0.3888115882873535, 0.41817736625671387, -0.463851660490036, -0.7962248921394348, -0.2589907646179199, 0.11471009254455566, -0.19239284098148346, -0.1329479068517685, 0.5234275460243225, -0.38640114665031433, 0.3875391483306885, -0.6230711340904236, -0.8716555237770081, -0.09878065437078476, 0.12719868123531342, -0.6148231029510498, 0.9411688446998596, 0.325551301240921, -0.7190356254577637, 0.5793710350990295, -0.7555335760116577, -0.14844705164432526, 0.24741779267787933, -0.4727081060409546, -0.3491148352622986, -0.1366008222103119, 0.2793218493461609, 0.4735354483127594, -0.2908124625682831, 0.3684140741825104, -0.4067130982875824, -0.48394808173179626, 0.05225827917456627, -0.24418699741363525, 0.9847372770309448, 0.16924385726451874, -0.7283248901367188, -0.13284564018249512, -0.7907981872558594, 0.06743066757917404, 0.7047556042671204, -0.1871783435344696, -0.42243140935897827, -0.3313036561012268, 0.03154352307319641, 0.11977983266115189, 0.4281538128852844, -0.5372803211212158, 0.17162932455539703, -0.3744335174560547, -0.07421007752418518, 0.40914297103881836, 0.271079421043396, 0.6551862359046936, -0.09403929114341736, 0.5704032182693481, -0.09708992391824722, 0.13127925992012024, -0.33660033345222473, -0.6697425246238708, -0.9084368944168091, -0.17430941760540009, 0.12031523883342743, 0.44021090865135193, -0.884495198726654, 0.6532092690467834, -0.6052722930908203, -0.7555387020111084, -0.48877066373825073, 0.03483298048377037, 0.6388719081878662, 0.8415824770927429, 0.6362804770469666, -0.31685250997543335, -0.3868362605571747, -1.044445514678955, -0.2384282946586609, -0.38036835193634033, 0.2513912320137024, 0.18707823753356934, 0.6493843793869019, -0.1670779436826706, 0.65611732006073, -0.4782935380935669, -0.1991596221923828, -0.1910134255886078, -0.1678580492734909, 0.2456982433795929, 0.65180903673172, 0.7513062953948975, -0.7451443076133728, -0.8874018788337708, 0.01577056758105755, -1.199194312095642, 0.08260920643806458, -0.0652862936258316, -0.24708183109760284, 0.23416197299957275, 0.5551626682281494, -0.9946616888046265, 0.5650712251663208, 0.12721394002437592, -0.7824131846427917, 0.3449096083641052, 0.003008021041750908, 0.5263525247573853, -1.4463917016983032, 0.3146302103996277, 0.09736823290586472, -0.09753314405679703, -0.611851155757904, 0.6158434152603149, 0.308782696723938, -0.030247002840042114, -0.25761714577674866, 0.8802641034126282, -0.7432160973548889, 0.09755606204271317, 0.0641934722661972, 0.30395933985710144, 0.2082742303609848, 0.5279518365859985, 0.21631042659282684, 0.8728383183479309, 0.5300124883651733, -0.44397738575935364, 0.24358606338500977, 0.14394564926624298, -0.3864634335041046, 0.6247329115867615, -0.5557883381843567, -0.24749909341335297, -0.1326267272233963, 0.27187472581863403, -0.9304594993591309, -0.3115857243537903, 0.6379596590995789, -0.6783288717269897, 0.8887922167778015, -0.045818835496902466, -0.4305587112903595, -0.45050618052482605, -0.46591898798942566, 0.21512728929519653, 0.5992779731750488, -0.4095035493373871, 0.40696972608566284, 0.32765665650367737, -0.0015016257530078292, -0.8746159076690674, -0.8030362725257874, -0.15202920138835907, -0.14938010275363922, -0.49874061346054077, 0.6454295516014099, -0.18577224016189575, -0.1086878627538681, 0.40804523229599, 0.04421679675579071, 0.1611119657754898, 0.1097952127456665, 0.21195143461227417, 0.616391658782959, -0.4753153622150421, -0.03705425560474396, 0.1616135835647583, -0.1849021166563034, 0.12224678695201874, 0.2328505963087082, 0.42320215702056885, -0.06682487577199936, -0.5230265855789185, -0.4881238639354706, 0.3992000222206116, 0.530920147895813, -0.05859621614217758, 0.7959195971488953, 0.9100419282913208, -0.33114439249038696, 0.22667242586612701, -0.5859764218330383, 0.013385413214564323, -0.4513114392757416, 0.5522435903549194, -0.7220175266265869, -0.9455496072769165, 0.8268463611602783, 0.3180548846721649, 0.013197993859648705, 1.112308144569397, 0.5263959169387817, -0.10847751796245575, 1.015010118484497, 0.1866556704044342, -0.12818270921707153, 0.47812798619270325, -0.6030682325363159, 0.0034839301370084286, -0.960311233997345, -0.3467215895652771, -0.3753065764904022, -0.3011579215526581, -0.9787784218788147, -0.22835350036621094, 0.25217077136039734, 0.3920249938964844, -0.46962156891822815, 0.36587515473365784, -0.5177598595619202, 0.5751996636390686, 0.3922905921936035, -0.017007650807499886, 0.15845857560634613, -0.028000572696328163, -0.14777278900146484, -0.18310871720314026, -0.5422296524047852, -0.4024258255958557, 1.3085297346115112, 0.3235343098640442, 0.6057349443435669, 0.44016265869140625, 1.0946388244628906, -0.037076205015182495, 0.3220684826374054, -0.6366854310035706, 0.6086505651473999, 0.21223168075084686, -0.9702084064483643, -0.49866968393325806, -0.61175936460495, -1.2801589965820312, 0.42152735590934753, -0.2425217479467392, -0.9594074487686157, 0.07528279721736908, -0.38784605264663696, -0.226339653134346, 0.321260929107666, -1.0342042446136475, 0.9722939729690552, 0.0025135520845651627, -0.4257514774799347, -0.03081785887479782, -0.5738205909729004, 0.4876188337802887, 0.23687411844730377, 0.3658725321292877, -0.18219636380672455, -0.19820380210876465, 0.7332389950752258, -0.4139428436756134, 0.7216278910636902, -0.42231836915016174, 0.04302570968866348, 0.4554394781589508, 0.05416446924209595, 0.3001488745212555, 0.6669944524765015, 0.2746255099773407, 0.24644801020622253, 0.14277637004852295, -0.5570895075798035, -0.5745132565498352, 1.2128937244415283, -1.196856141090393, -0.9181342124938965, -0.4502461850643158, -0.25089260935783386, -0.09542174637317657, 0.559131920337677, 0.5191254615783691, 0.2662830650806427, -0.3208840787410736, 0.13288168609142303, 0.5124759078025818, -0.1664671003818512, 0.5672423243522644, 0.746772825717926, -0.5853959918022156, -0.3262481093406677, 0.8616352081298828, 0.4126541018486023, 0.15483662486076355, 0.5271742343902588, 0.015116420574486256, -0.36804264783859253, -0.2732710838317871, -0.9098064303398132, 0.41911715269088745, -0.8619905114173889, -0.16184982657432556, -0.5849365592002869, -0.2435702681541443, -0.5192582607269287, -0.2528241276741028, -0.41138458251953125, -0.3856772780418396, -0.4519873559474945, -0.21157974004745483, 0.18025581538677216, 0.6440742015838623, 0.33728545904159546, -0.14505542814731598, -0.7227437496185303, 0.49782490730285645, 0.14102602005004883, 0.499624639749527, 0.09658598154783249, -0.5197783708572388, -0.3815971612930298, 0.01940719410777092, -0.13524962961673737, -1.119910717010498, 0.22113105654716492, -0.13656401634216309, 0.8846048712730408, 0.16593290865421295, -0.10600167512893677, 0.7830122113227844, -0.35319381952285767, 1.1457209587097168, 0.5150347948074341, -0.8158607482910156, 0.6796807646751404, -0.48668739199638367, 0.592584490776062, 0.9706515073776245, 0.4105207026004791, -0.4660611152648926, -0.437684565782547, -0.9802412986755371, -0.7819567322731018, 0.7907610535621643, 0.1801586002111435, 0.31953737139701843, -0.2615683972835541, 0.3987095057964325, -0.007441834080964327, -0.051069315522909164, -0.9045146703720093, -0.9407387375831604, -0.1555778533220291, -0.33925580978393555, -0.2596469819545746, -0.19136309623718262, 0.07573866844177246, -0.44569313526153564, 0.7950839996337891, 0.09406931698322296, 0.3640478849411011, 0.45143529772758484, -0.30066072940826416, -0.37956351041793823, 0.16594478487968445, 0.48260921239852905, 0.584463894367218, -0.233535498380661, -0.22523915767669678, 0.19871172308921814, -0.6554898619651794, 0.1374770551919937, 0.3177022337913513, -0.6016201972961426, 0.32207322120666504, 0.6978175640106201, 0.9834066033363342, 0.44002068042755127, -0.43028753995895386, 0.6944684982299805, -0.16598980128765106, -0.15615995228290558, -0.5348755717277527, 0.37477150559425354, 0.11206140369176865, 0.1817581206560135, 0.23366019129753113, -0.11641357094049454, 0.23584945499897003, -0.479560911655426, -0.25937309861183167, 0.3593151867389679, -0.3615497648715973, -0.2966108024120331, 0.6528317332267761, 0.15763121843338013, -0.07163668423891068, 0.04640552029013634, -0.34788045287132263, -0.17396260797977448, 0.7219868302345276, 0.5853150486946106, 0.7374853491783142, -0.34152907133102417, 0.12085863202810287, 0.9623900055885315, 0.1414618045091629, 0.15530560910701752, 0.43719109892845154, -0.031655363738536835, -0.6991711258888245, -0.21882875263690948, -0.5994911193847656, -0.05983341485261917, 0.2947404682636261, -0.7790337204933167, 0.08702775835990906, -0.539276659488678, -0.30354681611061096, 0.02249450422823429, 0.33636221289634705, -0.9128026366233826, 0.24565328657627106, 0.2707897424697876, 0.8089441061019897, -0.5664083957672119, 0.813276469707489, 0.9060871601104736, -0.932409942150116, -1.0970401763916016, -0.035338714718818665, -0.10397077351808548, -0.8041342496871948, 0.4356803894042969, 0.22242599725723267, 0.06369444727897644, 0.19080504775047302, -0.2292005568742752, -1.460214376449585, 1.4505784511566162, 0.30099090933799744, -0.5573015809059143, 0.17710477113723755, 0.0713895857334137, 0.5752198100090027, -0.19131115078926086, 0.5461277365684509, 0.5200896263122559, 0.654417872428894, -0.3563196361064911, -0.9722613096237183, 0.2799568474292755, -0.7589733600616455, 0.10995164513587952, 0.31143853068351746, -0.908178985118866, 0.7931780815124512, -0.07727169245481491, -0.2898273766040802, -0.06989754736423492, 0.7008593082427979, 0.35965412855148315, 0.29570868611335754, 0.27496272325515747, 0.9228983521461487, 0.6725035905838013, -0.24931809306144714, 1.356336236000061, -0.4724997282028198, 0.6411185264587402, 1.0936275720596313, 0.03902250900864601, 0.6848149299621582, 0.5136878490447998, -0.6362732648849487, 0.8374622464179993, 0.47623300552368164, 0.060856662690639496, 0.44080454111099243, -0.22665491700172424, -0.05526137351989746, 0.11646782606840134, -0.08748266100883484, -0.9448122978210449, 0.4153088331222534, 0.27776581048965454, -0.4921547770500183, 0.03343049809336662, -0.10918568074703217, 0.42220553755760193, 0.22044992446899414, -0.3856804370880127, 0.7413724660873413, 0.01855909265577793, -0.9712936878204346, 0.7784433364868164, 0.11944498866796494, 0.6639973521232605, -0.7086862325668335, 0.13389526307582855, -0.19486290216445923, -0.18487876653671265, -0.15068458020687103, -1.0532020330429077, -0.1603984832763672, 0.07283695042133331, -0.2266017645597458, -0.05053470656275749, 0.846462607383728, -0.4302719831466675, -0.6875599026679993, 0.5832604765892029, 0.811581552028656, -0.08427641540765762, 0.45503368973731995, -1.0293798446655273, -0.004441442433744669, -0.028393877670168877, -0.9533276557922363, 0.46320027112960815, 0.31707605719566345, 0.2575296461582184, 0.27924397587776184, 0.5560062527656555, -0.026630057021975517, 0.04522119462490082, 0.5297601222991943, 0.7552196979522705, -0.6993039846420288, -0.5908554792404175, -0.9960178732872009, 0.6087148785591125, -0.2148028463125229, -0.558616042137146, 1.0226448774337769, 0.5675166845321655, 1.1054728031158447, -0.1503896415233612, 0.7101168632507324, -0.18728217482566833, 0.5137385725975037, -0.6939504146575928, 0.8891346454620361, -1.0206516981124878, -0.0956825241446495, -0.5457616448402405, -0.9833276271820068, -0.18944351375102997, 0.507350742816925, -0.28847572207450867, 0.6014204621315002, 0.8123360872268677, 0.5748273134231567, 0.07144780457019806, -0.16938342154026031, 0.2766711711883545, 0.0974363163113594, 0.15298491716384888, 0.7143389582633972, 0.6652938723564148, -0.6952528357505798, 0.14628364145755768, -0.5754735469818115, 0.07480134069919586, -0.1438150703907013, -0.334418386220932, -1.00734543800354, -0.6835741996765137, -0.3563249409198761, -0.29197263717651367, -0.2947436273097992, 0.9504861235618591, 0.5479376316070557, -0.733876645565033, -0.09993303567171097, -0.1285339593887329, -0.03019457310438156, 0.006883691996335983, -0.3150787651538849, 0.48695430159568787, -0.31334835290908813, -0.9386665225028992, 0.42614442110061646, 0.15228576958179474, 0.16241466999053955, -0.29129236936569214, -0.38091176748275757, -0.25206172466278076, -0.2397812306880951, 0.2127900868654251, 0.18986719846725464, -0.9698402285575867, -0.27784091234207153, -0.08857179433107376, -0.42094042897224426, 0.08841398358345032, 0.2875214219093323, -0.6914944648742676, 0.7012578845024109, 0.41657590866088867, 0.4402523636817932, 0.7050943970680237, -0.21549780666828156, -0.0005937583046033978, -0.7459196448326111, 0.2335725575685501, -0.012708939611911774, 0.7651288509368896, 0.378608763217926, -0.5713716745376587, 0.5924113988876343, 0.4279419779777527, -0.2735882103443146, -0.5680530071258545, 0.041083432734012604, -1.0459095239639282, -0.5357136726379395, 1.1432589292526245, -0.2079867720603943, -0.30980154871940613, 0.23287136852741241, -0.06073421984910965, 0.6173187494277954, -0.574394166469574, 0.4913794994354248, 0.837068498134613, 0.21888567507266998, -0.20538005232810974, -0.6787961721420288, 0.3428385555744171, 0.414057195186615, -0.8682736754417419, -0.39614787697792053, 0.3605266511440277, 0.31871461868286133, 0.476280152797699, 0.9465132355690002, -0.015892039984464645, 0.4339865744113922, 0.12644656002521515, 0.28412315249443054, -0.09417127817869186, -0.05358758196234703, -0.1607748568058014, 0.129805326461792, 0.05551939830183983, 0.05416114628314972 ]
facebook/dragon-plus-query-encoder
facebook
"2023-02-17T18:30:37Z"
24,933
9
transformers
[ "transformers", "pytorch", "bert", "fill-mask", "feature-extraction", "arxiv:2302.07452", "autotrain_compatible", "endpoints_compatible", "region:us" ]
feature-extraction
"2023-02-15T17:50:48Z"
--- tags: - feature-extraction pipeline_tag: feature-extraction --- DRAGON+ is a BERT-base sized dense retriever initialized from [RetroMAE](https://huggingface.co/Shitao/RetroMAE) and further trained on the data augmented from MS MARCO corpus, following the approach described in [How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrieval](https://arxiv.org/abs/2302.07452). <p align="center"> <img src="https://raw.githubusercontent.com/facebookresearch/dpr-scale/main/dragon/images/teaser.png" width="600"> </p> The associated GitHub repository is available here https://github.com/facebookresearch/dpr-scale/tree/main/dragon. We use asymmetric dual encoder, with two distinctly parameterized encoders. The following models are also available: Model | Initialization | MARCO Dev | BEIR | Query Encoder Path | Context Encoder Path |---|---|---|---|---|--- DRAGON+ | Shitao/RetroMAE| 39.0 | 47.4 | [facebook/dragon-plus-query-encoder](https://huggingface.co/facebook/dragon-plus-query-encoder) | [facebook/dragon-plus-context-encoder](https://huggingface.co/facebook/dragon-plus-context-encoder) DRAGON-RoBERTa | RoBERTa-base | 39.4 | 47.2 | [facebook/dragon-roberta-query-encoder](https://huggingface.co/facebook/dragon-roberta-query-encoder) | [facebook/dragon-roberta-context-encoder](https://huggingface.co/facebook/dragon-roberta-context-encoder) ## Usage (HuggingFace Transformers) Using the model directly available in HuggingFace transformers . ```python import torch from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained('facebook/dragon-plus-query-encoder') query_encoder = AutoModel.from_pretrained('facebook/dragon-plus-query-encoder') context_encoder = AutoModel.from_pretrained('facebook/dragon-plus-context-encoder') # We use msmarco query and passages as an example query = "Where was Marie Curie born?" contexts = [ "Maria Sklodowska, later known as Marie Curie, was born on November 7, 1867.", "Born in Paris on 15 May 1859, Pierre Curie was the son of Eugène Curie, a doctor of French Catholic origin from Alsace." ] # Apply tokenizer query_input = tokenizer(query, return_tensors='pt') ctx_input = tokenizer(contexts, padding=True, truncation=True, return_tensors='pt') # Compute embeddings: take the last-layer hidden state of the [CLS] token query_emb = query_encoder(**query_input).last_hidden_state[:, 0, :] ctx_emb = context_encoder(**ctx_input).last_hidden_state[:, 0, :] # Compute similarity scores using dot product score1 = query_emb @ ctx_emb[0] # 396.5625 score2 = query_emb @ ctx_emb[1] # 393.8340 ```
[ -0.40289542078971863, -0.6573846936225891, 0.1533062905073166, 0.3243199288845062, -0.10645316541194916, -0.16153347492218018, -0.22834162414073944, -0.4720609784126282, 0.6552321314811707, 0.2955295741558075, -0.8001101613044739, -0.5117479562759399, -0.5688394904136658, -0.04494616016745567, -0.33158257603645325, 0.8611835241317749, 0.050812844187021255, 0.24453845620155334, 0.09481170028448105, -0.15394729375839233, 0.06119745224714279, -0.6875380277633667, -1.0077483654022217, -0.26015591621398926, 0.6453083157539368, -0.07914546132087708, 0.8042709827423096, 0.8292507529258728, 0.31012171506881714, 0.3921859562397003, -0.31247976422309875, 0.25431913137435913, -0.5619122982025146, -0.11805736273527145, 0.00846254825592041, -0.4011997580528259, -0.5062737464904785, -0.04094979912042618, 0.6245690584182739, 0.6114279627799988, 0.11789765954017639, 0.10547208786010742, 0.05752000957727432, 0.5248764753341675, -0.5212448835372925, -0.021605677902698517, -0.502507209777832, 0.25860488414764404, 0.12930046021938324, -0.10139891505241394, -0.2090245485305786, -0.577743649482727, 0.0990295261144638, -0.6727027297019958, 0.31435149908065796, -0.20858357846736908, 1.298570156097412, 0.1991049200296402, -0.4480647146701813, -0.39532071352005005, -0.30023255944252014, 0.7242013812065125, -0.6351191997528076, 0.40453046560287476, 0.264191597700119, 0.18681178987026215, -0.17690008878707886, -1.0154472589492798, -0.7640236020088196, -0.2269706428050995, -0.1978108286857605, -0.1500912457704544, 0.021288612857460976, 0.010673015378415585, 0.33656132221221924, 0.49721458554267883, -0.6165603995323181, -0.11347249150276184, -0.5188078880310059, -0.33907878398895264, 0.7901024222373962, 0.076488196849823, 0.5141476392745972, -0.24810732901096344, -0.44533583521842957, -0.32856929302215576, -0.5645610690116882, 0.3163810670375824, 0.28803351521492004, 0.2575567662715912, -0.2962687611579895, 0.6608921885490417, -0.0834687352180481, 0.8187425136566162, 0.5782911777496338, 0.08497191965579987, 0.6771887540817261, -0.3149636387825012, -0.18266579508781433, 0.1430140882730484, 0.9312930703163147, 0.31094640493392944, 0.1863948106765747, -0.1072026789188385, 0.0011702972697094083, 0.005694389808923006, 0.05953565984964371, -1.1574606895446777, -0.1220456212759018, 0.36908888816833496, -0.8594597578048706, -0.2763323187828064, 0.22467318177223206, -0.3252909779548645, -0.30690711736679077, -0.14683124423027039, 0.646948516368866, -0.4514492452144623, -0.45919880270957947, 0.36800017952919006, -0.43602490425109863, 0.5411708354949951, -0.20341049134731293, -0.929826021194458, 0.17436960339546204, 0.7730044722557068, 0.6433344483375549, -0.021432170644402504, -0.40974709391593933, -0.27586838603019714, -0.06091129779815674, -0.31312766671180725, 0.5000051259994507, -0.4892263114452362, -0.45239442586898804, 0.030410801991820335, 0.4735417068004608, -0.22946323454380035, -0.6147421002388, 0.9868305325508118, -0.4303775429725647, 0.27228283882141113, -0.5644075870513916, -0.6923350095748901, -0.3429044187068939, 0.3304024934768677, -0.7430788278579712, 1.0713108777999878, 0.23646041750907898, -0.7261286377906799, 0.5410562753677368, -0.42578598856925964, -0.44538405537605286, -0.028538484126329422, -0.2179139256477356, -0.4179210364818573, -0.07252173125743866, 0.40886062383651733, 0.7500481009483337, 0.16027545928955078, 0.06331425905227661, -0.6642327904701233, -0.753655731678009, 0.25505146384239197, -0.15912213921546936, 1.3305120468139648, 0.19488154351711273, -0.40810415148735046, 0.045971304178237915, -0.8904410004615784, 0.24892206490039825, 0.0427267961204052, -0.43612974882125854, -0.314444363117218, -0.04591767489910126, 0.16320981085300446, 0.2324809581041336, 0.5698378682136536, -0.8203470706939697, 0.3637356162071228, -0.4326433539390564, 0.4918777644634247, 0.4007328748703003, -0.046546369791030884, 0.4235699474811554, -0.2089531421661377, -0.02248305268585682, -0.08647403866052628, 0.29101768136024475, -0.09396756440401077, -0.41903451085090637, -0.6804009675979614, -0.3549160361289978, -0.0014689170056954026, 0.43518492579460144, -0.7373912334442139, 0.7460147738456726, -0.31235066056251526, -0.6453664302825928, -0.7398793697357178, -0.09839676320552826, 0.28562507033348083, 0.2793215811252594, 0.3284745514392853, -0.1813797503709793, -0.6513243913650513, -0.7966482043266296, -0.1768716275691986, -0.03645637631416321, -0.17326505482196808, 0.6551849842071533, 0.40914660692214966, -0.4277305006980896, 0.5813631415367126, -0.5272555351257324, -0.17863799631595612, -0.13805502653121948, -0.10509678721427917, 0.6963180303573608, 0.8496382236480713, 0.8099821209907532, -1.0380576848983765, -0.5489668250083923, -0.06172439455986023, -0.8799326419830322, 0.45769211649894714, -0.09941162914037704, -0.2501371204853058, -0.13029368221759796, 0.13137701153755188, -0.9608742594718933, 0.3559894561767578, 0.45008352398872375, -0.6052897572517395, 0.49675506353378296, -0.2700357437133789, 0.3694561719894409, -1.2829248905181885, 0.032321613281965256, 0.043998219072818756, 0.05699615553021431, -0.5025299191474915, 0.24822093546390533, 0.2469601184129715, -0.15114234387874603, -0.45420047640800476, 0.5131285786628723, -0.5442401170730591, -0.078379787504673, -0.05524551495909691, -0.146969273686409, 0.17348390817642212, 0.5356391072273254, 0.16371016204357147, 0.5574946403503418, 0.774810791015625, -0.7308331727981567, 0.7655237913131714, 0.26209756731987, -0.19840970635414124, 0.4594528079032898, -0.7867861986160278, 0.20691977441310883, 0.10019873827695847, 0.2251267433166504, -0.8685094714164734, -0.17838531732559204, 0.28201910853385925, -0.8756939172744751, 0.4653562009334564, -0.10255654901266098, -0.5654105544090271, -0.626518964767456, -0.7120792269706726, 0.44905269145965576, 0.3143864870071411, -0.9495481252670288, 0.6337896585464478, 0.28085944056510925, 0.2505857050418854, -0.8455188274383545, -0.9818358421325684, -0.05326429009437561, 0.002721100579947233, -0.9201512336730957, 0.7321374416351318, -0.19277052581310272, 0.27068087458610535, 0.368170827627182, 0.0726325511932373, -0.4605255126953125, -0.1893874555826187, 0.11491469293832779, 0.27846452593803406, -0.4214951992034912, -0.32943177223205566, 0.14388948678970337, -0.02201450802385807, 0.18825843930244446, -0.34943222999572754, 0.6147729158401489, -0.0736984834074974, -0.36812156438827515, -0.5819959044456482, 0.11595834046602249, 0.3492470681667328, -0.1268097460269928, 0.8343614935874939, 1.1960389614105225, -0.6150693893432617, -0.18328827619552612, -0.5438944101333618, -0.28524601459503174, -0.5960479974746704, 0.5290333032608032, -0.42946213483810425, -1.0169048309326172, 0.7825965881347656, 0.374652624130249, -0.2033323496580124, 0.4309666156768799, 0.6284359097480774, 0.030631478875875473, 1.2100751399993896, 0.5925154089927673, -0.3176634907722473, 0.4320054352283478, -0.661789059638977, -0.007703237235546112, -0.7726916074752808, -0.5552836656570435, -0.38934028148651123, -0.5231865048408508, -0.8260525465011597, -0.20148351788520813, 0.09405001252889633, 0.005268151871860027, -0.47424429655075073, 0.804679274559021, -0.9560956954956055, 0.31754636764526367, 0.5760937929153442, 0.4648393392562866, -0.2704354226589203, 0.12029258906841278, 0.03000640869140625, -0.1448148488998413, -0.4977068305015564, 0.19594311714172363, 1.02277410030365, 0.129543736577034, 0.7796468138694763, -0.09712851792573929, 0.6960540413856506, 0.05698764696717262, -0.054476771503686905, -0.6428572535514832, 0.47420188784599304, -0.3929062783718109, -0.8857415318489075, 0.04680716246366501, -0.533607006072998, -0.8830526471138, 0.212283656001091, -0.27049195766448975, -0.7780988216400146, 0.6860212087631226, -0.10369022190570831, -0.4404880404472351, 0.37129905819892883, -0.5565934181213379, 0.8760687112808228, -0.3453349173069, -0.4641663730144501, -0.07427124679088593, -0.515504777431488, 0.20464657247066498, 0.3929173946380615, -0.19250443577766418, 0.25021985173225403, -0.06198208034038544, 0.595061719417572, -0.23044191300868988, 0.7053113579750061, -0.4432987868785858, 0.20415888726711273, 0.37221238017082214, -0.12442085891962051, 0.37298882007598877, 0.03217320144176483, -0.16613708436489105, -0.0010988927679136395, 0.1379166692495346, -0.40411582589149475, -0.6186082363128662, 1.0386353731155396, -0.9632843136787415, -0.16068123281002045, -0.10834648460149765, -0.40136387944221497, 0.17195717990398407, 0.29113054275512695, 0.5407648086547852, 0.6174850463867188, 0.1748518943786621, 0.5379731059074402, 0.8325088024139404, -0.5277973413467407, 0.3836140036582947, 0.35933998227119446, -0.15096575021743774, -0.5751968622207642, 1.1393828392028809, 0.27833694219589233, -0.2528759241104126, 0.4805329442024231, -0.008108203299343586, -0.5182868242263794, -0.2565346658229828, -0.3065187633037567, 0.4190913438796997, -0.598504364490509, -0.09017304331064224, -0.6891165971755981, -0.6393002867698669, -0.4556325078010559, -0.15838417410850525, -0.40302184224128723, -0.397466778755188, -0.530601978302002, -0.2791464030742645, 0.2690238356590271, 0.42205753922462463, -0.21681110560894012, 0.14992184937000275, -0.7161178588867188, 0.4095751643180847, 0.24432259798049927, 0.39058205485343933, -0.06912289559841156, -0.5177751183509827, -0.19633281230926514, -0.008198649622499943, -0.03182169049978256, -0.8248412609100342, 0.45385390520095825, 0.21722574532032013, 0.7781509757041931, 0.5984490513801575, -0.12986387312412262, 0.8893751502037048, -0.26991888880729675, 0.9348447322845459, 0.0038834773004055023, -0.6792008280754089, 0.2131907194852829, -0.2502403259277344, -0.07377395033836365, 0.3915172219276428, 0.5215421915054321, -0.41677215695381165, -0.013483641669154167, -0.5447539687156677, -1.0010019540786743, 0.6228605508804321, 0.038377560675144196, 0.5231228470802307, -0.04371603950858116, 0.7748004198074341, -0.029166506603360176, 0.10412777960300446, -0.9205297231674194, -0.6408981680870056, -0.3642718195915222, -0.20973089337348938, 0.3016919493675232, -0.55437171459198, 0.13239724934101105, -0.7101311087608337, 0.702494740486145, 0.14107412099838257, 0.5088958144187927, 0.337083637714386, 0.06772417575120926, 0.060296401381492615, -0.260284423828125, 0.4021712839603424, 0.509379506111145, -0.387809693813324, -0.21661674976348877, 0.12105490267276764, -0.5005999207496643, -0.17086152732372284, 0.5140904188156128, -0.20829695463180542, 0.2167401760816574, 0.44303661584854126, 0.8039503693580627, 0.26438242197036743, -0.20573432743549347, 0.6989184021949768, -0.12884066998958588, -0.2935344874858856, -0.5258247256278992, 0.05964617058634758, 0.21546612679958344, 0.4099228084087372, 0.6474018096923828, -0.04745905473828316, 0.34580618143081665, -0.21587243676185608, 0.5118662714958191, 0.443801611661911, -0.5229436755180359, -0.4237958788871765, 0.8463647961616516, -0.03722839802503586, -0.09106756746768951, 0.5513002872467041, -0.2694956660270691, -0.5388864278793335, 0.8282185196876526, 0.5676982998847961, 1.0221858024597168, -0.06181599572300911, 0.17284810543060303, 0.7525249719619751, 0.23781779408454895, -0.015073086135089397, 0.627678632736206, -0.2615392208099365, -0.9501384496688843, -0.42299896478652954, -0.5948789715766907, 0.03310293331742287, 0.1884460151195526, -0.9953635334968567, 0.2982882857322693, -0.3782002925872803, -0.33291372656822205, -0.028749287128448486, 0.3322252333164215, -0.7441726922988892, 0.30673283338546753, 0.13091272115707397, 1.0555922985076904, -0.5228404402732849, 0.9756328463554382, 0.8416439294815063, -0.5517841577529907, -1.2028120756149292, -0.27688002586364746, -0.11966706812381744, -1.0551259517669678, 0.6972384452819824, 0.28467199206352234, 0.09972931444644928, 0.019544944167137146, -0.7844017744064331, -0.8699561953544617, 1.1846638917922974, 0.4006330668926239, -0.34820759296417236, -0.05447762832045555, -0.14334242045879364, 0.6307146549224854, -0.386805921792984, 0.41141578555107117, 0.37653669714927673, 0.3781260550022125, 0.05826104059815407, -0.6254861950874329, 0.15638242661952972, -0.5743396878242493, 0.04217341169714928, -0.22214792668819427, -0.6363371014595032, 1.2721155881881714, -0.10500377416610718, -0.1928756833076477, 0.24432332813739777, 0.7158477902412415, 0.29587385058403015, 0.17106418311595917, 0.27441200613975525, 0.7143466472625732, 0.46010270714759827, -0.14240066707134247, 1.1897540092468262, -0.605970561504364, 0.7015838027000427, 0.7330040335655212, 0.057398565113544464, 0.8365219831466675, 0.24538199603557587, -0.19712410867214203, 0.5887258052825928, 0.8983440399169922, -0.3401651680469513, 0.5832140445709229, -0.055678173899650574, -0.22293634712696075, -0.02233726531267166, 0.06584908813238144, -0.7724328637123108, 0.09604532271623611, 0.34286925196647644, -0.6612791419029236, -0.0456036701798439, -0.1208050474524498, 0.34209638833999634, -0.08362390100955963, -0.45479249954223633, 0.6114240884780884, -0.01902434416115284, -0.41158410906791687, 0.8737188577651978, -0.00977740716189146, 1.1108359098434448, -0.6829422116279602, 0.03280803561210632, -0.3151806890964508, 0.4879305064678192, -0.5774673819541931, -0.9061523675918579, 0.20894628763198853, -0.24278965592384338, -0.15020230412483215, 0.11876252293586731, 0.8498114347457886, -0.6594647169113159, -0.7525162100791931, 0.6024109721183777, 0.15506994724273682, 0.1205911859869957, -0.10878823697566986, -1.1209330558776855, 0.16533958911895752, 0.12608103454113007, -0.5139191150665283, 0.2110218107700348, 0.5154023766517639, 0.3329733908176422, 0.6571617126464844, 0.7855541110038757, 0.21653029322624207, 0.3216560482978821, 0.059951551258563995, 1.2006412744522095, -0.6609438061714172, -0.4210691452026367, -0.9764701128005981, 0.36744213104248047, -0.1968977153301239, -0.3162769675254822, 0.8475765585899353, 0.6740493774414062, 0.9434190988540649, -0.0583081915974617, 0.5588176846504211, -0.35213667154312134, 0.36867645382881165, -0.2122436910867691, 1.1379958391189575, -0.9138720631599426, -0.08872562646865845, -0.1753004491329193, -0.9314605593681335, -0.15311658382415771, 0.7065579891204834, -0.06388171017169952, 0.14469683170318604, 0.37845543026924133, 1.0211435556411743, -0.11867935210466385, -0.17840488255023956, 0.06172662600874901, 0.25307756662368774, 0.20424045622348785, 0.5549384355545044, 0.638664722442627, -0.5466963648796082, 0.6391263008117676, -0.49759742617607117, -0.12229038029909134, 0.04801211133599281, -0.652621865272522, -0.9725328683853149, -0.4691181182861328, -0.018034473061561584, -0.5974835157394409, 0.10643882304430008, 0.9713467955589294, 0.8286671042442322, -0.9765254259109497, -0.25311392545700073, 0.23017941415309906, 0.019388647750020027, -0.34532153606414795, -0.3072117865085602, 0.797874927520752, -0.16622057557106018, -0.7867681384086609, 0.28443026542663574, -0.01210754830390215, -0.20517092943191528, -0.24252064526081085, -0.30230778455734253, -0.035553228110075, -0.20206762850284576, 0.41686615347862244, 0.3504738211631775, -0.553458034992218, -0.302323579788208, 0.09183832257986069, -0.2557632327079773, 0.12316621840000153, 0.46638837456703186, -0.6639288067817688, 0.519025444984436, 0.7042961120605469, 0.8159276843070984, 0.8044673800468445, 0.029600631445646286, 0.4105781018733978, -0.7717767357826233, 0.3944908380508423, 0.1117883026599884, 0.48196837306022644, 0.45474520325660706, -0.663329541683197, 0.3631240427494049, 0.41311126947402954, -0.45465701818466187, -0.8149162530899048, -0.0840030163526535, -1.025166630744934, -0.2311246693134308, 1.0291576385498047, -0.3130502700805664, -0.5107344388961792, 0.3772346079349518, -0.2575880289077759, 0.335137277841568, -0.38333430886268616, 0.5080639719963074, 0.35418277978897095, -0.1473936289548874, -0.12865568697452545, -0.2428651601076126, 0.5188759565353394, 0.12133367359638214, -0.26404833793640137, -0.532106339931488, 0.13705827295780182, 0.4650937020778656, 0.24781431257724762, 0.6620030999183655, -0.32518884539604187, 0.25610196590423584, 0.2350551038980484, 0.13417690992355347, -0.2905932366847992, 0.015926744788885117, -0.16528357565402985, 0.23408806324005127, -0.3666677474975586, -0.4801657199859619 ]
naver-clova-ix/donut-base
naver-clova-ix
"2022-08-13T08:27:12Z"
24,896
101
transformers
[ "transformers", "pytorch", "vision-encoder-decoder", "donut", "image-to-text", "vision", "arxiv:2111.15664", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
image-to-text
"2022-07-19T13:49:17Z"
--- license: mit tags: - donut - image-to-text - vision --- # Donut (base-sized model, pre-trained only) Donut model pre-trained-only. It was introduced in the paper [OCR-free Document Understanding Transformer](https://arxiv.org/abs/2111.15664) by Geewok et al. and first released in [this repository](https://github.com/clovaai/donut). Disclaimer: The team releasing Donut did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description Donut consists of a vision encoder (Swin Transformer) and a text decoder (BART). Given an image, the encoder first encodes the image into a tensor of embeddings (of shape batch_size, seq_len, hidden_size), after which the decoder autoregressively generates text, conditioned on the encoding of the encoder. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/donut_architecture.jpg) ## Intended uses & limitations This model is meant to be fine-tuned on a downstream task, like document image classification or document parsing. See the [model hub](https://huggingface.co/models?search=donut) to look for fine-tuned versions on a task that interests you. ### How to use We refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/donut) which includes code examples. ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2111-15664, author = {Geewook Kim and Teakgyu Hong and Moonbin Yim and Jinyoung Park and Jinyeong Yim and Wonseok Hwang and Sangdoo Yun and Dongyoon Han and Seunghyun Park}, title = {Donut: Document Understanding Transformer without {OCR}}, journal = {CoRR}, volume = {abs/2111.15664}, year = {2021}, url = {https://arxiv.org/abs/2111.15664}, eprinttype = {arXiv}, eprint = {2111.15664}, timestamp = {Thu, 02 Dec 2021 10:50:44 +0100}, biburl = {https://dblp.org/rec/journals/corr/abs-2111-15664.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.32637056708335876, -0.5621145367622375, 0.3383644223213196, -0.23254962265491486, -0.03805443271994591, -0.1326560378074646, -0.10055018216371536, -0.40852445363998413, 0.2861516773700714, 0.6485499739646912, -0.5810807347297668, -0.21773894131183624, -0.7678715586662292, 0.03398226946592331, -0.4250057339668274, 1.1553313732147217, -0.2099614292383194, 0.038841817528009415, -0.236546590924263, -0.010577388107776642, -0.022742347791790962, -0.5794469118118286, -0.3284085690975189, -0.4466838836669922, 0.1815963089466095, 0.351180762052536, 0.7391236424446106, 0.5418065190315247, 0.5858824849128723, 0.32736480236053467, -0.25746381282806396, -0.19349749386310577, -0.4368741810321808, -0.3043915331363678, 0.039990294724702835, -0.8130704164505005, -0.8897817730903625, 0.11500079929828644, 0.3005490005016327, 0.5940318703651428, 0.20734068751335144, 0.14135655760765076, -0.09951546788215637, 0.5098073482513428, -0.4790050685405731, 0.022339876741170883, -0.4255461096763611, 0.018540844321250916, -0.14022810757160187, 0.3018138110637665, -0.4078180491924286, -0.2561298906803131, -0.028048161417245865, -0.6982100605964661, 0.6501075625419617, 0.06582212448120117, 1.5451774597167969, 0.16611067950725555, -0.1891956478357315, -0.2079073041677475, -0.7475246787071228, 0.8494517207145691, -0.42946863174438477, 0.6697458028793335, 0.3979731798171997, 0.3451632857322693, 0.14319545030593872, -1.010105013847351, -0.7896958589553833, -0.36412927508354187, -0.550329864025116, 0.28796622157096863, -0.412749320268631, -0.23218485713005066, 0.5153128504753113, 0.6465112566947937, -0.5383378267288208, -0.12060333788394928, -0.5943913459777832, -0.018983976915478706, 0.5478979349136353, -0.17667649686336517, 0.507068932056427, -0.47892341017723083, -0.5601837635040283, -0.35826388001441956, -0.3549845218658447, 0.12730269134044647, 0.21834209561347961, -0.07443895190954208, -0.5563598275184631, 0.5804973244667053, 0.19498446583747864, 0.3225416839122772, 0.3901411294937134, 0.035990506410598755, 0.6050551533699036, -0.2926645576953888, -0.3787800669670105, -0.03762187063694, 1.0769097805023193, 0.2948918044567108, 0.3183097839355469, -0.19867153465747833, -0.40233519673347473, 0.16680878400802612, 0.6617624163627625, -0.7818562388420105, -0.32747915387153625, -0.08352720737457275, -0.4260501265525818, -0.37532538175582886, 0.12455205619335175, -0.6560423970222473, 0.07251299172639847, -0.2682296931743622, 0.25652357935905457, -0.454373300075531, -0.639644205570221, -0.07456973195075989, -0.03167593851685524, 0.3257153332233429, 0.3840855658054352, -0.8607801795005798, 0.5033036470413208, 0.4217289090156555, 0.7690839767456055, -0.0033134848345071077, -0.09480550140142441, -0.22790732979774475, -0.0792185589671135, -0.3353274464607239, 0.7484472990036011, -0.3639177978038788, -0.4921558201313019, -0.21614181995391846, 0.502435028553009, -0.17612873017787933, -0.5368885397911072, 1.0274080038070679, -0.45884519815444946, 0.0804038867354393, -0.2696954905986786, -0.29107755422592163, -0.20663680136203766, 0.3315628468990326, -0.8451864719390869, 1.15631103515625, 0.44472450017929077, -0.9915773272514343, 0.34253767132759094, -0.6980829238891602, -0.23151805996894836, -0.016658028587698936, -0.15605783462524414, -0.4929945170879364, 0.35198846459388733, 0.4144206941127777, 0.28877943754196167, -0.12951411306858063, 0.03395829722285271, -0.17300790548324585, -0.1295694261789322, 0.0964084044098854, -0.014350106939673424, 0.851563572883606, 0.07679025828838348, -0.12742768228054047, 0.22687111794948578, -0.5920558571815491, -0.31882181763648987, 0.8643347024917603, 0.17093847692012787, -0.1647726446390152, -0.5011863112449646, 0.428972452878952, 0.11460389941930771, 0.293154239654541, -0.7673026323318481, 0.428047239780426, -0.45034149289131165, 0.4438138008117676, 0.41399314999580383, -0.46585923433303833, 0.7924546599388123, -0.5191027522087097, 0.49551764130592346, 0.13949452340602875, 0.30815839767456055, -0.3407417833805084, -0.4398740530014038, -0.9484180808067322, -0.21213091909885406, 0.43970274925231934, 0.6630561947822571, -0.4249480664730072, 0.5270297527313232, -0.5071171522140503, -0.7268190383911133, -0.6116354465484619, -0.09821276366710663, 0.20769500732421875, 0.6561970114707947, 0.4486313760280609, -0.2825128138065338, -0.44656670093536377, -0.9475551247596741, 0.02798260562121868, 0.0160747729241848, -0.0320640429854393, 0.27073487639427185, 0.5869618654251099, -0.20889098942279816, 0.9862567186355591, -0.5944646000862122, -0.37774398922920227, -0.5424026846885681, -0.07583986222743988, 0.39860907196998596, 0.5435903668403625, 0.8857264518737793, -0.8420422077178955, -0.6461178064346313, -0.08948139101266861, -0.6255022287368774, -0.1124359741806984, 0.053640641272068024, -0.21890248358249664, 0.2975955903530121, 0.4476170539855957, -0.8370290994644165, 0.8703797459602356, 0.4198881685733795, -0.05880681797862053, 0.505021870136261, -0.21854767203330994, 0.13987526297569275, -1.0830976963043213, 0.17488156259059906, 0.03783395141363144, -0.397032231092453, -0.6388167142868042, -0.07804743945598602, 0.3659480810165405, -0.08919261395931244, -0.40043726563453674, 0.8895376920700073, -0.44780233502388, 0.17637771368026733, -0.23937562108039856, 0.2930549383163452, 0.2821328043937683, 0.5017085671424866, 0.25130945444107056, 0.40425485372543335, 0.5199666023254395, -0.4146287441253662, 0.2242240458726883, 0.508540689945221, -0.12184499949216843, 0.7998277544975281, -0.7893170118331909, 0.17533251643180847, -0.1461520791053772, 0.22801311314105988, -1.0670185089111328, -0.2424096018075943, 0.4933639466762543, -0.5717380046844482, 0.612138569355011, -0.37889808416366577, -0.7929850220680237, -0.7072213888168335, -0.0826578363776207, 0.2641691565513611, 0.7725008726119995, -0.6229020357131958, 0.8283538818359375, 0.1746368259191513, 0.16388186812400818, -0.4164596498012543, -0.9248219132423401, -0.4197710454463959, 0.06803789734840393, -0.8707339763641357, 0.7524683475494385, -0.27368220686912537, 0.20028649270534515, 0.28604811429977417, -0.37397173047065735, -0.23767268657684326, -0.22476200759410858, 0.45747771859169006, 0.369049996137619, -0.18217211961746216, -0.087198905646801, 0.09255913645029068, -0.44634607434272766, -0.15726150572299957, 0.2095019817352295, 0.5840343832969666, -0.13542503118515015, -0.24914070963859558, -0.6884598135948181, 0.16300179064273834, 0.4868352711200714, -0.1835596263408661, 0.5922160148620605, 0.9375192523002625, -0.5791030526161194, 0.1252497434616089, -0.6107625961303711, -0.2648703157901764, -0.4831307828426361, 0.08672879636287689, -0.5712423920631409, -0.5465522408485413, 0.6185150146484375, -0.048200130462646484, 0.05886353552341461, 0.8116415143013, 0.4403349459171295, 0.04339442029595375, 0.6372891664505005, 0.7985698580741882, 0.136637344956398, 0.5353743433952332, -0.44418540596961975, 0.2940990626811981, -0.975226879119873, -0.2728106677532196, -0.45685431361198425, -0.35245582461357117, -0.3684161901473999, -0.22919616103172302, 0.19847293198108673, 0.6572139263153076, -0.131611168384552, 0.6842435598373413, -0.7558081150054932, 0.3526730239391327, 0.5312201380729675, -0.0449376180768013, 0.22034308314323425, -0.04677845910191536, -0.367977499961853, -0.11183828860521317, -0.4196566045284271, -0.609545111656189, 0.9596867561340332, 0.3450649380683899, 0.771683394908905, 0.0017221180023625493, 0.7559458613395691, -0.1186932921409607, 0.35875383019447327, -0.9031473994255066, 0.44781816005706787, -0.16327939927577972, -0.7940458059310913, 0.28505781292915344, -0.33532097935676575, -1.0690356492996216, -0.15568332374095917, -0.2842338979244232, -0.9144978523254395, -0.023936234414577484, 0.18901881575584412, -0.17873750627040863, 0.6161184310913086, -0.9136264324188232, 0.9779962301254272, -0.4852256774902344, 0.023663874715566635, 0.1871018260717392, -0.536651611328125, 0.21662883460521698, 0.002788191195577383, 0.11807500571012497, 0.07745302468538284, 0.1545465737581253, 0.74045330286026, -0.3750576972961426, 0.8162415623664856, -0.1364540010690689, 0.20948688685894012, 0.15834377706050873, 0.11434345692396164, 0.41096624732017517, 0.0848783627152443, 0.11081735789775848, 0.7165557742118835, 0.3433033525943756, -0.25500157475471497, -0.49857696890830994, 0.6971374154090881, -1.0528532266616821, -0.457040935754776, -0.5382488965988159, -0.2963559627532959, 0.2077474594116211, 0.6066510081291199, 0.6496780514717102, 0.09443192929029465, -0.2541821599006653, 0.04077424108982086, 0.5147005915641785, -0.24462249875068665, 0.5516964793205261, 0.15235358476638794, -0.44328171014785767, -0.4098021388053894, 0.46880242228507996, 0.18279460072517395, 0.07582055777311325, 0.5558552742004395, 0.38698434829711914, -0.2529282867908478, -0.1633249819278717, -0.6117984056472778, 0.6821328401565552, -0.628993809223175, -0.2598998546600342, -1.044284462928772, -0.6436988115310669, -0.6533182859420776, -0.4328651428222656, -0.7346316576004028, -0.29763704538345337, -0.5485643744468689, 0.07780888676643372, 0.43971526622772217, 0.9184175133705139, -0.03225845471024513, 0.7724856734275818, -0.9230031967163086, 0.44455161690711975, -0.05272788181900978, 0.4978499412536621, 0.146896630525589, -0.5924111604690552, -0.15785938501358032, -0.14337043464183807, -0.5819950103759766, -0.8680200576782227, 0.4381234645843506, -0.2304932326078415, 0.7284770607948303, 0.30466705560684204, 0.17091378569602966, 0.3295426070690155, -0.6156960725784302, 0.8739137649536133, 0.45153898000717163, -0.905245840549469, 0.46603482961654663, -0.062297772616147995, 0.3044803738594055, 0.24368998408317566, 0.5911354422569275, -0.4740039110183716, 0.21898822486400604, -0.965692400932312, -0.7912487983703613, 1.1397278308868408, 0.31333673000335693, 0.3757328987121582, 0.22103142738342285, 0.33364784717559814, 0.315390944480896, 0.05477641895413399, -0.7923428416252136, -0.44500046968460083, -0.5738469362258911, -0.3268607556819916, 0.24112731218338013, -0.3613801896572113, -0.12878219783306122, -0.3465573191642761, 0.515049159526825, 0.29778602719306946, 0.6180935502052307, 0.261994332075119, -0.3570292592048645, -0.1828990876674652, 0.04924856871366501, 0.5188746452331543, 0.3408427834510803, -0.4472441077232361, -0.24482811987400055, -0.11342435330152512, -0.7920295000076294, -0.22822265326976776, 0.15931597352027893, -0.11996296048164368, 0.02946474589407444, 0.327615350484848, 0.9547197222709656, 0.02704583667218685, -0.28786399960517883, 0.8189001083374023, -0.2114727795124054, -0.44674772024154663, -0.6668586730957031, 0.11860402673482895, 0.07661567628383636, 0.22246460616588593, 0.276286244392395, 0.1853223294019699, -0.28912124037742615, 0.03540901839733124, 0.22224391996860504, 0.10795356333255768, -0.4560994803905487, -0.683470606803894, 0.686895489692688, -0.04803766310214996, -0.4254833161830902, 0.6417505145072937, -0.3774054944515228, -0.4963613748550415, 0.44739776849746704, 0.5814799070358276, 0.8937548398971558, -0.2571234405040741, -0.006755233742296696, 0.6666572690010071, 0.5127328634262085, 0.017251286655664444, 0.1729849874973297, 0.030532460659742355, -0.7875813245773315, -0.057414568960666656, -0.7364227175712585, -0.1380976289510727, 0.4628155529499054, -0.6749918460845947, 0.6398166418075562, -0.6571821570396423, -0.3877320885658264, 0.13650201261043549, -0.05568413808941841, -1.133302092552185, 0.27656394243240356, 0.14805014431476593, 0.8536764979362488, -0.7113316655158997, 0.6853033304214478, 0.9213279485702515, -0.59611576795578, -0.6005706191062927, 0.09551632404327393, 0.035990696400403976, -0.8372268676757812, 0.8335685729980469, 0.2904263138771057, 0.21229670941829681, -0.190082848072052, -0.6372929215431213, -0.9737103581428528, 0.9368683099746704, 0.25973206758499146, -0.6033847332000732, -0.2469869703054428, -0.10777818411588669, 0.27344441413879395, -0.3718050718307495, 0.6800952553749084, 0.16549745202064514, 0.3685450851917267, 0.4114169478416443, -1.1179990768432617, 0.10156127065420151, -0.3185766041278839, -0.13286080956459045, 0.20691746473312378, -0.707780122756958, 0.8977717757225037, -0.12282703816890717, -0.17250730097293854, 0.02433759905397892, 0.5590632557868958, -0.13418208062648773, 0.20581164956092834, 0.5866381525993347, 0.9362878799438477, 0.5206172466278076, -0.26448386907577515, 1.0835702419281006, -0.1767156571149826, 0.5523132681846619, 1.016046404838562, 0.09539233148097992, 0.5934231281280518, 0.18688379228115082, -0.20290414988994598, 0.4453526437282562, 0.6266300678253174, -0.2326606810092926, 0.49272459745407104, 0.00003387645119801164, 0.34910616278648376, -0.2009415626525879, 0.006384895183146, -0.41788992285728455, 0.42658019065856934, 0.446835458278656, -0.5887944102287292, -0.29353100061416626, -0.019204001873731613, 0.32658281922340393, -0.1558176577091217, -0.18034441769123077, 0.5277912020683289, 0.22625228762626648, -0.11166632175445557, 0.670354425907135, -0.06181478500366211, 0.7495093941688538, -0.5486996173858643, 0.1562872976064682, -0.102765291929245, 0.0920046865940094, -0.3565904200077057, -0.6350587606430054, 0.5183610320091248, 0.013408041559159756, -0.435637503862381, -0.10277616232633591, 0.6121910214424133, -0.016767412424087524, -0.8280897736549377, 0.4202895164489746, 0.4124981760978699, 0.21613362431526184, 0.12326215952634811, -0.9482290744781494, 0.33063942193984985, -0.20254990458488464, -0.4589272141456604, 0.1546676903963089, 0.386523574590683, 0.02109147235751152, 0.22582438588142395, 0.6287821531295776, -0.08914867788553238, 0.04689205810427666, 0.06489204615354538, 1.0022475719451904, -0.6648041009902954, -0.42478668689727783, -0.5811248421669006, 0.7716283798217773, -0.1334419697523117, -0.17623499035835266, 0.4700838625431061, 0.3810579478740692, 1.2717515230178833, -0.21303020417690277, 0.7535303831100464, -0.2935105264186859, 0.5260763764381409, -0.2258567363023758, 0.9162286520004272, -1.0357694625854492, -0.34500178694725037, -0.4306190311908722, -0.9153669476509094, -0.42161864042282104, 0.8340809345245361, -0.6365898847579956, 0.34067338705062866, 0.7566860914230347, 0.6955586671829224, -0.676119327545166, 0.0003390642814338207, 0.32010284066200256, 0.17328208684921265, 0.21110884845256805, 0.16191551089286804, 0.46469175815582275, -0.7221024632453918, 0.5753505825996399, -0.44502878189086914, -0.31182554364204407, -0.44153085350990295, -0.7499322295188904, -1.2030680179595947, -0.6043996214866638, -0.45902687311172485, -0.46087461709976196, -0.5909333825111389, 0.7366644740104675, 1.0194048881530762, -0.7668597102165222, 0.06491851061582565, 0.09439759701490402, 0.0033168375957757235, -0.08754990249872208, -0.2330053597688675, 0.6122497916221619, -0.1161297932267189, -0.9752694368362427, -0.04955899342894554, 0.04956959933042526, 0.24784229695796967, 0.05527486652135849, 0.05492551624774933, 0.015905633568763733, 0.029636701568961143, 0.2849663496017456, 0.04298531636595726, -0.7492398023605347, -0.06919358670711517, 0.30205267667770386, -0.11858256906270981, 0.5249717235565186, 0.6361058354377747, -0.43013978004455566, 0.4935793876647949, 0.4959677755832672, 0.5299373269081116, 0.8753572106361389, -0.19234417378902435, 0.057531509548425674, -0.6894731521606445, 0.28453126549720764, 0.09483497589826584, 0.45002326369285583, 0.48733070492744446, -0.4680916666984558, 0.3976645767688751, 0.49321043491363525, -0.4980751574039459, -0.7628616690635681, 0.42108243703842163, -1.400004506111145, -0.04741359129548073, 0.9147843718528748, -0.18982931971549988, -0.6503596305847168, 0.30326348543167114, -0.19591820240020752, 0.5235828757286072, -0.582879364490509, 0.3105383515357971, 0.5457287430763245, -0.07753030955791473, -0.6255826950073242, -0.5856755375862122, 0.2975430488586426, 0.035693053156137466, -0.4785704016685486, -0.17040938138961792, 0.06862691789865494, 0.44667768478393555, 0.6917431354522705, 0.5733277201652527, -0.30246323347091675, -0.14987453818321228, 0.13252028822898865, 0.3630948066711426, -0.11031374335289001, -0.20702487230300903, 0.00399448536336422, -0.09684259444475174, -0.22480358183383942, -0.23571787774562836 ]
GanjinZero/coder_eng
GanjinZero
"2023-03-22T08:22:16Z"
24,870
3
transformers
[ "transformers", "pytorch", "safetensors", "bert", "feature-extraction", "biomedical", "en", "license:apache-2.0", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:04Z"
--- language: - en license: apache-2.0 tags: - bert - biomedical --- CODER: Knowledge infused cross-lingual medical term embedding for term normalization. English Version. Github Link: https://github.com/GanjinZero/CODER ``` @article{YUAN2022103983, title = {CODER: Knowledge-infused cross-lingual medical term embedding for term normalization}, journal = {Journal of Biomedical Informatics}, pages = {103983}, year = {2022}, issn = {1532-0464}, doi = {https://doi.org/10.1016/j.jbi.2021.103983}, url = {https://www.sciencedirect.com/science/article/pii/S1532046421003129}, author = {Zheng Yuan and Zhengyun Zhao and Haixia Sun and Jiao Li and Fei Wang and Sheng Yu}, keywords = {medical term normalization, cross-lingual, medical term representation, knowledge graph embedding, contrastive learning} } ```
[ 0.07255956530570984, -0.5993506908416748, 0.1891082525253296, 0.18782731890678406, -0.4233003556728363, 0.21346062421798706, -0.3251044750213623, -0.4055098295211792, 0.8163696527481079, 0.2854904234409332, 0.01303726527839899, -0.9304625391960144, -0.7299473285675049, 0.17971932888031006, 0.21282429993152618, 1.0715422630310059, -0.1634887158870697, 0.5153348445892334, -0.3004668354988098, -0.43279650807380676, -0.028484687209129333, -0.28224441409111023, -0.6888343095779419, -0.4323459565639496, 0.425523042678833, 0.08339383453130722, 0.8476983904838562, 0.7666200399398804, 0.435109406709671, 0.17807333171367645, -0.010761433281004429, 0.117633156478405, -0.35708871483802795, -0.20438629388809204, -0.15416528284549713, -0.30582255125045776, -0.49322646856307983, -0.3646034896373749, 0.6543983221054077, 0.7660927772521973, 0.04046689346432686, -0.21375258266925812, -0.1330447942018509, 0.709344744682312, -0.308607816696167, 0.28290262818336487, -0.42616599798202515, 0.19176708161830902, -0.038930509239435196, -0.4613788425922394, -0.07606348395347595, -0.49722713232040405, 0.09980771690607071, -0.8399094939231873, 0.0038578694220632315, 0.07003391534090042, 1.4429748058319092, 0.28866082429885864, -0.5514787435531616, -0.1254374086856842, -0.3189321756362915, 0.5569614768028259, -0.8225016593933105, 0.568350613117218, 0.03887828812003136, 0.2661898136138916, 0.17893709242343903, -1.3649483919143677, -0.573979914188385, -0.12730227410793304, -0.30090975761413574, 0.17087112367153168, -0.22383210062980652, 0.19829340279102325, -0.03663545101881027, 0.3779330551624298, -0.5773785710334778, -0.09060778468847275, -0.6130102276802063, -0.4540444612503052, 0.6137795448303223, 0.008271733298897743, 0.6725027561187744, -0.4534705579280853, -0.581778883934021, 0.10938887298107147, -0.6791634559631348, -0.046610016375780106, -0.10641659796237946, -0.020907778292894363, -0.6332855224609375, 0.6129551529884338, -0.2712051570415497, 0.7672867178916931, 0.06949881464242935, -0.32420122623443604, 0.911597728729248, -0.5273288488388062, -0.08460605889558792, -0.052768003195524216, 1.1317344903945923, 0.5767703056335449, 0.013514411635696888, -0.4620128870010376, 0.11255602538585663, -0.24900813400745392, 0.1397063136100769, -1.0754525661468506, -0.4688204824924469, 0.2616226375102997, -0.6057027578353882, -0.06527386605739594, 0.24244344234466553, -0.629079282283783, -0.45483121275901794, -0.030126888304948807, 0.4457792639732361, -0.5566384792327881, -0.17490240931510925, 0.5036841630935669, 0.041163165122270584, 0.29046255350112915, -0.06876607984304428, -0.5155473947525024, 0.10708639025688171, 0.4808340072631836, 0.7038609385490417, -0.09354068338871002, -0.19089585542678833, -0.20384475588798523, 0.1637263298034668, 0.0016432491829618812, 0.4275827407836914, -0.3066689372062683, -0.43976330757141113, -0.11160162836313248, 0.2684657871723175, -0.05198737606406212, -0.29307740926742554, 0.36371931433677673, -0.6254441142082214, 0.276297926902771, -0.10370398312807083, -0.6388044357299805, -0.30489349365234375, 0.31080305576324463, -0.5487911701202393, 0.6658040881156921, 0.037241630256175995, -1.108436942100525, 0.32583656907081604, -0.8126637935638428, -0.6341431140899658, 0.40674450993537903, -0.6279299259185791, -0.3702205717563629, -0.4583161473274231, 0.34764522314071655, 0.521679699420929, -0.29783523082733154, 0.3858245015144348, -0.052740368992090225, -0.03357851877808571, 0.13183310627937317, 0.12935017049312592, 0.983751654624939, 0.20023737847805023, -0.27416688203811646, 0.1703178882598877, -0.7210621237754822, -0.08369714766740799, 0.2551129460334778, -0.023781733587384224, -0.7667701244354248, -0.029235702008008957, -0.030784931033849716, 0.24665483832359314, 0.7001994848251343, -0.8730376362800598, 0.1944313794374466, -0.5729528665542603, 0.37863144278526306, 0.20156919956207275, 0.17259027063846588, 0.2521548271179199, -0.35050249099731445, 0.6089521646499634, 0.27620357275009155, 0.12512145936489105, 0.26186904311180115, -0.6962686777114868, -0.6194841861724854, -0.2970888018608093, 0.6680624485015869, 0.7262255549430847, -1.2818046808242798, 0.6112515330314636, -0.7131697535514832, -0.7664419412612915, -0.9714916348457336, 0.02012288197875023, 0.6998283267021179, 0.7733626961708069, 0.7501078844070435, -0.1911696493625641, -0.6673115491867065, -0.8785756230354309, -0.3510395288467407, 0.06783360242843628, -0.1187419667840004, 0.5949647426605225, 0.5196846127510071, -1.038712501525879, 0.9094273447990417, -1.006397008895874, -0.333500474691391, -0.10011845827102661, -0.02129071019589901, 0.10336610674858093, 0.6753564476966858, 0.37475085258483887, -0.9477953314781189, -0.8206536173820496, 0.4100440442562103, -0.7646540999412537, -0.04667449742555618, -0.04904736578464508, -0.17243055999279022, 0.3776269257068634, 0.51380455493927, -0.062360335141420364, 0.36412331461906433, 0.6269352436065674, -0.5304037928581238, 0.3233852684497833, -0.3518846333026886, 0.27320000529289246, -1.7903575897216797, 0.3565995991230011, -0.0104055255651474, 0.03467352315783501, -0.48539361357688904, 0.23557411134243011, 0.28828904032707214, 0.2789474129676819, -0.4807179868221283, 0.753814697265625, -0.602739155292511, 0.4729594588279724, 0.16473399102687836, 0.2799680233001709, 0.08124097436666489, 0.31988319754600525, 0.07840008288621902, 0.6512064933776855, 0.6639957427978516, -0.5120000839233398, 0.4663630425930023, 0.321178138256073, -0.08083224296569824, 0.35824054479599, -1.0760849714279175, -0.14361026883125305, 0.21249067783355713, 0.16720283031463623, -0.5418045520782471, -0.22411467134952545, 0.40209510922431946, -0.6900040507316589, 0.3623078763484955, -0.16804777085781097, -0.49038612842559814, -0.10115547478199005, -0.46556559205055237, 0.5767562389373779, 0.5116240382194519, -0.34739261865615845, 0.48106786608695984, 0.8002318143844604, 0.08016514033079147, -0.6240673065185547, -1.0228086709976196, 0.007288310676813126, 0.06270169466733932, -0.7006033658981323, 0.8374701738357544, -0.15773528814315796, 0.12741857767105103, 0.1868242472410202, 0.019699381664395332, -0.19942931830883026, -0.32288622856140137, -0.10608252882957458, 0.3572729825973511, -0.25789886713027954, 0.43455591797828674, 0.5160947442054749, -0.20135466754436493, 0.08226985484361649, -0.13130168616771698, 0.28939419984817505, -0.04995172470808029, -0.4614943861961365, -0.09921952337026596, 0.3786662220954895, 0.3202516436576843, -0.22249135375022888, 0.6819515228271484, 0.9400621056556702, -0.7474703788757324, 0.36088746786117554, -0.43082311749458313, -0.04001055657863617, -0.4605192244052887, 0.5845378637313843, -0.31354454159736633, -1.2689393758773804, 0.7689207792282104, 0.09556576609611511, -0.1656053513288498, 0.6687335968017578, 0.4587007164955139, 0.3205278813838959, 0.9452360272407532, 0.5993058681488037, 0.08280976116657257, -0.2013729363679886, -0.30984631180763245, 0.4598025679588318, -1.0404943227767944, -0.5553984045982361, -0.3544774353504181, -0.18569031357765198, -1.021758794784546, -0.7207956314086914, 0.6330211758613586, 0.0723598375916481, -0.0984959751367569, 0.2397792637348175, -0.7710424661636353, 0.2950611114501953, 0.17464374005794525, 0.3982529640197754, 0.27407148480415344, -0.06825195997953415, -0.5082891583442688, -0.2264605462551117, -0.7938315272331238, -0.0795535296201706, 1.0565637350082397, 0.3335098624229431, 0.7886973023414612, 0.045191459357738495, 0.955828070640564, -0.19611714780330658, -0.09480243176221848, -0.9182608127593994, 0.3389439284801483, -0.4930225610733032, -0.46248742938041687, -0.2281038910150528, -0.6627702713012695, -1.4437633752822876, 0.014856955036520958, -0.18037042021751404, -0.5079858303070068, 0.3408925533294678, -0.13564038276672363, -0.19544051587581635, 0.5552668571472168, -0.4152785539627075, 1.0431387424468994, 0.029737018048763275, -0.03416556492447853, -0.06838861107826233, -0.9998183846473694, 0.20289009809494019, 0.07475695013999939, 0.31174710392951965, 0.24473288655281067, -0.5664913654327393, 1.052852988243103, -0.40508121252059937, 0.8620724678039551, -0.2861790359020233, 0.04390162602066994, -0.2395385503768921, -0.3108021318912506, 0.1623920351266861, 0.6233677864074707, 0.37955230474472046, 0.3923623859882355, 0.10154379159212112, -0.6764683723449707, -0.38417595624923706, 0.7843921780586243, -0.7328253388404846, -0.5146693587303162, -0.32819676399230957, -0.6552894115447998, -0.2561781108379364, 0.39195871353149414, 0.6190527677536011, 0.29459789395332336, 0.016811292618513107, 0.44219693541526794, 0.9312804937362671, -0.5366119146347046, -0.08310168981552124, 0.4014083743095398, -0.2206239253282547, -0.7867444753646851, 0.9628404974937439, 0.20109744369983673, 0.01808672957122326, 0.6600745916366577, 0.2765537202358246, -0.05008199065923691, -0.520012378692627, -0.5302935242652893, 0.6010057330131531, -0.5896839499473572, -0.3944428563117981, -1.0203176736831665, -0.5585944652557373, -0.5213445425033569, -0.31151753664016724, -0.26277002692222595, -0.4272127151489258, -0.371552050113678, -0.04589854180812836, 0.8176395893096924, 0.2628139853477478, -0.033368565142154694, -0.08775708079338074, -1.1172305345535278, 0.5643370151519775, 0.07517601549625397, 0.5798240900039673, -0.21326018869876862, -0.30779388546943665, -0.8604649305343628, 0.1517317146062851, 0.0697924792766571, -0.8462360501289368, 0.36029574275016785, -0.017176082357764244, 0.7982671856880188, 0.5298197269439697, 0.2339622676372528, 0.7724387645721436, -0.3218003809452057, 0.86998450756073, 0.23213596642017365, -0.801611602306366, 0.49614229798316956, -0.02671496942639351, 0.4080318212509155, 0.6292855143547058, 0.6152089238166809, -0.8500158786773682, -0.33959898352622986, -0.5643438696861267, -1.3280103206634521, 0.29128870368003845, -0.36187103390693665, 0.37691038846969604, -0.013012959621846676, 0.08063864707946777, 0.35888925194740295, 0.04834365099668503, -0.9131333231925964, -0.7547084093093872, -0.22406542301177979, -0.34503063559532166, 0.22173438966274261, -0.2060912698507309, -0.2842464745044708, -0.7158616185188293, 0.6892383098602295, -0.2570481598377228, 0.45821934938430786, 0.5852654576301575, -0.3484897017478943, 0.09053598344326019, 0.28585055470466614, 0.7570835947990417, 0.32800161838531494, 0.005815238691866398, -0.09307533502578735, 0.013623645529150963, -0.8300702571868896, -0.29754266142845154, 0.5798482894897461, -0.18648399412631989, 0.21751165390014648, 0.36157259345054626, 0.7399085760116577, 0.3626827299594879, -0.5115540027618408, 0.5839427709579468, 0.08608438819646835, -0.37354493141174316, -0.012591686099767685, -0.19935670495033264, 0.2402612417936325, 0.09566193073987961, 0.292236864566803, -0.050630804151296616, 0.3467421233654022, 0.1719610095024109, 0.13294737040996552, 0.11547862738370895, -0.5098248720169067, -0.07351293414831161, 0.6729660630226135, 0.25985535979270935, 0.13111943006515503, 0.19766435027122498, -0.5245087742805481, -0.7317156791687012, 0.4004131257534027, 0.48533788323402405, 0.914057731628418, -0.04112246632575989, 0.015355058945715427, 0.5123956799507141, 0.24415996670722961, 0.3455043137073517, 0.6787127256393433, 0.12452670186758041, -0.784912109375, -0.345430850982666, -0.33419254422187805, -0.20855571329593658, -0.1174934059381485, -0.5376957654953003, 0.18405842781066895, -0.13101473450660706, 0.03425109013915062, -0.16673918068408966, 0.1685650497674942, -0.4335964620113373, 0.15989366173744202, -0.23094040155410767, 1.0748223066329956, -0.5521557927131653, 1.1245603561401367, 1.3028507232666016, -0.6043123602867126, -1.0066167116165161, 0.14121702313423157, -0.2795878052711487, -0.6706387996673584, 0.411426842212677, -0.13107047975063324, 0.09547656774520874, 0.05896563455462456, -0.244735449552536, -0.7717384099960327, 1.460227370262146, 0.12047239392995834, -0.33230236172676086, -0.1284199208021164, 0.09289775788784027, 0.7079571485519409, -0.40526077151298523, -0.2096998244524002, 0.2604808211326599, 0.5578886866569519, -0.07905097305774689, -0.9921970367431641, 0.46754053235054016, -0.7450178861618042, 0.15529626607894897, 0.08336901664733887, -0.5439608693122864, 0.6377951502799988, -0.2901262044906616, -0.1330423802137375, -0.25178271532058716, 0.5972591638565063, 0.31109434366226196, 0.43302133679389954, 0.16749252378940582, 0.8133075833320618, 0.552210807800293, -0.07363194972276688, 0.909777045249939, -0.813618004322052, 0.3541370630264282, 0.8684365749359131, -0.024679262191057205, 0.3907647132873535, 0.6593330502510071, -0.3425275683403015, 0.8953998684883118, 0.5259345173835754, -0.14947547018527985, 0.6026304960250854, 0.0990535244345665, -0.057029206305742264, 0.22383661568164825, 0.0788717046380043, -0.8990933299064636, 0.2650163471698761, 0.5157214403152466, -0.6329455375671387, 0.09351170063018799, 0.08059581369161606, 0.43997374176979065, -0.04026320204138756, -0.23291738331317902, 0.7891190052032471, 0.0064825089648365974, -0.26325806975364685, 0.8577009439468384, 0.09954436868429184, 1.1103004217147827, -0.710010826587677, 0.09287767112255096, -0.1809089034795761, -0.1474626213312149, -0.4608321487903595, -0.5612788200378418, 0.3496631383895874, -0.33524182438850403, -0.07345762848854065, 0.34811320900917053, 0.6451476812362671, -0.7800358533859253, -0.3883574604988098, 0.5864744782447815, 0.6180141568183899, -0.004142996855080128, 0.7157809138298035, -0.8811918497085571, -0.4411681592464447, 0.209064781665802, -0.2783988416194916, 0.26376062631607056, 0.610510528087616, -0.07207999378442764, 0.5340312719345093, 0.5136024355888367, 0.3410060703754425, -0.006564181763678789, 0.1593838483095169, 0.965048611164093, -0.6387711763381958, -0.6934669017791748, -0.6610851883888245, 0.6349361538887024, -0.18306946754455566, -0.4522337317466736, 0.6172456741333008, 0.8954017162322998, 1.039149522781372, -0.37607309222221375, 0.6156251430511475, -0.2825605571269989, 0.4380027949810028, -0.4777214825153351, 1.3968435525894165, -0.8715724349021912, 0.16086243093013763, -0.22717110812664032, -0.28355053067207336, -0.9007572531700134, 0.34004729986190796, -0.07448817044496536, 0.10211613774299622, 1.0746541023254395, 1.0092837810516357, -0.0009992647683247924, -0.45230308175086975, 0.32041501998901367, 0.3112713098526001, -0.12541307508945465, 0.6219078302383423, -0.20560714602470398, -0.5264410972595215, 0.5280000567436218, -0.4354593753814697, -0.2267265021800995, -0.3580876886844635, -0.7557821273803711, -0.6603211164474487, -0.6324305534362793, -0.586431622505188, -0.39912402629852295, 0.0058059715665876865, 1.0430744886398315, 0.500333309173584, -1.0187697410583496, -0.1087135449051857, 0.1330854445695877, 0.31394609808921814, -0.2483307421207428, -0.24484217166900635, 0.7760520577430725, -0.235273078083992, -0.5893861055374146, 0.00019423199410084635, 0.12897056341171265, -0.13266322016716003, -0.11492323130369186, -0.4565843343734741, -0.3074438273906708, -0.07614197582006454, 0.2557096481323242, 0.3358381688594818, -0.8237900733947754, -0.006532254628837109, 0.0565468966960907, -0.6678823232650757, 0.3052574694156647, 0.49070775508880615, -0.7491273880004883, 0.7407416701316833, 0.7713943123817444, 0.8593538403511047, 0.09606263041496277, -0.47622397541999817, 0.4027668237686157, -0.754550039768219, -0.06374678760766983, 0.282635897397995, 0.5575998425483704, 0.3721385598182678, -0.5286802053451538, 0.7081549763679504, 0.46208760142326355, -0.4232829213142395, -0.6005021333694458, 0.08016049861907959, -1.2500959634780884, -0.2291918694972992, 1.243109107017517, -0.3330245614051819, -0.03879236802458763, -0.09213627129793167, -0.21175028383731842, 0.8759192824363708, -0.3283047378063202, 0.8679931163787842, 0.2501702308654785, 0.14488911628723145, -0.011597728356719017, -0.3052484691143036, 0.5342510938644409, 0.2427757829427719, -0.9253401160240173, -0.47366824746131897, 0.14532965421676636, 0.28145772218704224, 0.35158777236938477, 0.5639634132385254, -0.5844492316246033, 0.3983592987060547, -0.1085454523563385, 0.43339839577674866, -0.25940924882888794, 0.23313015699386597, -0.5098259449005127, -0.1750282496213913, -0.24571365118026733, -0.2425847053527832 ]
flaubert/flaubert_base_cased
flaubert
"2021-05-19T16:54:23Z"
24,854
3
transformers
[ "transformers", "pytorch", "flaubert", "fill-mask", "bert", "language-model", "flue", "french", "bert-base", "flaubert-base", "cased", "fr", "dataset:flaubert", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: fr license: mit datasets: - flaubert metrics: - flue tags: - bert - language-model - flaubert - flue - french - bert-base - flaubert-base - cased --- # FlauBERT: Unsupervised Language Model Pre-training for French **FlauBERT** is a French BERT trained on a very large and heterogeneous French corpus. Models of different sizes are trained using the new CNRS (French National Centre for Scientific Research) [Jean Zay](http://www.idris.fr/eng/jean-zay/ ) supercomputer. Along with FlauBERT comes [**FLUE**](https://github.com/getalp/Flaubert/tree/master/flue): an evaluation setup for French NLP systems similar to the popular GLUE benchmark. The goal is to enable further reproducible experiments in the future and to share models and progress on the French language.For more details please refer to the [official website](https://github.com/getalp/Flaubert). ## FlauBERT models | Model name | Number of layers | Attention Heads | Embedding Dimension | Total Parameters | | :------: | :---: | :---: | :---: | :---: | | `flaubert-small-cased` | 6 | 8 | 512 | 54 M | | `flaubert-base-uncased` | 12 | 12 | 768 | 137 M | | `flaubert-base-cased` | 12 | 12 | 768 | 138 M | | `flaubert-large-cased` | 24 | 16 | 1024 | 373 M | **Note:** `flaubert-small-cased` is partially trained so performance is not guaranteed. Consider using it for debugging purpose only. ## Using FlauBERT with Hugging Face's Transformers ```python import torch from transformers import FlaubertModel, FlaubertTokenizer # Choose among ['flaubert/flaubert_small_cased', 'flaubert/flaubert_base_uncased', # 'flaubert/flaubert_base_cased', 'flaubert/flaubert_large_cased'] modelname = 'flaubert/flaubert_base_cased' # Load pretrained model and tokenizer flaubert, log = FlaubertModel.from_pretrained(modelname, output_loading_info=True) flaubert_tokenizer = FlaubertTokenizer.from_pretrained(modelname, do_lowercase=False) # do_lowercase=False if using cased models, True if using uncased ones sentence = "Le chat mange une pomme." token_ids = torch.tensor([flaubert_tokenizer.encode(sentence)]) last_layer = flaubert(token_ids)[0] print(last_layer.shape) # torch.Size([1, 8, 768]) -> (batch size x number of tokens x embedding dimension) # The BERT [CLS] token correspond to the first hidden state of the last layer cls_embedding = last_layer[:, 0, :] ``` **Notes:** if your `transformers` version is <=2.10.0, `modelname` should take one of the following values: ``` ['flaubert-small-cased', 'flaubert-base-uncased', 'flaubert-base-cased', 'flaubert-large-cased'] ``` ## References If you use FlauBERT or the FLUE Benchmark for your scientific publication, or if you find the resources in this repository useful, please cite one of the following papers: [LREC paper](http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.302.pdf) ``` @InProceedings{le2020flaubert, author = {Le, Hang and Vial, Lo\"{i}c and Frej, Jibril and Segonne, Vincent and Coavoux, Maximin and Lecouteux, Benjamin and Allauzen, Alexandre and Crabb\'{e}, Beno\^{i}t and Besacier, Laurent and Schwab, Didier}, title = {FlauBERT: Unsupervised Language Model Pre-training for French}, booktitle = {Proceedings of The 12th Language Resources and Evaluation Conference}, month = {May}, year = {2020}, address = {Marseille, France}, publisher = {European Language Resources Association}, pages = {2479--2490}, url = {https://www.aclweb.org/anthology/2020.lrec-1.302} } ``` [TALN paper](https://hal.archives-ouvertes.fr/hal-02784776/) ``` @inproceedings{le2020flaubert, title = {FlauBERT: des mod{\`e}les de langue contextualis{\'e}s pr{\'e}-entra{\^\i}n{\'e}s pour le fran{\c{c}}ais}, author = {Le, Hang and Vial, Lo{\"\i}c and Frej, Jibril and Segonne, Vincent and Coavoux, Maximin and Lecouteux, Benjamin and Allauzen, Alexandre and Crabb{\'e}, Beno{\^\i}t and Besacier, Laurent and Schwab, Didier}, booktitle = {Actes de la 6e conf{\'e}rence conjointe Journ{\'e}es d'{\'E}tudes sur la Parole (JEP, 31e {\'e}dition), Traitement Automatique des Langues Naturelles (TALN, 27e {\'e}dition), Rencontre des {\'E}tudiants Chercheurs en Informatique pour le Traitement Automatique des Langues (R{\'E}CITAL, 22e {\'e}dition). Volume 2: Traitement Automatique des Langues Naturelles}, pages = {268--278}, year = {2020}, organization = {ATALA} } ```
[ -0.3440667390823364, -0.7565567493438721, 0.35860487818717957, 0.18477393686771393, -0.013364179991185665, 0.05156592279672623, -0.2778397798538208, -0.10812143981456757, 0.3443371653556824, 0.5021588206291199, -0.4221353232860565, -0.4852186143398285, -0.6420986652374268, -0.1903022825717926, -0.605897068977356, 0.8394172191619873, -0.19054894149303436, -0.03287822753190994, -0.07016339153051376, -0.034099675714969635, 0.14206188917160034, -0.801977813243866, -0.5064036250114441, -0.2428896129131317, 0.4972880184650421, 0.06972724944353104, 0.552089273929596, 0.30170828104019165, 0.15717960894107819, 0.42666545510292053, -0.14142076671123505, -0.07023429870605469, -0.5718672871589661, -0.2285277098417282, 0.09191133081912994, -0.34516629576683044, -0.3479941785335541, -0.054347626864910126, 0.7139554619789124, 0.5787412524223328, 0.1286241114139557, 0.013775073923170567, 0.0009359903633594513, 0.7020060420036316, -0.4763227105140686, 0.30980631709098816, -0.36615750193595886, 0.1771032214164734, -0.13213878870010376, -0.03910434991121292, -0.5691710710525513, -0.13712596893310547, 0.30948442220687866, -0.41092830896377563, 0.3524412512779236, -0.1189364641904831, 1.167213797569275, 0.07439977675676346, -0.4458580017089844, 0.043457526713609695, -0.6985903382301331, 0.8927456736564636, -0.6904799342155457, 0.6319139003753662, 0.17158354818820953, 0.004875441547483206, -0.2729925811290741, -1.1379661560058594, -0.6757023930549622, -0.17461323738098145, -0.20476749539375305, 0.05528056249022484, -0.2492624968290329, -0.07046978920698166, 0.27190783619880676, 0.375069797039032, -0.5049818754196167, -0.18950872123241425, -0.5779956579208374, -0.5067402720451355, 0.6934412717819214, -0.2301098108291626, 0.23981846868991852, -0.008475585840642452, -0.4974050521850586, -0.5311093330383301, -0.25252625346183777, 0.24803142249584198, 0.3482148051261902, 0.21116940677165985, -0.34563231468200684, 0.45587679743766785, -0.0006059508887119591, 0.48929929733276367, -0.043624039739370346, 0.07526926696300507, 0.8225054144859314, -0.15032939612865448, -0.3052624762058258, -0.04838910698890686, 1.1494110822677612, 0.0806509405374527, 0.4726353883743286, -0.12669706344604492, -0.35781070590019226, -0.277020663022995, 0.1477331668138504, -0.7931445240974426, -0.41129299998283386, 0.3266104459762573, -0.4860664904117584, -0.3153373897075653, 0.3132376968860626, -0.5769510865211487, -0.04146537184715271, -0.05795607343316078, 0.8054969310760498, -0.5668206214904785, -0.4675431251525879, 0.14094871282577515, 0.037843890488147736, 0.43654826283454895, 0.0629020556807518, -0.918294370174408, 0.18139119446277618, 0.4388009011745453, 0.8446390628814697, 0.027808887884020805, -0.42438197135925293, -0.43715450167655945, -0.16787977516651154, -0.29491639137268066, 0.46343275904655457, -0.43263208866119385, -0.20345090329647064, 0.29341235756874084, 0.3195689916610718, -0.3960246741771698, -0.20587334036827087, 0.755095899105072, -0.39021363854408264, 0.3183119595050812, -0.1788475215435028, -0.628397524356842, -0.4134525656700134, -0.18617215752601624, -0.6732296943664551, 1.1586732864379883, 0.46656426787376404, -0.8562845587730408, 0.15141251683235168, -0.5310154557228088, -0.41743630170822144, -0.12892305850982666, -0.22582793235778809, -0.43143701553344727, 0.22914192080497742, 0.4123757779598236, 0.6481812596321106, 0.019025640562176704, -0.06264571100473404, -0.10723676532506943, -0.30197465419769287, 0.28793761134147644, -0.2569708824157715, 1.0649946928024292, 0.1734190732240677, -0.37348681688308716, 0.2557440400123596, -0.7151290774345398, 0.13615846633911133, 0.2567944824695587, -0.21620401740074158, 0.00640060706064105, -0.1872308999300003, 0.3039499819278717, 0.14890268445014954, 0.5248905420303345, -0.5928782820701599, 0.13987299799919128, -0.5020900368690491, 0.6520262956619263, 0.7573934197425842, 0.08828923106193542, 0.35860833525657654, -0.3070383071899414, 0.2929350733757019, 0.3086283504962921, 0.2897290289402008, -0.03365989774465561, -0.3851715326309204, -1.088919997215271, -0.37948137521743774, 0.573505163192749, 0.6069960594177246, -0.5664042234420776, 0.7776006460189819, -0.2077755630016327, -0.5240665674209595, -0.353412002325058, -0.055994316935539246, 0.1883808821439743, 0.2384358048439026, 0.49039387702941895, -0.16757594048976898, -0.3592640459537506, -1.139381766319275, -0.13604746758937836, -0.005295670125633478, 0.05656298249959946, -0.048954494297504425, 0.7209622859954834, -0.41263264417648315, 0.6466909050941467, -0.39223310351371765, -0.40392234921455383, -0.25231215357780457, 0.1655951738357544, 0.4440576136112213, 0.6711714267730713, 0.8763136863708496, -0.5090574622154236, -0.5112276077270508, -0.19677071273326874, -0.6229594349861145, 0.29759350419044495, -0.07001600414514542, -0.3551003634929657, 0.38443976640701294, 0.4299697279930115, -0.49335408210754395, 0.5195068120956421, 0.3681248426437378, -0.3338271677494049, 0.34525200724601746, -0.28355032205581665, 0.056605808436870575, -0.9596222639083862, -0.10491786152124405, -0.01155398041009903, -0.2544615566730499, -0.7795994281768799, -0.08097921311855316, 0.08119409531354904, 0.089439757168293, -0.6143525242805481, 0.5341447591781616, -0.487359881401062, 0.13399532437324524, 0.20055529475212097, 0.18960219621658325, -0.09953014552593231, 0.8578833341598511, 0.08480511605739594, 0.435074120759964, 0.9774333238601685, -0.4448365569114685, 0.26615339517593384, 0.3701001703739166, -0.4577183723449707, 0.13321125507354736, -0.6998021006584167, 0.1976456344127655, -0.02535245753824711, 0.2281157523393631, -0.7969569563865662, -0.02848726324737072, 0.2124793976545334, -0.46909523010253906, 0.3865058124065399, -0.007373401895165443, -0.8142520785331726, -0.4567970931529999, -0.35989952087402344, 0.3017021715641022, 0.6546898484230042, -0.4537447392940521, 0.6890666484832764, 0.21627885103225708, 0.1190284937620163, -0.7373363971710205, -0.9813891053199768, -0.35944655537605286, -0.07169065624475479, -0.8285770416259766, 0.3554733693599701, -0.16000236570835114, 0.15394875407218933, -0.05224927142262459, -0.10114211589097977, -0.1905624121427536, -0.19167569279670715, 0.10944094508886337, -0.0006873265374451876, -0.28941458463668823, -0.0429634191095829, 0.05758820101618767, -0.04555969685316086, 0.09582297503948212, -0.33911287784576416, 0.7640079855918884, -0.5584595203399658, -0.30957433581352234, -0.5095287561416626, 0.23580704629421234, 0.6502755880355835, -0.39276841282844543, 1.0224894285202026, 1.120158076286316, -0.5963883399963379, -0.1674133986234665, -0.498534232378006, -0.33887040615081787, -0.5339367389678955, 0.3619774878025055, -0.40786802768707275, -0.7918723821640015, 0.7308952212333679, 0.25480055809020996, 0.1650013029575348, 0.6979379057884216, 0.563284158706665, 0.021721916273236275, 1.0028079748153687, 0.5981082320213318, -0.08878955990076065, 0.5996198058128357, -0.8755002021789551, 0.37238720059394836, -0.631749153137207, -0.3538081645965576, -0.2829238474369049, -0.4372628331184387, -0.44462311267852783, -0.44826698303222656, 0.2502043545246124, 0.4056495428085327, -0.3403255343437195, 0.44358178973197937, -0.5758246183395386, 0.26963675022125244, 0.7016342878341675, 0.2966483533382416, -0.14559310674667358, 0.2678309381008148, -0.6215606927871704, -0.07740642130374908, -0.755469560623169, -0.49590232968330383, 1.0654194355010986, 0.602895975112915, 0.46900656819343567, 0.2182992845773697, 0.9798007607460022, 0.18224535882472992, 0.016070909798145294, -0.6905084848403931, 0.5697178244590759, -0.19807229936122894, -0.6158444285392761, -0.245449036359787, -0.28237178921699524, -0.9695439338684082, 0.2781943380832672, -0.1971997171640396, -1.1276828050613403, 0.34898948669433594, 0.030045393854379654, -0.35229870676994324, 0.40456894040107727, -0.7114084959030151, 1.0605287551879883, -0.3948970437049866, -0.3243977129459381, -0.21755626797676086, -0.543074369430542, 0.2699891924858093, -0.09278105199337006, 0.15439769625663757, 0.11702626943588257, 0.16435325145721436, 1.0319339036941528, -0.6146884560585022, 0.7709069848060608, -0.20850755274295807, -0.04918646067380905, 0.43662041425704956, 0.08356881141662598, 0.5156280994415283, 0.15964865684509277, -0.07440942525863647, 0.2734600901603699, 0.3981929123401642, -0.5533692836761475, -0.4859010875225067, 0.8157496452331543, -1.0369410514831543, -0.39364832639694214, -0.7324620485305786, -0.34457123279571533, -0.06338514387607574, 0.3412471115589142, 0.5420685410499573, 0.8215949535369873, -0.0551762729883194, 0.4680744707584381, 0.6797263622283936, -0.49122774600982666, 0.5635018348693848, 0.3717704713344574, -0.34409859776496887, -0.2726142704486847, 0.9400076866149902, 0.16007308661937714, 0.0314483642578125, 0.616311252117157, 0.19078277051448822, -0.4573974609375, -0.353760689496994, -0.07955961674451828, 0.432283878326416, -0.8914856910705566, 0.03970024362206459, -0.8600062131881714, -0.6959273219108582, -0.39621657133102417, -0.19727982580661774, -0.5116795897483826, -0.5529375672340393, -0.5525521636009216, -0.0566057488322258, 0.46701475977897644, 0.5613400936126709, -0.2691163718700409, 0.333695650100708, -0.726166844367981, 0.030164046213030815, 0.09308795630931854, 0.2730715274810791, 0.0750393345952034, -0.7869310975074768, -0.36096420884132385, 0.10734496265649796, -0.18555593490600586, -0.794792652130127, 0.33810725808143616, 0.19808650016784668, 0.9229145646095276, 0.519510805606842, 0.25448718667030334, 0.2679940164089203, -0.422233909368515, 0.8990923762321472, 0.18040397763252258, -1.0194458961486816, 0.5236011743545532, -0.16574448347091675, 0.1595524549484253, 0.4744877219200134, 0.4569035470485687, -0.2561807334423065, -0.34384313225746155, -1.0464110374450684, -1.0717171430587769, 0.7714032530784607, 0.4110591411590576, 0.26269569993019104, -0.13731923699378967, 0.168917715549469, -0.08566492050886154, 0.14964939653873444, -0.9349493384361267, -0.5627380013465881, -0.4038803279399872, -0.2730470299720764, -0.07996165752410889, -0.29447728395462036, -0.2433689385652542, -0.5820451974868774, 0.8532274961471558, 0.13775542378425598, 0.8309327960014343, 0.2799781560897827, -0.3924156129360199, 0.06701952964067459, 0.018095368519425392, 0.952411949634552, 0.6132738590240479, -0.39801016449928284, 0.09716477245092392, 0.231349915266037, -0.3855654299259186, -0.07719040662050247, 0.15014608204364777, 0.026793284341692924, 0.09611386805772781, 0.73711097240448, 1.0738886594772339, 0.15970154106616974, -0.4069482684135437, 0.8425720930099487, -0.05792582407593727, -0.5022639036178589, -0.7368996143341064, 0.1885148584842682, -0.13742542266845703, 0.48826465010643005, 0.46205103397369385, 0.08670772612094879, -0.3339000940322876, -0.28323572874069214, 0.46946296095848083, 0.36673811078071594, -0.4427136480808258, -0.3983808755874634, 0.7802665829658508, 0.09466054290533066, -0.3140007257461548, 0.5359759330749512, -0.18487514555454254, -0.7501168847084045, 0.4418114721775055, 0.31012722849845886, 1.036651611328125, -0.07053276896476746, 0.31213346123695374, 0.6406574845314026, 0.49402400851249695, -0.02626478113234043, 0.41322675347328186, 0.1109267845749855, -0.7687028646469116, -0.15533682703971863, -0.7596123218536377, 0.12927110493183136, 0.56145840883255, -0.5935364365577698, 0.2636355757713318, -0.5961936712265015, -0.08100464195013046, -0.12002316117286682, -0.03221426159143448, -0.9413018226623535, -0.013079367578029633, 0.07257635146379471, 1.0079600811004639, -0.8438193202018738, 0.9705378413200378, 0.6532505750656128, -0.7301309704780579, -0.8953095078468323, 0.10422833263874054, -0.19567450881004333, -0.7880229949951172, 0.776487410068512, 0.1538103222846985, -0.05838557332754135, 0.25037214159965515, -0.47549957036972046, -0.9442194700241089, 1.0471065044403076, 0.31922438740730286, -0.6109188795089722, 0.19417883455753326, 0.012481343001127243, 0.6162158250808716, -0.4002363681793213, 0.4860555827617645, 0.5387775897979736, 0.4833875596523285, -0.04549229517579079, -0.765230655670166, -0.03324190527200699, -0.23608273267745972, -0.0720338225364685, 0.009894139133393764, -0.8329346776008606, 1.0654041767120361, -0.13735391199588776, -0.2070355862379074, -0.030077164992690086, 0.9770316481590271, -0.039837777614593506, -0.28121161460876465, 0.554109513759613, 0.49940723180770874, 0.683658242225647, -0.31461969017982483, 0.9224879741668701, -0.6221091747283936, 0.7329161763191223, 0.6808544993400574, 0.11006411164999008, 0.9649816751480103, 0.348737895488739, -0.3754068613052368, 0.7669393420219421, 0.6708419919013977, -0.08096051216125488, 0.6939825415611267, 0.21843823790550232, -0.16502659022808075, -0.14473441243171692, 0.4058559238910675, -0.5948573350906372, 0.33807435631752014, 0.403531551361084, -0.591912567615509, 0.011903369799256325, 0.07222172617912292, 0.10267917066812515, -0.11484726518392563, -0.0316450260579586, 0.2747392952442169, 0.13391490280628204, -0.35313573479652405, 1.1626068353652954, -0.0394602045416832, 0.532491147518158, -0.5953094959259033, 0.2934822738170624, -0.2597779631614685, 0.37921103835105896, -0.2829982340335846, -0.7260884642601013, -0.07250131666660309, -0.2739968001842499, -0.22998113930225372, -0.1266382336616516, 0.3865334987640381, -0.5925940871238708, -0.7445847988128662, 0.4809154272079468, 0.3460444211959839, 0.3396834433078766, 0.17270158231258392, -0.965640127658844, 0.17936769127845764, 0.17742568254470825, -0.6250907778739929, 0.09638738632202148, 0.3057650029659271, 0.14807173609733582, 0.5362624526023865, 0.3742009699344635, -0.10424567759037018, 0.3259941339492798, 0.32689329981803894, 0.8070906400680542, -0.43497344851493835, -0.49810153245925903, -0.7111838459968567, 0.745455801486969, 0.015869908034801483, -0.26532724499702454, 0.5118246674537659, 0.6851168274879456, 0.8682225942611694, -0.38288724422454834, 0.8033708333969116, -0.17114980518817902, 0.37959346175193787, -0.5013235807418823, 0.8026055097579956, -0.7817980051040649, 0.1312989592552185, -0.3668655753135681, -1.117336630821228, -0.1453084945678711, 1.0997868776321411, -0.17713366448879242, 0.2298600822687149, 0.985956609249115, 0.9409787058830261, -0.26042988896369934, -0.20768187940120697, 0.2719692289829254, 0.4998382329940796, 0.34496554732322693, 0.648992121219635, 0.6182790398597717, -0.7490273118019104, 0.47510775923728943, -0.5840252041816711, -0.2777898907661438, -0.38716626167297363, -0.8429157137870789, -1.2870604991912842, -1.0539588928222656, -0.5704652070999146, -0.494488388299942, -0.26896902918815613, 0.936510443687439, 0.721775472164154, -1.0849971771240234, -0.10264188051223755, -0.14280357956886292, -0.13561294972896576, -0.31214460730552673, -0.2892761826515198, 0.6822108626365662, -0.17483244836330414, -0.7637853026390076, 0.38038018345832825, 0.022132501006126404, 0.20937806367874146, -0.4246964454650879, -0.16209080815315247, -0.47500503063201904, 0.11657308042049408, 0.4954417049884796, 0.26645994186401367, -0.850683867931366, -0.602152943611145, -0.19134466350078583, -0.13688969612121582, 0.008208315819501877, 0.6360688209533691, -0.6130416393280029, 0.3202098608016968, 0.6280114054679871, 0.36512571573257446, 0.9005163311958313, -0.35582345724105835, 0.5053086876869202, -1.0404391288757324, 0.5448751449584961, 0.13261331617832184, 0.6130190491676331, 0.16719195246696472, -0.20256905257701874, 0.4656658470630646, 0.1957225203514099, -0.5854372382164001, -0.9689728021621704, 0.13892099261283875, -1.0545886754989624, -0.18675269186496735, 1.0074894428253174, -0.10936377942562103, -0.2205774188041687, 0.20579716563224792, -0.08849608153104782, 0.4861818850040436, -0.43464595079421997, 0.3372178375720978, 0.7389087080955505, -0.18945936858654022, -0.459678590297699, -0.7910178303718567, 0.5461097359657288, 0.3910723328590393, -0.4332561492919922, -0.26151466369628906, 0.027227677404880524, 0.25459030270576477, 0.33917972445487976, 0.47859683632850647, -0.015468626283109188, -0.1147383525967598, -0.0205682460218668, 0.11685147136449814, -0.025918424129486084, -0.30488330125808716, -0.0765635147690773, -0.08105102926492691, -0.16458071768283844, -0.25559917092323303 ]
laion/CLIP-ViT-B-32-xlm-roberta-base-laion5B-s13B-b90k
laion
"2022-11-14T16:18:01Z"
24,834
8
open_clip
[ "open_clip", "arxiv:1910.04867", "license:mit", "has_space", "region:us" ]
null
"2022-11-13T16:37:55Z"
--- license: mit widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png candidate_labels: playing music, playing sports example_title: Cat & Dog --- # Model Card for CLIP ViT-B/32 xlm roberta base - LAION-5B # Table of Contents 1. [Model Details](#model-details) 2. [Uses](#uses) 3. [Training Details](#training-details) 4. [Evaluation](#evaluation) 5. [Acknowledgements](#acknowledgements) 6. [Citation](#citation) 7. [How To Get Started With the Model](#how-to-get-started-with-the-model) # Model Details ## Model Description A CLIP ViT-B/32 xlm roberta base model trained with the LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/open_clip). Model training done by Romain Beaumont on the [stability.ai](https://stability.ai/) cluster. # Uses ## Direct Use Zero-shot image classification, image and text retrieval, among others. ## Downstream Use Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others. # Training Details ## Training Data This model was trained with the full LAION-5B (https://laion.ai/blog/laion-5b/). ## Training Procedure Training with batch size 90k for 13B sample of laion5B, see https://wandb.ai/rom1504/open-clip/reports/xlm-roberta-base-B-32--VmlldzoyOTQ5OTE2 Model is B/32 on visual side, xlm roberta base initialized with pretrained weights on text side. # Evaluation Evaluation done with code in the [LAION CLIP Benchmark suite](https://github.com/LAION-AI/CLIP_benchmark). ## Testing Data, Factors & Metrics ### Testing Data The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval. ## Results The model achieves * imagenet 1k 62.33% (vs 62.9% for baseline) * mscoco 63.4% (vs 60.8% for baseline) * flickr30k 86.2% (vs 85.4% for baseline) A preliminary multilingual evaluation was run: 43% on imagenet1k italian (vs 21% for english B/32), 37% for imagenet1k japanese (vs 1% for english B/32 and 50% for B/16 clip japanese). It shows the multilingual property is indeed there as expected. Larger models will get even better performance. ![metrics](metrics.png) # Acknowledgements Acknowledging [stability.ai](https://stability.ai/) for the compute used to train this model. # Citation **BibTeX:** In addition to forthcoming LAION-5B (https://laion.ai/blog/laion-5b/) paper, please cite: OpenAI CLIP paper ``` @inproceedings{Radford2021LearningTV, title={Learning Transferable Visual Models From Natural Language Supervision}, author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever}, booktitle={ICML}, year={2021} } ``` OpenCLIP software ``` @software{ilharco_gabriel_2021_5143773, author = {Ilharco, Gabriel and Wortsman, Mitchell and Wightman, Ross and Gordon, Cade and Carlini, Nicholas and Taori, Rohan and Dave, Achal and Shankar, Vaishaal and Namkoong, Hongseok and Miller, John and Hajishirzi, Hannaneh and Farhadi, Ali and Schmidt, Ludwig}, title = {OpenCLIP}, month = jul, year = 2021, note = {If you use this software, please cite it as below.}, publisher = {Zenodo}, version = {0.1}, doi = {10.5281/zenodo.5143773}, url = {https://doi.org/10.5281/zenodo.5143773} } ``` # How To Get Started With the Model https://github.com/mlfoundations/open_clip
[ -0.3490529954433441, -0.5777621865272522, 0.27192068099975586, 0.14568297564983368, -0.42861446738243103, -0.3018724024295807, -0.3946238160133362, -0.4826676547527313, 0.13259893655776978, 0.46973085403442383, -0.4039938449859619, -0.8006229400634766, -0.739936351776123, -0.042624592781066895, -0.3232477605342865, 0.9228864908218384, -0.22461308538913727, 0.19733886420726776, -0.2217881977558136, -0.5562476515769958, -0.6187868714332581, -0.4374118149280548, -0.6051867008209229, -0.052409831434488297, 0.11541616171598434, 0.3977554738521576, 0.6304650902748108, 0.7251615524291992, 0.7155946493148804, 0.2689947485923767, -0.1552441269159317, 0.1161121129989624, -0.591325581073761, -0.5841507315635681, 0.016329169273376465, -0.538713276386261, -0.6552832722663879, 0.012825584970414639, 0.5446089506149292, 0.15851004421710968, -0.057914555072784424, 0.27809566259384155, -0.1466672271490097, 0.4779612123966217, -0.6254043579101562, 0.29914018511772156, -0.5254076719284058, 0.057148296386003494, -0.222008615732193, 0.09362271428108215, -0.4208669066429138, -0.15742723643779755, 0.18079712986946106, -0.7230784296989441, 0.230690136551857, -0.1980748176574707, 1.5427905321121216, 0.10922680795192719, -0.26822957396507263, 0.05943276733160019, -0.5894525647163391, 0.9052169322967529, -0.7549178600311279, 0.3484469950199127, 0.2763878107070923, 0.48268261551856995, 0.4038788676261902, -0.8210695385932922, -0.3430306315422058, -0.1707925796508789, 0.20660077035427094, 0.4001869261264801, -0.4587160050868988, -0.14586426317691803, 0.49526071548461914, 0.18959809839725494, -0.3994331657886505, -0.059285733848810196, -0.7594863176345825, 0.04423791170120239, 0.4098804295063019, 0.012246325612068176, 0.43748918175697327, -0.39282310009002686, -0.7418482899665833, -0.4812621772289276, -0.5784155130386353, 0.3514706492424011, 0.20106720924377441, -0.01644182950258255, -0.6432960033416748, 0.3569793999195099, 0.25784480571746826, 0.6383071541786194, -0.022270292043685913, -0.37963762879371643, 0.4229266345500946, -0.43826326727867126, -0.1962226778268814, -0.1824682205915451, 1.0468227863311768, 0.6335760951042175, 0.21171355247497559, 0.31826338171958923, 0.07573249191045761, -0.19763946533203125, 0.17576079070568085, -1.007863998413086, -0.2744717299938202, -0.08093384653329849, -0.6379331350326538, -0.08564122021198273, 0.5541335344314575, -0.5993403792381287, 0.3087815046310425, -0.2321465015411377, 0.4988161027431488, -0.8586834073066711, -0.07881981134414673, -0.05314261093735695, -0.106842041015625, 0.22974061965942383, 0.4530506730079651, -0.6105878949165344, 0.2525903284549713, 0.2912210524082184, 1.2632665634155273, -0.2742757201194763, -0.4675860106945038, -0.44414427876472473, 0.21738187968730927, -0.30432453751564026, 0.6187694668769836, -0.06774936616420746, -0.24061419069766998, -0.13498152792453766, 0.31490886211395264, -0.08039601892232895, -0.5091033577919006, 0.528903603553772, -0.21947966516017914, 0.11420158296823502, -0.12995298206806183, -0.30810311436653137, -0.551547646522522, 0.1333576738834381, -0.7305088639259338, 0.8700167536735535, 0.01823471114039421, -0.8409631848335266, 0.41751253604888916, -0.5272852182388306, -0.030122969299554825, -0.1910349577665329, 0.04903600364923477, -0.582312822341919, -0.3362182080745697, 0.6017330288887024, 0.38590529561042786, -0.14424100518226624, 0.31282684206962585, -0.5721308588981628, -0.321662962436676, 0.23971623182296753, -0.389954537153244, 1.0170198678970337, -0.011664723977446556, -0.16240961849689484, 0.267621248960495, -0.7494600415229797, -0.03303271532058716, 0.17687352001667023, -0.09831973165273666, -0.17232748866081238, -0.40197423100471497, -0.020095061510801315, 0.15863794088363647, 0.19729483127593994, -0.4170231819152832, 0.08418239653110504, -0.11864800751209259, 0.3124507665634155, 0.6662042140960693, 0.05031807720661163, 0.29857563972473145, -0.3014809489250183, 0.759944498538971, 0.1906546950340271, 0.478293240070343, -0.41689497232437134, -0.5116338133811951, -0.8163726925849915, -0.7320795655250549, 0.46585702896118164, 0.6722809076309204, -0.6626549363136292, 0.3680230677127838, -0.33933225274086, -0.46349167823791504, -0.561937153339386, 0.15537527203559875, 0.5453110933303833, 0.4876777231693268, 0.5725542902946472, -0.5566877722740173, -0.5642104744911194, -0.9251713156700134, 0.27550554275512695, 0.05088444799184799, 0.09796223789453506, 0.5874147415161133, 0.678826093673706, -0.045907288789749146, 0.8734058141708374, -0.714222252368927, -0.539838969707489, -0.3877827823162079, 0.22132593393325806, 0.3175036311149597, 0.3429108262062073, 1.093778133392334, -0.7302623391151428, -0.7735887765884399, -0.06428181380033493, -1.0267409086227417, 0.013972923159599304, 0.03280066326260567, -0.28148213028907776, 0.17003272473812103, 0.3821026086807251, -0.6231983304023743, 0.6061990261077881, 0.4973640441894531, 0.0596105195581913, 0.5311610102653503, -0.28460854291915894, 0.07711875438690186, -1.2536041736602783, 0.21899275481700897, 0.0920162945985794, -0.42414116859436035, -0.4196155071258545, -0.08692000061273575, 0.09678959101438522, -0.24385590851306915, -0.7470999956130981, 0.5821614265441895, -0.6593441963195801, -0.01650908775627613, -0.0909593477845192, 0.12782518565654755, 0.09921492636203766, 0.5695463418960571, 0.11143360286951065, 0.7412588596343994, 0.8797796964645386, -0.49452370405197144, 0.23019306361675262, 0.5255374312400818, -0.39256078004837036, 0.45662105083465576, -0.9156456589698792, 0.03505932167172432, -0.03117787092924118, 0.11015001684427261, -0.5108575820922852, -0.23967744410037994, 0.37790945172309875, -0.4714178144931793, 0.41283509135246277, -0.637455403804779, -0.22916191816329956, -0.4120194911956787, -0.46110379695892334, 0.40249067544937134, 0.6533644795417786, -0.7066169381141663, 0.37239018082618713, 0.25058457255363464, -0.00012326217256486416, -0.6397085189819336, -0.7463292479515076, -0.04672972485423088, -0.18035772442817688, -0.7084333896636963, 0.4950089752674103, -0.05369975417852402, 0.0636349618434906, 0.21010534465312958, 0.2486608624458313, -0.24354879558086395, -0.3354410231113434, 0.5091564059257507, 0.5771725177764893, -0.22703664004802704, -0.24708253145217896, -0.16641072928905487, -0.10171788930892944, -0.21981991827487946, -0.16854731738567352, 0.34476250410079956, -0.2680903971195221, -0.3099357485771179, -0.5023673176765442, 0.13932685554027557, 0.4473990201950073, -0.4826308488845825, 0.7638927698135376, 0.9264820218086243, -0.23918360471725464, -0.03192433714866638, -0.3323184549808502, 0.10533162206411362, -0.40221261978149414, 0.48314282298088074, -0.14549362659454346, -0.46430882811546326, 0.6489765048027039, 0.27118366956710815, -0.20884057879447937, 0.39940914511680603, 0.45513564348220825, 0.08618835359811783, 0.8688949942588806, 0.9104251265525818, -0.04318844527006149, 0.8937464356422424, -0.9131230115890503, -0.04062911123037338, -0.8916754126548767, -0.10451562702655792, -0.09321226924657822, -0.01729198731482029, -0.3370325267314911, -0.717698872089386, 0.5976535677909851, 0.5392526984214783, 0.051973216235637665, 0.6017770767211914, -0.23429928719997406, 0.2731010317802429, 0.6766800880432129, 0.30422431230545044, 0.13416796922683716, 0.04353147745132446, -0.13228188455104828, -0.20917753875255585, -0.8181847333908081, -0.5406977534294128, 1.152436375617981, 0.4488900601863861, 0.838224470615387, 0.10647635161876678, 0.5599908828735352, 0.0001669142220634967, 0.1473224014043808, -0.7178579568862915, 0.5724413394927979, -0.4167836010456085, -0.46472370624542236, -0.194338858127594, -0.33625203371047974, -0.7940852642059326, 0.09380589425563812, -0.1776377260684967, -0.6388155817985535, 0.2500356435775757, 0.2607005834579468, -0.13316647708415985, 0.43021634221076965, -0.6449295878410339, 0.9988069534301758, -0.5307584404945374, -0.3430584967136383, 0.03394404053688049, -0.6640522480010986, 0.5526895523071289, 0.2924351692199707, -0.03621327504515648, -0.11164048314094543, 0.1591798961162567, 0.8053188323974609, -0.7185869216918945, 0.8603998422622681, -0.17965392768383026, 0.32303839921951294, 0.5961754322052002, -0.2585580348968506, 0.13775117695331573, 0.2047928422689438, 0.19164301455020905, 0.5622105002403259, 0.10195649415254593, -0.24973654747009277, -0.4941411018371582, 0.4104827046394348, -0.8308557271957397, -0.2048313170671463, -0.33030009269714355, -0.4522969126701355, 0.29095155000686646, 0.46056491136550903, 0.658145546913147, 0.6312931180000305, -0.1740778088569641, 0.29347938299179077, 0.5490389466285706, -0.3118588328361511, 0.4383113980293274, 0.3679945766925812, -0.37007197737693787, -0.853459358215332, 0.953685462474823, 0.2897278070449829, 0.3502708673477173, 0.2778242826461792, 0.06701861321926117, 0.07014002650976181, -0.4109586179256439, -0.6315721869468689, 0.35412168502807617, -0.7788626551628113, -0.4117506742477417, -0.452411025762558, -0.3013272285461426, -0.3610401153564453, -0.04898915812373161, -0.5475925803184509, -0.24545131623744965, -0.6468130350112915, -0.10217509418725967, 0.4718512296676636, 0.5537818074226379, -0.07889671623706818, 0.33701086044311523, -0.9071970582008362, 0.3363015055656433, 0.1320880800485611, 0.2999281883239746, 0.07748385518789291, -0.6744765639305115, -0.41309595108032227, 0.13637292385101318, -0.6245620250701904, -0.9047114253044128, 0.5607945322990417, 0.3407818675041199, 0.6643596291542053, 0.6696089506149292, -0.16650347411632538, 0.8325641751289368, -0.44176310300827026, 0.9218180179595947, 0.43262484669685364, -0.9248303771018982, 0.6123685240745544, -0.4449094235897064, 0.31559574604034424, 0.5191304683685303, 0.6323094367980957, -0.14127568900585175, -0.13504621386528015, -0.6443206071853638, -0.9003350138664246, 0.9179907441139221, 0.09057553112506866, -0.019290193915367126, 0.13263602554798126, 0.26330509781837463, 0.025998970493674278, 0.08754895627498627, -1.0451580286026, -0.12737812101840973, -0.5622038245201111, -0.1720295250415802, 0.08358275145292282, -0.2515336275100708, -0.1709221452474594, -0.42128896713256836, 0.7096480131149292, -0.3179665803909302, 0.49857649207115173, 0.30562740564346313, -0.35636773705482483, -0.011949978768825531, -0.07652169466018677, 0.6726694107055664, 0.7598463892936707, -0.4888041615486145, -0.22137989103794098, 0.13024036586284637, -0.44978564977645874, -0.13714134693145752, 0.0500304214656353, -0.616250216960907, 0.16415587067604065, 0.6902680993080139, 1.5032902956008911, 0.3380054831504822, -0.5748650431632996, 0.92117840051651, 0.01306147500872612, -0.3541901409626007, -0.3654211759567261, 0.07603153586387634, -0.11242541670799255, 0.1904221624135971, 0.08690973371267319, 0.11498343199491501, -0.02468729391694069, -0.5818740129470825, 0.17338095605373383, 0.5042645931243896, -0.6161043047904968, -0.534467875957489, 0.7753636837005615, -0.15729089081287384, -0.12785831093788147, 0.5076022148132324, -0.09607479721307755, -0.6059302091598511, 0.6972249150276184, 0.6540045738220215, 0.7864430546760559, 0.11528536677360535, 0.3449961245059967, 0.7717826962471008, 0.1747591197490692, -0.1867346614599228, 0.21910469233989716, 0.16559039056301117, -0.6077190637588501, -0.06492236256599426, -0.32810190320014954, -0.4224453568458557, 0.02587243914604187, -1.0554012060165405, 0.6410684585571289, -0.537731945514679, -0.5050654411315918, -0.18884329497814178, -0.3062680661678314, -0.6321829557418823, 0.056335557252168655, 0.10533963143825531, 1.0862079858779907, -0.7054364085197449, 0.7699963450431824, 0.8090580105781555, -0.9541343450546265, -0.8427178859710693, -0.09828543663024902, -0.14597554504871368, -0.5637677311897278, 0.6513157486915588, 0.325565904378891, 0.01975341886281967, -0.3583601117134094, -0.8936857581138611, -1.0214219093322754, 1.494729995727539, 0.5544912815093994, -0.21950776875019073, 0.06656814366579056, -0.2583198547363281, 0.4857712984085083, -0.43207278847694397, 0.39435815811157227, -0.009131246246397495, 0.2363310009241104, 0.1783173829317093, -0.9337958097457886, -0.1781104952096939, -0.2866351008415222, 0.20616181194782257, 0.002394946524873376, -1.1181786060333252, 1.1042399406433105, -0.4301668107509613, -0.22434985637664795, 0.25281745195388794, 0.7361643314361572, 0.14945867657661438, 0.20460787415504456, 0.28662794828414917, 0.6544790267944336, 0.4452257454395294, -0.01827235333621502, 1.0180219411849976, -0.3488999605178833, 0.469200998544693, 1.184726357460022, -0.11477375775575638, 1.0272510051727295, 0.32229796051979065, -0.1842823624610901, 0.6006661653518677, 0.31370705366134644, -0.6058580875396729, 0.6230100989341736, -0.37233179807662964, 0.2432374656200409, -0.11767511814832687, -0.17518994212150574, -0.2777801752090454, 0.4976368546485901, -0.006030750926584005, -0.48323574662208557, -0.0451732836663723, 0.3047925531864166, 0.01263138186186552, -0.1229821965098381, -0.1813046932220459, 0.6090900897979736, 0.2614363431930542, -0.5603086352348328, 0.7116549611091614, 0.12194004654884338, 0.5679406523704529, -0.840402364730835, -0.16950421035289764, -0.05675772204995155, 0.34854981303215027, -0.10683201998472214, -0.7539355158805847, 0.16416476666927338, 0.1076589822769165, -0.350374698638916, -0.16318653523921967, 0.6667922139167786, -0.38889428973197937, -0.5991983413696289, 0.5539256930351257, 0.12526364624500275, 0.2140950709581375, 0.27457478642463684, -0.755111575126648, 0.1775742918252945, 0.07232795655727386, -0.054028939455747604, 0.18788538873195648, 0.22318260371685028, -0.2579291760921478, 0.7434453964233398, 0.5546323657035828, 0.17758341133594513, 0.2830893397331238, 0.044675346463918686, 0.7238707542419434, -0.5029422044754028, -0.45348066091537476, -0.6138551831245422, 0.489193320274353, -0.2513855993747711, -0.5136323571205139, 0.8735488653182983, 0.5909803509712219, 0.9576196670532227, -0.3790537714958191, 0.5932320356369019, -0.07088730484247208, 0.34073948860168457, -0.9291104078292847, 0.5979042649269104, -0.5843059420585632, 0.052066870033741, -0.575197696685791, -0.7337392568588257, -0.24509882926940918, 0.6411709785461426, -0.30249980092048645, 0.07253769040107727, 0.6454668641090393, 0.683487594127655, -0.38649535179138184, -0.40476730465888977, 0.21849669516086578, 0.19848498702049255, 0.2878028154373169, 0.5602432489395142, 0.5101775527000427, -0.7447258830070496, 0.7742679119110107, -0.5792776346206665, -0.22814828157424927, -0.17960096895694733, -0.8835764527320862, -1.1466922760009766, -0.4136422276496887, -0.3676254153251648, -0.134132519364357, 0.012263749726116657, 0.8000106811523438, 1.1035830974578857, -0.7723631262779236, -0.4116177260875702, 0.2142750322818756, 0.009653021581470966, -0.32604464888572693, -0.23646290600299835, 0.48794475197792053, 0.18038226664066315, -0.7155900001525879, 0.10678169876337051, 0.3087499439716339, 0.33669283986091614, -0.024910172447562218, -0.18537677824497223, -0.4076348543167114, -0.18134932219982147, 0.42143896222114563, 0.41357526183128357, -0.7131730914115906, -0.07142317295074463, 0.06309932470321655, 0.004311783239245415, 0.47102969884872437, 0.5048794746398926, -0.4699966609477997, 0.4409473240375519, 0.4413866102695465, 0.2379947155714035, 0.8678110241889954, 0.3532797694206238, 0.4302458167076111, -0.7005564570426941, 0.44965603947639465, -0.1559228003025055, 0.5064282417297363, 0.4592167139053345, -0.12279728800058365, 0.5557985305786133, 0.3447436988353729, -0.30493900179862976, -0.7931998372077942, -0.030059970915317535, -1.3329886198043823, -0.06664779782295227, 0.9483986496925354, -0.6154826879501343, -0.4235803484916687, 0.5257837772369385, -0.46700283885002136, 0.32493749260902405, -0.3235782980918884, 0.21756486594676971, 0.5354641079902649, 0.05218740180134773, -0.6335092186927795, -0.7272244095802307, 0.21243396401405334, 0.15815164148807526, -0.8000799417495728, -0.3756444454193115, 0.45950761437416077, 0.4788155257701874, 0.29415085911750793, 0.6242700815200806, -0.28745609521865845, 0.3926961421966553, -0.05258664861321449, 0.42360034584999084, -0.4375694990158081, -0.627833366394043, -0.4382403492927551, -0.06148838251829147, -0.0655093714594841, -0.38086560368537903 ]
stabilityai/StableBeluga-13B
stabilityai
"2023-08-29T20:21:26Z"
24,745
112
transformers
[ "transformers", "safetensors", "llama", "text-generation", "en", "dataset:conceptofmind/cot_submix_original", "dataset:conceptofmind/flan2021_submix_original", "dataset:conceptofmind/t0_submix_original", "dataset:conceptofmind/niv2_submix_original", "arxiv:2307.09288", "arxiv:2306.02707", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-07-27T02:54:21Z"
--- datasets: - conceptofmind/cot_submix_original - conceptofmind/flan2021_submix_original - conceptofmind/t0_submix_original - conceptofmind/niv2_submix_original language: - en pipeline_tag: text-generation --- # Stable Beluga 13B Use [Stable Chat (Research Preview)](https://chat.stability.ai/chat) to test Stability AI's best language models for free ## Model Description `Stable Beluga 13B` is a Llama2 13B model finetuned on an Orca style Dataset ## Usage Start chatting with `Stable Beluga 13B` using the following code snippet: ```python import torch from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline tokenizer = AutoTokenizer.from_pretrained("stabilityai/StableBeluga-13B", use_fast=False) model = AutoModelForCausalLM.from_pretrained("stabilityai/StableBeluga-13B", torch_dtype=torch.float16, low_cpu_mem_usage=True, device_map="auto") system_prompt = "### System:\nYou are Stable Beluga 13B, an AI that follows instructions extremely well. Help as much as you can. Remember, be safe, and don't do anything illegal.\n\n" message = "Write me a poem please" prompt = f"{system_prompt}### User: {message}\n\n### Assistant:\n" inputs = tokenizer(prompt, return_tensors="pt").to("cuda") output = model.generate(**inputs, do_sample=True, top_p=0.95, top_k=0, max_new_tokens=256) print(tokenizer.decode(output[0], skip_special_tokens=True)) ``` Stable Beluga 13B should be used with this prompt format: ``` ### System: This is a system prompt, please behave and help the user. ### User: Your prompt here ### Assistant The output of Stable Beluga 13B ``` ## Model Details * **Developed by**: [Stability AI](https://stability.ai/) * **Model type**: Stable Beluga 13B is an auto-regressive language model fine-tuned on Llama2 13B. * **Language(s)**: English * **Library**: [HuggingFace Transformers](https://github.com/huggingface/transformers) * **License**: Fine-tuned checkpoints (`Stable Beluga 13B`) is licensed under the [STABLE BELUGA NON-COMMERCIAL COMMUNITY LICENSE AGREEMENT](https://huggingface.co/stabilityai/StableBeluga-13B/blob/main/LICENSE.txt) * **Contact**: For questions and comments about the model, please email `lm@stability.ai` ### Training Dataset ` Stable Beluga 13B` is trained on our internal Orca-style dataset ### Training Procedure Models are learned via supervised fine-tuning on the aforementioned datasets, trained in mixed-precision (BF16), and optimized with AdamW. We outline the following hyperparameters: | Dataset | Batch Size | Learning Rate |Learning Rate Decay| Warm-up | Weight Decay | Betas | |-------------------|------------|---------------|-------------------|---------|--------------|-------------| | Orca pt1 packed | 256 | 3e-5 | Cosine to 3e-6 | 100 | 1e-6 | (0.9, 0.95) | | Orca pt2 unpacked | 512 | 3e-5 | Cosine to 3e-6 | 100 | 1e-6 | (0.9, 0.95) | ## Ethical Considerations and Limitations Beluga is a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Beluga's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Beluga, developers should perform safety testing and tuning tailored to their specific applications of the model. ## Citations ```bibtext @misc{touvron2023llama, title={Llama 2: Open Foundation and Fine-Tuned Chat Models}, author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov and Soumya Batra and Prajjwal Bhargava and Shruti Bhosale and Dan Bikel and Lukas Blecher and Cristian Canton Ferrer and Moya Chen and Guillem Cucurull and David Esiobu and Jude Fernandes and Jeremy Fu and Wenyin Fu and Brian Fuller and Cynthia Gao and Vedanuj Goswami and Naman Goyal and Anthony Hartshorn and Saghar Hosseini and Rui Hou and Hakan Inan and Marcin Kardas and Viktor Kerkez and Madian Khabsa and Isabel Kloumann and Artem Korenev and Punit Singh Koura and Marie-Anne Lachaux and Thibaut Lavril and Jenya Lee and Diana Liskovich and Yinghai Lu and Yuning Mao and Xavier Martinet and Todor Mihaylov and Pushkar Mishra and Igor Molybog and Yixin Nie and Andrew Poulton and Jeremy Reizenstein and Rashi Rungta and Kalyan Saladi and Alan Schelten and Ruan Silva and Eric Michael Smith and Ranjan Subramanian and Xiaoqing Ellen Tan and Binh Tang and Ross Taylor and Adina Williams and Jian Xiang Kuan and Puxin Xu and Zheng Yan and Iliyan Zarov and Yuchen Zhang and Angela Fan and Melanie Kambadur and Sharan Narang and Aurelien Rodriguez and Robert Stojnic and Sergey Edunov and Thomas Scialom}, year={2023}, eprint={2307.09288}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ```bibtext @misc{mukherjee2023orca, title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4}, author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah}, year={2023}, eprint={2306.02707}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.456756591796875, -1.0293062925338745, 0.04881885275244713, 0.4341396391391754, -0.258089154958725, 0.06067141890525818, -0.1510457992553711, -0.5347917675971985, 0.04192555695772171, 0.2578909993171692, -0.6223105788230896, -0.5119824409484863, -0.6714683771133423, -0.06537723541259766, -0.34576284885406494, 1.0813229084014893, 0.1322098970413208, -0.18073958158493042, 0.12322941422462463, -0.10594451427459717, -0.654747724533081, -0.3115258812904358, -0.9581736326217651, -0.2896246314048767, 0.23956774175167084, 0.23186171054840088, 0.7612335681915283, 0.7263409495353699, 0.24314051866531372, 0.36406683921813965, -0.42076966166496277, 0.07238169014453888, -0.6321994662284851, -0.1705162674188614, 0.17520771920681, -0.5104117393493652, -0.6148528456687927, -0.009442896582186222, 0.45603689551353455, 0.4323619604110718, -0.1788364201784134, 0.20209097862243652, 0.24745453894138336, 0.3859086334705353, -0.38477426767349243, 0.35726094245910645, -0.46794819831848145, -0.18453183770179749, -0.16563746333122253, 0.06435369700193405, -0.24427840113639832, -0.7135983109474182, 0.08627163618803024, -0.6099745035171509, -0.000944737286772579, -0.06311923265457153, 1.5116080045700073, 0.4039439857006073, -0.5002493858337402, -0.13793694972991943, -0.5858780741691589, 0.8986903429031372, -0.9227452278137207, 0.45196884870529175, 0.31517457962036133, 0.33829769492149353, -0.37891125679016113, -0.6867523193359375, -0.6755767464637756, -0.22928941249847412, -0.050074052065610886, 0.36084553599357605, -0.20137670636177063, -0.027123913168907166, 0.2675476372241974, 0.4364441931247711, -0.5347490906715393, 0.28674712777137756, -0.5659956932067871, -0.4397304654121399, 0.5438271164894104, 0.13747826218605042, 0.10155738890171051, -0.13468027114868164, -0.3332151174545288, -0.3784191310405731, -0.726482629776001, 0.33032339811325073, 0.4155723452568054, 0.20174653828144073, -0.566033661365509, 0.5894821286201477, -0.0481954924762249, 0.6303597688674927, 0.09180343151092529, -0.33922237157821655, 0.441193550825119, -0.4208676218986511, -0.416302889585495, -0.0380561389029026, 1.010919213294983, 0.3868531584739685, 0.09198299795389175, 0.3382754921913147, -0.036784254014492035, 0.4136197865009308, -0.04701581224799156, -0.8945467472076416, -0.19056175649166107, 0.3664003610610962, -0.5199093222618103, -0.5663100481033325, -0.3316914737224579, -1.0774290561676025, -0.17948351800441742, -0.03331592306494713, 0.32836973667144775, -0.47299322485923767, -0.4282185733318329, 0.22061651945114136, 0.36232465505599976, 0.5489535927772522, 0.0328136570751667, -1.0138148069381714, 0.3594035804271698, 0.46583402156829834, 0.7358497977256775, 0.12479854375123978, -0.29069653153419495, -0.2892511188983917, -0.1324649602174759, -0.4725790321826935, 0.6040140390396118, -0.21288856863975525, -0.4846438467502594, -0.05023874714970589, 0.1530655026435852, -0.09516306966543198, -0.3189501464366913, 0.7033419013023376, -0.2567342221736908, 0.45331093668937683, -0.14405323565006256, -0.44667699933052063, -0.45039549469947815, 0.2283017337322235, -0.40111464262008667, 1.2338634729385376, -0.11491027474403381, -0.6999082565307617, 0.22380025684833527, -0.658416211605072, -0.3267996311187744, -0.3551574647426605, -0.13851819932460785, -0.7283004522323608, -0.3734738230705261, 0.24521365761756897, 0.5187463760375977, -0.2636193037033081, 0.293043851852417, -0.4351288974285126, -0.28407201170921326, 0.16815200448036194, -0.3066594898700714, 1.1384332180023193, 0.35509544610977173, -0.6932042837142944, 0.18894323706626892, -0.960766077041626, -0.14534038305282593, 0.366892009973526, -0.4018661379814148, -0.021078115329146385, -0.12328334897756577, -0.2791920304298401, 0.012617962434887886, 0.3651268482208252, -0.5624816417694092, 0.11853440850973129, -0.4479737877845764, 0.4945906698703766, 0.7470094561576843, -0.050315700471401215, 0.1925935000181198, -0.35443371534347534, 0.35141730308532715, -0.03779027983546257, 0.41074246168136597, -0.09362445771694183, -0.855308473110199, -0.9930972456932068, -0.3297892212867737, 0.37124279141426086, 0.7560069561004639, -0.32581284642219543, 0.7211260795593262, 0.06481094658374786, -0.7659668922424316, -0.6474205851554871, -0.061175111681222916, 0.6356173753738403, 0.6738992929458618, 0.3375405967235565, -0.304904967546463, -0.6823109984397888, -0.8309115171432495, 0.17661833763122559, -0.40397730469703674, 0.15942084789276123, 0.15093493461608887, 0.3728473484516144, -0.48524054884910583, 0.7827205061912537, -0.5131554007530212, -0.1910938322544098, -0.11671914905309677, 0.16596287488937378, 0.3487718403339386, 0.5800919532775879, 0.8534307479858398, -0.5515537261962891, -0.24937653541564941, -0.11396811157464981, -0.7286296486854553, -0.04692336171865463, 0.06729605048894882, -0.264330118894577, 0.5551753640174866, 0.30734989047050476, -0.5678765177726746, 0.5657013654708862, 0.8379908800125122, -0.3777257204055786, 0.6193218231201172, -0.19223792850971222, 0.05754740908741951, -1.2343627214431763, 0.13189736008644104, 0.14105567336082458, -0.07280775159597397, -0.5333284735679626, -0.028979763388633728, 0.055415935814380646, -0.010437780059874058, -0.36378413438796997, 0.5173181891441345, -0.31696924567222595, 0.022698113694787025, -0.18548966944217682, 0.0897393748164177, -0.15384089946746826, 0.6411529183387756, -0.0009954454144462943, 0.5066208839416504, 0.7841742634773254, -0.7681230902671814, 0.33583885431289673, 0.4771606922149658, -0.39941737055778503, 0.23807163536548615, -0.9411470293998718, 0.11857876181602478, 0.19567374885082245, 0.18207237124443054, -1.3052754402160645, -0.1398167461156845, 0.4010424017906189, -0.6734033823013306, 0.4721892178058624, -0.20502090454101562, -0.3942039906978607, -0.496135413646698, -0.23680667579174042, 0.05182940140366554, 0.824809730052948, -0.5100969076156616, 0.464186429977417, 0.43787235021591187, -0.03225681558251381, -0.7491539716720581, -0.8327985405921936, -0.2728017568588257, -0.29576340317726135, -0.8824920058250427, 0.1492280513048172, -0.3994302451610565, 0.10767971724271774, -0.101924367249012, -0.07046083360910416, 0.03634355962276459, 0.2793067693710327, 0.32870733737945557, 0.5704085826873779, -0.12527459859848022, -0.4012007713317871, 0.22247672080993652, -0.2397104799747467, 0.056146129965782166, 0.02017855830490589, 0.7164292335510254, -0.581266462802887, -0.15199311077594757, -0.48995867371559143, -0.08568678051233292, 0.5474810004234314, -0.33484914898872375, 0.8275575637817383, 0.7060096263885498, -0.4672701954841614, 0.36639469861984253, -0.642790675163269, -0.28702080249786377, -0.5389719009399414, 0.3732811212539673, -0.35817453265190125, -0.8395150899887085, 0.9396542906761169, 0.06954948604106903, 0.4748910367488861, 0.5299290418624878, 0.8200749158859253, 0.1263783723115921, 1.0196313858032227, 0.7462727427482605, -0.020258521661162376, 0.2800159156322479, -0.5498107075691223, 0.12853556871414185, -0.7337656021118164, -0.5444215536117554, -0.6414129137992859, -0.20155587792396545, -0.6446046829223633, 0.029718123376369476, 0.21976801753044128, 0.10094656050205231, -0.5260473489761353, 0.4021073281764984, -0.5759773850440979, 0.06765305995941162, 0.49188232421875, 0.04817802086472511, 0.16366416215896606, -0.21255463361740112, -0.3931564390659332, 0.030879735946655273, -0.6561673283576965, -0.5252739191055298, 1.0210081338882446, 0.6344888806343079, 0.8225206732749939, 0.07511777430772781, 0.4468027651309967, -0.26726922392845154, 0.11316321790218353, -0.539203405380249, 0.6493855118751526, 0.045156195759773254, -0.8600807785987854, -0.18786302208900452, -0.44661328196525574, -1.246232271194458, 0.08475296199321747, -0.296686053276062, -0.7175087332725525, 0.36769556999206543, 0.172511488199234, -0.5410208702087402, 0.2071983516216278, -0.7660971879959106, 1.1066409349441528, -0.30015310645103455, -0.14458999037742615, -0.10830806940793991, -0.8579598069190979, 0.6737369894981384, 0.012710373848676682, 0.3372989594936371, -0.0001609491155249998, -0.015725117176771164, 0.7598593831062317, -0.44008004665374756, 1.0115045309066772, 0.00914008542895317, -0.14485149085521698, 0.3903253972530365, 0.23197782039642334, 0.4287019968032837, 0.13634967803955078, -0.024644218385219574, 0.28196993470191956, 0.11721216142177582, -0.4207523763179779, -0.2723255753517151, 0.746250331401825, -1.2987048625946045, -0.5019082427024841, -0.5102499127388, -0.25438225269317627, 0.032410163432359695, 0.3446841239929199, 0.37848493456840515, 0.4042641818523407, 0.19885960221290588, 0.27039042115211487, 0.7308327555656433, -0.4399386942386627, 0.3676421642303467, 0.5728878974914551, -0.44184595346450806, -0.5407772660255432, 0.6830179691314697, 0.16271468997001648, 0.31973034143447876, 0.06567315757274628, 0.3392861783504486, -0.44269445538520813, -0.5902040600776672, -0.42441582679748535, 0.3859896659851074, -0.5463476181030273, -0.22277025878429413, -0.5959665775299072, -0.2947537302970886, -0.48616230487823486, 0.009348473511636257, -0.6926133036613464, -0.316054105758667, -0.4407927989959717, -0.3208220601081848, 0.6741948127746582, 0.44055497646331787, -0.1505439579486847, 0.21841193735599518, -0.7025601267814636, 0.1810767948627472, 0.2709886133670807, 0.29913991689682007, -0.0538366474211216, -0.82403564453125, -0.14579808712005615, 0.20040956139564514, -0.5208051800727844, -0.8785179257392883, 0.34123915433883667, 0.03213391825556755, 0.7438367009162903, 0.36066997051239014, 0.04664196819067001, 0.8651394248008728, -0.11936512589454651, 0.9698771834373474, 0.22585654258728027, -0.8363423347473145, 0.640860915184021, -0.4141823947429657, 0.06412564218044281, 0.3628924489021301, 0.5739701986312866, -0.3474486172199249, -0.4071114957332611, -0.7605171799659729, -0.8153395652770996, 0.7211380004882812, 0.33386772871017456, 0.04154603183269501, 0.050700683146715164, 0.5309233665466309, 0.07562126219272614, 0.078399159014225, -0.928431510925293, -0.5587192177772522, -0.6301409006118774, -0.006111816503107548, 0.057144179940223694, -0.2839503884315491, -0.12502814829349518, -0.3042933940887451, 0.8712847828865051, 0.07487893849611282, 0.3989394009113312, 0.16244256496429443, 0.25540095567703247, -0.1963619887828827, 0.000892486481461674, 0.7041260004043579, 0.5564839243888855, -0.4579421579837799, -0.1246945783495903, 0.3344566226005554, -0.6438367366790771, -0.027440128847956657, 0.3253764808177948, -0.28495049476623535, -0.2907122075557709, 0.039708226919174194, 0.9449813365936279, 0.11736011505126953, -0.4252624809741974, 0.2624550461769104, -0.2437680959701538, -0.34096747636795044, -0.351849228143692, 0.02570822276175022, 0.23513852059841156, 0.29172563552856445, 0.17768800258636475, 0.07266224920749664, -0.27128520607948303, -0.7090480327606201, -0.04894695430994034, 0.17951464653015137, -0.23992671072483063, -0.32302573323249817, 0.9370996356010437, 0.2212013304233551, -0.13768929243087769, 0.6411615014076233, -0.13207679986953735, -0.4766610264778137, 0.6311075091362, 0.5333257913589478, 0.7043687701225281, -0.45482394099235535, 0.04072374477982521, 0.6245684027671814, 0.5387905240058899, -0.14169256389141083, 0.47040191292762756, 0.505321204662323, -0.6863281726837158, -0.485640287399292, -0.495848685503006, -0.49702921509742737, 0.5119081735610962, -0.5653868913650513, 0.58307284116745, -0.5541586875915527, -0.24503181874752045, -0.2710343897342682, 0.31150686740875244, -0.4313255250453949, 0.29909035563468933, 0.03463733568787575, 0.9247738718986511, -0.8128400444984436, 0.8174038529396057, 0.6881453990936279, -0.5504307746887207, -1.0780985355377197, -0.3490124046802521, 0.018586162477731705, -0.7381469011306763, 0.23012642562389374, 0.06017157807946205, 0.09821561723947525, 0.0690586268901825, -0.634638249874115, -0.9496661424636841, 1.3121949434280396, 0.4990812838077545, -0.5433834791183472, 0.2740855813026428, -0.011801067739725113, 0.6223816871643066, -0.05512749403715134, 0.5058916211128235, 0.6271977424621582, 0.5934253334999084, 0.13868318498134613, -1.0254608392715454, 0.3251873254776001, -0.3247377872467041, -0.14194129407405853, 0.05204476788640022, -1.145161509513855, 0.8094775080680847, -0.1223275288939476, -0.0423256978392601, 0.3033328950405121, 0.8850247263908386, 0.7593659162521362, 0.3141455054283142, 0.546489953994751, 0.7309341430664062, 0.7405423521995544, -0.22048090398311615, 1.0977396965026855, -0.39239779114723206, 0.4236867427825928, 0.6712844967842102, 0.07061208784580231, 0.7589370012283325, 0.08223782479763031, -0.25770139694213867, 0.6410555243492126, 1.100260853767395, -0.1410105675458908, 0.614966869354248, -0.042965956032276154, 0.14551131427288055, -0.09689077734947205, 0.2070847749710083, -0.6464442610740662, 0.16709399223327637, 0.48335739970207214, -0.080236054956913, -0.07115135341882706, -0.09099292755126953, 0.44403690099716187, -0.15856321156024933, -0.12045716494321823, 0.5060281753540039, 0.24470140039920807, -0.6241570115089417, 1.2833456993103027, 0.03817671537399292, 0.8025914430618286, -0.8993387818336487, 0.20860062539577484, -0.44027695059776306, 0.30045390129089355, -0.35340359807014465, -0.7374641299247742, 0.3400103449821472, -0.006029750686138868, 0.14219419658184052, 0.16273809969425201, 0.7510045766830444, -0.16877512633800507, -0.36249685287475586, 0.5212402939796448, 0.1255025416612625, 0.3587349057197571, 0.303060382604599, -0.9906769394874573, 0.3529670834541321, 0.1022646576166153, -0.6007101535797119, 0.3201868534088135, 0.466113805770874, 0.025193559005856514, 0.8066719174385071, 0.7366785407066345, -0.15666566789150238, 0.40261000394821167, -0.13549882173538208, 1.0275633335113525, -0.43482816219329834, -0.35032302141189575, -0.7911911010742188, 0.5623427629470825, 0.12670893967151642, -0.5355086922645569, 0.8689157366752625, 0.5962414741516113, 0.8030214905738831, 0.16691499948501587, 0.7106277346611023, -0.19982388615608215, 0.49247002601623535, -0.4657590091228485, 0.7082712054252625, -0.519993782043457, 0.3074153661727905, -0.2592085599899292, -0.9902647137641907, -0.2482222318649292, 0.8284388780593872, -0.2321312129497528, 0.06719733774662018, 0.5865073800086975, 0.9620025157928467, -0.09489783644676208, 0.062328070402145386, 0.13533829152584076, 0.6955767273902893, 0.4970562160015106, 0.5727821588516235, 0.7231079339981079, -0.6473670601844788, 1.0761723518371582, -0.6075329184532166, -0.47299903631210327, -0.27855628728866577, -1.0619957447052002, -1.1278616189956665, -0.4894242584705353, -0.5102084279060364, -0.6782870888710022, 0.03229128196835518, 0.7508146166801453, 0.7058130502700806, -0.7732055187225342, -0.41720783710479736, -0.15704046189785004, -0.0448140911757946, -0.3665492534637451, -0.18536092340946198, 0.5103984475135803, -0.11372757703065872, -0.7754812240600586, 0.33298712968826294, -0.019671570509672165, 0.42226752638816833, -0.3729594349861145, -0.2616015076637268, -0.2920939326286316, 0.12023201584815979, 0.3333418071269989, 0.5622876286506653, -0.46802276372909546, -0.34397926926612854, 0.16715404391288757, -0.07267503440380096, -0.017413616180419922, 0.011587321758270264, -0.5847130417823792, 0.2714475393295288, 0.5088075399398804, 0.4682556092739105, 0.8324756026268005, -0.24612273275852203, 0.39004525542259216, -0.4327869713306427, 0.2819279730319977, -0.05733397230505943, 0.4739454984664917, 0.2152644693851471, -0.260211318731308, 0.6907898783683777, 0.3213445246219635, -0.8405205607414246, -0.9300286173820496, 0.08040744066238403, -1.3184447288513184, -0.07825149595737457, 1.21578049659729, -0.2574487328529358, -0.3888375461101532, -0.11044750362634659, -0.4215312898159027, 0.5701038241386414, -0.5118177533149719, 1.0462751388549805, 0.5111227035522461, 0.06849059462547302, -0.3065938353538513, -0.5861603617668152, 0.45009317994117737, 0.3907053470611572, -0.7361973524093628, -0.17259018123149872, 0.2691154479980469, 0.35461145639419556, 0.3031136989593506, 0.4890735447406769, -0.3998904228210449, 0.25737816095352173, -0.24117575585842133, 0.14634454250335693, -0.16869017481803894, -0.07752811163663864, -0.20399945974349976, -0.2759850323200226, -0.148945152759552, -0.33851078152656555 ]
microsoft/dit-base
microsoft
"2023-02-27T17:55:38Z"
24,708
12
transformers
[ "transformers", "pytorch", "beit", "dit", "arxiv:2203.02378", "region:us" ]
null
"2022-03-07T17:18:46Z"
--- tags: - dit inference: false --- # Document Image Transformer (base-sized model) Document Image Transformer (DiT) model pre-trained on IIT-CDIP (Lewis et al., 2006), a dataset that includes 42 million document images. It was introduced in the paper [DiT: Self-supervised Pre-training for Document Image Transformer](https://arxiv.org/abs/2203.02378) by Li et al. and first released in [this repository](https://github.com/microsoft/unilm/tree/master/dit). Note that DiT is identical to the architecture of [BEiT](https://huggingface.co/docs/transformers/model_doc/beit). Disclaimer: The team releasing DiT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The Document Image Transformer (DiT) is a transformer encoder model (BERT-like) pre-trained on a large collection of images in a self-supervised fashion. The pre-training objective for the model is to predict visual tokens from the encoder of a discrete VAE (dVAE), based on masked patches. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled document images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. ## Intended uses & limitations You can use the raw model for encoding document images into a vector space, but it's mostly meant to be fine-tuned on tasks like document image classification, table detection or document layout analysis. See the [model hub](https://huggingface.co/models?search=microsoft/dit) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model in PyTorch: ```python from transformers import BeitImageProcessor, BeitForMaskedImageModeling import torch from PIL import Image image = Image.open('path_to_your_document_image').convert('RGB') processor = BeitImageProcessor.from_pretrained("microsoft/dit-base") model = BeitForMaskedImageModeling.from_pretrained("microsoft/dit-base") num_patches = (model.config.image_size // model.config.patch_size) ** 2 pixel_values = processor(images=image, return_tensors="pt").pixel_values # create random boolean mask of shape (batch_size, num_patches) bool_masked_pos = torch.randint(low=0, high=2, size=(1, num_patches)).bool() outputs = model(pixel_values, bool_masked_pos=bool_masked_pos) loss, logits = outputs.loss, outputs.logits ``` ### BibTeX entry and citation info ```bibtex @article{Lewis2006BuildingAT, title={Building a test collection for complex document information processing}, author={David D. Lewis and Gady Agam and Shlomo Engelson Argamon and Ophir Frieder and David A. Grossman and Jefferson Heard}, journal={Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval}, year={2006} } ```
[ -0.5561891794204712, -0.5742629766464233, 0.25139543414115906, -0.07969174534082413, -0.27803677320480347, -0.1456918865442276, 0.07759933918714523, -0.37622398138046265, -0.09679561853408813, 0.23141449689865112, -0.44270673394203186, -0.29989907145500183, -0.9145784974098206, -0.08132818341255188, -0.6547538042068481, 1.0763130187988281, -0.15825386345386505, -0.17398443818092346, -0.037399426102638245, -0.007769428659230471, -0.3035445213317871, -0.37869003415107727, -0.2947324812412262, -0.2647492289543152, 0.26528990268707275, 0.07418686151504517, 0.5643877387046814, 0.43816474080085754, 0.7480517029762268, 0.4643595218658447, 0.1730073243379593, -0.12649720907211304, -0.4892038404941559, -0.2998434901237488, -0.003774023614823818, -0.5227228403091431, -0.3377242684364319, 0.30797144770622253, 0.38495561480522156, 0.2091154009103775, 0.17726731300354004, 0.10774680972099304, -0.00932388100773096, 0.6094050407409668, -0.4325828552246094, 0.13775955140590668, -0.5200794339179993, 0.05844986066222191, -0.08138853311538696, -0.08702973276376724, -0.3480350375175476, -0.18090377748012543, 0.17700721323490143, -0.48858320713043213, 0.8007603287696838, -0.18204395473003387, 1.2434108257293701, 0.247761532664299, -0.24655281007289886, -0.3598960340023041, -0.6873073577880859, 0.5306443572044373, -0.5067035555839539, 0.4009646773338318, 0.13946758210659027, 0.2420494705438614, -0.00822266936302185, -1.1658352613449097, -0.7804390788078308, -0.17517083883285522, -0.3172413408756256, 0.34547147154808044, -0.5089544057846069, 0.18955712020397186, 0.5041455030441284, 0.588140606880188, -0.6241785883903503, -0.06404116004705429, -0.6414387226104736, -0.19751274585723877, 0.43711233139038086, -0.2533532381057739, 0.3641362488269806, -0.19399778544902802, -0.4824824035167694, -0.4369906783103943, -0.15593555569648743, -0.18095572292804718, 0.33941850066185, -0.2744677662849426, -0.07920582592487335, 0.452942818403244, 0.1293875128030777, 0.7086510062217712, 0.3284536302089691, -0.1261480301618576, 0.36436647176742554, -0.06371071189641953, -0.326911062002182, -0.09883880615234375, 0.7007352709770203, 0.26320865750312805, 0.1821637749671936, -0.09074718505144119, -0.36104562878608704, 0.3495611250400543, 0.3345533609390259, -1.15528404712677, -0.5864925980567932, 0.0885961651802063, -0.5702640414237976, -0.31570544838905334, 0.19828161597251892, -0.6397262811660767, -0.10053301602602005, -0.3318672180175781, 0.7396498322486877, -0.6907899379730225, -0.2510015070438385, -0.013745785690844059, -0.24181236326694489, 0.27400848269462585, 0.47182562947273254, -0.6411101222038269, 0.12272174656391144, 0.14721715450286865, 0.9286434650421143, -0.051491644233465195, -0.4358200430870056, -0.3035946488380432, -0.20530274510383606, -0.1764851212501526, 0.737779974937439, -0.20359694957733154, -0.2727796733379364, -0.006201783195137978, 0.21640558540821075, -0.006590016186237335, -0.3382502794265747, 0.372660756111145, -0.6325076222419739, 0.3652883470058441, -0.07438771426677704, -0.4565765857696533, -0.13385063409805298, 0.26941433548927307, -0.6631021499633789, 1.1293139457702637, 0.4929538667201996, -0.9971975088119507, 0.33466970920562744, -0.5568118691444397, -0.16655823588371277, -0.057495612651109695, -0.10921777784824371, -0.6616612076759338, 0.12860122323036194, 0.21812763810157776, 0.5798429250717163, -0.16523867845535278, -0.006367192137986422, -0.12797808647155762, -0.4117948114871979, 0.06390762329101562, -0.35231688618659973, 0.7108496427536011, 0.3753816485404968, -0.4439639449119568, 0.015780657529830933, -0.723003625869751, -0.18494179844856262, 0.39126789569854736, -0.2480524182319641, -0.030026322230696678, -0.4313484728336334, 0.35404783487319946, 0.4701617956161499, 0.35548216104507446, -0.6630633473396301, 0.38188329339027405, -0.1858447790145874, 0.4251222610473633, 0.6517621874809265, -0.28109705448150635, 0.4629284739494324, -0.26084384322166443, 0.4168713390827179, 0.17571572959423065, 0.18243326246738434, -0.3564135730266571, -0.18755051493644714, -0.7470594644546509, -0.5386988520622253, 0.3584900498390198, 0.365013986825943, -0.6660072803497314, 0.5077732801437378, -0.2948896586894989, -0.6933676600456238, -0.3915579915046692, -0.06983712315559387, 0.265798956155777, 0.6241883039474487, 0.3082302510738373, -0.3427009582519531, -0.320303738117218, -0.8614875078201294, 0.3263699412345886, -0.012955769896507263, -0.08117358386516571, -0.11072880774736404, 0.6769943237304688, -0.3195800185203552, 0.9197651743888855, -0.5524367690086365, -0.4304753243923187, -0.0615718699991703, 0.3545359671115875, 0.3367551863193512, 0.48951050639152527, 0.6859575510025024, -0.8948418498039246, -0.632035493850708, -0.28087112307548523, -0.6459680199623108, 0.030153878033161163, -0.21954908967018127, -0.11501074582338333, 0.3331379294395447, 0.5065711736679077, -0.7875855565071106, 0.8127431273460388, 0.47914040088653564, -0.2246546596288681, 0.5143424272537231, -0.4780362546443939, 0.18228614330291748, -1.1122379302978516, -0.0046341754496097565, 0.1417078971862793, -0.23994410037994385, -0.4458908438682556, -0.09042853862047195, 0.31621530652046204, -0.23720641434192657, -0.2848217785358429, 0.3810758590698242, -0.7879226803779602, -0.1734035760164261, -0.3798139989376068, -0.0896107405424118, 0.18081879615783691, 0.5658428072929382, 0.1685016006231308, 0.6344296336174011, 0.7011231780052185, -0.3103220462799072, 0.4150187373161316, 0.37834620475769043, -0.2582191824913025, 0.8374619483947754, -0.745027482509613, 0.3245556652545929, -0.2364322692155838, 0.24758878350257874, -1.1643623113632202, -0.10255184024572372, -0.054425302892923355, -0.36730414628982544, 0.8156671524047852, -0.22548110783100128, -0.7041966319084167, -0.7057861685752869, -0.2375679314136505, 0.18912944197654724, 0.7061750292778015, -0.6701573133468628, 0.6094124913215637, 0.14820654690265656, 0.2905034124851227, -0.43192437291145325, -0.7084770798683167, -0.10192506015300751, -0.07016437500715256, -0.8909741044044495, 0.7389981150627136, -0.10154420882463455, 0.1720716506242752, 0.197206050157547, -0.11555212736129761, -0.019303251057863235, -0.21879762411117554, 0.3312365710735321, 0.4188140332698822, -0.07354621589183807, 0.15850268304347992, -0.34121453762054443, -0.2572777569293976, -0.13993261754512787, -0.22661460936069489, 0.6216092109680176, -0.39390742778778076, -0.5500174760818481, -0.2592529356479645, 0.26857587695121765, 0.5142940878868103, -0.24751271307468414, 0.5409412980079651, 0.9637435674667358, -0.46339964866638184, -0.07154079526662827, -0.7120957970619202, -0.1989082247018814, -0.49992701411247253, 0.588823676109314, -0.5340315103530884, -0.42177724838256836, 0.6317365169525146, -0.1521911472082138, 0.03481238707900047, 0.7667952179908752, 0.629185140132904, -0.26552027463912964, 0.6959449052810669, 0.7571545839309692, -0.007108788471668959, 0.7326024174690247, -0.7537697553634644, 0.09495120495557785, -0.6945065855979919, -0.06867167353630066, -0.2864522337913513, -0.43670597672462463, -0.5473066568374634, -0.3991526663303375, 0.32271555066108704, 0.2529279887676239, -0.15132193267345428, 0.4971480071544647, -1.092165470123291, 0.330575168132782, 0.7635188102722168, 0.2180936634540558, -0.033631689846515656, 0.03585558757185936, 0.11503131687641144, 0.0981619656085968, -0.5124830007553101, -0.43168455362319946, 0.9505724310874939, 0.37067362666130066, 0.9974746108055115, -0.20511716604232788, 0.805299699306488, 0.21932566165924072, 0.19308410584926605, -0.6474488377571106, 0.2698838710784912, -0.13673433661460876, -0.5240910649299622, -0.1782556027173996, -0.017701970413327217, -1.1777045726776123, 0.019940577447414398, -0.10868329554796219, -0.6882495284080505, 0.30137577652931213, 0.10843407362699509, -0.009400060400366783, 0.4323272705078125, -0.9999376535415649, 0.9553085565567017, -0.34509018063545227, -0.22174371778964996, 0.09826528280973434, -0.6250109076499939, 0.03534453362226486, -0.10211555659770966, -0.17380307614803314, 0.15119554102420807, 0.3334832489490509, 0.8587771058082581, -0.579911470413208, 0.7592366933822632, -0.17523103952407837, 0.190079927444458, 0.41876086592674255, 0.00807249452918768, 0.5987409353256226, -0.3492514491081238, -0.022924592718482018, 0.31722766160964966, 0.3459640145301819, -0.4095057547092438, -0.5745679140090942, 0.5059084296226501, -1.122835636138916, -0.45451992750167847, -0.6420352458953857, -0.522914469242096, 0.18440884351730347, 0.4065568447113037, 0.7895202040672302, 0.4733307361602783, -0.13671255111694336, 0.1145244613289833, 0.6795347929000854, -0.21390597522258759, 0.5046098828315735, 0.20311954617500305, -0.08380623161792755, -0.1502922624349594, 0.7443176507949829, 0.41231536865234375, 0.15756981074810028, 0.28386008739471436, 0.1357443630695343, -0.40206438302993774, -0.6523836851119995, -0.3000826835632324, 0.2832490801811218, -0.9469448924064636, -0.3601703941822052, -0.6357843279838562, -0.5562171339988708, -0.46011146903038025, -0.34864822030067444, -0.29147589206695557, -0.033501364290714264, -0.5042160749435425, -0.042689353227615356, 0.49101999402046204, 0.747522234916687, 0.020838133990764618, 0.566002607345581, -0.6394335031509399, 0.35700511932373047, 0.396758496761322, 0.4215220510959625, -0.19157637655735016, -0.706322193145752, -0.0804707482457161, -0.17213523387908936, -0.5117202997207642, -0.9778074026107788, 0.44997555017471313, -0.009668816812336445, 0.6565922498703003, 0.08595352619886398, 0.08641478419303894, 0.5076410174369812, -0.3831743597984314, 0.5189180374145508, 0.36365842819213867, -0.696287989616394, 0.6051886677742004, -0.28883999586105347, 0.27233392000198364, 0.2831922769546509, 0.42003971338272095, -0.2987363338470459, 0.033968739211559296, -1.0856071710586548, -0.6297791600227356, 0.867198646068573, 0.3157498836517334, 0.15375125408172607, 0.15611428022384644, 0.29245617985725403, -0.02834765985608101, 0.05097760260105133, -0.7262557744979858, -0.18835727870464325, -0.6393184065818787, -0.3361629247665405, -0.037729982286691666, -0.37706586718559265, -0.017885057255625725, -0.3273313641548157, 0.5568777322769165, -0.031245185062289238, 0.6831066012382507, 0.49917495250701904, -0.46760880947113037, 0.06597218662500381, -0.15109960734844208, 0.20655949413776398, 0.40811026096343994, -0.4855440855026245, 0.25459492206573486, -0.053694047033786774, -0.7016891241073608, 0.02850937657058239, 0.42166978120803833, 0.01595422439277172, 0.12973451614379883, 0.3444972634315491, 0.8680382966995239, -0.29434093832969666, -0.09777138382196426, 0.6628150343894958, -0.02288970910012722, -0.3512232005596161, -0.3887490928173065, -0.13588298857212067, 0.0693829134106636, 0.17643865942955017, 0.29715830087661743, 0.08689676970243454, 0.016337092965841293, -0.48867562413215637, 0.3842308819293976, 0.3788244426250458, -0.369619756937027, -0.3197236955165863, 0.5447793006896973, 0.06526102125644684, -0.27089452743530273, 0.8326658606529236, -0.15055395662784576, -0.5906968116760254, 0.8341895937919617, 0.6085414290428162, 0.7460836172103882, -0.004586370196193457, 0.1711779087781906, 0.4877587556838989, 0.44329312443733215, 0.10325005650520325, -0.02685871161520481, 0.028248818591237068, -0.6975670456886292, 0.1333225816488266, -0.684742271900177, 0.04342415928840637, 0.23426449298858643, -0.3582736551761627, 0.5137425065040588, -0.36002588272094727, -0.20066896080970764, 0.26759961247444153, 0.24904604256153107, -1.1573930978775024, 0.41289612650871277, 0.20221196115016937, 0.9178215861320496, -0.743720531463623, 0.9920613169670105, 0.5243933796882629, -0.8356617093086243, -0.7785002589225769, -0.14097543060779572, -0.15716798603534698, -0.8631035685539246, 0.7370761036872864, 0.38105523586273193, 0.07718988507986069, 0.15011343359947205, -0.42519664764404297, -0.7840072512626648, 1.2231998443603516, 0.42427751421928406, -0.49527111649513245, -0.05908016115427017, 0.013477880507707596, 0.48424628376960754, -0.25124552845954895, 0.6624734997749329, 0.2769794166088104, 0.30954909324645996, 0.4066939949989319, -0.641655445098877, 0.19157737493515015, -0.46958068013191223, 0.11940041929483414, 0.14083261787891388, -0.5584318041801453, 1.0247390270233154, -0.043187472969293594, -0.17458009719848633, -0.10719255357980728, 0.5220816135406494, -0.03578028455376625, 0.06979125738143921, 0.6547014713287354, 0.6831995248794556, 0.6655790209770203, -0.18397895991802216, 1.2634384632110596, -0.19459331035614014, 0.49509188532829285, 0.9198409914970398, 0.09924156218767166, 0.3549233675003052, 0.32405924797058105, -0.2923975884914398, 0.3784148395061493, 0.7987401485443115, -0.48348912596702576, 0.5262101292610168, 0.1710720658302307, 0.04055842384696007, 0.021628279238939285, 0.23208945989608765, -0.4564764201641083, 0.37511131167411804, 0.11273687332868576, -0.5839664340019226, -0.4035675823688507, 0.050048988312482834, -0.13439220190048218, -0.18919451534748077, -0.019783200696110725, 0.5998764634132385, -0.11677931249141693, -0.5144134759902954, 0.6178674697875977, -0.0025362689048051834, 0.8547968864440918, -0.6657965183258057, -0.029440592974424362, -0.06509284675121307, 0.3035587668418884, -0.2979406714439392, -0.8702117204666138, 0.38567546010017395, -0.1462942510843277, -0.297233909368515, -0.14179062843322754, 1.0075531005859375, -0.20732541382312775, -0.6927587389945984, 0.24873141944408417, 0.23759399354457855, 0.26823335886001587, -0.2574862241744995, -0.8532239198684692, 0.06310451030731201, -0.08710399270057678, -0.5253637433052063, 0.493891179561615, 0.564903736114502, 0.019119417294859886, 0.24033811688423157, 0.6809106469154358, -0.17893433570861816, 0.2572785019874573, -0.11372152715921402, 1.0681039094924927, -0.3014496862888336, -0.30572327971458435, -0.7235559225082397, 0.6945431232452393, -0.20345160365104675, -0.30684196949005127, 0.6721929907798767, 0.4671007990837097, 0.8969889283180237, -0.27605652809143066, 0.7827122807502747, -0.3382717967033386, -0.04949698969721794, -0.27979186177253723, 0.7496716976165771, -0.5609796047210693, -0.29655221104621887, -0.4733121693134308, -0.895549476146698, -0.09640397876501083, 0.8281024694442749, -0.4391968548297882, 0.1725105345249176, 0.5608829855918884, 0.8958227038383484, -0.39142942428588867, -0.2956913411617279, 0.42411330342292786, 0.10947758704423904, 0.4034222364425659, 0.2859371304512024, 0.5756398439407349, -0.7823102474212646, 0.5825141668319702, -0.5727490782737732, -0.33127498626708984, -0.04148251563310623, -0.8809630274772644, -0.9776807427406311, -0.9163786768913269, -0.4954380989074707, -0.4696313142776489, -0.3422746956348419, 0.4885196089744568, 1.0913158655166626, -0.5808129906654358, 0.19429272413253784, -0.2251344621181488, -0.15173539519309998, 0.03425399959087372, -0.21507227420806885, 0.7763358354568481, -0.20162321627140045, -0.8624170422554016, -0.3670015335083008, 0.035376276820898056, 0.31809818744659424, -0.16492433845996857, 0.009320237673819065, -0.34023213386535645, -0.05040391534566879, 0.5514199137687683, 0.17790354788303375, -0.4738784730434418, -0.26359328627586365, -0.04304533824324608, -0.21684332191944122, 0.2653454840183258, 0.42201897501945496, -0.6577020883560181, 0.6120200753211975, 0.5968040227890015, 0.4420015513896942, 1.0939619541168213, -0.23584042489528656, 0.12352064251899719, -0.683118462562561, 0.48892098665237427, 0.11865460127592087, 0.6485803723335266, 0.33399805426597595, -0.5236644148826599, 0.5064983367919922, 0.3404495120048523, -0.5402910709381104, -0.6809293031692505, 0.09317649155855179, -1.2238022089004517, -0.31494081020355225, 0.8366705179214478, -0.3066834509372711, -0.35475000739097595, 0.2971056401729584, -0.46759554743766785, 0.5689055323600769, -0.11928148567676544, 0.795669674873352, 0.5357735753059387, 0.03452257066965103, -0.3684547245502472, -0.36180245876312256, 0.29402074217796326, -0.038850076496601105, -0.7250383496284485, -0.3102998733520508, 0.4244973063468933, 0.46784284710884094, 0.5489087700843811, 0.7752377986907959, -0.2048914134502411, 0.10814256221055984, 0.2941724956035614, 0.478522390127182, -0.2509080469608307, -0.13284118473529816, -0.17486363649368286, 0.07279905676841736, -0.14735084772109985, -0.5471178889274597 ]
Yntec/aMovieX
Yntec
"2023-09-16T08:29:51Z"
24,648
3
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "MagicArt35", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-09-16T07:32:13Z"
--- license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image - MagicArt35 --- # AmovieX Samples and prompts: ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/7Q-RkVCS355ow0Q5F-e-P.png) Pretty cute girl in a future where humanity has colonized the stars, a group of explorers embarks on a journey to a distant planet, hoping to discover new forms of life and unlock the secrets of the universe. But as they descend through the planet’s thick atmosphere, they discover that the world below is more dangerous and mysterious than they could have ever imagined. ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/Dm9DuPoMYzEjzvsyq1jrg.png) Create pretty cute girl in an otherworldly landscape inspired by a specific planet or moon in our solar system, featuring unique geological formations and extraterrestrial flora and fauna. Original page: https://civitai.com/models/94687/photo-movie-x
[ -0.3415733575820923, -0.7509752511978149, 0.8642510771751404, -0.09027498960494995, -0.20425951480865479, 0.5490776300430298, 0.3457401990890503, -0.509810745716095, 0.960902750492096, 0.656661868095398, -1.0751044750213623, -0.7638365030288696, -0.5857870578765869, 0.06022688001394272, -0.5090125799179077, 0.706153392791748, -0.010319993831217289, -0.17979329824447632, 0.173735573887825, 0.3109608590602875, -0.5715861916542053, 0.05020789057016373, -0.2511410713195801, 0.13908270001411438, 0.16495493054389954, 0.7644174098968506, 0.8106060028076172, 0.3804052770137787, 0.422920286655426, 0.31873181462287903, -0.1620168387889862, 0.035851508378982544, -0.20242296159267426, 0.06100315600633621, -0.18365424871444702, -0.4080958962440491, -0.14168953895568848, 0.4836927056312561, 0.8311866521835327, 0.4672122001647949, -0.027984410524368286, 0.3646955192089081, -0.3429853916168213, 0.2640509605407715, -0.33803591132164, -0.1562090665102005, 0.05360840633511543, 0.5700373649597168, 0.003509845118969679, 0.07067771255970001, 0.1836361587047577, -0.16600751876831055, 0.014853253029286861, -1.2237045764923096, 0.2859109342098236, 0.4576212167739868, 1.347988486289978, 0.0631018877029419, -0.1830233484506607, -0.06882312893867493, -0.5046910047531128, 0.7691512703895569, 0.05249805375933647, 0.1119098961353302, -0.25496986508369446, 0.7335196137428284, -0.0004911440191790462, -0.9074252843856812, -0.5765857696533203, 0.006952737458050251, 0.4680778384208679, 0.10772817581892014, -0.6193629503250122, -0.5523268580436707, 0.3563886880874634, 0.3517967164516449, -0.5724150538444519, -0.08345772325992584, -0.5137218236923218, -0.2168368101119995, 0.4029315412044525, 0.34876322746276855, 0.7213923335075378, -0.6907406449317932, -0.34299013018608093, -0.6025848388671875, -0.636996328830719, 0.6338908672332764, 0.3509109318256378, 0.32264477014541626, -0.7776435613632202, 0.859534502029419, 0.040437936782836914, 0.3227980136871338, 0.04997153952717781, 0.01232090499252081, 0.18605192005634308, -0.35588252544403076, 0.0011596418917179108, -0.33795008063316345, 0.7533393502235413, 0.9172859191894531, 0.07493026554584503, 0.33715540170669556, 0.03821258246898651, 0.21896329522132874, 0.44044050574302673, -0.9794908761978149, -0.6515201926231384, 0.2447356879711151, -0.5841726064682007, -0.6729499101638794, 0.09247095882892609, -1.0221210718154907, -0.45985373854637146, -0.16465018689632416, 0.3218400776386261, -0.3167611062526703, -0.15312409400939941, -0.2548429071903229, -0.47923848032951355, 0.09491530805826187, 0.6657934188842773, -0.8057839274406433, -0.017433319240808487, 0.2621515095233917, 0.9820506572723389, 0.3864004909992218, -0.21180179715156555, -0.43060946464538574, -0.21075889468193054, -0.3425719439983368, 1.0664587020874023, -0.6543719172477722, -0.9786824584007263, -0.39668208360671997, 0.3532423675060272, 0.24099308252334595, -0.5214808583259583, 0.3756949305534363, -0.036256447434425354, -0.35306689143180847, -0.2880624234676361, 0.3452703654766083, -0.38775816559791565, 0.1542162299156189, -0.4509856402873993, 0.440967857837677, 0.06208861991763115, -0.3519980013370514, 0.6877813339233398, -0.8172563910484314, 0.1911631077528, 0.09316776692867279, -0.34804588556289673, -0.22114774584770203, 0.18666423857212067, 0.5395213961601257, 0.06412887573242188, -0.11438826471567154, -0.1118316501379013, -0.6580653786659241, -0.22713230550289154, 0.5901804566383362, 0.08871067315340042, 0.5192678570747375, 0.617401659488678, 0.16430369019508362, 0.2779158055782318, -0.7446099519729614, 0.3205387592315674, 0.15007781982421875, -0.03053280897438526, -0.1449221968650818, -0.43636682629585266, 0.30378761887550354, 0.3707754611968994, -0.2607697546482086, -0.9641273617744446, 0.0607849657535553, 0.08045316487550735, 0.48286494612693787, 0.5769835710525513, 0.3351568579673767, 0.5960592031478882, -0.5640551447868347, 1.0460383892059326, 0.030527815222740173, 0.2869347929954529, -0.27262476086616516, -0.3879842162132263, -0.603860080242157, -0.43072253465652466, -0.03520388528704643, 0.5118217468261719, -0.36224550008773804, 0.08264356106519699, -0.025474194437265396, -0.7444871068000793, -0.8038063645362854, -0.037229977548122406, 0.2506556212902069, 0.31578344106674194, 0.16493462026119232, -0.5028328895568848, -0.6245495676994324, -0.6511086821556091, 0.340934693813324, -0.1592024862766266, -0.343097448348999, 0.4917799234390259, 0.8111439347267151, -0.37006381154060364, 0.7716249227523804, -0.8218353986740112, -0.0313362292945385, -0.13537940382957458, -0.20272907614707947, 0.5764156579971313, 0.6352526545524597, 0.5497148633003235, -0.9124622344970703, -0.4578651487827301, -0.04672672599554062, -1.0932272672653198, -0.002273671329021454, 0.3233083188533783, -0.26022815704345703, -0.5965495705604553, 0.5172146558761597, -0.718341588973999, 0.24928757548332214, 0.30703842639923096, -0.8206751942634583, 0.7252472639083862, -0.2595856487751007, 0.79169762134552, -0.9789577126502991, 0.10498235374689102, 0.10043220967054367, -0.32026153802871704, -0.2706761658191681, 0.5090591311454773, -0.0822199210524559, -0.8545105457305908, -0.9036621451377869, 0.7817133069038391, -0.5495373010635376, 0.13336442410945892, -0.22793149948120117, -0.15663766860961914, 0.32426702976226807, 0.04366278275847435, 0.2217627465724945, 0.4407057464122772, 1.1327532529830933, -0.4419481158256531, 0.4977834224700928, 0.8726803064346313, -0.3179473280906677, 0.6734327077865601, -0.6006948947906494, -0.14260396361351013, -0.14538733661174774, 0.3318150043487549, -0.6323509812355042, -0.7223377227783203, 0.30669042468070984, -0.8367877006530762, -0.11310093104839325, -0.32553189992904663, -0.33769744634628296, -0.570891797542572, -0.38179975748062134, 0.1962365210056305, 0.9369146227836609, -0.5374306440353394, 0.20191067457199097, 0.3927471339702606, -0.2929384112358093, -0.29460105299949646, -0.5985065698623657, 0.3559287488460541, -0.6329519748687744, -0.978888750076294, 0.4902491867542267, -0.06992167234420776, -0.6812841296195984, 0.0537056103348732, 0.2694694995880127, 0.055133379995822906, -0.18457676470279694, 0.7791241407394409, 0.45885878801345825, -0.27115926146507263, -0.6267391443252563, 0.3045702874660492, 0.10156603157520294, -0.007484067231416702, -0.21715869009494781, 0.09776025265455246, -0.21759329736232758, -0.04584280773997307, -0.6712977290153503, 0.8190074563026428, 0.6325424909591675, 0.3477286994457245, 0.07360567897558212, 0.577416718006134, -0.3807535171508789, -0.12363982200622559, -0.19682365655899048, -0.41674453020095825, -0.41970694065093994, -0.14125818014144897, -0.4127582907676697, -0.7137860655784607, 0.8847000002861023, 0.06298212707042694, -0.3133299946784973, 0.26421061158180237, 0.1630869358778, -0.38377174735069275, 0.7951417565345764, 0.8484814763069153, 0.42891716957092285, 0.22714759409427643, -0.8762677311897278, 0.03429150581359863, -0.5519219636917114, -0.2985968291759491, -0.16986028850078583, -0.1454942226409912, -0.6798955798149109, -0.8463758230209351, 0.4660780727863312, -0.23610720038414001, 0.0034338892437517643, 0.36658504605293274, -0.17464838922023773, 0.8062400817871094, 0.5369723439216614, 0.2551670968532562, 0.0583653561770916, -0.007889529690146446, -0.33840516209602356, -0.14041230082511902, -0.053125858306884766, -0.6916584968566895, 0.6989486813545227, 0.31444084644317627, 0.8184788227081299, 0.3897012174129486, 0.8859360218048096, 0.4350789785385132, -0.3689681589603424, -0.5266416668891907, 0.758323073387146, -0.2706608474254608, -0.7717554569244385, -0.1234307512640953, 0.12094587087631226, -0.6251035928726196, 0.1442371904850006, -0.8005062937736511, -0.6449060440063477, 0.4224497079849243, 0.15331929922103882, -1.0514366626739502, 0.19047218561172485, -0.9401259422302246, 0.8394300937652588, 0.30722567439079285, -0.5539238452911377, 0.035114407539367676, -0.8465708494186401, 0.2391868680715561, -0.0026545077562332153, 0.4467233419418335, -0.06821288913488388, 0.015050762332975864, 0.41461381316185, -0.5591861009597778, 0.70307856798172, -0.1232721358537674, 0.3144587576389313, 0.842688262462616, -0.0004945858381688595, 0.1103055402636528, 0.6710690259933472, 0.17135761678218842, -0.044163625687360764, -0.12921588122844696, -0.22513523697853088, -0.31185901165008545, 0.8433600068092346, -0.7693199515342712, -0.3839254379272461, -0.43707892298698425, -0.36093422770500183, 0.4406399726867676, 0.0031758437398821115, 0.5523588061332703, 0.5970776081085205, -0.4506554901599884, -0.1595308482646942, 0.5335654020309448, -0.43338775634765625, 0.640781581401825, 0.5155763030052185, -0.5531777739524841, -0.5701210498809814, 0.6521091461181641, 0.021942777559161186, 0.08025556057691574, 0.39449694752693176, 0.1362849622964859, -0.45599210262298584, -0.4408661127090454, -0.4370330572128296, 0.20194636285305023, -0.8244116306304932, -0.15073968470096588, -0.6445553302764893, 0.174571231007576, -0.5098900198936462, -0.6887990236282349, -0.33546870946884155, -0.5146899223327637, -0.4730818271636963, -0.3040398359298706, 0.5488404035568237, 0.6828087568283081, -0.39892423152923584, 0.23256823420524597, -1.079527735710144, 0.2630210518836975, 0.4302845001220703, -0.4389134347438812, -0.591511070728302, -0.4899359941482544, -0.009342223405838013, -0.44327011704444885, -0.8024119138717651, -0.4953543245792389, 0.9579342007637024, -0.05496501177549362, 0.3279332220554352, 0.014529629610478878, -0.10353012382984161, 0.6330076456069946, -0.4977972209453583, 1.0379663705825806, 0.3322893977165222, -0.6929011940956116, 0.8800942301750183, -0.9413056969642639, 0.5610228180885315, 0.5327130556106567, -0.10028709471225739, -0.36443477869033813, -0.5626512765884399, -0.9753684401512146, -0.9321127533912659, 0.5072030425071716, 0.3541802167892456, 0.27898046374320984, 0.25018763542175293, 0.33562353253364563, 0.13497315347194672, 0.46113353967666626, -0.8838766813278198, -0.22233843803405762, -0.4126693308353424, 0.3532119393348694, -0.35495907068252563, 0.2929552495479584, 0.08919737488031387, -0.06846955418586731, 0.35714882612228394, -0.0866360291838646, 0.35753852128982544, 0.2709673345088959, 0.2376265674829483, -0.6188945770263672, 0.2618958353996277, 0.23940572142601013, 0.3246496021747589, -0.5699092745780945, 0.11244803667068481, -0.1403583437204361, -0.608911395072937, 0.5323982834815979, 0.0736871138215065, -0.12234822660684586, 0.05049903690814972, 0.04503585770726204, 0.9778506755828857, -0.03651997074484825, -0.7106513977050781, 0.09377128630876541, -0.12498624622821808, -0.0014918065862730145, -0.8620793223381042, 0.49051687121391296, -0.22715608775615692, 0.451171875, 0.4302442669868469, 0.5500198602676392, 0.5319933891296387, -0.719502329826355, 0.13544750213623047, 0.24650298058986664, -0.566426157951355, -0.7812872529029846, 0.8547972440719604, 0.20237267017364502, -0.32298246026039124, 0.42452970147132874, -0.37392136454582214, -0.2898862659931183, 1.0157519578933716, 0.2784649431705475, 0.7834917902946472, -0.0189636442810297, 0.6109451055526733, 0.8150823712348938, 0.03600337728857994, 0.3482368588447571, 0.7440157532691956, 0.08322253823280334, -0.2810729742050171, 0.17238309979438782, -0.832909345626831, -0.624348521232605, 0.04520972818136215, -0.1269623190164566, 0.9961164593696594, -0.7176827788352966, 0.009060868062078953, 0.30035901069641113, -0.05384539067745209, -0.3535081744194031, 0.6116144061088562, 0.35447144508361816, 1.1505299806594849, -1.1511448621749878, 0.4483981728553772, 0.9240542054176331, -0.5905859470367432, -1.0214213132858276, -0.14981794357299805, 0.6859884858131409, -0.5721731781959534, 0.36793044209480286, 0.6325020790100098, 0.10617468506097794, -0.032995790243148804, -0.6916196346282959, -0.8183490633964539, 1.1907241344451904, -0.00035154688521288335, -0.2820263206958771, 0.025648878887295723, -0.4893876910209656, 0.3351009488105774, -0.869799017906189, 0.1975233405828476, 0.3303839862346649, 0.39234739542007446, 0.5811305046081543, -0.6944218277931213, -0.18999239802360535, -0.9938040375709534, -0.2108340561389923, 0.25241711735725403, -0.48881852626800537, 1.0429253578186035, -1.2363262176513672, -0.17398466169834137, 0.6477002501487732, 0.8033559322357178, 0.7576565742492676, 0.44898924231529236, 0.8594048619270325, 0.4697752296924591, 0.3815506398677826, -0.08994396030902863, 1.2764782905578613, 0.3999456763267517, -0.0856117308139801, 0.6085242033004761, -0.04098505899310112, 0.47322845458984375, 0.4498421847820282, -0.28612881898880005, 0.46584352850914, 1.2883702516555786, -0.27162522077560425, 0.7035237550735474, 0.15264517068862915, -0.3956911265850067, -0.3506614565849304, -0.5030996799468994, -0.12778949737548828, 0.4840471148490906, 0.19704869389533997, -0.18592952191829681, -0.13718454539775848, 0.3999246656894684, -0.07713045179843903, 0.420590341091156, -0.2919011414051056, 0.32161545753479004, 0.3781292736530304, -0.8852910995483398, 0.20146490633487701, -0.2092011570930481, 0.4508785009384155, -0.74329674243927, -0.32985612750053406, 0.06536126136779785, 0.012211247347295284, -0.37484028935432434, -1.0326224565505981, 0.021310610696673393, 0.22207944095134735, -0.2942621409893036, -0.41408851742744446, 0.34483247995376587, -0.07941590994596481, -0.7608243227005005, 0.010747565887868404, 0.08434324711561203, 0.4790721833705902, 0.22042128443717957, -0.8387036919593811, -0.039845455437898636, 0.31582891941070557, 0.2849891185760498, -0.013239738531410694, 0.2462901622056961, -0.13219700753688812, 0.6080934405326843, 0.5259146690368652, -0.05733626335859299, -0.13548824191093445, 0.008792009204626083, 0.5521910786628723, -0.7035139799118042, -1.0092958211898804, -0.6112319231033325, 0.9713942408561707, 0.117094025015831, -0.2625671625137329, 0.8944680690765381, 0.3884608745574951, 0.2119862586259842, -0.6999889016151428, 0.8097814321517944, -0.39197731018066406, 0.5393363833427429, -0.8676143884658813, 0.6431940793991089, -0.6874671578407288, 0.2787000834941864, -0.6742352247238159, -0.8269725441932678, -0.22276954352855682, 0.36951279640197754, 0.17117223143577576, -0.08684124797582626, 0.6616789102554321, 0.9928781390190125, -0.18563483655452728, -0.1479727178812027, 0.22455944120883942, 0.08215540647506714, 0.5283803343772888, 0.1990210860967636, 1.383758783340454, -0.129156231880188, 0.3561488091945648, -0.4269428849220276, -0.3798210918903351, 0.0370485894382, -0.9597350358963013, -0.7532466650009155, -0.5771662592887878, -0.6471319198608398, -0.34867116808891296, -0.2204725444316864, 0.9928501844406128, 0.916483998298645, -0.5887362957000732, -0.3365139365196228, -0.17576326429843903, 0.06631242483854294, 0.2816923260688782, -0.09202888607978821, -0.09005918353796005, 0.40017151832580566, -1.117249608039856, 0.762179970741272, 0.09101127088069916, 1.0744746923446655, -0.21018542349338531, 0.11495228111743927, -0.058593567460775375, -0.07274023443460464, 0.17228935658931732, 0.33354923129081726, -0.3431882858276367, -0.40535756945610046, 0.25986775755882263, 0.5381824970245361, -0.13377834856510162, 0.4760619103908539, -0.5259737372398376, 0.2752580940723419, 0.591633677482605, -0.6761532425880432, 0.27970895171165466, 0.06745162606239319, 0.5856636166572571, -0.4217442572116852, 0.25411465764045715, -0.2988102436065674, 0.5876220464706421, 0.7705396413803101, -0.565105140209198, 0.6316428184509277, 0.3097187280654907, -0.5111120939254761, -0.9149869680404663, 0.17337539792060852, -1.334741234779358, -0.17101816833019257, 0.9910570383071899, -0.029414594173431396, -0.3999939262866974, -0.047284092754125595, -0.47763940691947937, -0.41663774847984314, -0.8180262446403503, 0.3280377686023712, 0.588676393032074, -0.16476407647132874, 0.0450764074921608, -0.4508459270000458, 0.13311471045017242, -0.18026813864707947, -0.6892396211624146, -0.28000548481941223, 0.7649945020675659, 0.36095115542411804, 0.8913313150405884, 0.5533319115638733, -0.2751110792160034, 0.42205241322517395, 0.3641858994960785, 0.1336757242679596, 0.16597510874271393, -0.571937084197998, -0.2635457217693329, 0.10744611918926239, 0.1315845400094986, -0.5110823512077332 ]
Helsinki-NLP/opus-mt-en-it
Helsinki-NLP
"2023-08-16T11:30:05Z"
24,613
8
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "en", "it", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-en-it * source languages: en * target languages: it * OPUS readme: [en-it](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-it/README.md) * dataset: opus * model: transformer * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-04.zip](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.zip) * test set translations: [opus-2019-12-04.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.test.txt) * test set scores: [opus-2019-12-04.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-it/opus-2019-12-04.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newssyscomb2009.en.it | 30.9 | 0.606 | | newstest2009.en.it | 31.9 | 0.604 | | Tatoeba.en.it | 48.2 | 0.695 |
[ -0.33034905791282654, -0.401524156332016, 0.24337956309318542, 0.5064494013786316, -0.5324124097824097, -0.3567284345626831, -0.514216423034668, -0.03188684955239296, 0.021476104855537415, 0.5098405480384827, -0.7049058675765991, -0.6628585457801819, -0.656168520450592, 0.24197058379650116, -0.2048715353012085, 0.7661369442939758, -0.16977247595787048, 0.5064599514007568, 0.2806674540042877, -0.43967679142951965, -0.4046154022216797, -0.4615288972854614, -0.543809711933136, -0.3339352309703827, 0.22663761675357819, 0.4907827079296112, 0.42702731490135193, 0.44133856892585754, 1.0098873376846313, 0.29367586970329285, -0.10488363355398178, -0.061204034835100174, -0.47011736035346985, -0.17148010432720184, 0.07605995982885361, -0.6228281855583191, -0.7611696124076843, -0.18653810024261475, 1.2292470932006836, 0.47422999143600464, -0.023841623216867447, 0.44721320271492004, -0.00748336361721158, 1.069309949874878, -0.3617083430290222, 0.12462769448757172, -0.6712300777435303, 0.09390654414892197, -0.435993492603302, -0.43672090768814087, -0.7738544940948486, -0.2132466584444046, 0.09285777062177658, -0.6823422908782959, -0.024761859327554703, 0.20296093821525574, 1.5788156986236572, 0.32693642377853394, -0.37951183319091797, -0.1053582951426506, -0.7057475447654724, 1.158955454826355, -0.9213804006576538, 0.6819993257522583, 0.4822385311126709, 0.3217300474643707, 0.3161472678184509, -0.6236030459403992, -0.27054280042648315, 0.026338165625929832, -0.2342996448278427, 0.21886242926120758, -0.1716124266386032, -0.29268717765808105, 0.3534621596336365, 0.9092299938201904, -0.8125603795051575, -0.06833980977535248, -0.775449275970459, 0.014882507734000683, 0.7540301084518433, 0.17059190571308136, 0.12670062482357025, -0.10472505539655685, -0.39313966035842896, -0.6320969462394714, -0.8908990025520325, 0.16226229071617126, 0.34215885400772095, 0.30021798610687256, -0.4517245292663574, 0.7639021277427673, -0.20953771471977234, 0.7413604855537415, -0.09172870218753815, 0.023468734696507454, 1.1164518594741821, -0.4337141215801239, -0.3605588376522064, -0.2116466462612152, 1.3126548528671265, 0.44669467210769653, 0.1587117314338684, 0.027129199355840683, -0.23906099796295166, -0.21649041771888733, 0.19730165600776672, -1.0801150798797607, -0.06425949186086655, 0.23706533014774323, -0.45376384258270264, -0.042761076241731644, -0.016107121482491493, -0.6503093242645264, 0.2565142512321472, -0.4278987944126129, 0.6640101671218872, -0.7300918698310852, -0.37469539046287537, 0.41637539863586426, 0.004561901558190584, 0.30237987637519836, -0.11028014123439789, -0.6073042750358582, 0.24260440468788147, 0.35530906915664673, 0.7748083472251892, -0.4985300302505493, -0.3151319622993469, -0.5071740746498108, -0.24787279963493347, -0.1449763923883438, 0.7608262300491333, -0.1378391981124878, -0.4861662685871124, -0.06001749262213707, 0.48549312353134155, -0.4644593894481659, -0.4455370604991913, 1.5171035528182983, -0.3024737536907196, 0.7627289295196533, -0.49182024598121643, -0.6527965664863586, -0.40554749965667725, 0.5783055424690247, -0.6658647060394287, 1.3566933870315552, 0.10709848999977112, -0.9563934206962585, 0.2522667944431305, -0.8689464330673218, -0.21952685713768005, -0.07122612744569778, 0.08659923076629639, -0.6699703931808472, 0.11305289715528488, 0.13337764143943787, 0.4335823953151703, -0.5193263292312622, 0.3369521498680115, 0.01090787723660469, -0.3904082179069519, -0.00991156604140997, -0.32234835624694824, 1.1533756256103516, 0.3592098355293274, -0.36661309003829956, 0.31573933362960815, -1.1182243824005127, 0.047623179852962494, 0.0048715462908148766, -0.5807230472564697, -0.14845611155033112, 0.13941055536270142, 0.3230355978012085, 0.10544762015342712, 0.28994619846343994, -0.7104902267456055, 0.26488345861434937, -0.6667460799217224, 0.2408166527748108, 0.7219911813735962, -0.30843114852905273, 0.4408150315284729, -0.4934927523136139, 0.2432684600353241, 0.10119171440601349, 0.20113660395145416, 0.009906653314828873, -0.48549938201904297, -0.9342634081840515, -0.36237069964408875, 0.6204928159713745, 1.1673095226287842, -0.8229968547821045, 0.8910078406333923, -0.68831467628479, -0.8669772148132324, -0.8220655918121338, -0.16359426081180573, 0.3837122321128845, 0.39068105816841125, 0.5571293234825134, -0.15779438614845276, -0.48480239510536194, -1.1793019771575928, -0.23095814883708954, -0.19969713687896729, -0.26428481936454773, 0.12389065325260162, 0.6736630797386169, -0.20311526954174042, 0.44784197211265564, -0.4761812388896942, -0.5367618203163147, -0.13812102377414703, 0.09640315920114517, 0.6328877210617065, 0.7109372019767761, 0.5594303607940674, -0.9311959743499756, -0.6587797999382019, -0.06911944597959518, -0.7824298739433289, -0.15928687155246735, 0.15226134657859802, -0.1617748886346817, -0.011645977385342121, 0.07875028252601624, -0.27570897340774536, 0.09931454807519913, 0.6938932538032532, -0.7344511151313782, 0.5343146920204163, -0.12634719908237457, 0.4189929962158203, -1.4607375860214233, 0.12484051287174225, -0.16938425600528717, -0.05163675546646118, -0.5325585007667542, 0.08226531744003296, 0.3160540759563446, 0.17741598188877106, -0.7999057769775391, 0.6673707962036133, -0.27409544587135315, -0.15242916345596313, 0.2899177372455597, -0.03857891261577606, 0.05478201434016228, 0.7745267152786255, -0.04010844603180885, 0.9165140986442566, 0.9032762050628662, -0.6422996520996094, 0.12922261655330658, 0.5577747225761414, -0.4767545461654663, 0.4810713827610016, -0.8911625742912292, -0.32759976387023926, 0.4243726134300232, -0.2321709841489792, -0.6682542562484741, 0.16401036083698273, 0.3092588782310486, -0.6603778004646301, 0.4091939330101013, -0.004077422898262739, -0.9086258411407471, -0.10212823748588562, -0.3725431263446808, 0.48824772238731384, 0.746471107006073, -0.17888247966766357, 0.7077560424804688, 0.07869181782007217, 0.0034980005584657192, -0.45213377475738525, -1.0405890941619873, -0.05924779176712036, -0.4369737505912781, -0.9224796295166016, 0.2675709128379822, -0.5771817564964294, -0.15335869789123535, 0.03651514649391174, 0.35872942209243774, -0.20341691374778748, 0.0642843171954155, 0.09215055406093597, 0.2339700162410736, -0.511144757270813, 0.14449770748615265, -0.03425044193863869, -0.19628039002418518, -0.19769403338432312, -0.17051874101161957, 0.6394768953323364, -0.4704388976097107, -0.2879871726036072, -0.6379593014717102, 0.10934891551733017, 0.6025134325027466, -0.45990505814552307, 0.8446394801139832, 0.5997583270072937, -0.09574102610349655, 0.22555407881736755, -0.4305559992790222, 0.05448281019926071, -0.5013139247894287, 0.10884327441453934, -0.6056841611862183, -0.8470472097396851, 0.5974054336547852, 0.1094798818230629, 0.6045311093330383, 0.9320098757743835, 0.7438573241233826, 0.10927317291498184, 0.7704483270645142, 0.4092355966567993, -0.05185163393616676, 0.5321000814437866, -0.5733382105827332, -0.20926953852176666, -1.0921558141708374, 0.1343429535627365, -0.8318198919296265, -0.32906895875930786, -0.9429187774658203, -0.2932208776473999, 0.3679797351360321, 0.04738704860210419, -0.3301737606525421, 0.7652263045310974, -0.6241096258163452, 0.21405725181102753, 0.6717961430549622, -0.15463882684707642, 0.45442521572113037, 0.08055444806814194, -0.5747687816619873, -0.3123762309551239, -0.49735701084136963, -0.5179029107093811, 1.4484599828720093, 0.3701125383377075, 0.34744399785995483, 0.20282644033432007, 0.550825834274292, 0.04635940119624138, 0.3127894997596741, -0.6273276209831238, 0.4532747268676758, -0.3294118642807007, -0.8084414005279541, -0.2665426731109619, -0.6414620280265808, -0.8420630097389221, 0.5114292502403259, -0.21609807014465332, -0.6767658591270447, 0.1629820168018341, 0.007414317224174738, -0.03587597981095314, 0.5178363919258118, -0.7185406684875488, 1.1983857154846191, -0.038026876747608185, -0.1514398157596588, 0.21176321804523468, -0.3572075068950653, 0.2461424618959427, 0.06103305146098137, 0.3289078176021576, -0.19161398708820343, 0.16720882058143616, 0.6924062371253967, -0.09854694455862045, 0.3732246458530426, -0.016254670917987823, -0.07142024487257004, 0.09690549969673157, 0.14237530529499054, 0.4339921474456787, -0.1500454545021057, -0.6027483940124512, 0.5075148344039917, 0.032546039670705795, -0.5345507860183716, -0.04778074100613594, 0.5546121597290039, -0.7564822435379028, -0.1012674942612648, -0.4191555082798004, -0.7776655554771423, -0.005935801193118095, 0.36705052852630615, 0.8818914294242859, 0.7392629384994507, -0.23844386637210846, 0.6362277865409851, 0.895896315574646, -0.3205992579460144, 0.42402318120002747, 0.8506364226341248, -0.25149860978126526, -0.5556169152259827, 0.9621009826660156, 0.11199096590280533, 0.3861308693885803, 0.6244083046913147, 0.11571241915225983, -0.08882378786802292, -0.8507075309753418, -0.8189793229103088, 0.22990518808364868, -0.3904707133769989, -0.12913691997528076, -0.6654521226882935, -0.09826123714447021, -0.1974412500858307, 0.2737208306789398, -0.6492681503295898, -0.5876204967498779, -0.12368656694889069, -0.22797957062721252, 0.24406231939792633, 0.2834799885749817, -0.07025542855262756, 0.5651569962501526, -1.0937421321868896, 0.2706424593925476, -0.1960088461637497, 0.40981829166412354, -0.6250864267349243, -0.9321767687797546, -0.4302319288253784, 0.003899640403687954, -0.6522394418716431, -0.7878632545471191, 0.563112735748291, 0.1762877255678177, 0.30719873309135437, 0.34544017910957336, 0.16190017759799957, 0.3267170488834381, -0.8147298693656921, 1.0980945825576782, -0.1293555051088333, -0.7978411316871643, 0.4661388397216797, -0.4271481931209564, 0.5378978252410889, 0.9744391441345215, 0.271293044090271, -0.3420034945011139, -0.6757912039756775, -0.7796646952629089, -0.9225147366523743, 0.8776722550392151, 0.8471997976303101, -0.17582999169826508, 0.2744734585285187, -0.18533679842948914, -0.03160857781767845, 0.2592804431915283, -1.2080235481262207, -0.4690615236759186, 0.08129814267158508, -0.35382893681526184, -0.23794737458229065, -0.2957189977169037, -0.2687467336654663, -0.27807798981666565, 1.1917368173599243, 0.14400224387645721, 0.296307235956192, 0.36815690994262695, -0.18369339406490326, -0.24187040328979492, 0.40272367000579834, 1.0107181072235107, 0.6307653784751892, -0.6071360111236572, -0.1597975641489029, 0.2927860915660858, -0.39133456349372864, -0.18527501821517944, 0.14781992137432098, -0.47871801257133484, 0.38185644149780273, 0.5017789602279663, 1.2119725942611694, 0.16471868753433228, -0.6820950508117676, 0.4727049469947815, -0.43850499391555786, -0.4844772517681122, -0.6764562726020813, -0.13476251065731049, 0.14346395432949066, 0.1150486171245575, 0.2878999710083008, 0.17111589014530182, 0.30081677436828613, -0.2724992632865906, 0.1709742248058319, 0.09195687621831894, -0.6426105499267578, -0.5944454073905945, 0.49613916873931885, 0.11344928294420242, -0.36977091431617737, 0.5044232606887817, -0.44484439492225647, -0.6615700721740723, 0.46689173579216003, 0.1603284776210785, 1.199864387512207, -0.2934223711490631, -0.18491345643997192, 0.9223702549934387, 0.737827718257904, -0.29980263113975525, 0.6180591583251953, 0.048667680472135544, -0.7445741891860962, -0.5384302735328674, -0.813862144947052, -0.17812654376029968, 0.12301226705312729, -0.8736598491668701, 0.4056549370288849, 0.28278475999832153, 0.07307623326778412, -0.3367327153682709, 0.2086501121520996, -0.6747308969497681, 0.12655314803123474, -0.36585596203804016, 1.241804838180542, -1.0039560794830322, 0.9148206114768982, 0.5314658880233765, -0.2885546386241913, -0.8767321705818176, -0.25545939803123474, -0.2562158405780792, -0.4957772493362427, 0.7036418318748474, 0.15014787018299103, 0.42024850845336914, -0.11467920243740082, -0.2299433946609497, -0.9208520650863647, 1.1882094144821167, 0.22098314762115479, -0.7142494916915894, 0.09083841741085052, 0.19584596157073975, 0.5330274105072021, -0.3912545442581177, 0.22163408994674683, 0.49710071086883545, 0.8454985618591309, 0.07291495054960251, -1.2620888948440552, -0.30730149149894714, -0.6749994158744812, -0.4290107488632202, 0.5227182507514954, -0.6257696747779846, 1.2190953493118286, 0.4634784758090973, -0.17550092935562134, 0.05577509477734566, 0.516278862953186, 0.3062400817871094, 0.3145771622657776, 0.6319713592529297, 1.2122572660446167, 0.4308489263057709, -0.5240563750267029, 1.188686728477478, -0.43720459938049316, 0.5240910053253174, 1.3343226909637451, -0.041606754064559937, 0.9959762096405029, 0.3110910952091217, -0.13572050631046295, 0.48821908235549927, 0.7304357886314392, -0.30528077483177185, 0.5491393804550171, 0.081614188849926, 0.16655221581459045, -0.14507044851779938, 0.2505836486816406, -0.7703017592430115, 0.19396041333675385, 0.24073652923107147, -0.28199633955955505, -0.05374925211071968, -0.03587218374013901, 0.016614500433206558, -0.05204181373119354, -0.1878635734319687, 0.720956027507782, -0.020679021254181862, -0.6506786942481995, 0.8841163516044617, -0.044146712869405746, 0.6954016089439392, -0.7653100490570068, 0.15941038727760315, -0.0878058671951294, 0.32344624400138855, 0.01916264370083809, -0.6640213131904602, 0.5290126204490662, 0.09090183675289154, -0.26774483919143677, -0.46534162759780884, 0.2687435448169708, -0.5273553729057312, -0.9747974276542664, 0.4864063262939453, 0.46000704169273376, 0.34149405360221863, -0.12602993845939636, -0.9981613159179688, 0.1377975046634674, 0.18635384738445282, -0.7364493608474731, -0.019323566928505898, 0.7394192814826965, 0.2726937532424927, 0.5803651809692383, 0.5697349309921265, 0.2616162896156311, 0.3081164062023163, -0.012852637097239494, 0.8058741688728333, -0.5081529021263123, -0.4735974669456482, -0.8434597253799438, 0.9523200392723083, -0.20989978313446045, -0.6988956928253174, 0.7753480076789856, 1.0369220972061157, 1.1452463865280151, -0.11415024846792221, 0.28767669200897217, -0.10021243989467621, 0.7433605194091797, -0.6489070057868958, 0.5605820417404175, -1.0347040891647339, 0.3511064052581787, -0.1111978143453598, -1.0776598453521729, -0.15482497215270996, 0.3177684545516968, -0.2205388844013214, -0.40031859278678894, 0.9063188433647156, 0.7052755355834961, -0.14960052073001862, -0.17991280555725098, 0.38754981756210327, 0.3946419656276703, 0.25977396965026855, 0.6638432741165161, 0.46122321486473083, -1.1048121452331543, 0.5685498714447021, -0.39558666944503784, -0.10528548061847687, 0.006226979661732912, -0.7619200944900513, -0.9883285164833069, -0.7299215197563171, -0.223602294921875, -0.24697808921337128, -0.32348084449768066, 0.9496488571166992, 0.566376805305481, -1.0535813570022583, -0.6586402058601379, -0.0002049261674983427, 0.13066205382347107, -0.23149648308753967, -0.28534016013145447, 0.6025914549827576, -0.36283814907073975, -1.0688457489013672, 0.4841669797897339, 0.11508245766162872, -0.2558463513851166, -0.0030286991968750954, -0.292161226272583, -0.5051359534263611, -0.06857366114854813, 0.30032601952552795, 0.007697864435613155, -0.5277913808822632, 0.15150468051433563, 0.1782255619764328, -0.08363473415374756, 0.47779950499534607, 0.4332500100135803, -0.2747301757335663, 0.32152506709098816, 0.9050077199935913, 0.4062334895133972, 0.5672242045402527, -0.31148630380630493, 0.5767557621002197, -0.8319482207298279, 0.36967968940734863, 0.21600545942783356, 0.6850890517234802, 0.4648328423500061, -0.03331569954752922, 0.9874082207679749, 0.1994602531194687, -0.6631437540054321, -1.174298644065857, 0.061514969915151596, -1.2282544374465942, -0.049660880118608475, 1.0710666179656982, -0.30394992232322693, -0.3202086389064789, 0.4107630252838135, -0.21485593914985657, 0.15113212168216705, -0.3849024176597595, 0.5071601271629333, 0.920831561088562, 0.45812323689460754, 0.06263475120067596, -0.9228985905647278, 0.42252254486083984, 0.5614821910858154, -0.9003642797470093, -0.2240380048751831, 0.2144840657711029, 0.20303843915462494, 0.49436548352241516, 0.6472602486610413, -0.3120259940624237, 0.11774137616157532, -0.2524864077568054, 0.454898476600647, -0.045565709471702576, -0.192906454205513, -0.2808721661567688, 0.04020515829324722, -0.05018278583884239, -0.33432549238204956 ]
tau/splinter-base
tau
"2021-08-17T14:09:19Z"
24,507
1
transformers
[ "transformers", "pytorch", "splinter", "question-answering", "SplinterModel", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: en tags: - splinter - SplinterModel license: apache-2.0 --- # Splinter base model Splinter-base is the pretrained model discussed in the paper [Few-Shot Question Answering by Pretraining Span Selection](https://aclanthology.org/2021.acl-long.239/) (at ACL 2021). Its original repository can be found [here](https://github.com/oriram/splinter). The model is case-sensitive. Note: This model **doesn't** contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model **with** those weights, see [tau/splinter-base-qass](https://huggingface.co/tau/splinter-base-qass). ## Model description Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with the Recurring Span Selection (RSS) objective, which emulates the span selection process involved in extractive question answering. Given a text, clusters of recurring spans (n-grams that appear more than once in the text) are first identified. For each such cluster, all of its instances but one are replaced with a special `[QUESTION]` token, and the model should select the correct (i.e., unmasked) span for each masked one. The model also defines the Question-Aware Span selection (QASS) layer, which selects spans conditioned on a specific question (in order to perform multiple predictions). ## Intended uses & limitations The prime use for this model is few-shot extractive QA. ## Pretraining The model was pretrained on a v3-8 TPU for 2.4M steps. The training data is based on **Wikipedia** and **BookCorpus**. See the paper for more details. ### BibTeX entry and citation info ```bibtex @inproceedings{ram-etal-2021-shot, title = "Few-Shot Question Answering by Pretraining Span Selection", author = "Ram, Ori and Kirstain, Yuval and Berant, Jonathan and Globerson, Amir and Levy, Omer", booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)", month = aug, year = "2021", address = "Online", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2021.acl-long.239", doi = "10.18653/v1/2021.acl-long.239", pages = "3066--3079", } ```
[ -0.3542052209377289, -0.9389029145240784, 0.5116091966629028, -0.02849080227315426, -0.335841566324234, 0.14874708652496338, 0.20604673027992249, -0.481230229139328, 0.2563732862472534, 0.33521130681037903, -0.9712725877761841, -0.40841999650001526, -0.41726669669151306, 0.07746093720197678, -0.3465532660484314, 1.0913292169570923, 0.20197081565856934, 0.13931474089622498, -0.1032736673951149, 0.06029581278562546, -0.13183507323265076, -0.670932948589325, -0.5380788445472717, -0.2346782088279724, 0.21096515655517578, 0.12964336574077606, 0.5523999929428101, 0.6698805689811707, 0.4244576096534729, 0.23330877721309662, -0.25979337096214294, -0.09231363981962204, -0.6002369523048401, -0.25447511672973633, 0.14942699670791626, -0.751837432384491, -0.30569326877593994, 0.09469223767518997, 0.7901660799980164, 0.7155630588531494, 0.08514334261417389, 0.31217241287231445, -0.1516139656305313, 0.449379026889801, -0.7072075605392456, -0.3116181492805481, -0.677969217300415, -0.05633196607232094, -0.474123477935791, 0.16039878129959106, -0.4435864984989166, -0.38615816831588745, 0.12481673806905746, -0.48085856437683105, 0.14329572021961212, 0.09675469994544983, 1.0985643863677979, 0.22376775741577148, -0.4145999550819397, 0.23955310881137848, -0.3513079881668091, 0.8030646443367004, -0.8175429701805115, 0.18694551289081573, 0.7414512634277344, 0.16295526921749115, -0.07728615403175354, -0.774658739566803, -0.40445879101753235, 0.002123564016073942, -0.15470848977565765, 0.07955101877450943, -0.21292251348495483, 0.2487187385559082, 0.3479187488555908, 0.24557504057884216, -0.6393670439720154, -0.022107891738414764, -0.6557738780975342, -0.2861248254776001, 0.6389308571815491, 0.18371929228305817, 0.20721496641635895, -0.4711425304412842, -0.4953380823135376, 0.010561495088040829, -0.7703334093093872, 0.45451298356056213, 0.3867732882499695, 0.319209486246109, -0.27966880798339844, 0.5475667119026184, -0.2709449827671051, 0.8677055835723877, 0.3624134957790375, -0.1508912295103073, 0.5295946002006531, -0.4778616726398468, -0.1572350263595581, -0.2722279131412506, 0.8421506285667419, -0.025391822680830956, 0.2188606709241867, -0.07132035493850708, 0.1897931694984436, -0.15444062650203705, 0.2668117880821228, -0.8926057815551758, -0.29153332114219666, 0.41969388723373413, -0.4693821668624878, -0.1725480854511261, -0.028736628592014313, -0.30706986784935, -0.03387543559074402, 0.14916689693927765, 0.4903313219547272, -0.5807268619537354, -0.2197403609752655, 0.0616394579410553, -0.11754599213600159, 0.2444840520620346, -0.06028825789690018, -0.7409374713897705, 0.42655566334724426, 0.3253181576728821, 0.48548048734664917, -0.37051793932914734, -0.5438917875289917, -0.3698806166648865, -0.23522184789180756, -0.32163113355636597, 0.7827582359313965, -0.4946511387825012, 0.024047208949923515, -0.23565673828125, -0.04953936114907265, -0.32207798957824707, -0.3354766070842743, 0.1060963049530983, -0.861572265625, 0.3604070544242859, -0.20112986862659454, -0.6489729285240173, -0.24052774906158447, 0.41529321670532227, -0.5290074348449707, 1.3434112071990967, 0.19132673740386963, -0.8928446173667908, 0.24747143685817719, -0.5273659825325012, -0.04553866758942604, -0.1542767733335495, 0.03234882280230522, -0.40552234649658203, -0.10950828343629837, 0.15984849631786346, 0.18974025547504425, -0.1253710836172104, -0.009077913127839565, -0.267941415309906, -0.35269156098365784, 0.270524799823761, -0.006231354549527168, 1.1406394243240356, -0.059895724058151245, -0.1815771460533142, 0.11416205018758774, -0.8067240715026855, 0.4319393038749695, 0.049705248326063156, -0.2841319143772125, -0.23369738459587097, -0.05398855358362198, -0.3366616368293762, 0.4024282693862915, 0.2572815418243408, -0.6488770246505737, 0.1853669434785843, -0.7026131749153137, 0.14148251712322235, 0.5623663663864136, 0.3342788517475128, 0.5153986811637878, -0.3489896357059479, 0.7821735739707947, 0.10227588564157486, 0.2285100370645523, -0.19423288106918335, -0.2857830822467804, -0.6804280877113342, -0.3781296908855438, 0.5283600091934204, 0.5289762616157532, -0.5016153454780579, 0.19128848612308502, 0.08784136176109314, -0.5863854885101318, -0.5667856335639954, -0.008156524039804935, 0.7606814503669739, 0.29465386271476746, 0.6315221190452576, -0.4203382432460785, -0.7784606218338013, -0.9060915112495422, -0.17140205204486847, -0.4117509424686432, 0.24595044553279877, 0.13955798745155334, 0.5411264896392822, 0.19075536727905273, 1.2803479433059692, -0.7191986441612244, 0.01042194478213787, -0.42198145389556885, 0.3125697374343872, 0.1356867551803589, 0.45181259512901306, 0.6538639664649963, -0.6270808577537537, -0.4540928602218628, -0.6598581671714783, -0.6003482341766357, -0.0891735702753067, -0.1479523777961731, -0.46508824825286865, -0.19260700047016144, 0.4952366352081299, -0.8069863319396973, 0.3658756911754608, 0.34808579087257385, -0.2887227237224579, 0.8741714954376221, 0.46628451347351074, -0.07864023000001907, -1.117069125175476, 0.010551375336945057, -0.25743138790130615, -0.2681414783000946, -0.6559687852859497, 0.2543260455131531, -0.01323133148252964, 0.22870288789272308, -0.9216549396514893, 0.5966849327087402, -0.6287890076637268, -0.007755449507385492, -0.16816918551921844, -0.12691524624824524, -0.028079088777303696, 0.7818285822868347, -0.016300879418849945, 0.7646713852882385, 0.575312077999115, -0.6478267312049866, -0.12356109917163849, 0.5537418723106384, -0.1061442568898201, 0.21863608062267303, -0.7608310580253601, 0.34636786580085754, -0.11358240246772766, 0.19288185238838196, -1.003589153289795, -0.12856020033359528, 0.23306457698345184, -0.5655763745307922, 0.09687694162130356, -0.3103633224964142, -0.34546083211898804, -0.43604445457458496, -0.46442949771881104, 0.7275092601776123, 0.5202184915542603, -0.09325969964265823, 0.44322457909584045, 0.4098793864250183, -0.002452757442370057, -0.6808449625968933, -0.6075950264930725, -0.4555855691432953, 0.04922344535589218, -0.44906187057495117, 0.4117216467857361, -0.4111632704734802, -0.05866538733243942, -0.0035328278318047523, -0.2128424197435379, -0.4922836720943451, 0.15404637157917023, 0.3027879595756531, 0.33908671140670776, -0.41933727264404297, 0.29875385761260986, 0.13912321627140045, 0.012807268649339676, 0.06065826117992401, 0.05611803010106087, 0.7097790241241455, -0.2667526304721832, -0.46903353929519653, -0.3710705637931824, 0.29012539982795715, 0.11360295116901398, -0.4061104655265808, 0.657845675945282, 0.25772684812545776, -0.3127880096435547, -0.02113085426390171, -0.605765163898468, -0.4063395857810974, -0.4074972867965698, 0.4928678572177887, -0.4836360812187195, -0.9733369946479797, 0.5117857456207275, 0.06352464109659195, 0.08781512081623077, 0.7394301891326904, 0.555793821811676, -0.26302045583724976, 0.8977497220039368, 0.7738955020904541, -0.0034965912345796824, 0.5078591704368591, -0.33661210536956787, -0.3512076437473297, -0.8499468564987183, -0.14280499517917633, -0.5177217721939087, -0.4665362536907196, -0.10946975648403168, -0.20522737503051758, 0.22923167049884796, 0.45754262804985046, -0.5836180448532104, 0.5019600987434387, -0.3401607871055603, 0.7731512784957886, 0.5922430753707886, 0.1663992702960968, 0.22437287867069244, -0.2186415195465088, -0.3237318694591522, -0.07781080901622772, -0.7724159359931946, -0.3335888683795929, 1.2211979627609253, 0.2659514844417572, 0.6515096426010132, -0.07297711819410324, 1.0084810256958008, -0.04912444204092026, -0.0068893576972186565, -0.7585964202880859, 0.6533435583114624, 0.10402880609035492, -1.294083833694458, -0.3354566991329193, -0.213770791888237, -1.1497392654418945, 0.39448732137680054, -0.3588830232620239, -0.9078477025032043, 0.12778408825397491, 0.08897098898887634, -0.8459792733192444, 0.15604211390018463, -0.6428413391113281, 0.8350273966789246, -0.24522314965724945, -0.10867226868867874, 0.04642617702484131, -1.0475047826766968, 0.466399222612381, -0.03544867783784866, -0.057669688016176224, -0.09047387540340424, 0.1193423867225647, 1.0701380968093872, -0.3936189115047455, 1.2071611881256104, -0.09649938344955444, 0.5581842660903931, 0.6516372561454773, 0.08593814074993134, 0.21720321476459503, -0.19898398220539093, -0.14602112770080566, 0.051911864429712296, 0.31791195273399353, -0.46067002415657043, -0.278481125831604, -0.060267526656389236, -0.9689055681228638, -0.5191542506217957, -0.50870680809021, -0.4372480809688568, -0.4151683747768402, 0.5784918665885925, 0.5469739437103271, 0.20817378163337708, -0.2833864092826843, 0.20877420902252197, 0.5689770579338074, 0.08023186773061752, 0.543015718460083, 0.46399685740470886, -0.3926450312137604, -0.15849512815475464, 0.30900993943214417, 0.1702090948820114, 0.39842331409454346, 0.2577851712703705, 0.09799093753099442, -0.15641973912715912, -0.7981509566307068, -0.3885473310947418, 0.42512568831443787, -0.5822177529335022, -0.38103732466697693, -0.6498496532440186, -0.6941049098968506, -0.08871166408061981, 0.18097561597824097, -0.4473840892314911, -0.5630337595939636, -0.5358341336250305, -0.3182835280895233, 0.28365644812583923, 0.47769129276275635, 0.14191892743110657, 0.7429007291793823, -0.8853105306625366, 0.5914018154144287, 0.3035147786140442, 0.08983928710222244, -0.15897861123085022, -0.7132739424705505, -0.2520754635334015, 0.17328530550003052, -0.4132033884525299, -1.1178115606307983, 0.13522137701511383, 0.262154221534729, 0.7226027846336365, 0.16515298187732697, 0.20598189532756805, 0.7011855244636536, -0.5057010054588318, 0.9711487889289856, 0.2592265009880066, -0.7318130135536194, 0.5573389530181885, -0.13670335710048676, 0.5057879090309143, 1.0847785472869873, 0.6526705026626587, -0.11289935559034348, -0.461525022983551, -0.8550981283187866, -0.7553450465202332, 0.9523242115974426, 0.08439729362726212, 0.3726993203163147, -0.1362481266260147, 0.32320961356163025, 0.15903837978839874, 0.23430192470550537, -1.1477277278900146, -0.3132566511631012, -0.0736120417714119, -0.07061222195625305, 0.473868727684021, -0.43610313534736633, -0.1934145987033844, -0.32979875802993774, 0.7242432236671448, -0.16134250164031982, 0.23149412870407104, 0.05964791029691696, -0.49281996488571167, -0.17472466826438904, 0.24605578184127808, 0.2998731732368469, 0.7191645503044128, -0.29718121886253357, -0.007166862487792969, 0.2844003438949585, -0.5436972975730896, 0.09566161781549454, 0.010516682639718056, -0.37189412117004395, -0.11841457337141037, 0.42150792479515076, 0.9383469820022583, 0.17986424267292023, -0.46298304200172424, 0.7144137620925903, 0.2806003987789154, -0.41613972187042236, -0.22592133283615112, 0.08428497612476349, 0.016235845163464546, 0.32510805130004883, 0.707366406917572, 0.0664934441447258, 0.008451754227280617, -0.4333687424659729, 0.23851367831230164, 0.501048743724823, -0.2105989307165146, -0.4093262851238251, 0.5158964991569519, -0.043298009783029556, -0.14905333518981934, 0.6084203720092773, -0.37682244181632996, -0.7241207957267761, 0.4768778383731842, 0.603387176990509, 0.7611299753189087, -0.03092031180858612, 0.31950220465660095, 0.5563700199127197, 0.39101317524909973, -0.034820206463336945, 0.43434080481529236, 0.14337573945522308, -0.8332871198654175, -0.4655650854110718, -0.6626803278923035, -0.12647627294063568, 0.16313326358795166, -0.5418787002563477, 0.10910937935113907, -0.6723312735557556, -0.41840916872024536, -0.04509102925658226, 0.061221808195114136, -0.4563088119029999, 0.43121275305747986, 0.1994236409664154, 0.9986799359321594, -0.9406577348709106, 0.6524831056594849, 0.6619076728820801, -0.7365897297859192, -1.112596035003662, 0.06561926752328873, 0.03276436775922775, -0.8635786771774292, 0.7276632189750671, -0.14413653314113617, -0.10763309895992279, 0.23825529217720032, -0.9201817512512207, -1.215790867805481, 0.9285103678703308, 0.4259548485279083, -0.052847690880298615, -0.48542916774749756, 0.019136743620038033, 0.5565402507781982, -0.16102834045886993, 0.541817843914032, 0.46627694368362427, 0.20446127653121948, 0.24231790006160736, -0.8790105581283569, 0.004113464150577784, -0.35698795318603516, -0.22786946594715118, 0.07420327514410019, -0.7316482663154602, 1.1934620141983032, -0.19442269206047058, -0.13257503509521484, 0.1935034543275833, 0.675775945186615, 0.47333183884620667, -0.02364800125360489, 0.4102799594402313, 0.5978236794471741, 0.6820598244667053, -0.032094694674015045, 1.0153504610061646, -0.1301112323999405, 0.27340415120124817, 1.249523639678955, 0.12804216146469116, 1.249079942703247, 0.5008045434951782, -0.5565710663795471, 0.836585283279419, 0.9290330410003662, 0.056159354746341705, 0.6522088050842285, 0.08540920168161392, 0.059738289564847946, -0.5057885646820068, 0.25205814838409424, -0.6441846489906311, 0.6867519021034241, -0.08300124853849411, -0.2966640591621399, -0.3300504684448242, -0.2214866578578949, -0.019521014764904976, -0.2369227409362793, -0.3234311640262604, 0.8451458215713501, 0.13045261800289154, -0.6304304599761963, 0.8460791110992432, -0.017451968044042587, 0.7224339842796326, -1.0530661344528198, 0.18871068954467773, -0.18001706898212433, -0.21454063057899475, -0.4302625358104706, -0.5551044940948486, 0.351372629404068, 0.03723392263054848, -0.3935481011867523, 0.05336008965969086, 0.7258252501487732, -0.3000046908855438, -0.43201497197151184, -0.059727247804403305, 0.8634042143821716, 0.355006605386734, -0.03458902984857559, -0.8761767745018005, -0.15523645281791687, -0.08058906346559525, -0.579529345035553, 0.46364957094192505, 0.05887344852089882, -0.15027809143066406, 0.5234005451202393, 0.6845694184303284, -0.04664133861660957, 0.4927825331687927, -0.18237723410129547, 1.0357306003570557, -0.5432159304618835, -0.7101918458938599, -0.8070756196975708, 0.8663418889045715, -0.02712434157729149, -0.583629846572876, 0.6762397289276123, 0.669551432132721, 0.6863132119178772, -0.15874667465686798, 0.6028192639350891, -0.1351466178894043, 0.6836543083190918, -0.5949265956878662, 0.7551069855690002, -0.5806283354759216, -0.03198334574699402, -0.3113313615322113, -0.9193819761276245, -0.2369428426027298, 0.6794519424438477, -0.5344142317771912, 0.23108389973640442, 1.064585566520691, 0.710874617099762, -0.13477389514446259, -0.19652263820171356, 0.13386878371238708, 0.24101175367832184, -0.27371475100517273, 0.6669560670852661, 0.7363720536231995, -0.5243926644325256, 0.6953427791595459, -0.21540440618991852, -0.05460504814982414, -0.0628240630030632, -0.7406873106956482, -1.0056397914886475, -0.47593608498573303, -0.33098942041397095, -0.26375681161880493, 0.010061381384730339, 1.0256611108779907, 1.0577683448791504, -0.8584160804748535, -0.2279948592185974, 0.037191759794950485, 0.01559893786907196, -0.19083155691623688, -0.1763223111629486, 0.4400708079338074, -0.31727364659309387, -0.40293219685554504, 0.39887526631355286, -0.08942312747240067, 0.07452352344989777, 0.07861550897359848, 0.12127868831157684, -0.7734656929969788, 0.07802722603082657, 0.4130759537220001, 0.5920266509056091, -0.6129816770553589, -0.2363376021385193, 0.30884966254234314, -0.35002219676971436, 0.2692302465438843, 0.40393030643463135, -1.0508683919906616, 0.27880579233169556, 0.45110708475112915, 0.8784046173095703, 0.9241659641265869, 0.27318838238716125, 0.21991492807865143, -1.1647591590881348, 0.1174669936299324, 0.4534720480442047, 0.11454739421606064, 0.029040148481726646, -0.19122736155986786, 0.44198769330978394, 0.2517823278903961, -0.1781986504793167, -0.778563380241394, 0.33768609166145325, -1.0079419612884521, -0.39731234312057495, 1.142946481704712, -0.16660618782043457, -0.33213329315185547, -0.08506633341312408, -0.3359917402267456, 0.21634675562381744, -0.04856499657034874, 0.4814985692501068, 0.8186248540878296, -0.2843293845653534, -0.4560270607471466, -0.2217266708612442, 0.6069347858428955, 0.5924658179283142, -0.9199550747871399, -0.3118962049484253, 0.5449126958847046, 0.4285471737384796, 0.16960686445236206, 1.117911458015442, -0.09751644730567932, 0.48115721344947815, -0.02545926161110401, 0.1429787427186966, -0.2939213514328003, -0.2867133319377899, -0.21203108131885529, 0.4031631052494049, 0.2135532945394516, -0.3614886403083801 ]
Helsinki-NLP/opus-mt-en-ar
Helsinki-NLP
"2023-08-16T11:28:58Z"
24,490
15
transformers
[ "transformers", "pytorch", "tf", "rust", "marian", "text2text-generation", "translation", "en", "ar", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - en - ar tags: - translation license: apache-2.0 --- ### eng-ara * source group: English * target group: Arabic * OPUS readme: [eng-ara](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-ara/README.md) * model: transformer * source language(s): eng * target language(s): acm afb apc apc_Latn ara ara_Latn arq arq_Latn ary arz * model: transformer * pre-processing: normalization + SentencePiece (spm32k,spm32k) * a sentence initial language token is required in the form of `>>id<<` (id = valid target language ID) * download original weights: [opus-2020-07-03.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-ara/opus-2020-07-03.zip) * test set translations: [opus-2020-07-03.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-ara/opus-2020-07-03.test.txt) * test set scores: [opus-2020-07-03.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-ara/opus-2020-07-03.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba-test.eng.ara | 14.0 | 0.437 | ### System Info: - hf_name: eng-ara - source_languages: eng - target_languages: ara - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-ara/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['en', 'ar'] - src_constituents: {'eng'} - tgt_constituents: {'apc', 'ara', 'arq_Latn', 'arq', 'afb', 'ara_Latn', 'apc_Latn', 'arz'} - src_multilingual: False - tgt_multilingual: False - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-ara/opus-2020-07-03.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-ara/opus-2020-07-03.test.txt - src_alpha3: eng - tgt_alpha3: ara - short_pair: en-ar - chrF2_score: 0.43700000000000006 - bleu: 14.0 - brevity_penalty: 1.0 - ref_len: 58935.0 - src_name: English - tgt_name: Arabic - train_date: 2020-07-03 - src_alpha2: en - tgt_alpha2: ar - prefer_old: False - long_pair: eng-ara - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.45421797037124634, -0.6505143046379089, 0.240875706076622, 0.4332246780395508, -0.5161166191101074, -0.13606922328472137, -0.28487104177474976, -0.4757562577724457, 0.3080964982509613, 0.3032287657260895, -0.5175510048866272, -0.8320223093032837, -0.6877224445343018, 0.467237263917923, -0.0825188010931015, 1.0876188278198242, -0.19705307483673096, 0.04961249977350235, 0.5588875412940979, -0.5453320741653442, -0.34887996315956116, -0.22026194632053375, -0.7228597402572632, -0.14311490952968597, 0.4222658574581146, 0.3680697977542877, 0.5503215193748474, 0.5229601860046387, 0.5804135203361511, 0.3323545753955841, -0.4957123398780823, 0.2616990804672241, -0.05087406188249588, -0.16634827852249146, -0.05428357049822807, -0.41574010252952576, -0.6096355319023132, -0.24758486449718475, 0.9371573328971863, 0.5642877817153931, 0.053957562893629074, 0.5747699737548828, -0.14689400792121887, 0.8462037444114685, -0.29784712195396423, 0.10931022465229034, -0.5078460574150085, -0.1279062032699585, -0.49464261531829834, -0.28747251629829407, -0.500074565410614, -0.3066824972629547, 0.12257944047451019, -0.6195664405822754, 0.04639119282364845, 0.17396065592765808, 1.810413122177124, 0.09998883306980133, -0.5458865165710449, -0.31061798334121704, -0.45226237177848816, 0.8319181203842163, -0.8286793231964111, 0.44169679284095764, 0.5466528534889221, -0.014530317857861519, -0.07435654103755951, -0.40479710698127747, -0.4551907181739807, -0.036537665873765945, -0.22955074906349182, 0.31025204062461853, -0.18840473890304565, -0.228387251496315, 0.14395849406719208, 0.5840638279914856, -0.7128440141677856, -0.07142920047044754, -0.4517950415611267, -0.14075084030628204, 0.46958470344543457, 0.018141048029065132, 0.40694090723991394, -0.626516580581665, -0.41584888100624084, -0.480776846408844, -0.4846104383468628, 0.2811044752597809, 0.5326460599899292, 0.39360588788986206, -0.6119664311408997, 0.7312331795692444, -0.12721537053585052, 0.5664193630218506, 0.013957025483250618, -0.10046251863241196, 0.7360072731971741, -0.6968613266944885, -0.10735373198986053, -0.15572434663772583, 1.2149381637573242, 0.14547279477119446, 0.0036822929978370667, 0.14014312624931335, -0.21165792644023895, -0.19095060229301453, -0.032522350549697876, -0.8329783082008362, 0.11930473148822784, 0.32512396574020386, -0.4320381283760071, -0.22285322844982147, -0.0058992416597902775, -0.8698933124542236, 0.14144401252269745, 0.15727658569812775, 0.5060287117958069, -0.8865911364555359, -0.2872847318649292, 0.38887542486190796, -0.005023051984608173, 0.3134520947933197, 0.002939318772405386, -0.5267444849014282, 0.1755691021680832, 0.27452826499938965, 1.0342837572097778, -0.04304113611578941, -0.4516262710094452, -0.28154003620147705, 0.2236911803483963, -0.1882510483264923, 0.7659677863121033, -0.21401096880435944, -0.4031488299369812, -0.1469324827194214, 0.35281506180763245, -0.0962277427315712, -0.19162309169769287, 0.979030430316925, -0.39813196659088135, 0.4502779245376587, -0.30804988741874695, -0.5015152096748352, -0.4989176094532013, 0.3719451129436493, -0.8869724273681641, 1.2750616073608398, 0.21742570400238037, -0.9660665988922119, 0.3770447075366974, -0.911777138710022, -0.35788819193840027, -0.01579095982015133, 0.09500529617071152, -0.807547926902771, -0.10363907366991043, 0.287217915058136, 0.32921257615089417, -0.4475247859954834, 0.4245111346244812, 0.05730453506112099, -0.25256749987602234, -0.013880521059036255, -0.2776978611946106, 1.3077510595321655, 0.24261339008808136, -0.4978106617927551, 0.13902540504932404, -0.9223566055297852, -0.08092670142650604, 0.3751869201660156, -0.5519920587539673, -0.21860599517822266, -0.09412707388401031, 0.30655235052108765, 0.07526656985282898, 0.27817732095718384, -0.5983283519744873, 0.38481658697128296, -0.7329146862030029, 0.2430536448955536, 0.8580822944641113, 0.07004986703395844, 0.2623681128025055, -0.41706582903862, 0.5537724494934082, 0.28177812695503235, 0.037024736404418945, 0.1655314415693283, -0.603727400302887, -0.7974105477333069, -0.27178865671157837, 0.6437668204307556, 0.7883215546607971, -0.7943601012229919, 0.843092679977417, -0.6880944967269897, -0.8923097252845764, -0.7846747040748596, -0.1688147336244583, 0.5117952823638916, 0.24933843314647675, 0.5314551591873169, -0.276382178068161, -0.5877594947814941, -1.0903676748275757, -0.2279384285211563, -0.3150769770145416, 0.07859418541193008, 0.25746360421180725, 0.9201744794845581, -0.08305243402719498, 0.5267910957336426, -0.40593209862709045, -0.6165935397148132, -0.2910051643848419, 0.23544031381607056, 0.452303946018219, 0.6929426193237305, 0.7545636892318726, -0.8801938891410828, -0.6330553293228149, 0.07769063115119934, -0.6712582111358643, -0.10363451391458511, 0.0032073031179606915, -0.1879729926586151, 0.445823609828949, 0.0017354412702843547, -0.5579198002815247, 0.3980570137500763, 0.6741344332695007, -0.8469384908676147, 0.5817782878875732, -0.17380619049072266, 0.4507395625114441, -1.5987979173660278, 0.26097726821899414, -0.14198076725006104, -0.07908755540847778, -0.30309030413627625, 0.09055542945861816, 0.005970399361103773, 0.13407635688781738, -0.5805601477622986, 0.7664160132408142, -0.6590231657028198, 0.015783963724970818, 0.3026477098464966, 0.11961985379457474, -0.0666399672627449, 0.8312476277351379, -0.2326958179473877, 1.1682268381118774, 0.6009344458580017, -0.4643862843513489, 0.0033749458380043507, 0.6018158793449402, -0.49613088369369507, 0.16513875126838684, -0.7645493149757385, -0.20942556858062744, 0.2840889096260071, 0.07630249112844467, -0.8052452206611633, -0.12584719061851501, 0.2792767286300659, -0.7524495124816895, 0.199777290225029, -0.1304001659154892, -0.7024345397949219, -0.11747636646032333, -0.40172287821769714, 0.6459257006645203, 0.45440247654914856, -0.16288383305072784, 0.946885347366333, 0.19545631110668182, -0.0045355758629739285, -0.707328200340271, -0.8380520939826965, -0.0009490594384260476, -0.2039293497800827, -0.6817043423652649, 0.4220150411128998, -0.15247498452663422, 0.042490869760513306, 0.22925099730491638, 0.00577436201274395, -0.10454890131950378, 0.16260172426700592, 0.07261165976524353, 0.22888876497745514, -0.23487235605716705, 0.0451725572347641, -0.011404016986489296, -0.12416965514421463, -0.278195321559906, -0.1731608659029007, 0.9063353538513184, -0.5386902689933777, -0.1596057415008545, -0.7616032958030701, 0.29198315739631653, 0.49024808406829834, -0.47487884759902954, 1.2172621488571167, 0.6969481706619263, -0.25523364543914795, 0.21401023864746094, -0.5007802844047546, 0.13420377671718597, -0.432854026556015, 0.33586573600769043, -0.69797283411026, -0.7333899736404419, 0.9734746813774109, 0.15559008717536926, 0.1928952932357788, 1.0528818368911743, 0.696641206741333, 0.130642831325531, 0.7055181860923767, 0.39083898067474365, 0.04617360979318619, 0.5252593755722046, -0.6760294437408447, -0.10468249022960663, -0.9229382872581482, -0.17189104855060577, -0.8484575748443604, -0.1572418361902237, -1.0131803750991821, -0.159029021859169, 0.37417924404144287, 0.024802353233098984, -0.216669961810112, 0.7216079235076904, -0.54034823179245, 0.3063357472419739, 0.7088228464126587, 0.18162448704242706, 0.32822880148887634, -0.03572468459606171, -0.4459803104400635, 0.06982909142971039, -0.47650134563446045, -0.7302195429801941, 1.2924362421035767, 0.2785845696926117, 0.10140234231948853, 0.4562222957611084, 0.7266783714294434, 0.14777244627475739, 0.07468821853399277, -0.6147523522377014, 0.6646295785903931, -0.18728572130203247, -0.9000765681266785, -0.401761531829834, -0.39089784026145935, -1.116690754890442, 0.13906531035900116, -0.1910323053598404, -0.6848310828208923, 0.08311444520950317, -0.1725284457206726, -0.10192520916461945, 0.7024757862091064, -0.7117788791656494, 0.9170898199081421, 0.11354074627161026, -0.16276399791240692, 0.026575274765491486, -0.7043970823287964, 0.15394893288612366, -0.08412884920835495, 0.2586115598678589, -0.1820068508386612, -0.1838885247707367, 1.0618840456008911, -0.35126492381095886, 0.5506986975669861, -0.010835056193172932, -0.1409103125333786, 0.254578560590744, 0.2065480351448059, 0.5743070244789124, -0.08387517929077148, -0.34375032782554626, 0.480051189661026, 0.09331324696540833, -0.7694596648216248, -0.20215006172657013, 0.4866129457950592, -1.0014227628707886, -0.5295933485031128, -0.6845930814743042, -0.6667043566703796, -0.0005163506721146405, 0.4627830684185028, 0.5464659929275513, 0.5318307280540466, 0.058390453457832336, 0.5090811252593994, 0.5785233378410339, -0.3903743624687195, 0.5351805686950684, 0.5722687244415283, -0.0020196964032948017, -0.6849884390830994, 0.7218669056892395, 0.27366721630096436, 0.15386377274990082, 0.48605209589004517, 0.088803730905056, -0.1051686704158783, -0.9613142609596252, -0.6310012340545654, 0.3720950186252594, -0.4761192202568054, -0.35431692004203796, -0.6106346845626831, -0.05867559090256691, -0.40738657116889954, 0.18068580329418182, -0.38382214307785034, -0.4593292772769928, -0.1046660766005516, -0.2671069800853729, 0.542795717716217, 0.43925487995147705, 0.006504204124212265, 0.2899518311023712, -0.9984311461448669, 0.33781930804252625, -0.24804827570915222, 0.5079368352890015, -0.1967030167579651, -0.855777382850647, -0.3814206123352051, -0.03931519761681557, -0.3186347782611847, -1.214189052581787, 0.5506718158721924, -0.015838298946619034, 0.21816353499889374, 0.060724370181560516, 0.11633699387311935, 0.6491870284080505, -0.5845556259155273, 1.1028375625610352, -0.20035335421562195, -1.0198101997375488, 0.7360726594924927, -0.43867063522338867, 0.4784424901008606, 0.7682358622550964, 0.37307149171829224, -0.34401553869247437, -0.7458282709121704, -0.8492838740348816, -1.0461463928222656, 0.8696752786636353, 0.7206469774246216, -0.16059496998786926, -0.09773828089237213, 0.15050108730793, -0.008915500715374947, -0.201547771692276, -1.239378809928894, -0.5391376614570618, 0.10537931323051453, -0.47015032172203064, 0.16012293100357056, -0.4553075134754181, -0.18356983363628387, -0.28380534052848816, 1.2578930854797363, 0.24075031280517578, 0.18422967195510864, 0.5655000805854797, -0.17133016884326935, -0.005594821181148291, 0.42302894592285156, 0.7718479037284851, 0.4557311534881592, -0.38297757506370544, -0.15940384566783905, 0.39631107449531555, -0.6689099669456482, 0.15838798880577087, 0.07702860236167908, -0.5488921403884888, 0.24663369357585907, 0.6146458387374878, 0.911543071269989, 0.0857817754149437, -0.5971370935440063, 0.49024954438209534, -0.09038866311311722, -0.3767967224121094, -0.5797597765922546, -0.34845659136772156, 0.0704975426197052, 0.18184982240200043, 0.4603036940097809, 0.006395165808498859, 0.09743266552686691, -0.2690257132053375, 0.0512324795126915, 0.07385840266942978, -0.1306510716676712, -0.40114787220954895, 0.5623545050621033, 0.06721001863479614, -0.4185905158519745, 0.4076800048351288, -0.4340001940727234, -0.47099778056144714, 0.7181097865104675, 0.29160958528518677, 1.1342368125915527, -0.16909396648406982, -0.12296456843614578, 0.7540750503540039, 0.5955256223678589, 0.10165756195783615, 0.5290423631668091, 0.1830207109451294, -0.6882064342498779, -0.3786442279815674, -0.9316864013671875, 0.06749626249074936, 0.16201935708522797, -0.7960306406021118, 0.341752290725708, -0.05530966445803642, -0.2638207674026489, -0.04126053303480148, 0.4217999279499054, -0.6254555583000183, 0.10751991719007492, -0.40218377113342285, 1.0528963804244995, -0.9728735089302063, 0.8712194561958313, 0.8745254874229431, -0.9157955050468445, -1.2320740222930908, -0.017142517492175102, -0.3486472964286804, -0.6366798877716064, 0.6530236005783081, 0.046700768172740936, -0.0215055663138628, 0.009628459811210632, -0.36006104946136475, -0.8472022414207458, 1.1770052909851074, 0.40481147170066833, -0.35063624382019043, -0.19140495359897614, 0.03397253528237343, 0.5406545996665955, 0.024861933663487434, 0.27307671308517456, 0.3813117742538452, 0.7980464100837708, -0.20267994701862335, -1.168099284172058, 0.2099919617176056, -0.6094651818275452, -0.09299016743898392, 0.38228464126586914, -0.939247190952301, 0.8640218377113342, 0.1552446484565735, -0.27784380316734314, 0.16221611201763153, 0.7434476017951965, 0.47365930676460266, 0.030308183282613754, 0.6137665510177612, 0.9823931455612183, 0.4201497733592987, -0.4300224184989929, 1.1210942268371582, -0.4551006853580475, 0.5556198358535767, 0.9192224740982056, 0.22123856842517853, 0.924695611000061, 0.5827372670173645, -0.32933393120765686, 0.8193092942237854, 0.7540184259414673, -0.1726745367050171, 0.3497721254825592, -0.10972429811954498, -0.09077591449022293, -0.18623492121696472, -0.2725595533847809, -0.5400331616401672, 0.6100249886512756, 0.04758520424365997, -0.16361624002456665, -0.06512212008237839, -0.1676911562681198, 0.35103437304496765, 0.13767027854919434, -0.1353907436132431, 0.7509177923202515, -0.20641368627548218, -0.6279035806655884, 0.797467827796936, 0.10187356173992157, 0.7104004621505737, -0.7021278142929077, -0.008968689478933811, -0.2050725817680359, 0.10621707886457443, -0.020630093291401863, -0.7885280847549438, 0.44806554913520813, 0.20056931674480438, -0.2910805642604828, -0.185651034116745, 0.11976277083158493, -0.4132448732852936, -0.8633534908294678, 0.48049673438072205, 0.4709610044956207, 0.3236677348613739, 0.25481560826301575, -0.8035041093826294, 0.05960800126194954, 0.17988978326320648, -0.7747802138328552, -0.016295507550239563, 0.7732442021369934, 0.029987497255206108, 0.7581143975257874, 0.5108174681663513, 0.3198375403881073, 0.06697233766317368, -0.014452173374593258, 0.6731062531471252, -0.9450202584266663, -0.5080814361572266, -0.8448700904846191, 0.5468515753746033, -0.04608185589313507, -0.7001934051513672, 0.7157127261161804, 0.8138642311096191, 0.9335207939147949, -0.0806378722190857, 0.3848417103290558, -0.24887444078922272, 0.5185537934303284, -0.705884575843811, 0.8082969784736633, -1.00416100025177, 0.0648549348115921, -0.21972890198230743, -0.7613568305969238, -0.2628175914287567, 0.389084130525589, -0.13861791789531708, 0.03959605470299721, 1.052392840385437, 0.735907793045044, 0.1733803153038025, -0.32252660393714905, -0.10207071900367737, 0.48274505138397217, 0.314675509929657, 0.9186407327651978, 0.26989129185676575, -1.0662665367126465, 0.8217225074768066, -0.3036405146121979, 0.05880626663565636, 0.033167675137519836, -0.8426569104194641, -0.8798593282699585, -0.8766158819198608, -0.22393783926963806, -0.4823252260684967, -0.1332903802394867, 1.0749672651290894, 0.33188140392303467, -1.0929166078567505, -0.35812607407569885, -0.06323493272066116, 0.1390470564365387, -0.3877163827419281, -0.2694060802459717, 0.8915355801582336, -0.06552229821681976, -1.104683518409729, 0.19918911159038544, 0.015236783772706985, 0.19419075548648834, 0.10731852799654007, -0.040906112641096115, -0.8948063850402832, 0.031936127692461014, 0.28633424639701843, 0.13680893182754517, -0.9565961956977844, -0.2196352481842041, 0.001526517211459577, -0.2524099349975586, 0.25312480330467224, 0.015815744176506996, -0.38584092259407043, 0.1038406565785408, 0.6992323994636536, 0.44030067324638367, 0.5489587783813477, -0.16350959241390228, 0.3163556158542633, -0.8070802688598633, 0.5521250367164612, 0.27696463465690613, 0.5900267958641052, 0.2576315104961395, -0.14760956168174744, 0.938482403755188, 0.30080223083496094, -0.38746631145477295, -1.0915350914001465, 0.02421826869249344, -1.41797935962677, -0.1485048234462738, 1.0815691947937012, -0.23173455893993378, -0.4251413941383362, 0.17407193779945374, -0.29772821068763733, 0.6103843450546265, -0.4970614016056061, 0.758335530757904, 1.0101913213729858, 0.43116170167922974, 0.16339926421642303, -0.5016390085220337, 0.33984559774398804, 0.7140337824821472, -0.8509681224822998, -0.22786200046539307, 0.19137950241565704, 0.2935456931591034, 0.44610822200775146, 0.643176257610321, -0.3297187387943268, 0.2399045079946518, -0.16596274077892303, 0.3856055438518524, -0.2142896205186844, -0.10603026300668716, -0.2990547716617584, 0.22480687499046326, -0.08920735120773315, -0.25517454743385315 ]
Intel/bert-base-uncased-mrpc
Intel
"2022-12-05T13:34:53Z"
24,436
1
transformers
[ "transformers", "pytorch", "bert", "text-classification", "generated_from_trainer", "en", "dataset:glue", "license:apache-2.0", "model-index", "endpoints_compatible", "region:us" ]
text-classification
"2022-04-06T07:30:07Z"
--- language: - en license: apache-2.0 tags: - generated_from_trainer datasets: - glue metrics: - accuracy - f1 model-index: - name: bert-base-uncased-mrpc results: - task: type: text-classification name: Text Classification dataset: name: GLUE MRPC type: glue args: mrpc metrics: - type: accuracy value: 0.8602941176470589 name: Accuracy - type: f1 value: 0.9042016806722689 name: F1 - task: type: natural-language-inference name: Natural Language Inference dataset: name: glue type: glue config: mrpc split: validation metrics: - type: accuracy value: 0.8602941176470589 name: Accuracy verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWMzOWFiNmZjY2ZjMzYzYjk2YjA2ZTc0NjBmYmRlMWM4YWQwMzczYmU0NjcxNjU4YWNhMGMxMjQxNmEwNzM3NSIsInZlcnNpb24iOjF9.5c8Um2j-oDEviTR2S_mlrjQU2Z5zEIgoEldxU6NpIGkM22WhGRMmuCUlkPEpy1q2-HsA4Lz16SAF2bXOXZMqBw - type: precision value: 0.8512658227848101 name: Precision verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzA0MjM4OGYyYmNhYTU3OTBmNzE3YzViNzQyZTk2NmJiODE2NGJkZGVlMTYxZGQzOWE1YTRkZjZmNjI5ODljNyIsInZlcnNpb24iOjF9.mzDbq7IbSFWnlR6jV-KwuNhOrqnuZVVQX38UzQVClox6O1DRmxAFuo3wmSYBEEaydGipdDN1FAkLXDyZP4LFBg - type: recall value: 0.96415770609319 name: Recall verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDMxMzUyZDVhNGM0ZTk3NjUxYTVlYmRjYjMxZTY3NjEzZmU5YzA5NTRmZTM3YTU1MjE3MzBmYjA1NzhkNjJlYSIsInZlcnNpb24iOjF9.WxpDTp5ANy97jjbzn4BOeQc5A5JJsyK2NQDv651v7J8AHrt_Srvy5lVia_gyWgqt4bI-ZpPPmBCCCP9MdOhdBw - type: auc value: 0.8985718651885194 name: AUC verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMWE3ZDc1ZWMwY2RmZmM4ZjQyY2RiMGJjMzFmNmNjNzVmMzE4Y2FlMzJjNzk0MTI3YjdkMTY5ZDg3ZGZjMGFkNSIsInZlcnNpb24iOjF9.PiS1glSDlAM9r7Pvu0FdTCdx45Dr_IDe7TRuZD8QhJzKw__H-Lil5bkBW-FsoN6hKQe80-qtuhLhvLwlZPORCA - type: f1 value: 0.9042016806722689 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiY2FiOTY2MDI1ZDcyYjE3OGVjOGJjOTc3NGRiODgwNzQxNTEzOGM4YTJhMDE0NjRlNjg1ODk0YzM5YTY0NTQxYSIsInZlcnNpb24iOjF9.gz3szT-MroNcsPhMznhg0kwgWsIa1gfJi8vrhcFMD0PK6djlvZIVKoAS2QE-1cgqPMph7AJXTLifQuPgPBQLDA - type: loss value: 0.6978028416633606 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDZjODM1NGYyZWMyNDQxOTg0ODkxODgyODcxMzRlZTVjMTc5YjU3MDJmMGMzYzczZDU1Y2NjNTYwYjM2MDEzZiIsInZlcnNpb24iOjF9.eNSy3R0flowu2c4OEAv9rayTQI4YluNN-AuXKzBJM6KPASzuVOD6vTElHMptXiJWc-2tfHJw6CdvyAQSEGTaBg --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # bert-base-uncased-mrpc This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the GLUE MRPC dataset. It achieves the following results on the evaluation set: - Loss: 0.6978 - Accuracy: 0.8603 - F1: 0.9042 - Combined Score: 0.8822 ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 2e-05 - train_batch_size: 16 - eval_batch_size: 8 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 5.0 ### Framework versions - Transformers 4.17.0 - Pytorch 1.10.0+cu102 - Datasets 1.14.0 - Tokenizers 0.11.6
[ -0.5328881740570068, -0.567661702632904, 0.11178058385848999, 0.1682676374912262, -0.5442033410072327, -0.3507959842681885, -0.32706600427627563, -0.25275394320487976, 0.30774039030075073, 0.29248565435409546, -0.7325131297111511, -0.45507922768592834, -0.6960651874542236, -0.3402456045150757, 0.019148850813508034, 1.2875114679336548, 0.266245573759079, 0.34219205379486084, -0.2660119831562042, 0.11186815798282623, -0.3122241795063019, -0.7460468411445618, -0.6166396737098694, -0.815968930721283, 0.42854973673820496, 0.20889650285243988, 0.9547958970069885, 0.9308057427406311, 0.6631146669387817, 0.2520819306373596, -0.4764462113380432, -0.07756966352462769, -0.5858779549598694, -0.506870448589325, -0.03199402615427971, -0.4040340483188629, -0.9846758246421814, 0.08479391038417816, 0.5198803544044495, 0.5304999947547913, -0.4332301914691925, 0.28910893201828003, 0.11992088705301285, 0.5177757143974304, -0.5856711864471436, 0.4226728677749634, -0.6337592005729675, 0.45729681849479675, -0.033672165125608444, -0.3339926302433014, -0.6729406118392944, -0.0067587862722575665, 0.1469622105360031, -0.4273591637611389, 0.6115301251411438, -0.15379977226257324, 1.1867945194244385, 0.18343082070350647, -0.1587703973054886, 0.025509340688586235, -0.6353667378425598, 0.7055469155311584, -0.7296170592308044, 0.3107508718967438, 0.39586499333381653, 0.4983721971511841, -0.2700677514076233, -0.80207759141922, -0.22035683691501617, -0.15590843558311462, -0.031159361824393272, 0.3648599088191986, 0.01113444846123457, 0.23306941986083984, 0.5662149786949158, 0.27914223074913025, -0.5103052258491516, -0.010127652436494827, -0.5902471542358398, -0.27970775961875916, 0.5112736821174622, 0.19858737289905548, -0.26768699288368225, -0.16042594611644745, -0.5772728323936462, -0.3363931477069855, -0.4190712869167328, 0.22667650878429413, 0.5943752527236938, 0.5948739051818848, -0.3468385636806488, 0.7439367175102234, 0.04900717735290527, 0.7230885028839111, 0.1890130639076233, -0.18201933801174164, 0.5048606395721436, 0.3126586973667145, -0.49259158968925476, -0.033325351774692535, 0.7986274361610413, 0.38570842146873474, 0.36422157287597656, -0.057816971093416214, -0.2810090184211731, -0.31448137760162354, 0.5061584115028381, -0.8417525291442871, -0.7472817897796631, 0.1001887172460556, -0.8766360878944397, -0.6364916563034058, 0.194306880235672, -0.4728585183620453, 0.1434086561203003, -0.3040674924850464, 0.5629046559333801, -0.521331250667572, -0.040252603590488434, 0.116733118891716, -0.21555019915103912, 0.16369131207466125, 0.26195910573005676, -1.0434937477111816, 0.27962279319763184, 0.45953303575515747, 0.42385217547416687, 0.1278199851512909, -0.2586815059185028, -0.010824916884303093, 0.1358039677143097, -0.2870313227176666, 0.7242068648338318, -0.267787903547287, -0.5154804587364197, -0.12533113360404968, 0.17828449606895447, -0.08407286554574966, -0.4060863256454468, 0.920940637588501, -0.33747178316116333, 0.44797635078430176, -0.3043724298477173, -0.6580641269683838, -0.10388904809951782, 0.3154747486114502, -0.5561133623123169, 1.1201281547546387, 0.10132469981908798, -0.648974597454071, 0.6542950868606567, -0.5619689226150513, -0.2401614785194397, 0.0324418842792511, -0.0012037762207910419, -0.901488721370697, 0.20002219080924988, 0.15091915428638458, 0.4210221469402313, 0.04660545289516449, 0.3460412323474884, -0.5927146077156067, -0.5122133493423462, -0.0028367529157549143, -0.595341682434082, 0.8649247288703918, 0.10977824032306671, -0.2697131931781769, 0.14256447553634644, -1.1935038566589355, 0.46971631050109863, 0.2806774377822876, -0.6902194023132324, 0.25214970111846924, -0.15026791393756866, 0.3640224039554596, 0.3395047187805176, 0.44238513708114624, -0.6061837077140808, 0.3520442247390747, -0.2774296700954437, 0.20133757591247559, 0.8756735324859619, -0.11228176951408386, 0.02962317131459713, -0.3469332158565521, 0.022042201831936836, 0.0942305475473404, 0.49951237440109253, 0.27617165446281433, -0.723240315914154, -0.8569450378417969, -0.4878948926925659, 0.49971330165863037, 0.33814388513565063, -0.16284656524658203, 1.2416794300079346, 0.04019583389163017, -0.79836106300354, -0.24100039899349213, -0.12004265934228897, 0.3950938880443573, 0.6663687229156494, 0.5712164044380188, -0.43103957176208496, -0.45465242862701416, -1.218414545059204, 0.20122076570987701, -0.09862863272428513, -0.08135124295949936, 0.3691304326057434, 0.5897315740585327, -0.23809313774108887, 0.8193640112876892, -0.5836421847343445, -0.1606847047805786, -0.11541707813739777, 0.18390899896621704, 0.5602322816848755, 0.962008535861969, 0.7018190026283264, -0.23718556761741638, -0.3028990924358368, -0.35504865646362305, -0.7670767903327942, 0.3585395812988281, -0.14797556400299072, -0.2901965081691742, -0.021136505529284477, 0.1547108143568039, -0.8344228863716125, 0.7678067684173584, 0.23747119307518005, -0.23432554304599762, 0.6794562935829163, -0.8001028299331665, -0.19212283194065094, -0.9440125226974487, 0.2704258859157562, 0.03055465966463089, -0.06603997200727463, -0.29678696393966675, 0.017863351851701736, 0.26194608211517334, -0.25723063945770264, -0.4081699550151825, 0.3127676546573639, -0.20124630630016327, 0.016560621559619904, -0.28771620988845825, -0.43260911107063293, -0.014023101888597012, 0.8890742063522339, 0.2929026782512665, 0.49743857979774475, 0.5367289185523987, -0.49954667687416077, 0.37984350323677063, 0.5867965817451477, -0.16816823184490204, 0.32494163513183594, -1.018707513809204, 0.2062530815601349, -0.022759849205613136, 0.13772638142108917, -0.8474770188331604, -0.113233283162117, 0.4430168867111206, -0.5453062653541565, 0.5151774287223816, -0.2556520998477936, -0.6057952046394348, -0.5589938163757324, -0.2022760808467865, 0.1421739012002945, 0.659428060054779, -0.7852321267127991, 0.47837740182876587, -0.03646643087267876, 0.3666132092475891, -0.6896973252296448, -0.7953672409057617, -0.23885440826416016, 0.11481958627700806, -0.4936109185218811, 0.306767076253891, -0.30750396847724915, 0.4098685383796692, -0.0896788164973259, -0.1503974348306656, -0.40559643507003784, -0.259212464094162, 0.27325040102005005, 0.33916306495666504, -0.17860712110996246, 0.02215818129479885, 0.08748041838407516, -0.2917651832103729, 0.3703256845474243, 0.12302190065383911, 0.5067715048789978, -0.11550973355770111, -0.2595098316669464, -0.6304230093955994, -0.019511450082063675, 0.4761284589767456, 0.02418980561196804, 1.0286732912063599, 0.7150185108184814, -0.4680732786655426, -0.11071930825710297, -0.3663599193096161, -0.33076369762420654, -0.5129184722900391, 0.29661229252815247, -0.6383827924728394, -0.20455047488212585, 0.7770640850067139, 0.2558004558086395, 0.03774784877896309, 0.808377742767334, 0.6655163168907166, -0.1981969028711319, 1.2408596277236938, 0.5091122388839722, 0.044475000351667404, 0.3156159818172455, -0.5657725930213928, -0.10498906672000885, -0.7219594717025757, -0.4808758497238159, -0.39671844244003296, -0.31520119309425354, -0.6265825629234314, -0.01417800784111023, 0.16823308169841766, 0.14492596685886383, -0.536156177520752, 0.5168105363845825, -0.7538875341415405, 0.39508146047592163, 0.9971153140068054, 0.676734983921051, -0.18906478583812714, 0.13467039167881012, -0.4433806538581848, -0.21439574658870697, -1.011513590812683, -0.41837266087532043, 1.3979053497314453, 0.6680509448051453, 0.8385663628578186, -0.13974535465240479, 0.582405686378479, 0.11226187646389008, 0.1152941882610321, -0.5204566717147827, 0.5555073022842407, 0.026405906304717064, -1.0574443340301514, -0.04172159358859062, -0.30053532123565674, -0.7639637589454651, 0.2756987512111664, -0.7820088267326355, -0.46516579389572144, 0.19747713208198547, 0.44878292083740234, -0.16282814741134644, 0.5395615696907043, -0.6136646270751953, 1.0806349515914917, -0.3656204640865326, -0.40441855788230896, -0.22443802654743195, -0.7915560603141785, 0.14172565937042236, 0.22774440050125122, -0.5115301609039307, 0.04319646954536438, 0.28654664754867554, 0.7525070905685425, -0.7027027606964111, 0.8167563080787659, -0.4184246063232422, 0.3642999231815338, 0.3341992497444153, -0.2328609824180603, 0.646114706993103, 0.04374539479613304, 0.029739772900938988, 0.26599761843681335, -0.20601409673690796, -0.7447736263275146, -0.3000570237636566, 0.5322996973991394, -1.2044249773025513, -0.053949739784002304, -0.6279745697975159, -0.6586910486221313, -0.20274990797042847, 0.2924991250038147, 0.578632116317749, 0.6214408874511719, -0.20298099517822266, 0.3313091993331909, 0.7854905724525452, -0.12149732559919357, 0.37530627846717834, 0.3091827630996704, 0.33003056049346924, -0.5568603873252869, 0.7547124624252319, -0.2432744950056076, 0.10579051822423935, 0.11413244158029556, 0.2210441380739212, -0.31262627243995667, -0.6187090277671814, -0.3561168313026428, 0.4366506338119507, -0.8024791479110718, -0.22666306793689728, -0.2781161963939667, -0.5263151526451111, -0.40280207991600037, -0.06966663897037506, -0.6628344058990479, -0.4138942062854767, -0.6679273843765259, -0.11839278042316437, 0.08716722577810287, 0.5497896671295166, -0.17737236618995667, 0.6893788576126099, -0.7731950283050537, -0.011329525150358677, 0.2835710644721985, 0.7053003311157227, -0.03761628270149231, -0.8467797636985779, -0.37607184052467346, 0.11885861307382584, -0.43137550354003906, -0.40848687291145325, 0.38773494958877563, 0.0726931244134903, 0.8601139187812805, 0.6521630883216858, -0.13824103772640228, 0.9893175363540649, -0.6241492033004761, 0.6097633838653564, 0.2930756211280823, -0.5805617570877075, 0.40194088220596313, -0.41378241777420044, 0.27195456624031067, 0.6063079237937927, 0.4323594570159912, 0.2550015449523926, -0.15190933644771576, -1.3715314865112305, -0.7305189967155457, 0.8106259107589722, 0.4053424298763275, 0.07642541080713272, 0.1217254027724266, 0.4402405619621277, -0.05904952436685562, 0.45434996485710144, -0.9903347492218018, -0.6285040378570557, -0.3661857545375824, -0.12689648568630219, -0.05105222016572952, -0.5930618047714233, -0.2881664037704468, -0.6383746862411499, 1.0909945964813232, 0.07247054576873779, 0.7838560342788696, 0.06561538577079773, 0.13389763236045837, -0.4538716673851013, -0.23378778994083405, 0.8838828802108765, 0.7900192141532898, -1.1676079034805298, -0.25607389211654663, 0.019695330411195755, -0.5292024612426758, -0.35562294721603394, 0.26039519906044006, 0.17465536296367645, 0.2423122227191925, 0.5226314067840576, 0.8066074848175049, 0.08630334585905075, -0.28052496910095215, 0.47066402435302734, -0.127677321434021, -0.5846883654594421, -0.38548991084098816, 0.12741057574748993, -0.11375512927770615, 0.09139974415302277, 0.17647401988506317, 0.586516797542572, -0.0907246544957161, -0.1939433068037033, 0.366625040769577, 0.49321818351745605, -0.5720328688621521, -0.2655506134033203, 0.8085794448852539, 0.25936004519462585, -0.14184051752090454, 0.8521451354026794, 0.06246655806899071, -0.3167368769645691, 0.7254751324653625, 0.6671962141990662, 0.7864176034927368, -0.0632840171456337, -0.1405952274799347, 0.6894511580467224, 0.40140971541404724, -0.038580797612667084, 0.28935348987579346, -0.024909092113375664, -0.7017402648925781, -0.17623741924762726, -0.3982190787792206, -0.5498132705688477, 0.4554774761199951, -1.1868852376937866, 0.41699057817459106, -0.7227219939231873, -0.29510563611984253, 0.20002849400043488, 0.10003592818975449, -0.6880860924720764, 0.6117706298828125, 0.22236427664756775, 1.3983556032180786, -1.0057154893875122, 1.0425374507904053, 0.6488310098648071, -0.29583683609962463, -0.7914593815803528, -0.3306405246257782, -0.26943016052246094, -1.0290006399154663, 0.6461457014083862, -0.033201199024915695, 0.4114437997341156, -0.15433412790298462, -0.6792351007461548, -0.7271274328231812, 0.9126101732254028, 0.2274240255355835, -0.4620756208896637, 0.0877377986907959, 0.1750461608171463, 0.7461504936218262, -0.3006051182746887, 0.7352771162986755, 0.09660691767930984, 0.18620604276657104, 0.2769119441509247, -0.9256781935691833, -0.32348889112472534, -0.28769391775131226, 0.025879962369799614, 0.18131287395954132, -0.651340126991272, 1.2023223638534546, 0.01187051273882389, 0.4855870008468628, 0.17563584446907043, 0.6534981727600098, 0.307399183511734, -0.05052458494901657, 0.32464179396629333, 0.9354531168937683, 0.498349666595459, -0.0966111421585083, 0.8705266714096069, -0.5816339254379272, 0.9038376808166504, 1.231040120124817, 0.11381042003631592, 0.6757524609565735, 0.32941386103630066, -0.2394072264432907, 0.3750239908695221, 0.7722439169883728, -0.48290547728538513, 0.7474702596664429, 0.15431202948093414, 0.08350091427564621, -0.4925042688846588, 0.4533725380897522, -0.757853090763092, 0.3307724595069885, 0.14862315356731415, -0.8127319812774658, -0.398796945810318, -0.31873610615730286, -0.14326763153076172, -0.23962043225765228, -0.32058802247047424, 0.5179095268249512, -0.3576025664806366, -0.2894047200679779, 0.7771742343902588, 0.03224780783057213, 0.514439582824707, -0.7893720269203186, -0.1388849914073944, 0.055053357034921646, 0.5581583976745605, -0.16662636399269104, -0.6809136867523193, 0.19752870500087738, -0.3620225787162781, -0.3946513235569, -0.10241206735372543, 0.7434238195419312, -0.3714011311531067, -0.7251938581466675, 0.11381950974464417, 0.3248745799064636, 0.22719964385032654, 0.13790318369865417, -1.3320863246917725, -0.08443506062030792, 0.034263890236616135, -0.4425647556781769, 0.2739575505256653, 0.17124387621879578, 0.38757601380348206, 0.6614625453948975, 0.6447093486785889, -0.006169687490910292, -0.06737124174833298, -0.10457801073789597, 1.0543020963668823, -0.5994291305541992, -0.5207792520523071, -0.6186995506286621, 0.6324318051338196, -0.1896194964647293, -0.7384818196296692, 0.5386970639228821, 0.998629629611969, 0.834503173828125, -0.5097885727882385, 0.46246907114982605, 0.0018762437393888831, 0.5917617678642273, -0.322469562292099, 0.7735983729362488, -0.39040476083755493, -0.04562745615839958, -0.2898494303226471, -0.9499748945236206, -0.15890711545944214, 0.9881235361099243, 0.013178063556551933, 0.21427226066589355, 0.5240419507026672, 0.6325291991233826, -0.28863275051116943, -0.043096303939819336, 0.2596883475780487, -0.05663848668336868, 0.26679283380508423, 0.5217443108558655, 0.2675494849681854, -0.8342268466949463, 0.49569636583328247, -0.7820549011230469, -0.23668280243873596, -0.23602791130542755, -0.975321888923645, -1.4598106145858765, -0.20064161717891693, -0.418724000453949, -0.5372687578201294, 0.0842934101819992, 1.0947293043136597, 1.0476187467575073, -0.8905202150344849, -0.3572677671909332, -0.023947326466441154, -0.2633507251739502, -0.24588224291801453, -0.21314546465873718, 0.4800046384334564, -0.27553290128707886, -0.6373317241668701, 0.11191539466381073, -0.3248339891433716, 0.3953716456890106, -0.003138127736747265, -0.013157101348042488, -0.24401871860027313, -0.19961631298065186, 0.35341888666152954, 0.16751332581043243, -0.4485034644603729, -0.5479004383087158, -0.24184587597846985, -0.14907141029834747, 0.3758772611618042, 0.3530457615852356, -0.6751616597175598, 0.5525431632995605, 0.2733512222766876, 0.21677584946155548, 0.6755422353744507, 0.12302720546722412, 0.5544676184654236, -1.033942699432373, 0.5653605461120605, 0.2697606384754181, 0.4844559133052826, -0.055351171642541885, -0.39764806628227234, 0.48932287096977234, 0.5068838596343994, -0.6929015517234802, -0.8533895611763, -0.17865926027297974, -1.3171073198318481, -0.09544304758310318, 0.7447471022605896, 0.044966671615839005, -0.4296887218952179, 0.4092639684677124, -0.1368735432624817, 0.24417255818843842, -0.49597641825675964, 0.74927818775177, 0.5991824865341187, -0.2631721794605255, -0.10419821739196777, -0.3643650412559509, 0.4623929262161255, 0.3612372875213623, -0.5487602949142456, -0.2376340627670288, 0.2834709882736206, 0.4105694591999054, 0.22144128382205963, 0.1944408267736435, -0.06902402639389038, 0.3783944547176361, 0.07384026050567627, 0.6878007054328918, -0.4995421767234802, -0.34924888610839844, -0.23765496909618378, 0.12803906202316284, 0.09005081653594971, -0.4948588013648987 ]
cl-tohoku/bert-base-japanese-v2
cl-tohoku
"2021-09-23T13:45:31Z"
24,425
20
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "ja", "dataset:wikipedia", "license:cc-by-sa-4.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ja license: cc-by-sa-4.0 datasets: - wikipedia widget: - text: 東北大学で[MASK]の研究をしています。 --- # BERT base Japanese (unidic-lite with whole word masking, jawiki-20200831) This is a [BERT](https://github.com/google-research/bert) model pretrained on texts in the Japanese language. This version of the model processes input texts with word-level tokenization based on the Unidic 2.1.2 dictionary (available in [unidic-lite](https://pypi.org/project/unidic-lite/) package), followed by the WordPiece subword tokenization. Additionally, the model is trained with the whole word masking enabled for the masked language modeling (MLM) objective. The codes for the pretraining are available at [cl-tohoku/bert-japanese](https://github.com/cl-tohoku/bert-japanese/tree/v2.0). ## Model architecture The model architecture is the same as the original BERT base model; 12 layers, 768 dimensions of hidden states, and 12 attention heads. ## Training Data The models are trained on the Japanese version of Wikipedia. The training corpus is generated from the Wikipedia Cirrussearch dump file as of August 31, 2020. The generated corpus files are 4.0GB in total, containing approximately 30M sentences. We used the [MeCab](https://taku910.github.io/mecab/) morphological parser with [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd) dictionary to split texts into sentences. ## Tokenization The texts are first tokenized by MeCab with the Unidic 2.1.2 dictionary and then split into subwords by the WordPiece algorithm. The vocabulary size is 32768. We used [`fugashi`](https://github.com/polm/fugashi) and [`unidic-lite`](https://github.com/polm/unidic-lite) packages for the tokenization. ## Training The models are trained with the same configuration as the original BERT; 512 tokens per instance, 256 instances per batch, and 1M training steps. For training of the MLM (masked language modeling) objective, we introduced whole word masking in which all of the subword tokens corresponding to a single word (tokenized by MeCab) are masked at once. For training of each model, we used a v3-8 instance of Cloud TPUs provided by [TensorFlow Research Cloud program](https://www.tensorflow.org/tfrc/). The training took about 5 days to finish. ## Licenses The pretrained models are distributed under the terms of the [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/). ## Acknowledgments This model is trained with Cloud TPUs provided by [TensorFlow Research Cloud](https://www.tensorflow.org/tfrc/) program.
[ -0.39882948994636536, -0.8601113557815552, 0.179687038064003, 0.1414618343114853, -0.7230220437049866, 0.05607357621192932, -0.31501448154449463, -0.3954968750476837, 0.5130906105041504, 0.5598759055137634, -0.7266359925270081, -0.5554896593093872, -0.6051918864250183, -0.04658501222729683, -0.2198653370141983, 1.1472764015197754, 0.014560158364474773, 0.23156015574932098, 0.2606944441795349, 0.12335147708654404, -0.3099955916404724, -0.5857420563697815, -0.6954382061958313, -0.4153274595737457, 0.39887210726737976, 0.15872687101364136, 0.47126826643943787, 0.40540626645088196, 0.16543881595134735, 0.20306871831417084, 0.010515864938497543, -0.03154486045241356, -0.5322649478912354, -0.2735069692134857, -0.0016216444782912731, -0.37948131561279297, -0.19305314123630524, 0.029206344857811928, 0.5483249425888062, 0.8051477074623108, 0.026794034987688065, 0.08423537760972977, -0.052498649805784225, 0.43150216341018677, -0.5517640709877014, 0.028245512396097183, -0.7809047698974609, 0.028270883485674858, -0.3159392178058624, 0.20924609899520874, -0.31484726071357727, 0.13048268854618073, 0.178692027926445, -0.6883248090744019, 0.33454596996307373, 0.0013317971024662256, 1.1703884601593018, 0.007571691181510687, -0.062418147921562195, -0.24784237146377563, -0.44136208295822144, 0.7278327941894531, -0.9832339882850647, 0.41520097851753235, 0.5327587723731995, -0.059820760041475296, -0.14327175915241241, -0.9312317371368408, -0.6504625678062439, -0.11586844176054001, 0.034389302134513855, 0.13904260098934174, -0.07222488522529602, 0.1880943775177002, 0.2705610692501068, 0.25215432047843933, -0.7156561613082886, 0.3304077088832855, -0.4551485776901245, -0.3138958811759949, 0.4559527039527893, -0.12118162214756012, 0.3143826127052307, -0.37492436170578003, -0.49252569675445557, -0.16062507033348083, -0.5231139063835144, 0.11103648692369461, 0.3231273591518402, 0.17875826358795166, -0.07268761098384857, 0.5281058549880981, -0.03528112918138504, 0.4814833104610443, -0.23902732133865356, -0.2893655598163605, 0.32347655296325684, -0.33496391773223877, -0.3975468575954437, 0.12308322638273239, 1.0114688873291016, 0.14994637668132782, 0.41122061014175415, -0.2485591322183609, -0.346565306186676, -0.020982716232538223, 0.24292249977588654, -0.9059895277023315, -0.23579660058021545, 0.1212744265794754, -0.564128577709198, -0.2965361177921295, 0.08497156947851181, -0.4879980981349945, 0.005268269218504429, -0.016974059864878654, 0.8143936991691589, -0.6030042767524719, -0.23795346915721893, 0.24908550083637238, -0.10554073750972748, 0.14254920184612274, -0.006610902491956949, -0.9020051956176758, 0.20211197435855865, 0.510547399520874, 0.8174076080322266, -0.017761312425136566, -0.22170598804950714, 0.01418791338801384, 0.05408754199743271, -0.39196544885635376, 0.41914719343185425, -0.2464781254529953, -0.42232954502105713, 0.059321675449609756, 0.15877899527549744, -0.26909109950065613, -0.23771648108959198, 0.4464949667453766, -0.5383797287940979, 0.475408673286438, -0.006351484917104244, -0.841645359992981, -0.26109302043914795, 0.15214161574840546, -0.4417264461517334, 1.1088972091674805, 0.10609377175569534, -0.7549947500228882, 0.21154248714447021, -0.8489314317703247, -0.3907850384712219, 0.35517069697380066, 0.08306119590997696, -0.4532838761806488, 0.07341624051332474, 0.2492060512304306, 0.44236016273498535, 0.037843797355890274, 0.38828736543655396, -0.1208304762840271, -0.43343105912208557, 0.27978959679603577, -0.2875576615333557, 1.1822679042816162, 0.19290824234485626, -0.6270720958709717, 0.02169804275035858, -0.7438693046569824, 0.06118275597691536, 0.2087658941745758, -0.2791306674480438, -0.32900044322013855, -0.3260827660560608, 0.25278007984161377, 0.1961366832256317, 0.4659591615200043, -0.8067566752433777, 0.12825238704681396, -0.5846958756446838, 0.45041874051094055, 0.724190890789032, -0.1130586639046669, 0.24226024746894836, -0.10268360376358032, 0.39375820755958557, 0.033853624016046524, 0.26786738634109497, -0.3129812479019165, -0.6249991655349731, -1.124581217765808, -0.38308408856391907, 0.8299002647399902, 0.47797539830207825, -0.8188399076461792, 0.8623889088630676, -0.3782224953174591, -0.4285987317562103, -0.8990315794944763, 0.09250250458717346, 0.4784286916255951, 0.39010003209114075, 0.2761223018169403, -0.564234733581543, -0.6553794741630554, -0.971917986869812, 0.15698745846748352, -0.057459067553281784, -0.22905202209949493, 0.013745174743235111, 0.735874354839325, -0.503546416759491, 0.7944948673248291, -0.3263302743434906, -0.4693731665611267, -0.3126896023750305, 0.3013460040092468, 0.3136143982410431, 0.5669487118721008, 0.4497714638710022, -0.5491628646850586, -0.5038774013519287, -0.30917608737945557, -0.4880194664001465, -0.060626450926065445, -0.04271033778786659, -0.20300713181495667, 0.3633496165275574, 0.6507906913757324, -0.5333670377731323, 0.45538458228111267, 0.549709677696228, -0.32004454731941223, 0.3646417558193207, -0.19919347763061523, -0.30464261770248413, -1.4514734745025635, 0.37739884853363037, -0.24688720703125, -0.2637503445148468, -0.728862464427948, -0.017931530252099037, -0.06969747692346573, -0.17093083262443542, -0.42797356843948364, 0.6461246013641357, -0.54722660779953, -0.004789665807038546, -0.3445645570755005, 0.0434865765273571, -0.05242788791656494, 0.8134700059890747, 0.13971446454524994, 0.7406238317489624, 0.5098552703857422, -0.6139488220214844, 0.11282531917095184, 0.051951635628938675, -0.799155056476593, -0.12722152471542358, -0.7704408168792725, 0.12182220071554184, -0.04240557178854942, 0.14778345823287964, -0.9948209524154663, -0.08214308321475983, 0.39823848009109497, -0.5749975442886353, 0.5344961285591125, 0.19212119281291962, -0.8194137811660767, -0.3419385850429535, -0.44405442476272583, 0.10202707350254059, 0.6789980530738831, -0.4547596871852875, 0.4637864828109741, 0.3929136395454407, -0.013269954361021519, -0.7259323596954346, -0.8431017994880676, 0.2646826505661011, 0.15957427024841309, -0.41378316283226013, 0.5727814435958862, -0.11835159361362457, 0.11286264657974243, 0.18256308138370514, 0.06796484440565109, -0.03355500102043152, 0.2053438276052475, 0.11823678016662598, 0.3750077784061432, -0.14997106790542603, 0.05923013761639595, 0.009509585797786713, -0.051879409700632095, -0.10811084508895874, -0.22948893904685974, 0.9950045943260193, 0.10342162102460861, -0.07337404787540436, -0.4059063494205475, 0.22068767249584198, 0.27773067355155945, -0.06776601076126099, 1.1016792058944702, 0.9367978572845459, -0.4808470904827118, -0.09470292925834656, -0.6622713804244995, -0.2571395933628082, -0.43704691529273987, 0.5353612899780273, -0.39431992173194885, -1.0002588033676147, 0.5509681701660156, 0.2932642996311188, 0.3211660385131836, 0.5922933220863342, 0.5727611184120178, -0.2020951509475708, 0.9394040703773499, 0.7952066659927368, -0.3538636267185211, 0.6277076005935669, -0.4589724838733673, 0.3089703619480133, -0.9229102730751038, -0.41498517990112305, -0.2825124263763428, -0.3238888680934906, -0.6384812593460083, -0.4150281250476837, 0.20709556341171265, 0.3107149600982666, -0.1751321405172348, 0.3601781129837036, -0.4434036314487457, 0.4378153681755066, 0.6877716779708862, 0.13461634516716003, 0.0573863685131073, 0.3551326096057892, -0.42728203535079956, -0.1333267092704773, -0.7487586140632629, -0.48358452320098877, 1.194604754447937, 0.5755917429924011, 0.5277001857757568, -0.08253490924835205, 0.6106314063072205, 0.12535825371742249, 0.3174956142902374, -0.7061619758605957, 0.5710989832878113, -0.4817265570163727, -1.0348365306854248, -0.2921256124973297, -0.28525805473327637, -1.0450685024261475, 0.3487725555896759, -0.29956236481666565, -0.7562124729156494, -0.026100793853402138, -0.34506160020828247, -0.09542597085237503, 0.5140171051025391, -0.6176736950874329, 0.849174976348877, -0.3073754906654358, 0.07056592404842377, -0.1306348294019699, -0.9048351049423218, 0.36337167024612427, -0.22239764034748077, 0.16692273318767548, -0.05504867061972618, -0.09525071829557419, 1.1584316492080688, -0.4505714178085327, 0.9963120818138123, -0.168297678232193, 0.034694381058216095, 0.09447174519300461, -0.24048170447349548, 0.12045767903327942, -0.15362955629825592, 0.1972663849592209, 0.5677832961082458, -0.16783666610717773, -0.5091527700424194, -0.19620874524116516, 0.5728546380996704, -1.0801377296447754, -0.325849324464798, -0.47888967394828796, -0.371687650680542, -0.06961927562952042, 0.5169761776924133, 0.6702621579170227, 0.346225768327713, -0.22019879519939423, 0.4045902490615845, 0.9269393086433411, -0.2705042064189911, 0.6256911754608154, 0.6744099259376526, -0.3499299883842468, -0.4383522570133209, 0.8229939341545105, 0.17473848164081573, 0.11155189573764801, 0.5637059211730957, 0.037803951650857925, -0.3970305919647217, -0.5390167236328125, -0.45958778262138367, 0.5127326846122742, -0.4855543375015259, -0.04598921164870262, -0.863631546497345, -0.547696053981781, -0.648370087146759, 0.04610540345311165, -0.3580966293811798, -0.381313681602478, -0.46229541301727295, -0.033088184893131256, 0.047987163066864014, 0.5892568230628967, 0.04476386308670044, 0.5593451261520386, -0.5841296911239624, 0.25236767530441284, 0.22985783219337463, 0.28128769993782043, -0.10831654816865921, -0.840337872505188, -0.39008694887161255, 0.2660321593284607, -0.13603101670742035, -0.6853904724121094, 0.36336493492126465, 0.10688426345586777, 0.6657159924507141, 0.5392287969589233, -0.12760260701179504, 0.6189227104187012, -0.390316903591156, 0.964814305305481, 0.37907153367996216, -0.9855368137359619, 0.4408828914165497, -0.2591574788093567, 0.43552953004837036, 0.6641741991043091, 0.5221611857414246, -0.5980120301246643, -0.37071317434310913, -0.8481210470199585, -0.8355559706687927, 0.7870842218399048, 0.2996581196784973, 0.3496071398258209, 0.09012164920568466, 0.43304532766342163, -0.055393923074007034, 0.33986523747444153, -1.1218023300170898, -0.4234772324562073, -0.3807123005390167, -0.2657453417778015, -0.34961509704589844, -0.6000311374664307, 0.07515827566385269, -0.3083820641040802, 1.076100468635559, 0.06054176390171051, 0.37870705127716064, 0.11504160612821579, -0.3641461730003357, 0.04744824767112732, 0.12373102456331253, 0.7525997757911682, 0.5688871741294861, -0.3960937261581421, -0.006435964722186327, 0.022186819463968277, -0.6955723762512207, -0.22009854018688202, 0.1464560329914093, -0.411325603723526, 0.5474259257316589, 0.5148759484291077, 1.2813764810562134, 0.35212981700897217, -0.6855370402336121, 0.614307165145874, -0.027660604566335678, -0.44187837839126587, -0.27394500374794006, -0.048446930944919586, 0.15300455689430237, -0.1390353888273239, 0.4032163619995117, -0.36923161149024963, -0.13112062215805054, -0.540260374546051, 0.02208353579044342, 0.4835100769996643, -0.2866489887237549, -0.2518644630908966, 0.5684219598770142, 0.14433977007865906, -0.20138810575008392, 0.7623785734176636, -0.19364823400974274, -0.8570587635040283, 0.47429636120796204, 0.6516711711883545, 0.9393510222434998, -0.2250695526599884, 0.2429322600364685, 0.5309995412826538, 0.6274605393409729, 0.07566610723733902, -0.00048762751976028085, -0.0688709020614624, -0.888185977935791, -0.3451523184776306, -0.8712210655212402, -0.21097144484519958, 0.6419785022735596, -0.4330649971961975, 0.13722531497478485, -0.6015230417251587, -0.07780758291482925, -0.04245897755026817, 0.4248234033584595, -0.44319021701812744, 0.36307239532470703, 0.23274390399456024, 0.874622106552124, -0.8060423135757446, 1.1579326391220093, 0.7390997409820557, -0.42909330129623413, -0.8506467342376709, -0.14609695971012115, -0.4268505573272705, -1.1010613441467285, 0.5121198296546936, 0.35631421208381653, 0.15847916901111603, 0.06768518686294556, -0.6304802298545837, -0.7545146942138672, 0.9672566652297974, 0.09850984811782837, -0.5680262446403503, -0.11495675891637802, 0.22236019372940063, 0.6913701891899109, -0.4748208522796631, 0.1386260986328125, 0.35072556138038635, 0.21940574049949646, 0.06631559878587723, -0.9227972626686096, -0.2144508957862854, -0.34696996212005615, 0.39082446694374084, 0.08535498380661011, -0.4530566334724426, 0.9305735230445862, 0.08805038034915924, -0.26136669516563416, 0.12090691924095154, 0.49969586730003357, 0.16900649666786194, -0.03029627539217472, 0.6250423789024353, 0.8888925909996033, 0.5906627774238586, 0.0758003294467926, 0.7909383177757263, -0.39788705110549927, 0.41063281893730164, 0.8794493079185486, 0.17628972232341766, 0.7795118093490601, 0.4189501404762268, -0.050505105406045914, 0.6798884868621826, 0.7967121005058289, -0.16671670973300934, 0.7400727272033691, 0.08119628578424454, -0.23853842914104462, -0.1496969610452652, -0.2765214443206787, -0.37195977568626404, 0.35214507579803467, 0.3848324716091156, -0.5023881196975708, -0.16084453463554382, 0.138006329536438, 0.32249319553375244, -0.3270643353462219, -0.38035792112350464, 0.818361759185791, 0.15886396169662476, -0.646439254283905, 0.5821402668952942, 0.4030660092830658, 1.0717394351959229, -0.983489453792572, 0.3875880539417267, -0.22686810791492462, 0.18244051933288574, 0.06869642436504364, -0.5846484303474426, 0.020142797380685806, 0.12782952189445496, -0.19234232604503632, -0.2962888479232788, 0.6822283864021301, -0.6564727425575256, -0.6747570633888245, 0.323381245136261, 0.2078140825033188, 0.43318113684654236, 0.054102618247270584, -0.9940075278282166, 0.06808070838451385, 0.29725781083106995, -0.3250782787799835, 0.4322902262210846, 0.16286751627922058, -0.050582222640514374, 0.502753734588623, 0.879546046257019, 0.12649919092655182, 0.23671232163906097, 0.32283711433410645, 0.8069038987159729, -0.47275102138519287, -0.5235188603401184, -0.8301364779472351, 0.34749436378479004, -0.12634748220443726, -0.39706167578697205, 0.6672136783599854, 0.5698922872543335, 0.9934422969818115, -0.18037107586860657, 0.544529378414154, -0.11803153157234192, 0.5359830856323242, -0.5836299657821655, 0.7477384209632874, -0.7578635215759277, 0.05300646275281906, -0.16461408138275146, -1.0172350406646729, -0.15469098091125488, 0.8179883360862732, 0.11049935221672058, 0.08285107463598251, 0.6303650140762329, 0.7844976782798767, 0.05018504336476326, -0.2073245495557785, 0.34200480580329895, 0.2100314348936081, 0.2668536603450775, 0.5686451196670532, 0.4130907952785492, -0.7036185264587402, 0.3974252939224243, -0.5649495124816895, -0.13272352516651154, -0.23530162870883942, -0.7210018634796143, -1.213533639907837, -0.5884588360786438, -0.23403161764144897, -0.3118434548377991, -0.06885446608066559, 0.8401662111282349, 0.7076113224029541, -0.8118679523468018, -0.30533042550086975, -0.1012372151017189, -0.18885129690170288, 0.21491506695747375, -0.25470104813575745, 0.44132891297340393, -0.3542320430278778, -0.7214161157608032, 0.18562820553779602, 0.09510380029678345, 0.15348567068576813, -0.3996683955192566, 0.05072754994034767, -0.5648633241653442, -0.012936492450535297, 0.5202099680900574, 0.09064962714910507, -0.7317567467689514, -0.059202954173088074, 0.06790618598461151, -0.3253265619277954, -0.18997476994991302, 0.6737965941429138, -0.49513688683509827, 0.6103968620300293, 0.31296244263648987, 0.5747312307357788, 0.8990621566772461, -0.23151472210884094, 0.2927911877632141, -0.9650354385375977, 0.3938746750354767, 0.150596022605896, 0.41392162442207336, 0.40837034583091736, -0.14847183227539062, 0.5261988639831543, 0.4555734694004059, -0.2315695583820343, -0.8941149115562439, -0.07552564889192581, -0.9258931875228882, -0.6387330889701843, 1.0327240228652954, -0.1512032002210617, -0.3704712688922882, -0.059178080409765244, -0.09914347529411316, 0.44659850001335144, -0.09418822079896927, 0.6793438196182251, 0.9727951884269714, 0.34982970356941223, -0.23040466010570526, -0.3867323398590088, 0.36218491196632385, 0.5683352947235107, -0.55063396692276, -0.39561721682548523, 0.11806458979845047, 0.619292676448822, 0.3334287405014038, 0.9286692142486572, -0.021893862634897232, 0.023048747330904007, -0.14297142624855042, 0.36627665162086487, -0.12347469478845596, -0.19116787612438202, -0.28379935026168823, -0.09544313699007034, -0.2899653911590576, -0.4910578727722168 ]
jplu/tf-xlm-roberta-base
jplu
"2020-12-11T21:48:00Z"
24,373
1
transformers
[ "transformers", "tf", "xlm-roberta", "fill-mask", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
# Tensorflow XLM-RoBERTa In this repository you will find different versions of the XLM-RoBERTa model for Tensorflow. ## XLM-RoBERTa [XLM-RoBERTa](https://ai.facebook.com/blog/-xlm-r-state-of-the-art-cross-lingual-understanding-through-self-supervision/) is a scaled cross lingual sentence encoder. It is trained on 2.5T of data across 100 languages data filtered from Common Crawl. XLM-R achieves state-of-the-arts results on multiple cross lingual benchmarks. ## Model Weights | Model | Downloads | -------------------------------- | --------------------------------------------------------------------------------------------------------------- | `jplu/tf-xlm-roberta-base` | [`config.json`](https://s3.amazonaws.com/models.huggingface.co/bert/jplu/tf-xlm-roberta-base/config.json) • [`tf_model.h5`](https://s3.amazonaws.com/models.huggingface.co/bert/jplu/tf-xlm-roberta-base/tf_model.h5) | `jplu/tf-xlm-roberta-large` | [`config.json`](https://s3.amazonaws.com/models.huggingface.co/bert/jplu/tf-xlm-roberta-large/config.json) • [`tf_model.h5`](https://s3.amazonaws.com/models.huggingface.co/bert/jplu/tf-xlm-roberta-large/tf_model.h5) ## Usage With Transformers >= 2.4 the Tensorflow models of XLM-RoBERTa can be loaded like: ```python from transformers import TFXLMRobertaModel model = TFXLMRobertaModel.from_pretrained("jplu/tf-xlm-roberta-base") ``` Or ``` model = TFXLMRobertaModel.from_pretrained("jplu/tf-xlm-roberta-large") ``` ## Huggingface model hub All models are available on the [Huggingface model hub](https://huggingface.co/jplu). ## Acknowledgments Thanks to all the Huggingface team for the support and their amazing library!
[ -0.6002670526504517, -0.6949333548545837, 0.3653002679347992, 0.40525132417678833, -0.04635506495833397, -0.08053100109100342, -0.13084782660007477, -0.46373215317726135, 0.16523541510105133, 0.5815867781639099, -0.7664869427680969, -0.5463693141937256, -1.0353833436965942, 0.28568407893180847, -0.28739070892333984, 1.1668864488601685, -0.34450089931488037, 0.33454304933547974, -0.15600456297397614, -0.5253934264183044, -0.2931934595108032, -0.39515382051467896, -0.8757908344268799, -0.5735148191452026, 0.4072912335395813, -0.030376184731721878, 0.7806308269500732, 0.3530352711677551, 0.5047830939292908, 0.4211011230945587, -0.27908170223236084, 0.07658751308917999, -0.4226062595844269, -0.10997507721185684, 0.20947624742984772, -0.6980304718017578, -0.7962432503700256, -0.01378424372524023, 0.8191789388656616, 0.36519935727119446, 0.032801851630210876, 0.1949714571237564, -0.12678512930870056, 0.45929449796676636, -0.16742725670337677, 0.17815536260604858, 0.11428575962781906, 0.4068930447101593, 0.046063002198934555, -0.13280993700027466, -0.27975496649742126, -0.21103724837303162, 0.3862967789173126, -0.4703405499458313, 0.05628341808915138, 0.1731920689344406, 1.3272573947906494, 0.43405887484550476, -0.5455821752548218, -0.0963502824306488, -0.5759249925613403, 1.0902130603790283, -0.7658500671386719, 0.7933420538902283, 0.2059488445520401, 0.3275407552719116, 0.06855648756027222, -0.9430666565895081, -0.2949356734752655, -0.09443125128746033, -0.3880111873149872, 0.12405628710985184, -0.5633540749549866, -0.00501553900539875, 0.4077569842338562, 0.3549921214580536, -0.9736030101776123, 0.05077902972698212, -0.6669009923934937, 0.05339426174759865, 0.39150458574295044, 0.1546696275472641, 0.5012564063072205, -0.20862747728824615, -0.6336093544960022, -0.3594546914100647, -0.5551444888114929, -0.11930077522993088, 0.3088008165359497, 0.17955225706100464, -0.7580479979515076, 0.4226544201374054, 0.2575564682483673, 0.8235998153686523, 0.2203528881072998, -0.14056068658828735, 0.539015531539917, -0.11243187636137009, -0.42883118987083435, -0.21944713592529297, 1.101340413093567, 0.05028508976101875, 0.010968920774757862, -0.1712133288383484, -0.2687946856021881, -0.3488464057445526, 0.22891883552074432, -1.210938572883606, 0.1557084023952484, 0.5914230942726135, -0.6348218321800232, -0.34570273756980896, 0.011266202665865421, -0.4681508243083954, 0.21484166383743286, -0.3103652000427246, 0.5877707004547119, -0.6591419577598572, -0.5522065162658691, 0.08491060137748718, -0.21636056900024414, 0.33622750639915466, 0.054623428732156754, -0.7145296335220337, 0.4736175537109375, 0.7306234240531921, 0.9978735446929932, -0.15311723947525024, -0.2931639850139618, -0.417592316865921, -0.20604582130908966, -0.2697000503540039, 0.5383007526397705, -0.256719708442688, -0.2981705963611603, -0.008401802740991116, 0.3513161838054657, -0.24682925641536713, -0.4394787847995758, 0.5817698240280151, -0.6069413423538208, 0.6264201998710632, 0.13279002904891968, -0.7566179633140564, -0.5298681855201721, 0.41736266016960144, -0.6473708748817444, 0.9843041896820068, 0.6032118201255798, -0.6647775769233704, 0.11257334053516388, -0.8714759349822998, -0.23575347661972046, -0.10196065902709961, 0.019203128293156624, -0.9951395392417908, -0.18451763689517975, 0.028905553743243217, 0.6048250198364258, -0.3052877187728882, 0.12338380515575409, -0.4652036428451538, -0.14548587799072266, 0.13883313536643982, 0.1374182105064392, 1.4516875743865967, 0.42059165239334106, -0.2864989936351776, 0.3803313076496124, -0.6056999564170837, 0.03617924079298973, 0.18532338738441467, -0.06010719761252403, 0.009326258674263954, -0.7037158608436584, 0.5009730458259583, 0.1563740223646164, 0.11297734081745148, -0.37962576746940613, 0.06849193572998047, -0.06800869107246399, 0.659348726272583, 0.4734143316745758, -0.16282059252262115, 0.5045372843742371, -0.6819846630096436, 0.8992127776145935, 0.2864501178264618, 0.2922389805316925, -0.03854967653751373, -0.5287105441093445, -0.8412876725196838, -0.3468983471393585, 0.417962908744812, 0.40646037459373474, -0.6300706267356873, 0.420136958360672, -0.08893051743507385, -0.7395045757293701, -0.6025301814079285, 0.12635770440101624, 0.6238988637924194, 0.3801906704902649, 0.45040589570999146, -0.05563242733478546, -0.7726108431816101, -0.7669398784637451, -0.026981662958860397, 0.09452784806489944, 0.0041599939577281475, 0.5196332931518555, 0.6961527466773987, -0.42945462465286255, 0.6005157232284546, -0.40074339509010315, -0.6167280673980713, -0.44782307744026184, 0.34892570972442627, 0.35434719920158386, 0.7142674922943115, 1.261255145072937, -0.8050509095191956, -0.5752237439155579, -0.24858960509300232, -0.8895898461341858, 0.10297179222106934, 0.018178148195147514, -0.32155874371528625, 0.6784223914146423, 0.3191884160041809, -0.8099124431610107, 0.18579630553722382, 0.9431313872337341, -0.6407651305198669, 0.36185967922210693, -0.30395403504371643, 0.10368010401725769, -1.5497169494628906, 0.00017063658742699772, 0.3514540195465088, -0.5782545208930969, -0.4611302316188812, 0.5021331906318665, 0.17538946866989136, 0.0915582925081253, -0.507331907749176, 0.6628769040107727, -0.6846959590911865, -0.12513405084609985, -0.01788272149860859, 0.004259546287357807, 0.2324448972940445, 0.5456433892250061, 0.19235023856163025, 0.4833112061023712, 0.7414255738258362, -0.33701711893081665, 0.4892011880874634, 0.585628092288971, -0.16977064311504364, 0.521625816822052, -0.9548556804656982, 0.1447375863790512, -0.12073087692260742, 0.3997730314731598, -0.6896027326583862, -0.014483224600553513, 0.38654670119285583, -0.5980319380760193, 0.7185211777687073, -0.5707128047943115, -0.4348706305027008, -0.3799465298652649, -0.0357656292617321, 0.4066503345966339, 0.7770931720733643, -0.733397901058197, 1.0157874822616577, 0.3512118458747864, 0.12379570305347443, -0.47467806935310364, -0.9500253796577454, -0.05413578450679779, -0.5636052489280701, -0.8709808588027954, 0.5167515873908997, -0.39720162749290466, -0.12080606818199158, 0.15007688105106354, 0.2646743953227997, -0.17064546048641205, -0.14182129502296448, 0.37109625339508057, 0.5600081086158752, -0.46269941329956055, -0.2548618018627167, -0.23629045486450195, -0.2697717249393463, 0.11797980964183807, -0.3254052400588989, 0.6850997805595398, -0.3482992649078369, 0.13238412141799927, -0.5549523830413818, 0.11377780139446259, 0.5201132297515869, -0.1820693165063858, 0.9107528328895569, 1.2002991437911987, -0.41049376130104065, -0.2355155050754547, -0.5502957701683044, -0.16053980588912964, -0.4706346392631531, 0.22779780626296997, -0.35553091764450073, -1.0587072372436523, 0.6783931255340576, 0.3992982804775238, 0.007785383146256208, 0.48865994811058044, 0.5964876413345337, 0.21367797255516052, 1.03232741355896, 0.7718954086303711, -0.053226593881845474, 0.6452970504760742, -0.8050668239593506, 0.006828728131949902, -1.0017462968826294, -0.10683686286211014, -0.6298878192901611, -0.18262945115566254, -0.6511542797088623, -0.49247169494628906, 0.36823713779449463, -0.1442316621541977, -0.37324169278144836, 0.8864602446556091, -0.4915933310985565, 0.05767393112182617, 0.6289293169975281, 0.19900161027908325, 0.11239500343799591, -0.2483367919921875, -0.03384053334593773, 0.17363426089286804, -0.5975131392478943, -0.21972393989562988, 1.2717114686965942, 0.3007223904132843, 0.5202512145042419, 0.28525421023368835, 0.7964489459991455, -0.1289599984884262, 0.3646085560321808, -0.7283969521522522, 0.22973236441612244, -0.03343479335308075, -0.7665428519248962, -0.025796473026275635, -0.7262243628501892, -0.8169798254966736, 0.01841411553323269, -0.30253174901008606, -0.5500258803367615, -0.08119559288024902, -0.059667494148015976, -0.46920230984687805, 0.4423157572746277, -0.5997821092605591, 1.1941630840301514, -0.2182421237230301, -0.21996058523654938, -0.05553887039422989, -0.4549541473388672, 0.360092431306839, -0.04004339128732681, -0.019990671426057816, 0.0701407864689827, 0.1010831817984581, 0.6664121747016907, -0.6796958446502686, 0.5274255871772766, -0.2319258749485016, 0.027971236035227776, 0.2367517352104187, -0.026015769690275192, 0.38940468430519104, 0.06348130106925964, -0.07495170831680298, 0.5149447321891785, 0.2792486846446991, -0.24604330956935883, -0.5681936740875244, 0.839114785194397, -1.3747520446777344, -0.5095148682594299, -0.48930901288986206, -0.5900685787200928, -0.01655014604330063, 0.37096577882766724, 0.3795068562030792, 0.5412142276763916, -0.045064374804496765, 0.30486124753952026, 0.6217043399810791, -0.28142496943473816, 0.31765758991241455, 0.5850872993469238, -0.4242127537727356, -0.42178967595100403, 0.46743300557136536, 0.1805983930826187, 0.1876632124185562, 0.5090484023094177, 0.16860289871692657, -0.357000470161438, -0.4996563196182251, -0.4892749786376953, 0.235539048910141, -0.47168874740600586, -0.4687817692756653, -0.9181869029998779, -0.42591241002082825, -0.6475678086280823, -0.03710067272186279, -0.31623581051826477, -0.5064782500267029, -0.49538955092430115, -0.12785549461841583, 0.8247547745704651, 0.7502918839454651, -0.1149720698595047, 0.37202608585357666, -0.9892614483833313, 0.27877533435821533, -0.01010656263679266, 0.4608404040336609, -0.09634523093700409, -0.8620066046714783, -0.07076209038496017, 0.01502950582653284, -0.481997013092041, -0.5032394528388977, 0.7978929877281189, 0.10575579851865768, 0.4759382903575897, 0.4870867431163788, -0.051792267709970474, 0.8197262287139893, -0.33652013540267944, 0.6238564252853394, 0.23947416245937347, -0.7749730944633484, 0.29170992970466614, -0.42384859919548035, 0.11224046349525452, -0.14099396765232086, 0.8022770285606384, -0.4858682453632355, -0.35655662417411804, -0.7909021377563477, -0.6606059670448303, 1.1008882522583008, 0.28071439266204834, 0.05487189069390297, 0.21923117339611053, 0.22377638518810272, 0.005408709403127432, -0.17741799354553223, -0.6504247188568115, -0.41166752576828003, -0.2959030866622925, -0.3138262927532196, -0.19292983412742615, -0.1503135859966278, -0.2993667423725128, -0.15975221991539001, 0.9491249322891235, -0.026651306077837944, 0.42798498272895813, 0.21112968027591705, -0.11303779482841492, -0.5033214688301086, -0.2538370192050934, 0.5763190388679504, 0.43043994903564453, -0.43839403986930847, -0.34092697501182556, 0.16855187714099884, -0.11711616069078445, -0.33571556210517883, 0.39676475524902344, -0.12712731957435608, 0.08381535857915878, 0.32633474469184875, 1.1169558763504028, 0.527574896812439, -0.41732293367385864, 0.5252344012260437, -0.4079475402832031, -0.39295852184295654, -0.8819409012794495, 0.054355498403310776, 0.32598602771759033, 0.6549923419952393, 0.09589934349060059, 0.25313541293144226, -0.06916312128305435, -0.4421762526035309, 0.16738905012607574, 0.5082557797431946, -0.5044093132019043, -0.34858542680740356, 1.0497397184371948, -0.20708073675632477, -0.33757472038269043, 0.7539114356040955, 0.03257983177900314, -0.48113390803337097, 0.9412328600883484, 0.6854177117347717, 1.1350947618484497, -0.07189567387104034, 0.10691774636507034, 0.7111020684242249, -0.01262389775365591, -0.07786304503679276, 0.2780357301235199, 0.019139187410473824, -0.9201362729072571, -0.1579810529947281, -0.8563989996910095, -0.447629451751709, -0.010919211432337761, -0.9338453412055969, 0.5726893544197083, -0.4912523925304413, -0.41269800066947937, 0.19621068239212036, 0.2128448486328125, -0.9697843194007874, 0.021434497088193893, 0.15767359733581543, 1.0638388395309448, -0.5445910096168518, 0.8227625489234924, 0.8167867064476013, -0.7583373785018921, -1.077062964439392, -0.5298669338226318, 0.21068264544010162, -1.0784664154052734, 0.6796716451644897, -0.016890082508325577, 0.24497820436954498, 0.020768361166119576, -0.4121014475822449, -1.0894718170166016, 1.5408378839492798, 0.1755441278219223, -0.19495712220668793, -0.1299184262752533, 0.1482432335615158, 0.5526904463768005, -0.5423188805580139, 0.7288875579833984, 0.360927551984787, 0.5506398677825928, 0.3733774423599243, -0.8875411748886108, 0.2129083126783371, -0.33510923385620117, 0.18541869521141052, 0.08697909861803055, -1.1042863130569458, 1.0488327741622925, -0.287011057138443, 0.19786562025547028, 0.47051870822906494, 0.7142490148544312, 0.42207959294319153, -0.08478939533233643, 0.5168706178665161, 0.9077873826026917, 0.352573424577713, -0.30522918701171875, 1.0528101921081543, -0.6786572933197021, 0.8518497347831726, 0.7789602875709534, 0.0011957961833104491, 0.6521393060684204, 0.2704786956310272, -0.16957324743270874, 0.620296061038971, 0.793008029460907, -0.421523779630661, 0.10820577293634415, -0.1486443430185318, 0.07397329807281494, -0.3016558885574341, 0.17605473101139069, -0.3735731244087219, 0.3806009590625763, 0.24784913659095764, -0.6363328695297241, -0.15422777831554413, 0.05798975005745888, 0.4288463294506073, -0.3998771011829376, -0.25147688388824463, 0.6238927841186523, 0.3306947946548462, -0.7955037951469421, 0.8168371319770813, 0.0023341274354606867, 0.7669777274131775, -0.6613788604736328, 0.02730153314769268, -0.2168758362531662, 0.46194419264793396, -0.33484742045402527, -0.7287359833717346, 0.4485050439834595, 0.0030509172938764095, 0.05672403797507286, -0.6298588514328003, 0.4825786352157593, -0.5570997595787048, -0.6560633182525635, 0.6716514825820923, 0.3871312439441681, 0.18101821839809418, 0.26274317502975464, -1.0687005519866943, 0.3371369242668152, -0.17083840072155, -0.7670056819915771, 0.43528369069099426, 0.40784791111946106, 0.31690239906311035, 0.8864691257476807, 0.527972936630249, -0.10215160995721817, 0.029498400166630745, 0.13128413259983063, 0.734271764755249, -0.46077659726142883, -0.38929834961891174, -0.5072154402732849, 0.510250985622406, 0.14199723303318024, -0.5486759543418884, 0.7280996441841125, 0.49747294187545776, 1.016215443611145, -0.1473124623298645, 0.6123275756835938, -0.25440314412117004, 0.4002514183521271, -0.34656625986099243, 0.9912251830101013, -1.0133429765701294, -0.14517682790756226, -0.31858184933662415, -0.7584353089332581, -0.4751890301704407, 0.8509058356285095, -0.09467503428459167, 0.48589026927948, 0.5728757381439209, 0.8475111126899719, -0.1967691034078598, 0.13947655260562897, 0.34103748202323914, 0.643265962600708, 0.24342785775661469, 0.547088086605072, 0.3250040113925934, -0.8421974182128906, 0.6748409271240234, -0.38590604066848755, -0.26563456654548645, -0.22128601372241974, -0.7926247119903564, -1.1371153593063354, -0.6407526135444641, -0.581553041934967, -0.7198538780212402, -0.08990705758333206, 1.1976455450057983, 1.040209174156189, -0.842868447303772, -0.2879652678966522, -0.09781181067228317, 0.07155580073595047, -0.24529962241649628, -0.2931089997291565, 0.43126457929611206, -0.3558371961116791, -1.3227452039718628, -0.011016995646059513, -0.034610312432050705, 0.26118233799934387, -0.36217182874679565, -0.43003523349761963, -0.018680712208151817, -0.17751675844192505, 0.41648247838020325, 0.3365474045276642, -0.5447272658348083, -0.3816394507884979, 0.030865740031003952, -0.07330735772848129, 0.23290610313415527, 0.27186253666877747, -0.5993645191192627, 0.028741728514432907, 0.4703843891620636, 0.2786368429660797, 0.853757917881012, -0.31603899598121643, 0.6759933829307556, -0.4536178708076477, 0.28076016902923584, 0.144785076379776, 0.9918137192726135, 0.27495622634887695, -0.23567476868629456, 0.648857593536377, -0.03306692838668823, -0.7038878798484802, -0.7988699078559875, 0.013370069675147533, -1.2660292387008667, -0.13605676591396332, 1.1061517000198364, -0.5380929708480835, -0.5106661319732666, 0.3786526918411255, 0.0009442770970053971, 0.5215063095092773, -0.21720370650291443, 0.7204262018203735, 0.5462465286254883, -0.13654416799545288, -0.6408938765525818, -0.4057256579399109, 0.4642937481403351, 0.3821243941783905, -0.5455498695373535, -0.37273749709129333, 0.1413155347108841, 0.7666357159614563, 0.1941453069448471, 0.28786036372184753, -0.42865535616874695, 0.08489688485860825, -0.11807393282651901, 0.13477621972560883, -0.31567269563674927, -0.09854316711425781, -0.2387615591287613, -0.12626267969608307, -0.3639574944972992, 0.08586002141237259 ]
mrm8488/t5-base-finetuned-common_gen
mrm8488
"2023-03-16T19:20:33Z"
24,314
43
transformers
[ "transformers", "pytorch", "safetensors", "t5", "text2text-generation", "common sense", "en", "dataset:common_gen", "arxiv:1910.10683", "arxiv:1911.03705", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: en tags: - common sense datasets: - common_gen widget: - text: "tree plant ground hole dig" --- # T5-base fine-tuned on CommonGen [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) fine-tuned on [CommonGen](https://inklab.usc.edu/CommonGen/index.html) for **Generative Commonsense Reasoning**. ## Details of T5 The **T5** model was presented in [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://arxiv.org/pdf/1910.10683.pdf) by *Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu* in Here the abstract: Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new “Colossal Clean Crawled Corpus”, we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our dataset, pre-trained models, and code. ![model image](https://i.imgur.com/jVFMMWR.png) ## Details of the dataset 📚 CommonGen is a constrained text generation task, associated with a benchmark dataset, to explicitly test machines for the ability of generative commonsense reasoning. Given a set of common concepts; the task is to generate a coherent sentence describing an everyday scenario using these concepts. CommonGen is challenging because it inherently requires 1) relational reasoning using background commonsense knowledge, and 2) compositional generalization ability to work on unseen concept combinations. Our dataset, constructed through a combination of crowd-sourcing from AMT and existing caption corpora, consists of 30k concept-sets and 50k sentences in total. | Dataset | Split | # samples | | -------- | ----- | --------- | | common_gen | train | 67389 | | common_gen | valid | 4018 | | common_gen | test | 1497 | ## Model fine-tuning 🏋️‍ The training script is a slightly modified version of [this awesome one](https://colab.research.google.com/github/patil-suraj/exploring-T5/blob/master/T5_on_TPU.ipynb) by [Suraj Patil](https://twitter.com/psuraj28) ## Metrics 📋 | Metric | Score | |--------|-------| |ROUGE-2 | 17.10 | |ROUGE-L | 39.47 | |BLEU | WIP | The metrics above slightly improves results shown in the [paper](https://arxiv.org/abs/1911.03705) for the same model and metrics. ## Model in Action 🚀 ```python from transformers import AutoModelWithLMHead, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("mrm8488/t5-base-finetuned-common_gen") model = AutoModelWithLMHead.from_pretrained("mrm8488/t5-base-finetuned-common_gen") def gen_sentence(words, max_length=32): input_text = words features = tokenizer([input_text], return_tensors='pt') output = model.generate(input_ids=features['input_ids'], attention_mask=features['attention_mask'], max_length=max_length) return tokenizer.decode(output[0], skip_special_tokens=True) words = "tree plant ground hole dig" gen_sentence(words) # output: digging a hole in the ground to plant trees ``` [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/mrm8488/shared_colab_notebooks/blob/master/T5_base_finetuned_common_gen.ipynb) > Created by [Manuel Romero/@mrm8488](https://twitter.com/mrm8488) | [LinkedIn](https://www.linkedin.com/in/manuel-romero-cs/) > Made with <span style="color: #e25555;">&hearts;</span> in Spain
[ -0.43922656774520874, -0.6514842510223389, 0.2445143759250641, 0.2532435953617096, -0.23792511224746704, 0.0316215418279171, -0.29963624477386475, -0.46406030654907227, -0.08948612958192825, 0.16119517385959625, -0.6276604533195496, -0.6899574398994446, -0.6772873997688293, 0.30495521426200867, -0.3066626787185669, 0.9294646382331848, -0.06096089258790016, -0.1724025458097458, -0.09883452206850052, -0.1522650420665741, -0.4926183819770813, -0.4317721128463745, -0.46057629585266113, -0.3748668432235718, 0.23003500699996948, 0.3394448757171631, 0.29689356684684753, 0.5128753781318665, 0.4735983610153198, 0.27368468046188354, -0.11688549071550369, 0.31757429242134094, -0.5628273487091064, -0.266777366399765, -0.20989318192005157, -0.272300660610199, -0.31525716185569763, 0.14035792648792267, 0.40108221769332886, 0.8146214485168457, 0.1503017693758011, 0.24649043381214142, 0.24290433526039124, 0.5260236859321594, -0.538818895816803, 0.1550055742263794, -0.7526845932006836, 0.058097731322050095, 0.008228790946304798, -0.18900415301322937, -0.4416859745979309, -0.25307968258857727, 0.2087298482656479, -0.6914762854576111, 0.5095756649971008, 0.026680486276745796, 1.2270461320877075, 0.37510621547698975, -0.1916390210390091, -0.25307193398475647, -0.5047381520271301, 0.9042108654975891, -0.5460734367370605, 0.2114488035440445, 0.166593998670578, 0.028896979987621307, 0.02143169194459915, -0.9560564160346985, -0.7182875871658325, -0.1431122124195099, -0.2795238792896271, 0.1701803356409073, -0.2668702304363251, 0.014620209112763405, 0.22952981293201447, 0.4944691061973572, -0.645754873752594, 0.006401464808732271, -0.5557456612586975, -0.20096242427825928, 0.5919626355171204, -0.07750905305147171, 0.3676932752132416, -0.3500331938266754, -0.5419371724128723, -0.334894597530365, -0.6359285712242126, 0.00027336226776242256, -0.003217672696337104, 0.32937729358673096, -0.32521679997444153, 0.3790820837020874, -0.23584699630737305, 0.817578136920929, 0.132279172539711, 0.15136343240737915, 0.5180332660675049, -0.6326455473899841, -0.2527739405632019, -0.14468902349472046, 1.0526992082595825, 0.37069907784461975, 0.466400146484375, -0.2922672629356384, -0.04709196463227272, 0.09577606618404388, 0.031799014657735825, -0.8078821897506714, -0.32193228602409363, 0.16325879096984863, -0.37480130791664124, -0.4171477258205414, 0.08996313810348511, -0.727872371673584, 0.04559208080172539, -0.28210511803627014, 0.5172619223594666, -0.7492263913154602, -0.1758444458246231, 0.3900807499885559, -0.19911926984786987, 0.28168243169784546, 0.042361266911029816, -0.8880480527877808, 0.1210634857416153, 0.5354042649269104, 0.9039112329483032, -0.23752924799919128, -0.45194101333618164, -0.42131343483924866, -0.049066126346588135, -0.11004293709993362, 0.6931384205818176, -0.37957119941711426, -0.35522860288619995, -0.17141275107860565, 0.037078339606523514, -0.4174836575984955, -0.4054451286792755, 0.5303524732589722, -0.09203802794218063, 0.49944454431533813, -0.2028336077928543, -0.4722438156604767, -0.24141418933868408, 0.24805834889411926, -0.4053334891796112, 1.0197056531906128, 0.056719742715358734, -0.7631515264511108, 0.4255385994911194, -1.0128015279769897, -0.29299673438072205, -0.06627925485372543, 0.07430025190114975, -0.2655961811542511, -0.1751709282398224, 0.3639431595802307, 0.5772765278816223, -0.08735904097557068, 0.2753940224647522, -0.3076002597808838, -0.3272363543510437, 0.20120297372341156, -0.32066991925239563, 1.046883225440979, 0.3772420883178711, -0.38714542984962463, -0.008179119788110256, -0.8307203650474548, 0.009372650645673275, 0.12416935712099075, -0.25223010778427124, -0.09237948060035706, -0.31795161962509155, 0.031895458698272705, 0.21752594411373138, 0.18440404534339905, -0.4508284032344818, 0.16795863211154938, -0.5098053216934204, 0.6290963888168335, 0.5409637689590454, 0.011693237349390984, 0.45084384083747864, -0.36048972606658936, 0.2902412712574005, -0.02728250063955784, -0.04794522374868393, -0.05657372251152992, -0.24599279463291168, -0.8368485569953918, -0.24368050694465637, 0.5375738143920898, 0.5935336947441101, -0.47705212235450745, 0.7632206678390503, -0.5432184338569641, -0.48236900568008423, -0.6591587066650391, 0.0941263809800148, 0.27875885367393494, 0.5575929284095764, 0.6848426461219788, -0.2588828504085541, -0.6213534474372864, -0.6036952137947083, -0.2777766287326813, 0.025178395211696625, -0.0447939895093441, 0.21701742708683014, 0.6238663792610168, -0.18687473237514496, 0.9541221857070923, -0.6339335441589355, -0.2994735836982727, -0.4726850390434265, 0.41045886278152466, 0.13233350217342377, 0.6519206762313843, 0.5620082020759583, -0.7030569911003113, -0.4746539890766144, -0.13305899500846863, -0.7501004934310913, -0.22826695442199707, -0.18767304718494415, -0.09993016719818115, 0.16626127064228058, 0.6438348889350891, -0.673660397529602, 0.1027972474694252, 0.48854124546051025, -0.43218472599983215, 0.35949769616127014, -0.18197716772556305, -0.042190127074718475, -1.3513087034225464, 0.4602645933628082, 0.01863151416182518, -0.15181134641170502, -0.5391538739204407, 0.05837568640708923, -0.08201475441455841, -0.058483704924583435, -0.4303249418735504, 0.5832955837249756, -0.5268504619598389, 0.10499013215303421, -0.04212290048599243, 0.17279678583145142, 0.04005022719502449, 0.6424618363380432, -0.1376236379146576, 0.8657049536705017, 0.48821985721588135, -0.7686137557029724, 0.21427017450332642, 0.43459102511405945, -0.2776695191860199, 0.34689995646476746, -0.7304369211196899, 0.19932401180267334, -0.043454188853502274, 0.182273730635643, -1.0143760442733765, -0.052897848188877106, 0.3473920226097107, -0.7419210076332092, 0.3413200080394745, -0.0015636855969205499, -0.4903351366519928, -0.3604509234428406, -0.22996103763580322, 0.15620626509189606, 0.5021802186965942, -0.5505856275558472, 0.4265569746494293, 0.06090739741921425, 0.04951496049761772, -0.6477587223052979, -0.8149210810661316, 0.09587254375219345, -0.34974175691604614, -0.6686726212501526, 0.6132957935333252, -0.12834644317626953, 0.010673870332539082, 0.10086220502853394, 0.002383906627073884, -0.041396256536245346, 0.2791527807712555, 0.018944069743156433, 0.2572416663169861, -0.1039775162935257, 0.24766042828559875, -0.17845410108566284, -0.11027312278747559, -0.004586824215948582, -0.20381779968738556, 0.7385610938072205, -0.3421259820461273, 0.024790775030851364, -0.3653685748577118, 0.08080103993415833, 0.43358489871025085, -0.3546389937400818, 0.6649265289306641, 0.8643452525138855, -0.16558308899402618, -0.22747766971588135, -0.29688286781311035, -0.05435619130730629, -0.45014655590057373, 0.4456462562084198, -0.4892401397228241, -0.820285975933075, 0.29836463928222656, -0.1627456098794937, 0.10407834500074387, 0.8255053162574768, 0.37379568815231323, -0.046212825924158096, 0.7594904899597168, 0.5764981508255005, -0.028387034311890602, 0.35768386721611023, -0.7417766451835632, 0.11257541179656982, -0.8052771091461182, -0.19623228907585144, -0.5390332341194153, -0.25138917565345764, -0.7580865621566772, -0.40680503845214844, 0.007335926406085491, 0.0957626923918724, -0.2661552429199219, 0.3853413164615631, -0.6822587251663208, 0.34058910608291626, 0.5248221755027771, 0.07446017116308212, 0.32495665550231934, 0.053476039320230484, -0.22575131058692932, 0.07861308753490448, -0.8030025959014893, -0.439569890499115, 1.1630533933639526, 0.27818065881729126, 0.4144713580608368, -0.14096777141094208, 0.8225170969963074, 0.158469557762146, 0.21085214614868164, -0.6692768931388855, 0.632365345954895, -0.401455283164978, -0.44156646728515625, -0.27331113815307617, -0.447541207075119, -1.1095514297485352, 0.23444245755672455, -0.386696457862854, -0.6049742102622986, 0.11179506778717041, 0.08453699201345444, -0.35298433899879456, 0.2831396460533142, -0.945946991443634, 1.0048357248306274, -0.08188734203577042, -0.2388821691274643, -0.09629884362220764, -0.7239460945129395, 0.3157721757888794, 0.10297347605228424, 0.04437011107802391, 0.06458674371242523, 0.17450734972953796, 0.7184666991233826, -0.21962203085422516, 0.8701180219650269, -0.10745494812726974, 0.18964163959026337, 0.18160103261470795, -0.20702217519283295, 0.31050240993499756, -0.22821177542209625, 0.11994875222444534, 0.12854494154453278, -0.10380086302757263, -0.4130198061466217, -0.36700522899627686, 0.5622025728225708, -0.8987520933151245, -0.41615772247314453, -0.4472876191139221, -0.4954041540622711, -0.14950308203697205, 0.3079158067703247, 0.5342217087745667, 0.1663239747285843, -0.3983449339866638, 0.3753456175327301, 0.7519857287406921, -0.3233748972415924, 0.5296093225479126, 0.11402209103107452, 0.0905817523598671, -0.3435027301311493, 0.8641707301139832, 0.006824239622801542, 0.29908281564712524, 0.4972417652606964, 0.21530918776988983, -0.3658495247364044, -0.6067596077919006, -0.2957969307899475, 0.3160264492034912, -0.58487868309021, -0.20171241462230682, -0.8931306004524231, -0.3679006099700928, -0.5715222358703613, -0.08482704311609268, -0.25479796528816223, -0.38754773139953613, -0.5271163582801819, -0.25532612204551697, 0.2637248635292053, 0.40095385909080505, -0.1716291457414627, 0.21509124338626862, -0.7312397360801697, 0.4392518103122711, 0.32732293009757996, 0.20844542980194092, -0.12292268127202988, -0.646894097328186, 0.0506843626499176, 0.15217533707618713, -0.4129165709018707, -0.6733629703521729, 0.4231973886489868, 0.34066057205200195, 0.4724572002887726, 0.20451489090919495, 0.06394138187170029, 0.6594963073730469, -0.18130525946617126, 0.7456769943237305, 0.22982127964496613, -1.0173282623291016, 0.559574544429779, -0.23397009074687958, 0.4294789433479309, 0.6870448589324951, 0.3374875783920288, -0.5800986886024475, -0.2774302363395691, -0.8461105227470398, -0.8702031970024109, 0.6754148602485657, 0.27801913022994995, 0.12859754264354706, 0.11284564435482025, 0.05473294481635094, 0.13792496919631958, 0.05376935750246048, -0.9170984029769897, -0.27469685673713684, -0.378449946641922, -0.3779931962490082, -0.1432962864637375, -0.04869852587580681, -0.04872861132025719, -0.373336523771286, 0.6460245847702026, -0.07865308970212936, 0.35447514057159424, 0.4341486990451813, -0.4031597077846527, 0.18104110658168793, 0.35457924008369446, 0.553477942943573, 0.5596228837966919, -0.38219863176345825, 0.07392603158950806, 0.2987924814224243, -0.4438971281051636, -0.0902254655957222, 0.38305556774139404, -0.23410038650035858, 0.0900176614522934, 0.4326399266719818, 0.9905682802200317, 0.04611442983150482, -0.3684612214565277, 0.488063782453537, 0.06279540061950684, -0.664408266544342, -0.18194308876991272, 0.20103342831134796, 0.12820833921432495, -0.0327223502099514, 0.29930683970451355, 0.22260551154613495, 0.07124045491218567, -0.4806898832321167, 0.22646991908550262, 0.24952033162117004, -0.22680163383483887, -0.33302125334739685, 0.5877193212509155, 0.37045735120773315, -0.11525286734104156, 0.535670280456543, -0.3405548334121704, -0.5859769582748413, 0.5208161473274231, 0.5586990714073181, 0.9243751168251038, 0.12148036062717438, 0.32619261741638184, 0.7483646273612976, 0.3000065088272095, -0.08139829337596893, 0.0921168401837349, -0.11811128258705139, -0.8261055946350098, -0.5629956126213074, -0.61296147108078, -0.07723475992679596, 0.39476317167282104, -0.38433322310447693, 0.3129551410675049, -0.3806951344013214, 0.11552656441926956, 0.05024857074022293, 0.2346695363521576, -0.8105650544166565, 0.3286077678203583, 0.09868207573890686, 0.9155909419059753, -0.9624340534210205, 0.6158236861228943, 0.6490687727928162, -0.5348642468452454, -0.8309493064880371, 0.05086212605237961, -0.35361289978027344, -0.9112593531608582, 0.6649932861328125, 0.3864474594593048, -0.01459187176078558, 0.2225760966539383, -0.8036237359046936, -0.8283059597015381, 1.2811408042907715, 0.255316823720932, -0.36415112018585205, -0.15151025354862213, 0.18657386302947998, 0.6109427809715271, -0.33140844106674194, 0.015988610684871674, 0.5189287662506104, 0.43102648854255676, 0.302643358707428, -0.8333272337913513, 0.24362489581108093, -0.23384439945220947, -0.1590735763311386, 0.01553297322243452, -0.7048402428627014, 0.6497424840927124, -0.22006043791770935, -0.3797529339790344, -0.09409930557012558, 0.6824412941932678, 0.40478965640068054, 0.34931015968322754, 0.5768933892250061, 0.8801801204681396, 0.8243622779846191, -0.1433359533548355, 0.902316153049469, -0.28590062260627747, 0.49817603826522827, 0.9880714416503906, 0.23961709439754486, 0.6108127236366272, 0.4731072187423706, -0.18884333968162537, 0.4808579683303833, 0.6263813376426697, -0.3328015208244324, 0.5661540031433105, 0.23226302862167358, -0.019723260775208473, -0.16295397281646729, -0.062112122774124146, -0.4295601546764374, 0.5539357662200928, 0.1792287677526474, -0.4443724751472473, -0.23489229381084442, -0.1364077478647232, 0.14368022978305817, 0.1010890081524849, -0.13341286778450012, 0.6453180909156799, 0.14505691826343536, -0.7969591617584229, 0.7809861898422241, -0.09580183774232864, 0.9989053606987, -0.40378227829933167, 0.010637805797159672, -0.29513320326805115, 0.11745893955230713, -0.18982510268688202, -0.6759295463562012, 0.37179043889045715, 0.08554115146398544, 0.04449494183063507, -0.48523592948913574, 0.7589974999427795, -0.39976829290390015, -0.4352339208126068, 0.16909728944301605, 0.5278748869895935, 0.13577060401439667, 0.0915200337767601, -0.8237723708152771, -0.31489676237106323, 0.26166272163391113, -0.11086248606443405, 0.14259688556194305, 0.5988866686820984, 0.2358289361000061, 0.5930115580558777, 0.7730405330657959, 0.2128167450428009, 0.03187832981348038, 0.0028501686174422503, 0.6827858686447144, -0.7597882151603699, -0.4286666810512543, -0.8475981950759888, 0.5030964612960815, -0.2396775484085083, -0.5660721659660339, 0.5115922093391418, 0.5761056542396545, 1.0727845430374146, -0.12663820385932922, 0.8621141314506531, -0.2629168629646301, 0.4789559543132782, -0.5711103677749634, 0.6191009283065796, -0.5664625763893127, 0.13836084306240082, -0.19815663993358612, -0.7762876749038696, -0.3372940123081207, 0.6292414665222168, -0.32954636216163635, 0.05358993262052536, 0.8406856656074524, 0.6950615644454956, -0.11848237365484238, -0.2431313395500183, 0.09423011541366577, 0.2455354928970337, 0.30578628182411194, 0.7676953673362732, 0.5935989022254944, -0.591181218624115, 0.8193867206573486, -0.2266099900007248, -0.005077018402516842, -0.06855744868516922, -0.7939472198486328, -0.8844947218894958, -0.6508380770683289, -0.3328201472759247, -0.3142153024673462, 0.015731021761894226, 0.8395181894302368, 0.5247012376785278, -0.6762823462486267, -0.06626959890127182, -0.595142662525177, -0.016433503478765488, -0.15072429180145264, -0.2910645604133606, 0.5323505997657776, -0.5558174252510071, -0.7941002249717712, 0.06949053704738617, -0.07908210158348083, 0.18300504982471466, 0.03227633237838745, -0.017026783898472786, -0.44178903102874756, -0.2359955757856369, 0.43273648619651794, 0.18122148513793945, -0.47678107023239136, -0.3072858452796936, 0.1986532211303711, -0.1847507357597351, 0.17672567069530487, 0.4550376534461975, -0.6960147619247437, 0.26603755354881287, 0.6131029725074768, 0.6609883308410645, 0.66486656665802, -0.0026494257617741823, 0.6263282299041748, -0.7523306012153625, -0.009222019463777542, 0.14325369894504547, 0.2562052309513092, 0.5576490759849548, -0.176239475607872, 0.7461984157562256, 0.5439966917037964, -0.38395166397094727, -0.7132027745246887, 0.037230104207992554, -1.1235408782958984, -0.39234036207199097, 1.312555193901062, -0.061872269958257675, -0.19174450635910034, 0.015814924612641335, -0.12183324247598648, 0.6214483976364136, -0.23968034982681274, 0.9267845153808594, 0.7859196662902832, 0.09176180511713028, -0.12506666779518127, -0.32675105333328247, 0.5872402191162109, 0.569757342338562, -0.8439385294914246, -0.03451395034790039, 0.31301549077033997, 0.4874996542930603, 0.29285070300102234, 0.5502143502235413, -0.013100218027830124, 0.10502929985523224, -0.15811790525913239, 0.18931354582309723, -0.15366482734680176, 0.008141024969518185, -0.3314068913459778, 0.2110777497291565, -0.16887713968753815, -0.5420524477958679 ]
MingZhong/unieval-sum
MingZhong
"2022-10-14T01:06:32Z"
24,309
2
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "arxiv:2210.07197", "autotrain_compatible", "endpoints_compatible", "text-generation-inference", "region:us" ]
text2text-generation
"2022-10-10T01:04:09Z"
Pre-trained evaluator in EMNLP 2022 paper *[Towards a Unified Multi-Dimensional Evaluator for Text Generation](https://arxiv.org/abs/2210.07197)* ## Introduction **Multi-dimensional evaluation** is the dominant paradigm for human evaluation in Natural Language Generation (NLG), i.e., evaluating the generated text from multiple explainable dimensions, such as coherence and fluency. However, automatic evaluation in NLG is still dominated by similarity-based metrics (e.g., ROUGE, BLEU), but they are not sufficient to portray the difference between the advanced generation models. Therefore, we propose **UniEval** to bridge this gap so that a more comprehensive and fine-grained evaluation of NLG systems can be achieved. ## Pre-trained Evaluator **unieval-sum** is the pre-trained evaluator for the text summarization task. It can evaluate the model output from four dimensions: - *coherence* - *consistency* - *fluency* - *relevance* It can also be transferred to the new dimensions and generation tasks, such as *naturalness* and *informativeness* for data-to-text. ## Usage Please refer to [our GitHub repository](https://github.com/maszhongming/UniEval).
[ -0.5647280216217041, -0.5855147838592529, 0.4171082079410553, 0.332777738571167, -0.27212202548980713, 0.11251483112573624, -0.3203190565109253, -0.15116800367832184, 0.2393370270729065, 0.5265166759490967, -0.44842419028282166, -0.5160527229309082, -0.45975375175476074, 0.35031867027282715, -0.3325302302837372, 1.2846380472183228, -0.04601501300930977, -0.18370893597602844, -0.5747276544570923, -0.008280515670776367, -0.38081440329551697, -0.40879881381988525, -0.4834437072277069, -0.5865883231163025, 0.22616933286190033, 0.32657569646835327, 0.2630901336669922, -0.08658764511346817, 0.45694079995155334, 0.39294734597206116, 0.19482456147670746, 0.2261437326669693, -0.3125794231891632, 0.06340314447879791, 0.061879146844148636, -0.0431053526699543, -0.8357062339782715, 0.0495719313621521, 0.7062504291534424, 0.6130495071411133, -0.150945246219635, 0.27448683977127075, 0.31209540367126465, 0.850818395614624, -0.699404239654541, -0.05018550157546997, -0.48001742362976074, 0.14005501568317413, 0.07049427926540375, -0.33871522545814514, -0.2968778610229492, -0.3047794997692108, 0.2357359081506729, -0.5483125448226929, 0.2628782093524933, -0.1672161966562271, 0.8157218098640442, 0.4753904342651367, -0.5256125330924988, -0.11464536190032959, -0.5210567116737366, 0.6729331016540527, -0.724159836769104, 0.3125370740890503, 0.09215065091848373, 0.12341566383838654, 0.10188598185777664, -1.1132944822311401, -0.4825388789176941, -0.00595820602029562, -0.06858141720294952, 0.7299718856811523, -0.22732970118522644, 0.20785492658615112, 0.0063939401879906654, 0.40701353549957275, -0.7225464582443237, 0.2266095131635666, -0.34253793954849243, -0.19885186851024628, 0.8972867727279663, 0.13285404443740845, 0.09699076414108276, -0.1488063931465149, -0.5092990398406982, -0.0522075891494751, -0.3504270017147064, -0.03171133995056152, 0.4858044683933258, -0.0060392627492547035, -0.271552711725235, 0.33528459072113037, -0.19431300461292267, 0.7592929601669312, -0.14277715981006622, 0.06111777946352959, 0.48180532455444336, -0.6617587208747864, -0.2782060205936432, 0.08198179304599762, 1.1029082536697388, 0.47395962476730347, 0.13002441823482513, 0.08444394916296005, -0.26139694452285767, -0.19513855874538422, 0.5155105590820312, -0.9372576475143433, -0.3819403052330017, 0.2436198890209198, -0.6052992939949036, -0.6524607539176941, 0.13095566630363464, -1.2508260011672974, 0.05477917566895485, -0.3388789892196655, 0.4912956953048706, -0.14184992015361786, -0.27734431624412537, 0.14962176978588104, -0.1504090279340744, -0.06982851028442383, 0.3578716516494751, -0.7929072976112366, 0.061598293483257294, 0.4366458058357239, 0.5995890498161316, 0.0064171357080340385, -0.6268312335014343, -0.34423258900642395, -0.1574917733669281, 0.0019432615954428911, 1.0832873582839966, -0.376080185174942, -0.21969975531101227, -0.03779342398047447, -0.4101337194442749, -0.11098530888557434, -0.3107011914253235, 0.7023178935050964, -0.10335236042737961, 0.5064043998718262, 0.07370367646217346, -0.36156636476516724, -0.033834345638751984, 0.19131454825401306, -0.5647487044334412, 0.9681354761123657, 0.15837401151657104, -0.7903239130973816, 0.5445067882537842, -1.106865406036377, -0.17330169677734375, 0.08853213489055634, -0.11946503818035126, -0.6586852669715881, 0.2931329011917114, 0.3998754322528839, 0.48201465606689453, -0.38098615407943726, 0.3308497667312622, -0.14143189787864685, -0.1550733894109726, -0.03386285528540611, -0.6785293221473694, 0.8137993812561035, 0.25617846846580505, -0.007057409733533859, 0.2779006063938141, -1.1266710758209229, 0.33140718936920166, 0.011026347987353802, -0.5172011852264404, -0.2305668145418167, -0.42823147773742676, 0.21679960191249847, 0.059572938829660416, 0.4132337272167206, -0.550138533115387, 0.04530405253171921, -0.5165999531745911, 0.19164854288101196, 0.44890931248664856, 0.06249893456697464, 0.42301374673843384, -0.07307915389537811, 0.6640427708625793, -0.3404524028301239, -0.030602136626839638, -0.4535580277442932, -0.3982529938220978, -0.5228234529495239, 0.0035331740509718657, 0.6167551875114441, 0.40950894355773926, -0.7288895845413208, 0.906137228012085, -0.1531897932291031, -0.597109854221344, -0.3541076183319092, 0.029405653476715088, 0.5745176076889038, 0.2749101519584656, 0.3084103763103485, -0.2061481475830078, -0.8958221077919006, -0.6830614805221558, -0.495566725730896, -0.16905328631401062, -0.25754067301750183, -0.20355284214019775, 0.6093424558639526, -0.214999258518219, 0.8196566104888916, -0.4069916307926178, -0.28219854831695557, -0.4586995244026184, 0.5720474123954773, -0.14933301508426666, 0.48935723304748535, 0.6378464102745056, -0.5940515995025635, -0.3923725187778473, -0.21073973178863525, -0.8949280977249146, -0.4221067428588867, -0.19630758464336395, 0.008060894906520844, 0.20093466341495514, 0.6311283111572266, -0.5192561745643616, 0.5800879597663879, 0.8310989141464233, -0.4377988278865814, 0.6777923703193665, -0.5185826420783997, 0.12999284267425537, -1.4023258686065674, 0.1996898353099823, -0.23068197071552277, -0.0628381222486496, -0.5849154591560364, 0.0020356085151433945, -0.09212519973516464, -0.3135998845100403, -0.28261739015579224, 0.5708417296409607, -0.48194587230682373, -0.08251690864562988, -0.3297710120677948, 0.5192678570747375, 0.3585217595100403, 0.3601544499397278, -0.12858480215072632, 0.5357437133789062, 0.22552762925624847, -0.6618666052818298, 0.3833021819591522, 0.4184137284755707, -0.2877325713634491, 0.6701745986938477, -0.7838106155395508, 0.16810379922389984, -0.09049465507268906, 0.33765554428100586, -0.8785113096237183, -0.20416630804538727, -0.24800099432468414, -0.7198175191879272, 0.4291619658470154, 0.2952956259250641, -0.4149857461452484, -0.4615383446216583, -0.38586896657943726, 0.3469172418117523, 0.3404186964035034, -0.7140745520591736, 0.5955739617347717, 0.3754274845123291, -0.06687910109758377, -0.608342170715332, -0.6414622068405151, 0.1431724727153778, -0.22165293991565704, -0.6362383961677551, 0.32732951641082764, -0.11630422621965408, -0.14607436954975128, -0.07728724926710129, 0.12827354669570923, 0.020652322098612785, 0.16477936506271362, 0.11933369189500809, 0.0687539204955101, -0.05244553089141846, 0.21700628101825714, 0.3635268807411194, -0.4353313744068146, 0.2135305255651474, -0.2289692461490631, 0.6123623251914978, -0.39758116006851196, -0.20993012189865112, -0.23344461619853973, 0.25264889001846313, 0.19550907611846924, -0.5103816390037537, 0.4404134750366211, 0.977534830570221, -0.27403539419174194, -0.1196199357509613, -0.3735114336013794, -0.10283844918012619, -0.44969111680984497, 0.6796408295631409, -0.2508881688117981, -0.8428701162338257, 0.3161901831626892, -0.3154764473438263, 0.35792046785354614, 0.8670787215232849, 0.6118903160095215, -0.05425247550010681, 0.8366744518280029, 0.7032137513160706, 0.35084763169288635, 0.13511446118354797, -0.21540731191635132, 0.3321056365966797, -0.9619567394256592, -0.29444658756256104, -0.6375705003738403, -0.23596730828285217, -0.5482546091079712, 0.016801968216896057, 0.34107834100723267, 0.34448492527008057, -0.07369396835565567, 0.27808380126953125, -0.596086859703064, 0.47250238060951233, 0.2710556983947754, -0.36589497327804565, 0.21238228678703308, 0.13663767278194427, -0.25016340613365173, -0.06215016916394234, -0.7950133085250854, -0.6241666674613953, 1.2316763401031494, 0.34722021222114563, 0.47192898392677307, -0.01511478703469038, 1.168794870376587, 0.10831534117460251, 0.31261447072029114, -0.5282323360443115, 0.4694097936153412, -0.3068424165248871, -0.30050089955329895, -0.516654372215271, -0.4018945097923279, -1.2316879034042358, 0.4252898097038269, -0.3669983148574829, -0.763464093208313, -0.06821918487548828, 0.1820245385169983, -0.5839375853538513, 0.3976644277572632, -0.5957149863243103, 0.9603598713874817, -0.2746582627296448, 0.11876287311315536, -0.0698803961277008, -0.5158935785293579, 0.48467957973480225, -0.42962461709976196, -0.03829129412770271, 0.11506922543048859, 0.02817458286881447, 0.9166032671928406, -0.4304812550544739, 0.5767334699630737, -0.22036106884479523, -0.09444844722747803, 0.3311963379383087, -0.23207657039165497, 0.15527024865150452, 0.1278296411037445, 0.10326695442199707, 0.3011431097984314, -0.013184702023863792, -0.09981746226549149, -0.6432700753211975, 0.5389339923858643, -0.580204427242279, -0.24525073170661926, -0.31076425313949585, -0.48118171095848083, -0.09815295785665512, 0.2831234335899353, 0.7326207756996155, 0.4965028762817383, -0.5438533425331116, 0.42360806465148926, 0.3640674352645874, -0.4925946295261383, 0.7325889468193054, 0.24495667219161987, -0.5231413245201111, -0.6558278799057007, 0.8639143109321594, -0.10524098575115204, 0.0583052821457386, 0.40548866987228394, 0.33010798692703247, -0.3929779827594757, -0.4016305208206177, -0.5794379711151123, -0.06616814434528351, -0.5436860918998718, -0.34499844908714294, -0.8413678407669067, -0.4197922646999359, -0.31172680854797363, -0.1331077218055725, -0.4949042499065399, -0.5659504532814026, -0.22949981689453125, -0.08044686168432236, 0.13351358473300934, 0.9091953635215759, -0.2677259147167206, 0.3972790837287903, -1.1457890272140503, 0.22158962488174438, 0.27969053387641907, 0.2568467855453491, -0.19813856482505798, -0.6854937076568604, -0.4183301031589508, -0.0580371618270874, -0.5311465859413147, -0.6609447002410889, 0.483523428440094, 0.3410874009132385, 0.5826470255851746, 0.40522122383117676, -0.012204946018755436, 0.4937784671783447, -0.3625844120979309, 0.8895792961120605, 0.5179938673973083, -0.9558085799217224, 0.6061744093894958, -0.0936625748872757, 0.5715723633766174, 0.8117174506187439, 0.14600980281829834, -0.16629023849964142, -0.31727123260498047, -0.9435795545578003, -0.9538980722427368, 0.41499826312065125, 0.2728448808193207, 0.13149820268154144, 0.17408573627471924, 0.21749047935009003, 0.10982503741979599, 0.40238848328590393, -0.6187314391136169, -0.24437376856803894, -0.33495888113975525, -0.2818751633167267, -0.2032538801431656, -0.4658488631248474, -0.02251933328807354, -0.12053918093442917, 0.4932979345321655, -0.12850689888000488, 0.44955483078956604, 0.08509878069162369, -0.021342070773243904, -0.08678298443555832, 0.4847702383995056, 0.7391945719718933, 0.8112656474113464, -0.24432581663131714, 0.04328366369009018, 0.3478156626224518, -0.5311050415039062, 0.07013583928346634, 0.29577887058258057, -0.20868182182312012, 0.17585380375385284, 0.6478075385093689, 0.7707778215408325, 0.14587043225765228, -0.41665539145469666, 0.765033483505249, -0.35168302059173584, -0.7016894817352295, -0.5512278079986572, -0.15226753056049347, -0.2348434329032898, 0.05615779384970665, 0.11715619266033173, 0.3609943091869354, 0.16933687031269073, -0.24768312275409698, 0.39348986744880676, 0.14802876114845276, -0.40220150351524353, -0.5080334544181824, 0.7508655190467834, 0.5845981240272522, -0.273755818605423, 0.5877383947372437, -0.4114660918712616, -0.607047438621521, 0.4947473108768463, 0.5298653841018677, 1.260359764099121, -0.36777347326278687, 0.2797892689704895, 0.5939709544181824, 0.32104799151420593, 0.2474248856306076, 0.4397198557853699, 0.009767093695700169, -0.8038700819015503, -0.5067786574363708, -0.7826399803161621, -0.03848528116941452, 0.3192605972290039, -0.7421120405197144, 0.06039803847670555, -0.24278989434242249, -0.05761779472231865, 0.08029382675886154, 0.020964104682207108, -0.7231324315071106, 0.1903914362192154, -0.029968589544296265, 0.6598389744758606, -0.9228503704071045, 0.5951738357543945, 0.8461307883262634, -0.4744720458984375, -0.6428095102310181, 0.25749829411506653, -0.025589920580387115, -0.3872346878051758, 0.6518756747245789, 0.2589648962020874, -0.07650839537382126, 0.07005093991756439, -0.27021387219429016, -0.6360504627227783, 1.1347917318344116, 0.2264317125082016, -0.42821046710014343, 0.02129441499710083, -0.03429529443383217, 0.7762422561645508, -0.5142967104911804, 0.4960184097290039, 0.5457465648651123, 0.616294801235199, -0.2572022080421448, -1.1094261407852173, -0.2552291452884674, -0.4636518657207489, -0.049948349595069885, 0.24774380028247833, -0.6758848428726196, 0.7769144177436829, -0.36429333686828613, -0.14904138445854187, 0.11747892946004868, 0.7053625583648682, 0.25313740968704224, 0.5494987368583679, 0.4051617980003357, 0.8884190320968628, 0.6969013810157776, -0.2677106261253357, 1.1004992723464966, -0.37186065316200256, 0.4225153625011444, 1.3744748830795288, -0.016850076615810394, 0.6781966686248779, 0.238858163356781, -0.3266679346561432, 0.41106027364730835, 0.46555131673812866, -0.034165605902671814, 0.32256007194519043, 0.07986657321453094, -0.04883875325322151, -0.04989362508058548, 0.002311316318809986, -0.39478352665901184, 0.9065359830856323, 0.08184919506311417, -0.3300063908100128, -0.49241653084754944, -0.02162986434996128, -0.12476013600826263, 0.2889724373817444, -0.2159298062324524, 0.8780943751335144, 0.02702973037958145, -0.6677222847938538, 0.46976906061172485, 0.10061175376176834, 0.5338189601898193, -0.5694584846496582, -0.2472219616174698, -0.03266444802284241, 0.18566282093524933, -0.3895423710346222, -0.7772477269172668, 0.3958396315574646, 0.009355008602142334, 0.1606305092573166, -0.3088781535625458, 0.801166296005249, -0.5000843405723572, -0.47530078887939453, 0.3345111906528473, 0.5361761450767517, 0.3459061086177826, -0.12163972109556198, -0.8539727926254272, -0.3289364278316498, 0.22704274952411652, -0.3962206542491913, 0.3601955473423004, 0.5942734479904175, 0.23187416791915894, 0.25770267844200134, 0.6457183361053467, 0.0553201325237751, -0.04594753310084343, 0.5207210183143616, 0.6523104906082153, -0.3939330279827118, -0.5065446496009827, -0.8633449673652649, 0.7523020505905151, -0.09293770790100098, -0.6982719302177429, 0.8597762584686279, 0.7510965466499329, 1.0144485235214233, -0.14398504793643951, 0.8407782912254333, 0.05638305842876434, 0.38801950216293335, -0.6286196112632751, 0.7951927185058594, -0.7187050580978394, 0.13225574791431427, -0.5273174047470093, -1.2823636531829834, -0.3166983127593994, 0.5459302663803101, 0.05536230653524399, 0.40981411933898926, 0.8848253488540649, 0.3299204409122467, 0.22982417047023773, 0.03913283348083496, 0.623440682888031, -0.07482509315013885, 0.26467829942703247, 0.349202036857605, 0.8300272226333618, -0.6239097118377686, 0.49998271465301514, -0.1755119115114212, -0.13289576768875122, -0.03884303569793701, -0.9127849340438843, -1.141725778579712, -0.682600736618042, -0.19853456318378448, -0.24836087226867676, -0.36160776019096375, 0.9224213361740112, 0.34709909558296204, -0.5824083685874939, -0.08669568598270416, -0.32657361030578613, -0.1772790402173996, 0.015092902816832066, -0.2059374898672104, 0.47478216886520386, -0.4043572247028351, -0.7829315662384033, 0.2993611693382263, 0.4103330373764038, 0.06523571163415909, -0.5223994851112366, -0.21371705830097198, -0.07051645964384079, -0.08754372596740723, 0.7473445534706116, 0.02063373476266861, -0.5426866412162781, -0.11127085238695145, -0.5122687220573425, 0.2861333191394806, -0.05674704164266586, 0.947035551071167, -0.676240861415863, 0.6105546951293945, 0.6944766044616699, 0.5988692045211792, 0.3297836184501648, 0.14414717257022858, 0.6915745735168457, -1.0334928035736084, 0.15312020480632782, 0.2127390205860138, 0.34317082166671753, 0.16397778689861298, -0.3459659814834595, 0.5582197308540344, -0.021807264536619186, -0.7995339035987854, -0.7733907103538513, 0.1718398481607437, -0.6443353891372681, -0.1487751305103302, 0.8786286115646362, -0.1882047951221466, 0.011447177268564701, -0.04437299072742462, -0.05371497571468353, 0.3861962556838989, -0.3131292164325714, 0.6762676239013672, 0.45868226885795593, -0.08936064690351486, -0.29426825046539307, -0.4521509110927582, 0.6626242399215698, 0.4861559271812439, -1.2429416179656982, -0.03675611689686775, 0.28568539023399353, -0.12275613844394684, 0.4742533564567566, 0.6076185703277588, -0.17646901309490204, 0.22591632604599, 0.2168140858411789, 0.5571846961975098, -0.3383999168872833, -0.5936603546142578, -0.5287076234817505, 0.037257276475429535, -0.1647571623325348, -0.05510580912232399 ]
ElKulako/cryptobert
ElKulako
"2022-09-01T21:54:02Z"
24,295
52
transformers
[ "transformers", "pytorch", "roberta", "text-classification", "cryptocurrency", "crypto", "BERT", "sentiment classification", "NLP", "bitcoin", "ethereum", "shib", "social media", "sentiment analysis", "cryptocurrency sentiment analysis", "en", "dataset:ElKulako/stocktwits-crypto", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-06-20T02:29:26Z"
--- datasets: - ElKulako/stocktwits-crypto language: - en tags: - cryptocurrency - crypto - BERT - sentiment classification - NLP - bitcoin - ethereum - shib - social media - sentiment analysis - cryptocurrency sentiment analysis --- # CryptoBERT CryptoBERT is a pre-trained NLP model to analyse the language and sentiments of cryptocurrency-related social media posts and messages. It was built by further training the [vinai's bertweet-base](https://huggingface.co/vinai/bertweet-base) language model on the cryptocurrency domain, using a corpus of over 3.2M unique cryptocurrency-related social media posts. (A research paper with more details will follow soon.) ## Classification Training The model was trained on the following labels: "Bearish" : 0, "Neutral": 1, "Bullish": 2 CryptoBERT's sentiment classification head was fine-tuned on a balanced dataset of 2M labelled StockTwits posts, sampled from [ElKulako/stocktwits-crypto](https://huggingface.co/datasets/ElKulako/stocktwits-crypto). CryptoBERT was trained with a max sequence length of 128. Technically, it can handle sequences of up to 514 tokens, however, going beyond 128 is not recommended. # Classification Example ```python from transformers import TextClassificationPipeline, AutoModelForSequenceClassification, AutoTokenizer model_name = "ElKulako/cryptobert" tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=True) model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels = 3) pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer, max_length=64, truncation=True, padding = 'max_length') # post_1 & post_3 = bullish, post_2 = bearish post_1 = " see y'all tomorrow and can't wait to see ada in the morning, i wonder what price it is going to be at. 😎🐂🤠💯😴, bitcoin is looking good go for it and flash by that 45k. " post_2 = " alright racers, it’s a race to the bottom! good luck today and remember there are no losers (minus those who invested in currency nobody really uses) take your marks... are you ready? go!!" post_3 = " i'm never selling. the whole market can bottom out. i'll continue to hold this dumpster fire until the day i die if i need to." df_posts = [post_1, post_2, post_3] preds = pipe(df_posts) print(preds) ``` ``` [{'label': 'Bullish', 'score': 0.8734585642814636}, {'label': 'Bearish', 'score': 0.9889495372772217}, {'label': 'Bullish', 'score': 0.6595883965492249}] ``` ## Training Corpus CryptoBERT was trained on 3.2M social media posts regarding various cryptocurrencies. Only non-duplicate posts of length above 4 words were considered. The following communities were used as sources for our corpora: (1) StockTwits - 1.875M posts about the top 100 cryptos by trading volume. Posts were collected from the 1st of November 2021 to the 16th of June 2022. [ElKulako/stocktwits-crypto](https://huggingface.co/datasets/ElKulako/stocktwits-crypto) (2) Telegram - 664K posts from top 5 telegram groups: [Binance](https://t.me/binanceexchange), [Bittrex](https://t.me/BittrexGlobalEnglish), [huobi global](https://t.me/huobiglobalofficial), [Kucoin](https://t.me/Kucoin_Exchange), [OKEx](https://t.me/OKExOfficial_English). Data from 16.11.2020 to 30.01.2021. Courtesy of [Anton](https://www.kaggle.com/datasets/aagghh/crypto-telegram-groups). (3) Reddit - 172K comments from various crypto investing threads, collected from May 2021 to May 2022 (4) Twitter - 496K posts with hashtags XBT, Bitcoin or BTC. Collected for May 2018. Courtesy of [Paul](https://www.kaggle.com/datasets/paul92s/bitcoin-tweets-14m).
[ -0.5568158030509949, -0.7828210592269897, 0.07238992303609848, 0.3365725874900818, -0.6035990118980408, 0.24017813801765442, -0.04992172494530678, -0.5372985005378723, 0.5707524418830872, 0.31812769174575806, -0.2871967554092407, -0.843524158000946, -0.8187066912651062, 0.07926339656114578, -0.7238579988479614, 1.3009412288665771, 0.33728495240211487, -0.07528630644083023, 0.3861880898475647, -0.018583176657557487, -0.32168498635292053, -0.7427404522895813, -0.6656358242034912, -0.0006409228662960231, 0.1642983853816986, 0.22510336339473724, 0.6718063950538635, 0.3630135953426361, 0.6431359648704529, 0.427543967962265, -0.12548808753490448, -0.23193947970867157, -0.4263555109500885, -0.1504465937614441, 0.08701421320438385, -0.43173980712890625, -0.3989560306072235, -0.013455696403980255, 0.317971795797348, 0.43908804655075073, -0.25413715839385986, 0.19261866807937622, -0.07023411244153976, 0.468104749917984, -0.5162442326545715, -0.06553614139556885, -0.6255347728729248, -0.09215188026428223, -0.16036133468151093, -0.22564923763275146, -0.02056482434272766, -0.4538980722427368, 0.18057306110858917, -0.4436468482017517, 0.14012646675109863, 0.22835002839565277, 0.9313045740127563, -0.2799808382987976, -0.2551446855068207, -0.4836951494216919, -0.48487725853919983, 0.8100857734680176, -0.7724186778068542, 0.47165730595588684, 0.5725119709968567, -0.03385661914944649, 0.09901093691587448, -0.7024945020675659, -0.29806065559387207, 0.028447095304727554, 0.021554170176386833, 0.14406126737594604, -0.39610931277275085, -0.2684614360332489, 0.21213507652282715, 0.5130484104156494, -0.516185462474823, -0.2550685405731201, -0.669514000415802, -0.30766531825065613, 0.6266997456550598, 0.08962881565093994, 0.026692472398281097, -0.4239221215248108, -0.5932337641716003, -0.2832834720611572, -0.3271452784538269, 0.17564374208450317, 0.3997921347618103, 0.227823868393898, -0.4263460636138916, 0.5158602595329285, 0.14186608791351318, 0.5047339797019958, 0.29354211688041687, -0.13846445083618164, 0.3067075312137604, -0.5859332084655762, -0.3175024092197418, 0.24372808635234833, 1.187420129776001, 0.3690284490585327, 0.07723438739776611, -0.0829043984413147, -0.20014095306396484, 0.1038886159658432, 0.15325365960597992, -0.9674637317657471, -0.18643586337566376, 0.31553515791893005, -0.5608857870101929, -0.6256694197654724, 0.25280141830444336, -0.8939671516418457, -0.18607644736766815, 0.045467276126146317, 0.4465608298778534, -0.6653446555137634, -0.4255380630493164, 0.343285471200943, -0.3613739013671875, -0.0069152857176959515, 0.044270288199186325, -0.8813956379890442, 0.43226173520088196, 0.8237013220787048, 0.9077738523483276, 0.1880359798669815, -0.22224901616573334, -0.19929099082946777, -0.2306288778781891, -0.6248486042022705, 0.7207607626914978, -0.312888503074646, -0.3895420730113983, -0.16144801676273346, 0.0817156583070755, 0.15186238288879395, -0.2197597771883011, 0.25169286131858826, -0.6526463031768799, 0.17093110084533691, -0.18821363151073456, -0.5890092253684998, -0.031008586287498474, 0.29467305541038513, -0.5355557203292847, 0.8056150674819946, 0.11173105984926224, -0.9883221387863159, 0.44375959038734436, -0.5147497057914734, -0.30933815240859985, 0.08874571323394775, 0.04279676824808121, -0.3914065957069397, -0.2813970446586609, 0.057843975722789764, 0.40311360359191895, -0.19215640425682068, 0.09705222398042679, -0.4785592257976532, -0.4078366756439209, 0.7463058233261108, -0.13903740048408508, 0.8719871640205383, 0.1470167338848114, -0.5886160731315613, 0.06974285840988159, -0.7771912813186646, -0.017245260998606682, -0.02706199698150158, 0.021299375221133232, -0.320002019405365, -0.23180046677589417, 0.09383413195610046, 0.22386178374290466, 0.2900471091270447, -0.5359585285186768, 0.21768343448638916, -0.5790635943412781, 0.9146235585212708, 0.9338363409042358, 0.23537153005599976, 0.33038491010665894, -0.2060408890247345, 0.6430194973945618, 0.12546958029270172, 0.4436025619506836, 0.13528209924697876, -0.3900054097175598, -0.5453906059265137, -0.17559325695037842, 0.4384690523147583, 0.73619544506073, -0.17271427810192108, 0.7477790117263794, -0.11013414710760117, -0.7012899518013, -0.3866628110408783, -0.024250958114862442, -0.055346131324768066, 0.2809295058250427, 0.31119948625564575, -0.20489925146102905, -0.6533812880516052, -0.6113484501838684, 0.024276472628116608, -0.304890513420105, 0.15843425691127777, -0.06393637508153915, 0.6291183233261108, -0.2993331849575043, 0.5977398753166199, -0.45048660039901733, 0.00801297277212143, -0.00263509270735085, 0.3849761486053467, 0.4758078455924988, 0.28736695647239685, 0.4796088933944702, -0.785487711429596, -0.42328253388404846, 0.046881236135959625, -0.5346397161483765, 0.5122098922729492, -0.19046559929847717, -0.3635179102420807, 0.30695536732673645, 0.451513409614563, -0.7959664463996887, 0.40688398480415344, 0.516385555267334, -0.5280861854553223, 0.47971975803375244, 0.03013167716562748, 0.3519875705242157, -1.138859510421753, 0.14423596858978271, -0.07603953033685684, -0.16933542490005493, -0.34356245398521423, -0.4378063678741455, -0.10017530620098114, -0.1275012344121933, -0.3144637942314148, 0.4678244888782501, -0.16952112317085266, 0.06930038332939148, -0.20118679106235504, 0.11746484041213989, -0.29353153705596924, 0.29744070768356323, -0.04649972915649414, 0.655266284942627, 0.9722718596458435, -0.44907650351524353, 0.5314997434616089, 0.32511359453201294, -0.40575411915779114, 0.2475539743900299, -0.8474956750869751, 0.04009311646223068, 0.21914519369602203, -0.023221101611852646, -1.1045668125152588, 0.018890252336859703, 0.711432695388794, -0.8034122586250305, 0.018445918336510658, -0.016916997730731964, -0.4082403779029846, -0.5129683613777161, -0.5888168215751648, 0.17060022056102753, 0.5723785758018494, -0.01978497952222824, 0.40150439739227295, 0.14716647565364838, -0.09657774120569229, -1.128649115562439, -0.6827260255813599, 0.1580708920955658, -0.40455541014671326, -0.5002542734146118, 0.19666673243045807, -0.16194237768650055, -0.3065003752708435, 0.1826608031988144, -0.15402209758758545, 0.12180277705192566, -0.017244288697838783, 0.336860328912735, 0.44475823640823364, 0.06465377658605576, 0.207322359085083, -0.26910799741744995, -0.3383299708366394, 0.19533394277095795, -0.2724587023258209, 0.7934018969535828, -0.5041194558143616, -0.04540224373340607, -0.5303314924240112, 0.1703747808933258, 0.5181275010108948, -0.033887796103954315, 1.0535892248153687, 0.49547311663627625, -0.19334618747234344, 0.12664441764354706, -0.49829262495040894, -0.44264230132102966, -0.5273076295852661, 0.16982707381248474, -0.23905648291110992, -0.8780791759490967, 0.6876766681671143, 0.31420671939849854, 0.12142280489206314, 0.5837267637252808, 0.47136425971984863, -0.11455974727869034, 0.9014711976051331, 0.7240286469459534, -0.32186442613601685, 0.48135504126548767, -0.5460296273231506, 0.5663161277770996, -0.2978905141353607, -0.18088875710964203, -0.3174276649951935, -0.18385152518749237, -0.980402410030365, -0.16573233902454376, -0.07826192677021027, 0.4691699147224426, -0.26755157113075256, 0.6258876323699951, -0.6419389247894287, -0.18079081177711487, 0.5908705592155457, -0.005535849370062351, 0.04651409387588501, 0.078151635825634, 0.10090816766023636, -0.10459954291582108, -0.5332331657409668, -0.4526049494743347, 1.5061968564987183, 0.22458148002624512, 0.7708614468574524, -0.2652347981929779, 0.8335162997245789, 0.4854468107223511, 0.3775487542152405, -0.6830706596374512, 0.5654775500297546, 0.08835069835186005, -0.7128254175186157, -0.39520132541656494, -0.4483145773410797, -0.9052417278289795, -0.15734118223190308, -0.34816205501556396, -0.30789363384246826, 0.301298588514328, 0.044906653463840485, -0.3913652300834656, 0.34347307682037354, -0.34406396746635437, 0.9475387334823608, -0.35308367013931274, -0.27186504006385803, -0.23441550135612488, -0.7307946085929871, 0.1757292002439499, -0.16652238368988037, 0.4145541489124298, -0.16554541885852814, -0.1946895718574524, 0.8569385409355164, -0.7268214821815491, 0.7048909068107605, 0.09229137003421783, 0.06955130398273468, 0.4653019905090332, -0.23774287104606628, 0.5739808678627014, 0.08778998255729675, -0.0327158197760582, 0.4325900077819824, 0.18862895667552948, -0.4161016643047333, -0.20364831387996674, 0.5156135559082031, -0.8991638422012329, -0.08777354657649994, -0.6486305594444275, 0.060525428503751755, 0.18640382587909698, 0.15211375057697296, 0.6816815137863159, 0.4436688721179962, -0.2690578103065491, 0.15804357826709747, 0.358650803565979, -0.012783757410943508, 0.3299539089202881, 0.15425148606300354, -0.19756771624088287, -0.910977840423584, 0.998652994632721, 0.0059537761844694614, 0.09039247781038284, 0.30739298462867737, 0.14457115530967712, -0.40298303961753845, -0.46922749280929565, -0.0524401031434536, 0.5151554346084595, -0.6448045372962952, -0.34562861919403076, -0.7046286463737488, -0.24875408411026, -0.8908674120903015, -0.26989734172821045, -0.4715987741947174, -0.3248591423034668, -0.3992982804775238, -0.4362378716468811, 0.7894685864448547, 0.5397884249687195, -0.515453577041626, 0.27983149886131287, -0.6368266940116882, 0.26180893182754517, 0.2685043215751648, 0.26287490129470825, -0.14825738966464996, -0.38836950063705444, -0.17659509181976318, 0.1465461403131485, -0.2917347550392151, -0.9976376295089722, 0.5808179974555969, -0.13337452709674835, 0.24899111688137054, 0.81702721118927, 0.07920172065496445, 0.7848763465881348, 0.056664492934942245, 0.642333447933197, 0.521569550037384, -0.9201087951660156, 0.5383661389350891, -0.22698312997817993, -0.10567450523376465, 0.47261539101600647, 0.7331435680389404, -0.9014288187026978, -0.6831187009811401, -0.8956061601638794, -1.0142743587493896, 0.49411457777023315, 0.31373342871665955, 0.04832505062222481, -0.27171868085861206, 0.3061057925224304, 0.13322462141513824, 0.5436795949935913, -0.9140859246253967, -0.5081617832183838, -0.7220190763473511, -0.2421126514673233, -0.014623407274484634, -0.3862197995185852, -0.10063177347183228, -0.33804821968078613, 0.7344207763671875, 0.09203997254371643, 0.5684502720832825, 0.0463557094335556, 0.099350705742836, -0.043157465755939484, 0.27473020553588867, 0.43917375802993774, 1.0135935544967651, -0.4344417452812195, -0.04262317344546318, 0.1582566499710083, -0.446834921836853, -0.03986496478319168, 0.28459668159484863, -0.14593015611171722, -0.10452308505773544, 0.5194212794303894, 0.8457304239273071, 0.32247471809387207, -0.7316790223121643, 0.6390138864517212, -0.14523063600063324, -0.4322725534439087, -0.7376530170440674, -0.18713055551052094, 0.14774960279464722, 0.23742340505123138, 0.5327559113502502, 0.18032392859458923, 0.14215126633644104, -0.6795310378074646, 0.25262337923049927, 0.4227375090122223, -0.5247682929039001, -0.5691739916801453, 0.6690667271614075, 0.05580199137330055, -0.1986558586359024, 0.69020676612854, -0.10383546352386475, -0.6117072105407715, 0.5849589109420776, 0.20713257789611816, 0.7436806559562683, -0.10804639011621475, 0.34675949811935425, 0.6770644187927246, 0.43293076753616333, 0.01636723056435585, 0.40123897790908813, -0.029118524864315987, -0.7677083015441895, -0.21567758917808533, -0.6440058350563049, -0.03494452312588692, 0.3488902449607849, -0.5136779546737671, 0.543357253074646, -0.6758186221122742, -0.7358413338661194, 0.047191571444272995, 0.1464415043592453, -0.4896847605705261, 0.29957717657089233, 0.09434714168310165, 0.677764892578125, -0.8556851148605347, 0.28358903527259827, 0.7359791994094849, -0.30636245012283325, -0.4840984344482422, -0.2993893623352051, -0.28472837805747986, -0.7533345222473145, 0.4935016632080078, 0.25539430975914, 0.03225408494472504, -0.12014053761959076, -0.7962973713874817, -0.8344016671180725, 0.8669386506080627, -0.06063609570264816, -0.48876702785491943, 0.1335410177707672, 0.3147493898868561, 0.4999176561832428, -0.1554788500070572, 0.31419068574905396, 0.22137649357318878, 0.3899790644645691, 0.15611600875854492, -0.49452710151672363, -0.034333545714616776, -0.4426664113998413, -0.3036755621433258, 0.44114747643470764, -0.7911022305488586, 0.7908929586410522, -0.010157510638237, -0.2770994007587433, -0.14471566677093506, 0.6224779486656189, 0.3174259662628174, 0.14321565628051758, 0.6509622931480408, 0.7057724595069885, 0.5364125967025757, -0.07922006398439407, 0.7760522365570068, -0.7877921462059021, 0.45464473962783813, 0.3704827129840851, 0.2844420373439789, 0.8447825312614441, 0.2863050103187561, -0.3181041479110718, 0.5395236015319824, 0.9511486291885376, -0.1623866856098175, 0.6422721743583679, -0.1406496912240982, -0.12240533530712128, -0.54709392786026, 0.23185701668262482, -0.657229483127594, 0.29332855343818665, 0.3553573489189148, -0.3896934390068054, 0.17963287234306335, 0.1460844725370407, 0.15300840139389038, -0.4083324670791626, -0.24448956549167633, 0.651074230670929, 0.23818928003311157, -0.33745092153549194, 0.5460216403007507, 0.05882697179913521, 0.9418160915374756, -0.8384066224098206, 0.2630199193954468, -0.13489685952663422, 0.26772812008857727, -0.013129821978509426, -0.6356849670410156, 0.26616621017456055, -0.20177148282527924, 0.08881944417953491, -0.24254371225833893, 0.7774312496185303, -0.1959402710199356, -0.8139742016792297, 0.46067720651626587, 0.04267142713069916, 0.21819114685058594, -0.21985642611980438, -0.9540128111839294, 0.03877800330519676, -0.0521390475332737, -0.42282307147979736, 0.10546360909938812, 0.5864558219909668, 0.2687406539916992, 0.6737611889839172, 0.7988453507423401, 0.037037648260593414, 0.14336027204990387, -0.3594197630882263, 0.8147508502006531, -1.096401572227478, -0.6335350871086121, -0.8792386651039124, 0.41414180397987366, -0.23804594576358795, -0.5214003324508667, 0.7892515063285828, 0.7332059144973755, 0.6807077527046204, 0.1889375001192093, 0.7470114827156067, -0.21208681166172028, 0.5337019562721252, -0.1425083726644516, 0.5936938524246216, -0.4992899000644684, -0.11050236970186234, -0.3733276128768921, -0.5972335934638977, 0.09947504103183746, 0.7439538836479187, -0.46661460399627686, 0.0923752561211586, 0.6209172010421753, 0.6293560266494751, 0.1366795301437378, 0.22550438344478607, -0.0746547132730484, 0.29556021094322205, 0.09417303651571274, 0.18192990124225616, 0.8014305233955383, -0.6343393325805664, 0.926172137260437, -0.7929820418357849, -0.21354742348194122, -0.4878583550453186, -0.5632272958755493, -0.9720311760902405, -0.438559353351593, -0.46744605898857117, -0.5021892786026001, -0.04200586676597595, 0.757753849029541, 0.6766606569290161, -0.7825934290885925, -0.3919864296913147, -0.1936318278312683, -0.04028991237282753, -0.3854251801967621, -0.3127140998840332, 0.47939416766166687, -0.06816104054450989, -0.3769374489784241, -0.05344439670443535, 0.1883368194103241, 0.21675008535385132, -0.04039532691240311, 0.15303634107112885, -0.043396059423685074, 0.052924271672964096, 0.7323669791221619, 0.19981028139591217, -0.3231485188007355, 0.0039852699264883995, 0.4808991253376007, -0.3129292130470276, 0.22396276891231537, 0.5668301582336426, -0.3944680988788605, 0.05702327936887741, 0.44360464811325073, 0.12259717285633087, 0.8196879029273987, 0.288884699344635, 0.18220727145671844, -0.09555365145206451, 0.22858628630638123, 0.2275189608335495, 0.06605378538370132, 0.2998861074447632, -0.337994247674942, 0.31619641184806824, 0.5799391269683838, -0.5933559536933899, -0.6035190224647522, -0.3366929888725281, -1.0038233995437622, -0.4536169469356537, 0.824451208114624, 0.1410914659500122, -0.3141759932041168, 0.05957484990358353, -0.011936178430914879, 0.16213053464889526, -0.6389304399490356, 0.9385656714439392, 0.8661393523216248, -0.08327950537204742, -0.15241560339927673, -0.6179724931716919, 0.40706682205200195, 0.23182685673236847, -0.7102941870689392, -0.001806525862775743, 0.23211601376533508, 0.5510499477386475, 0.23246245086193085, 1.0014935731887817, -0.003609773702919483, 0.2590896785259247, 0.04952206462621689, 0.13217756152153015, 0.1789562702178955, -0.021569151431322098, 0.094586580991745, 0.15562637150287628, -0.2549319267272949, -0.376339316368103 ]
sshleifer/bart-tiny-random
sshleifer
"2021-06-14T07:44:43Z"
24,219
0
transformers
[ "transformers", "pytorch", "tf", "jax", "bart", "text2text-generation", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
Yntec/photoMovieX
Yntec
"2023-08-07T12:33:44Z"
24,037
4
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "MagicArt35", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-08-05T09:53:28Z"
--- license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image - MagicArt35 --- # Photo Movie X Preview and prompt: ![sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/GAC3HQgB80SzHNB8hiRYP.png) pretty cute little girl in tricycle, Screenshot of an surreal jean 70s round minimalist architecture, Sharp light, 35mm still from a sci fi blockbuster color movie made in 2022, beautiful portrait, Dorothy, set in 1860, in front of a spaceship that has just landed on an alien planet, are all wearing, a robot stands nearby Original page: https://civitai.com/models/94687?modelVersionId=101000
[ -0.4945276081562042, -0.3303964138031006, 0.7542256712913513, -0.22983749210834503, -0.37898415327072144, 0.19285741448402405, 0.636004626750946, -0.425741970539093, 0.4544884264469147, 0.5095111131668091, -1.1806986331939697, -0.42605772614479065, -0.29650169610977173, -0.11778769642114639, -0.7751281261444092, 0.6333342790603638, 0.11336816847324371, -0.005342697259038687, 0.139504075050354, 0.23492081463336945, -0.6037301421165466, -0.04077531769871712, -0.3727473318576813, -0.019480951130390167, 0.048791542649269104, 0.7118130326271057, 0.9635307788848877, 0.6861156821250916, 0.14260560274124146, 0.39552026987075806, 0.07380464673042297, -0.09602337330579758, -0.48259058594703674, -0.1918952614068985, -0.22288727760314941, -0.7233067154884338, -0.14786498248577118, 0.35609421133995056, 0.929088294506073, 0.7503584027290344, 0.22347666323184967, 0.216482475399971, -0.2164243757724762, 0.362643301486969, -0.48294034600257874, -0.2542380690574646, 0.30055686831474304, 0.231647327542305, -0.20439139008522034, 0.4178521931171417, 0.114897720515728, -0.2810896039009094, -0.5381208658218384, -1.0037566423416138, 0.33821672201156616, 0.5978237986564636, 1.3087843656539917, 0.21376633644104004, -0.22419486939907074, -0.11617521196603775, -0.6575396060943604, 0.6248799562454224, 0.11639858782291412, 0.34520405530929565, -0.13848555088043213, 0.5715492963790894, -0.20660944283008575, -0.8691073656082153, -1.0170791149139404, -0.13839875161647797, 0.09657116234302521, -0.12732139229774475, -0.6093804240226746, -0.7471575140953064, 0.411188542842865, 0.33406051993370056, -0.8925556540489197, -0.08059835433959961, -0.6726380586624146, 0.05706177279353142, 0.5782884359359741, 0.5926886200904846, 0.6949212551116943, -0.43748995661735535, -0.6105502247810364, -0.5410133600234985, -0.514531672000885, 0.17701035737991333, 0.17473104596138, -0.0973782017827034, -0.8008384704589844, 0.875024139881134, -0.11090919375419617, 0.45949968695640564, 0.3208666741847992, 0.2356841266155243, 0.37462949752807617, -0.7624650597572327, -0.20466014742851257, -0.26898103952407837, 0.6437552571296692, 1.229975700378418, 0.16897208988666534, 0.3603929281234741, 0.19949133694171906, 0.13456439971923828, 0.20010749995708466, -0.857301652431488, -0.045714691281318665, 0.4521757662296295, -0.6261062026023865, -0.49424049258232117, 0.23000815510749817, -0.9429067373275757, -0.4019175171852112, 0.06148476526141167, -0.0003448874631430954, -0.5280360579490662, -0.15881749987602234, 0.01735161803662777, -0.29068654775619507, 0.27936092019081116, 0.30965012311935425, -0.4343810975551605, -0.307323694229126, 0.21352313458919525, 0.8082043528556824, 0.32007986307144165, 0.09573096036911011, -0.2564008831977844, 0.27236777544021606, -0.7633599042892456, 0.8829366564750671, -0.4455103278160095, -0.8940126299858093, -0.07000415772199631, 0.48111090064048767, 0.2307208925485611, -0.44192761182785034, 0.7194045186042786, -0.5292673707008362, 0.16951411962509155, 0.11688555777072906, 0.008086727000772953, -0.026973022148013115, 0.14611172676086426, -0.8170896172523499, 0.837837278842926, 0.34691545367240906, -0.5329746007919312, 0.7650340795516968, -0.42881837487220764, 0.07553618401288986, 0.18435202538967133, -0.23226924240589142, -0.3509863018989563, 0.3087323009967804, 0.0525842010974884, -0.3554411232471466, 0.09732970595359802, -0.456166535615921, -0.8941112160682678, -0.5726693868637085, 0.21071487665176392, 0.3243177533149719, 0.9703565835952759, 0.578525960445404, -0.024832965806126595, -0.15317924320697784, -1.112467646598816, 0.5279528498649597, 0.5570937991142273, 0.2661634683609009, -0.12212476879358292, -0.777447521686554, 0.2183786779642105, 0.6988022923469543, 0.4408648908138275, -0.6837722063064575, 0.28223204612731934, 0.07551295310258865, 0.032115161418914795, 0.3997255563735962, -0.018867459148168564, 0.532633364200592, -0.4847991466522217, 0.8490801453590393, -0.22153553366661072, 0.4546429216861725, -0.22405268251895905, -0.3158379793167114, -0.9523463249206543, -0.10500498116016388, -0.24859534204006195, 0.30298423767089844, -0.6067191362380981, 0.12292083352804184, -0.00541094271466136, -0.8250440955162048, -0.2213435173034668, -0.2792949080467224, 0.17931003868579865, -0.031099779531359673, -0.21209095418453217, -0.29617631435394287, -0.5813404321670532, -0.807068407535553, 0.309641033411026, -0.4512646496295929, -0.28778076171875, 0.40434324741363525, 0.5960776209831238, -0.2105952799320221, 0.6342092752456665, -0.5890952348709106, -0.240461066365242, -0.23644933104515076, -0.21858829259872437, 0.902098536491394, 0.4579837918281555, 0.8566850423812866, -0.7199895977973938, -0.5778732895851135, -0.17462365329265594, -0.955445408821106, 0.06924515217542648, 0.2501828372478485, -0.22065481543540955, 0.06771858781576157, 0.5874133706092834, -0.9535030722618103, 0.33726221323013306, 0.05636346712708473, -0.7777860760688782, 0.4171592891216278, -0.5901104807853699, 0.5005971789360046, -0.8087319135665894, 0.1469319462776184, -0.07310440391302109, -0.40097174048423767, -0.34530049562454224, 0.08752726018428802, -0.1280008852481842, -0.5444888472557068, -0.5597426295280457, 0.6176055669784546, -0.4179282784461975, -0.05520027503371239, -0.46482980251312256, 0.05999215692281723, 0.22517623007297516, -0.17305314540863037, 0.1192784532904625, 0.47044533491134644, 0.4513067305088043, -0.3040577471256256, 0.19304707646369934, 0.5985937714576721, -0.24726013839244843, 0.905016303062439, -0.896034300327301, 0.2711072564125061, -0.22953471541404724, 0.1555350124835968, -1.166374921798706, -0.7435650825500488, 0.6113841533660889, -0.33536699414253235, -0.03348251059651375, 0.022600162774324417, -0.6887750029563904, -0.8161978125572205, -0.5276170372962952, 0.3560173213481903, 0.5436264276504517, -0.33875977993011475, 0.1770790070295334, 0.10472486913204193, -0.35295799374580383, 0.029609315097332, -0.4423898458480835, 0.18976189196109772, -0.15098519623279572, -0.8736832737922668, 0.6198693513870239, -0.031174585223197937, -0.5739648938179016, -0.07826133817434311, 0.4055792987346649, -0.20288793742656708, -0.6356615424156189, 0.5339925289154053, 0.8745781183242798, -0.14064079523086548, -0.20109272003173828, -0.20420482754707336, -0.08382446318864822, -0.22501082718372345, 0.03166846185922623, 0.6770244240760803, -0.46292442083358765, 0.009746983647346497, -0.8438189625740051, 0.8161168098449707, 0.7824355959892273, 0.5026620030403137, 0.2691561281681061, 0.7036018371582031, -0.1649594008922577, 0.15556052327156067, -0.09461000561714172, -0.2458977997303009, -0.47879669070243835, 0.134120911359787, -0.16046001017093658, -0.3506617248058319, 0.08339550346136093, 0.4604375660419464, -0.6303695440292358, 0.5002800226211548, 0.5801126956939697, -0.7908719778060913, 1.0578644275665283, 1.0404338836669922, 0.20918801426887512, 0.5930662155151367, -0.6981143355369568, 0.18727870285511017, -0.2133108377456665, -0.28001174330711365, -0.46374672651290894, 0.016923917457461357, -0.8904292583465576, -0.6383670568466187, 0.4466697871685028, -0.060783032327890396, -0.7910435199737549, 0.5301967859268188, -0.0986509621143341, 0.44846487045288086, 0.6207771301269531, 0.1065186858177185, 0.4315766990184784, -0.1774226278066635, 0.010959194041788578, -0.09082307666540146, -0.34365707635879517, -0.7375851273536682, 0.6641623377799988, -0.02481825463473797, 0.5436569452285767, -0.06314262002706528, 0.6381453275680542, 0.21096526086330414, -0.4631398022174835, 0.04258958622813225, 0.7384093403816223, -0.10888153314590454, -1.2477426528930664, 0.14772669970989227, 0.15110276639461517, -0.6500309705734253, -0.14795777201652527, -0.46137115359306335, -0.6783635020256042, 0.5685570240020752, 0.050814542919397354, -0.9870004057884216, -0.027068817988038063, -0.7874026894569397, 0.726589024066925, -0.39198610186576843, -0.7936370372772217, -0.13217739760875702, -0.7143709659576416, 0.26917925477027893, 0.01618226058781147, 0.49871647357940674, 0.02859843708574772, -0.17171426117420197, 0.2921825051307678, -0.3155028820037842, 0.6250381469726562, 0.05086689069867134, 0.35953566431999207, 0.31609243154525757, 0.08697719871997833, 0.2638489902019501, 0.20436862111091614, 0.138188898563385, 0.03989216312766075, 0.15355044603347778, -0.15873679518699646, -0.3196139633655548, 0.6852237582206726, -0.7546976208686829, -0.40959134697914124, -0.5730962753295898, -0.646641194820404, 0.277645081281662, 0.2472682148218155, 0.8477737307548523, 0.011432950384914875, -0.16722331941127777, -0.3466341197490692, 0.06214040145277977, -0.2811680734157562, 1.036900281906128, 0.3417801558971405, -0.7775765657424927, -0.3032327890396118, 0.7287700176239014, 0.13133442401885986, 0.1981544941663742, -0.05722332000732422, 0.0754326730966568, -0.39743536710739136, -0.14171040058135986, -0.1868525743484497, 0.45510759949684143, -0.5585163831710815, 0.24862906336784363, -0.3186545670032501, 0.2819536030292511, -0.06898089498281479, -0.5583421587944031, -0.40625521540641785, -0.7043213844299316, -0.4178435802459717, 0.0019223318668082356, 0.21199460327625275, 1.203014850616455, -0.10093849152326584, 0.0865333154797554, -0.7201006412506104, 0.35914382338523865, 0.2984057068824768, 0.034080956131219864, -0.5572989583015442, -0.42655816674232483, -0.0014516222290694714, -0.45147156715393066, -0.7747558951377869, -0.2001732885837555, 0.6675344705581665, -0.04078321158885956, 0.4184536635875702, 0.20578435063362122, 0.11779140681028366, 0.45593422651290894, -0.39821162819862366, 1.0234897136688232, 0.5069527626037598, -0.48755139112472534, 0.651248037815094, -0.6051511764526367, 0.4596962332725525, 0.467083215713501, 0.15329411625862122, -0.19374977052211761, -0.12387322634458542, -1.0830575227737427, -0.5604515671730042, 0.7584913969039917, 0.4005706310272217, 0.3078215420246124, 0.325335830450058, 0.09921097755432129, -0.11583799868822098, 0.5320882201194763, -0.7249383926391602, -0.456068217754364, -0.4911695420742035, 0.08140666782855988, 0.05614771693944931, -0.030819812789559364, 0.13309840857982635, -0.2767070531845093, 0.38557809591293335, -0.17030705511569977, 0.4497610628604889, 0.08296290785074234, 0.3893313407897949, -0.35018056631088257, -0.011561945080757141, 0.2679825723171234, 0.48784780502319336, -0.6067905426025391, -0.20313139259815216, -0.2167510986328125, -0.1618451625108719, 0.5770354270935059, 0.043718501925468445, -0.395906537771225, 0.34253716468811035, 0.21437831223011017, 0.47845956683158875, 0.18008457124233246, -0.602327823638916, 0.3336142897605896, 0.19231954216957092, 0.5052627921104431, -0.5592724680900574, 0.5025946497917175, 0.07175782322883606, 0.5820170640945435, 0.3751855790615082, 0.14035733044147491, 0.3230455219745636, -0.901219367980957, 0.04258562996983528, 0.356681764125824, -0.7107376456260681, -0.40661919116973877, 1.050667643547058, -0.21249088644981384, -0.40771833062171936, 0.5126357674598694, -0.2626509666442871, -0.30886539816856384, 0.648400604724884, 0.4433247447013855, 0.6491084694862366, 0.14648830890655518, 0.5182012915611267, 0.9553280472755432, -0.09247668087482452, 0.5699925422668457, 0.608461320400238, 0.2750137150287628, -0.4021179676055908, 0.5554533004760742, -0.3601476848125458, -0.4596174657344818, -0.27788880467414856, -0.11480539292097092, 0.9465806484222412, -0.5438931584358215, 0.0037062973715364933, 0.05886150524020195, 0.15601038932800293, -0.5685833096504211, 0.5388086438179016, 0.5980653762817383, 1.0621494054794312, -0.6283568739891052, 0.873824417591095, 0.5677293539047241, -1.0562232732772827, -0.5329264402389526, -0.19114553928375244, 0.44076719880104065, -0.7959054112434387, 0.7140148878097534, 0.3970572054386139, -0.12297409027814865, -0.39008820056915283, -0.7437452673912048, -0.6421450972557068, 1.2345458269119263, 0.37620097398757935, -0.853338360786438, -0.24980857968330383, 0.167256698012352, 0.28952017426490784, -0.7186164855957031, 0.18635518848896027, 0.7048315405845642, 0.49100691080093384, 0.35063040256500244, -0.6376280784606934, -0.33827072381973267, -0.7124379873275757, 0.19644585251808167, -0.39367470145225525, -0.9519577622413635, 1.1176466941833496, -0.934295117855072, -0.29383012652397156, 0.889459490776062, 0.6320653557777405, 0.988795816898346, 0.5985103249549866, 0.944826602935791, 0.3771250247955322, 0.4648473262786865, -0.14832466840744019, 1.8996214866638184, 0.042797673493623734, 0.3093850910663605, 0.7756604552268982, -0.288483589887619, 0.4376189112663269, 0.5578080415725708, -0.5832682847976685, 0.542800784111023, 1.1212917566299438, -0.2850669026374817, 0.6585854887962341, -0.3034326434135437, -0.29453107714653015, -0.3567984104156494, -0.6419152617454529, -0.10455197840929031, 0.21185259521007538, -0.17161865532398224, -0.3520732820034027, -0.39567747712135315, 0.16773557662963867, -0.0719565749168396, 0.26011544466018677, -0.5317456126213074, 0.3157603144645691, 0.18215323984622955, -0.4304075539112091, 0.417215496301651, -0.5189641714096069, 0.002186916535720229, -0.44336625933647156, -0.1991967111825943, -0.21966098248958588, 0.27762553095817566, -0.14903941750526428, -1.2416532039642334, 0.08452398329973221, -0.0018579503521323204, -0.6314934492111206, -0.07861975580453873, 0.47598376870155334, -0.10354544222354889, -1.259595274925232, 0.25196224451065063, -0.03565051406621933, 0.09014148265123367, 0.2521626651287079, -0.7081137895584106, 0.3398783504962921, 0.15482622385025024, 0.3422824740409851, -0.09692680090665817, 0.03198319673538208, -0.1737174242734909, 0.482647567987442, 0.3401080071926117, -0.22215266525745392, -0.06674638390541077, -0.172806054353714, 0.67728191614151, -0.7299050092697144, -0.7709973454475403, -0.5759584307670593, 0.7067864537239075, -0.3392751216888428, -0.4954557716846466, 0.794884204864502, 0.42147526144981384, 0.5601528286933899, -0.5424416065216064, 0.5801642537117004, -0.39285123348236084, 0.4034872055053711, -0.5127280354499817, 0.4415994882583618, -0.8424468040466309, -0.07688626646995544, -0.3471682369709015, -0.6682822108268738, -0.3174116313457489, 0.44506803154945374, -0.031316470354795456, 0.39703208208084106, 0.5474264025688171, 1.017421841621399, 0.09714619815349579, -0.017738014459609985, 0.24116988480091095, 0.05954030156135559, 0.2830735743045807, 0.19242142140865326, 1.0705128908157349, -0.5077088475227356, 0.4655229151248932, -0.47103366255760193, -0.06332220137119293, -0.49969956278800964, -0.9288045167922974, -0.5178646445274353, -0.4284151792526245, -0.4424181282520294, -0.36947759985923767, 0.007021562661975622, 0.8264198303222656, 1.1348707675933838, -0.5278580784797668, -0.17140422761440277, -0.050382647663354874, 0.18781906366348267, 0.22362737357616425, -0.12725773453712463, 0.0487668402493, 0.49563607573509216, -1.1829015016555786, 0.3195493221282959, 0.29306089878082275, 0.7104347944259644, -0.1805294305086136, 0.20303207635879517, -0.15483345091342926, -0.17234867811203003, 0.092001773416996, 0.19704633951187134, -0.21108026802539825, -0.5182983875274658, -0.0321909561753273, -0.03718549758195877, 0.20145989954471588, 0.37965917587280273, -0.544543981552124, 0.30036240816116333, 0.37302374839782715, -0.5919543504714966, 0.5678776502609253, -0.07170101255178452, 0.8346443176269531, -0.24361544847488403, 0.38416993618011475, -0.17725394666194916, 0.6934023499488831, 0.5280922055244446, -0.5020273327827454, 0.6039331555366516, 0.48630860447883606, -0.3093273341655731, -0.7415574193000793, 0.09975482523441315, -1.3295156955718994, -0.12295819073915482, 0.8492088317871094, 0.40198373794555664, -0.45726287364959717, -0.05859958752989769, -0.5672577023506165, -0.19286465644836426, -0.2522246837615967, 0.3315237760543823, 0.5670328736305237, -0.06444080919027328, -0.3759514093399048, -0.5273624062538147, -0.21183687448501587, -0.27282723784446716, -0.45867079496383667, -0.3542187511920929, 0.5272951126098633, 0.4760764241218567, 0.8283625841140747, 0.4848935306072235, -0.41043245792388916, 0.5561676025390625, 0.3795154392719269, 0.37760791182518005, 0.1364542841911316, -0.17332406342029572, -0.13519930839538574, 0.30519187450408936, -0.18147465586662292, -0.5927208662033081 ]
microsoft/xclip-base-patch32
microsoft
"2022-10-12T11:31:02Z"
24,027
37
transformers
[ "transformers", "pytorch", "xclip", "vision", "video-classification", "en", "arxiv:2208.02816", "license:mit", "model-index", "endpoints_compatible", "has_space", "region:us" ]
video-classification
"2022-08-25T13:06:15Z"
--- language: en license: mit tags: - vision - video-classification model-index: - name: nielsr/xclip-base-patch32 results: - task: type: video-classification dataset: name: Kinetics 400 type: kinetics-400 metrics: - type: top-1 accuracy value: 80.4 - type: top-5 accuracy value: 95.0 --- # X-CLIP (base-sized model) X-CLIP model (base-sized, patch resolution of 32) trained fully-supervised on [Kinetics-400](https://www.deepmind.com/open-source/kinetics). It was introduced in the paper [Expanding Language-Image Pretrained Models for General Video Recognition](https://arxiv.org/abs/2208.02816) by Ni et al. and first released in [this repository](https://github.com/microsoft/VideoX/tree/master/X-CLIP). This model was trained using 8 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description X-CLIP is a minimal extension of [CLIP](https://huggingface.co/docs/transformers/model_doc/clip) for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. ![X-CLIP architecture](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/xclip_architecture.png) This allows the model to be used for tasks like zero-shot, few-shot or fully supervised video classification and video-text retrieval. ## Intended uses & limitations You can use the raw model for determining how well text goes with a given video. See the [model hub](https://huggingface.co/models?search=microsoft/xclip) to look for fine-tuned versions on a task that interests you. ### How to use For code examples, we refer to the [documentation](https://huggingface.co/transformers/main/model_doc/xclip.html#). ## Training data This model was trained on [Kinetics-400](https://www.deepmind.com/open-source/kinetics). ### Preprocessing The exact details of preprocessing during training can be found [here](https://github.com/microsoft/VideoX/blob/40f6d177e0a057a50ac69ac1de6b5938fd268601/X-CLIP/datasets/build.py#L247). The exact details of preprocessing during validation can be found [here](https://github.com/microsoft/VideoX/blob/40f6d177e0a057a50ac69ac1de6b5938fd268601/X-CLIP/datasets/build.py#L285). During validation, one resizes the shorter edge of each frame, after which center cropping is performed to a fixed-size resolution (like 224x224). Next, frames are normalized across the RGB channels with the ImageNet mean and standard deviation. ## Evaluation results This model achieves a top-1 accuracy of 80.4% and a top-5 accuracy of 95.0%.
[ -0.6155577301979065, -0.45977815985679626, 0.33911561965942383, 0.052534256130456924, -0.31647250056266785, 0.052955031394958496, -0.2379535287618637, -0.20458072423934937, 0.34127169847488403, 0.33370083570480347, -0.8865005970001221, -0.6238501667976379, -0.8042061924934387, -0.2232300192117691, -0.6328924894332886, 1.0558096170425415, -0.3391563296318054, -0.061377499252557755, -0.2745625674724579, -0.32741934061050415, -0.33369648456573486, -0.6452656388282776, -0.1869855374097824, -0.15316063165664673, -0.1228281557559967, 0.3217557668685913, 0.8699961304664612, 0.933332622051239, 0.5647302269935608, 0.36231911182403564, -0.23583203554153442, -0.26693880558013916, -0.353927344083786, -0.46923545002937317, -0.12792576849460602, -0.36232829093933105, -0.5799580812454224, 0.21739327907562256, 0.7413946390151978, 0.18290495872497559, -0.040789198130369186, 0.45115897059440613, -0.1573578417301178, 0.3882423937320709, -0.6957977414131165, -0.03526159003376961, -0.3740156292915344, 0.304435670375824, -0.0258503220975399, 0.033393844962120056, 0.04015932232141495, -0.03483211621642113, 0.25340643525123596, -0.38357192277908325, 0.4403460621833801, -0.2677251994609833, 1.2412731647491455, 0.24495168030261993, -0.03404147922992706, 0.19133491814136505, -0.43915241956710815, 0.7579237818717957, -0.43990135192871094, 0.6133354306221008, 0.2887257933616638, 0.3957759737968445, 0.36660945415496826, -0.8115334510803223, -0.49695372581481934, -0.03888097405433655, 0.2693503797054291, -0.12442462146282196, -0.5972527265548706, 0.20529599487781525, 0.7164144515991211, 0.44693776965141296, -0.5870765447616577, 0.039010029286146164, -0.4022506773471832, -0.28988897800445557, 0.5908927917480469, 0.14214415848255157, 0.46873077750205994, -0.16746874153614044, -0.5187362432479858, -0.5573644042015076, -0.3406667709350586, 0.29715585708618164, 0.03189551830291748, -0.050821639597415924, -0.5129528045654297, 0.4745648205280304, -0.12266871333122253, 0.43723154067993164, 0.12733930349349976, -0.4281075596809387, 0.3933304250240326, -0.29655593633651733, -0.45490774512290955, -0.07809041440486908, 0.9134983420372009, 0.6566667556762695, 0.2848350405693054, 0.19089601933956146, -0.02369559369981289, 0.3794932961463928, 0.20873421430587769, -1.0710105895996094, -0.2982352077960968, 0.03611715883016586, -0.3884841799736023, -0.14320360124111176, -0.0847679004073143, -0.5542213320732117, 0.36897870898246765, -0.44433730840682983, 0.6765883564949036, -0.49313217401504517, -0.10351847112178802, 0.21860940754413605, -0.2570112645626068, 0.004879105370491743, 0.3509385287761688, -0.601993203163147, 0.5038803219795227, 0.34723901748657227, 1.018378496170044, -0.1906960904598236, -0.3319961428642273, -0.4559015929698944, -0.0839177668094635, -0.0475599430501461, 0.6665647029876709, -0.2979035973548889, -0.07596282660961151, 0.022556448355317116, 0.2293887883424759, 0.19666513800621033, -0.5073063969612122, 0.38569375872612, -0.360695481300354, -0.00967483501881361, -0.09888359904289246, -0.47618576884269714, -0.392245352268219, 0.36320170760154724, -0.48880016803741455, 0.8515228629112244, 0.15397708117961884, -0.5776371359825134, 0.46280455589294434, -0.401642769575119, 0.010563671588897705, -0.2741745114326477, -0.12727412581443787, -0.555363655090332, -0.0881776511669159, 0.2859674394130707, 0.39449721574783325, -0.037220604717731476, 0.19828252494335175, -0.5436217188835144, -0.10278390347957611, 0.09601830691099167, -0.33090537786483765, 0.5998893976211548, -0.05904103443026543, -0.28616636991500854, 0.39703062176704407, -0.8078032732009888, 0.32793882489204407, -0.09203098714351654, 0.09036193042993546, 0.1187874972820282, -0.4407458007335663, -0.0358116552233696, 0.5218797922134399, -0.10925856232643127, -0.5880441665649414, 0.18034496903419495, 0.1582031399011612, 0.4983982443809509, 0.4892408847808838, -0.17613516747951508, 0.3594149351119995, 0.008330905809998512, 0.808562695980072, -0.058018676936626434, 0.31393492221832275, -0.41531792283058167, -0.2455686330795288, -0.3765193521976471, -0.3661709129810333, 0.2574259638786316, 0.4910220503807068, -0.4704797863960266, 0.23600775003433228, -0.2762739062309265, -0.5653060674667358, -0.2922992408275604, 0.210492342710495, 0.5500395894050598, 0.3594977855682373, 0.4153289496898651, -0.5828555822372437, -0.7840166091918945, -0.8783759474754333, 0.29086431860923767, 0.012062253430485725, -0.1660289764404297, 0.18302422761917114, 0.6592690944671631, -0.1834573745727539, 1.146785855293274, -0.8012484908103943, -0.3733702301979065, -0.18838825821876526, 0.033969223499298096, 0.08417749404907227, 0.4428339898586273, 0.8152129054069519, -0.7375990748405457, -0.5256856679916382, -0.35453513264656067, -0.6690372228622437, 0.11466068774461746, 0.19783009588718414, 0.023915767669677734, -0.06869729608297348, 0.47715121507644653, -0.6660616993904114, 0.7684887051582336, 0.7441798448562622, -0.18102538585662842, 0.8784841895103455, -0.10566774010658264, 0.08542525768280029, -0.6708513498306274, 0.04997807368636131, 0.23180611431598663, -0.6245125532150269, -0.38261932134628296, -0.00015337990771513432, 0.020602509379386902, -0.4019697606563568, -0.8608768582344055, 0.40583017468452454, -0.3964330554008484, -0.12157902121543884, -0.32176557183265686, 0.13420651853084564, 0.1232067197561264, 0.6552219390869141, 0.5106894969940186, 0.8609691262245178, 0.5582436919212341, -0.633734405040741, 0.36029624938964844, 0.5039860606193542, -0.5008983612060547, 0.4756263792514801, -0.8511496186256409, -0.06808453798294067, 0.04410244897007942, 0.05504600703716278, -0.722691535949707, -0.3044291138648987, 0.04454696178436279, -0.5052691698074341, 0.34014543890953064, -0.30175769329071045, -0.35872822999954224, -0.4985741078853607, -0.4047386348247528, 0.5497192740440369, 0.7503261566162109, -0.43379518389701843, 0.22530098259449005, 0.6715518236160278, 0.12819737195968628, -0.4481320381164551, -0.7455785870552063, -0.06762230396270752, -0.12882071733474731, -0.7195222973823547, 0.7619311213493347, -0.19195234775543213, 0.15069721639156342, 0.05355893447995186, -0.09329421818256378, -0.43430835008621216, -0.3608125150203705, 0.3348672688007355, 0.2359013855457306, -0.15015453100204468, -0.2363453209400177, -0.11881253123283386, -0.07228859513998032, 0.13938820362091064, 0.11135969310998917, 0.3551424443721771, -0.11037658154964447, -0.13878390192985535, -0.5593428015708923, 0.3597833216190338, 0.5003672242164612, -0.058444906026124954, 0.3415827751159668, 0.82014000415802, -0.4439655542373657, 0.0771235004067421, -0.5717020630836487, -0.21721407771110535, -0.4788663387298584, 0.611247718334198, -0.12157005071640015, -0.8413009643554688, 0.5244751572608948, 0.13068021833896637, -0.34220609068870544, 0.31393560767173767, 0.5330902934074402, 0.056930702179670334, 1.2845854759216309, 1.0268083810806274, -0.01177180279046297, 0.7734957337379456, -0.6369922757148743, -0.21708418428897858, -0.874219536781311, -0.08080033957958221, -0.13895003497600555, -0.21979115903377533, -0.253555566072464, -0.5330399870872498, 0.38467347621917725, 0.27833110094070435, -0.277393102645874, 0.8108698129653931, -0.42373496294021606, 0.40434762835502625, 0.44725900888442993, 0.24919576942920685, -0.07288715988397598, 0.09152951836585999, -0.18090569972991943, -0.4587019383907318, -0.6623604893684387, -0.3797980546951294, 0.6847479343414307, 0.5831802487373352, 0.7451756000518799, -0.13246938586235046, 0.27572470903396606, 0.27939632534980774, 0.13603824377059937, -0.8195505142211914, 0.7033395171165466, -0.23781007528305054, -0.6260461211204529, 0.010000331327319145, -0.23728801310062408, -0.544083833694458, -0.10767072439193726, -0.2951904535293579, -0.9854500889778137, 0.037937574088573456, 0.3849725127220154, -0.5269052982330322, 0.6410980820655823, -0.5646029710769653, 1.0905886888504028, -0.21158486604690552, -0.3464950621128082, -0.11361454427242279, -0.7977564930915833, 0.41163793206214905, 0.27617645263671875, -0.06735291332006454, -0.1722411811351776, 0.1757054328918457, 0.9227674603462219, -0.7512775659561157, 0.8785843253135681, -0.10721389949321747, 0.18630477786064148, 0.6462862491607666, -0.06030167266726494, 0.12877856194972992, -0.12171411514282227, 0.37341558933258057, 0.306796133518219, 0.2381499707698822, -0.005849116016179323, -0.762306272983551, 0.2576538324356079, -0.8194124102592468, -0.40191787481307983, -0.16691254079341888, -0.3633512854576111, 0.08193967491388321, 0.17014119029045105, 0.49020254611968994, 0.49629995226860046, -0.15380242466926575, 0.25586259365081787, 0.722199559211731, -0.1436934471130371, 0.38403427600860596, 0.17506229877471924, -0.5124647617340088, -0.8143059015274048, 0.7752113342285156, 0.19157986342906952, 0.4130123257637024, 0.3985966742038727, -0.0020013684406876564, -0.19610446691513062, -0.31109118461608887, -0.41185232996940613, 0.19642913341522217, -0.7372602224349976, -0.4500814378261566, -0.5268658995628357, -0.3442736864089966, -0.46660059690475464, 0.020479630678892136, -0.6878558397293091, -0.36480849981307983, -0.45650243759155273, -0.22650957107543945, 0.42189961671829224, 0.382420152425766, -0.2992531359195709, 0.5678698420524597, -1.154189944267273, 0.2955254316329956, 0.3778931796550751, 0.5132834315299988, -0.1643347442150116, -0.771815299987793, -0.2811445891857147, -0.06981474161148071, -0.6527736783027649, -0.8479188680648804, 0.5563725829124451, 0.20173859596252441, 0.47451114654541016, 0.5761101841926575, -0.23453497886657715, 0.8279354572296143, -0.6150351166725159, 0.9409627914428711, 0.494331032037735, -1.0932506322860718, 0.6114225387573242, -0.1347341537475586, 0.3302344083786011, 0.4822278916835785, 0.7874155044555664, -0.45217353105545044, 0.3055007755756378, -0.7418655753135681, -0.7051677703857422, 0.6735141277313232, 0.13751067221164703, 0.14609728753566742, 0.03263157233595848, 0.33911070227622986, -0.10855403542518616, 0.29956871271133423, -0.5815846920013428, -0.27054646611213684, -0.3501165509223938, 0.1373409926891327, -0.028602907434105873, -0.4440873861312866, 0.01524269487708807, -0.6248453259468079, 0.5971254706382751, -0.19544896483421326, 0.40832051634788513, 0.30534908175468445, -0.21099214255809784, -0.054717764258384705, -0.16203723847866058, 0.6184051632881165, 0.36909911036491394, -0.46522244811058044, -0.21315641701221466, 0.13011883199214935, -0.7266668081283569, 0.32230421900749207, -0.1457412838935852, -0.1307765394449234, 0.21769464015960693, 0.3505876660346985, 1.2613626718521118, 0.42191219329833984, -0.7404798865318298, 0.840224027633667, -0.030812503769993782, -0.46866244077682495, -0.3611290752887726, 0.0541486032307148, -0.41883817315101624, 0.1701022982597351, 0.05535348504781723, 0.14018283784389496, 0.07517512887716293, -0.4852578341960907, 0.5700214505195618, 0.4536949098110199, -0.656365692615509, -0.7450492978096008, 0.7213289141654968, -0.06316143274307251, -0.30406486988067627, 0.6622245907783508, -0.16622716188430786, -0.9719994068145752, 0.48815324902534485, 0.3763344883918762, 0.9032982587814331, -0.02298661321401596, 0.3101918399333954, 0.7093003988265991, -0.10767149180173874, -0.13522925972938538, 0.10277952998876572, -0.37174952030181885, -0.7250769138336182, -0.6264681816101074, -0.4053933918476105, -0.5745209455490112, 0.058518633246421814, -1.0534944534301758, 0.748084306716919, -0.4987204670906067, -0.6138290166854858, -0.03232889249920845, -0.04075252264738083, -0.8485201001167297, 0.4086748957633972, 0.3846415877342224, 1.5198633670806885, -0.8549220561981201, 0.7423224449157715, 0.5723891258239746, -0.522566020488739, -0.8004462122917175, -0.41842979192733765, 0.04011930152773857, -0.7004036903381348, 0.7048215270042419, 0.2707812488079071, 0.15870876610279083, -0.27539387345314026, -0.8261386156082153, -1.0659785270690918, 1.032529592514038, 0.5548902153968811, -0.3999277651309967, -0.2888754606246948, 0.02746446430683136, 0.3434012234210968, -0.3717779219150543, 0.5262510776519775, 0.5227888822555542, 0.029781505465507507, 0.4072522819042206, -1.006001353263855, -0.10749626159667969, -0.2546747922897339, -0.02774633839726448, 0.0819779559969902, -0.6755337715148926, 0.8682241439819336, -0.3677200973033905, -0.08520306646823883, 0.13870097696781158, 0.7493462562561035, 0.21184703707695007, 0.07181751728057861, 0.4932623505592346, 0.8953372836112976, 0.2934890389442444, 0.1051882803440094, 1.0229805707931519, -0.22069762647151947, 0.495211660861969, 1.141425609588623, -0.05221452936530113, 0.8457157611846924, 0.34957626461982727, -0.43546295166015625, 0.6254826188087463, 0.47579503059387207, -0.2905735373497009, 0.5526443123817444, 0.020779818296432495, 0.027980612590909004, -0.4077240824699402, -0.1321963369846344, -0.26669400930404663, 0.5198363661766052, 0.20225004851818085, -0.5191627740859985, -0.32678353786468506, 0.30876943469047546, 0.18953385949134827, -0.17025336623191833, -0.4429342448711395, 0.5734297037124634, -0.009297413751482964, -0.6644585132598877, 0.48533397912979126, -0.20584790408611298, 0.6642237901687622, -0.8756549954414368, -0.15933158993721008, 0.18302828073501587, 0.34749072790145874, -0.272952139377594, -1.1269922256469727, 0.4586964249610901, 0.21647977828979492, -0.4299834966659546, -0.1647605150938034, 0.5840470194816589, -0.33969274163246155, -0.35932695865631104, 0.32175084948539734, -0.06811211258172989, 0.3295292854309082, -0.43060302734375, -0.8069681525230408, 0.5971702933311462, 0.08326676487922668, -0.1333768218755722, 0.48330941796302795, 0.18341991305351257, -0.09807910025119781, 0.7060100436210632, 0.40273037552833557, -0.04383591189980507, -0.04902416467666626, -0.12102191150188446, 1.0319257974624634, -0.6157616972923279, -0.4302779734134674, -0.7925795912742615, 0.6039326190948486, -0.09232494980096817, -0.36769387125968933, 0.7087218761444092, 0.47302186489105225, 1.0297660827636719, -0.1964942365884781, 0.5061092376708984, 0.024176761507987976, 0.2500113844871521, -0.5202401280403137, 0.3530857563018799, -0.49045297503471375, -0.31289324164390564, -0.7244710922241211, -0.6891382932662964, -0.34377190470695496, 0.5711299180984497, -0.25734463334083557, 0.08839531242847443, 0.47285059094429016, 0.5295965671539307, -0.22223639488220215, -0.18090635538101196, 0.33251863718032837, 0.039353664964437485, 0.25192999839782715, 0.4490184187889099, 0.4299321472644806, -0.7073647975921631, 0.8460595011711121, -0.7433550357818604, -0.34371715784072876, -0.10481549054384232, -1.120017647743225, -0.8669565916061401, -0.40616196393966675, -0.8644363284111023, -0.3083520829677582, -0.15999260544776917, 0.9909068942070007, 1.356131911277771, -0.5995131134986877, -0.21974828839302063, 0.16833363473415375, -0.11584089696407318, -0.20641224086284637, -0.2129209339618683, 0.31873977184295654, 0.10826212912797928, -0.6192888021469116, -0.013570195063948631, 0.1858593374490738, 0.34689298272132874, -0.22734753787517548, 0.03979212045669556, -0.0851413905620575, -0.285927414894104, 0.6762031316757202, 0.6617823839187622, -0.36252090334892273, -0.42905566096305847, 0.1111036166548729, 0.2295299619436264, 0.45117950439453125, 0.7442783117294312, -0.9333187341690063, 0.2911732494831085, 0.4749091565608978, 0.33304765820503235, 0.8579902648925781, 0.12035899609327316, 0.44715264439582825, -0.8026073575019836, 0.20713189244270325, -0.046590037643909454, 0.5319311618804932, 0.4011126756668091, -0.14595165848731995, 0.44389307498931885, 0.37023457884788513, -0.5652363896369934, -0.8355997204780579, 0.15474596619606018, -1.167816162109375, 0.05203917622566223, 0.9303158521652222, -0.3863820731639862, -0.5619950890541077, 0.4819841980934143, -0.4127756655216217, 0.18927110731601715, -0.25189709663391113, 0.30545392632484436, 0.46665340662002563, -0.049010295420885086, -0.5918524861335754, -0.34074029326438904, 0.5236688852310181, 0.1230449303984642, -0.3595476746559143, -0.19810616970062256, 0.20787902176380157, 0.6362656354904175, 0.4052881598472595, 0.4333476126194, -0.15649555623531342, 0.4123256802558899, 0.015341958031058311, 0.36368227005004883, -0.06415729969739914, -0.34944868087768555, -0.36116823554039, 0.181148499250412, -0.32926979660987854, -0.40515947341918945 ]
Helsinki-NLP/opus-mt-ja-en
Helsinki-NLP
"2023-08-16T11:59:08Z"
24,015
32
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ja", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-ja-en * source languages: ja * target languages: en * OPUS readme: [ja-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/ja-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-18.zip](https://object.pouta.csc.fi/OPUS-MT-models/ja-en/opus-2019-12-18.zip) * test set translations: [opus-2019-12-18.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/ja-en/opus-2019-12-18.test.txt) * test set scores: [opus-2019-12-18.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/ja-en/opus-2019-12-18.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.ja.en | 41.7 | 0.589 |
[ -0.29566654562950134, -0.5089271664619446, 0.278222918510437, 0.40421220660209656, -0.467306524515152, -0.41409608721733093, -0.509518027305603, -0.1013902872800827, 0.0905810296535492, 0.5522133111953735, -0.7564701437950134, -0.5889558792114258, -0.6692808866500854, 0.24155303835868835, -0.053691405802965164, 0.8222841024398804, -0.1684918999671936, 0.5174787044525146, 0.21094945073127747, -0.46978989243507385, -0.3769527077674866, -0.38109922409057617, -0.553884744644165, -0.38918012380599976, 0.30731531977653503, 0.40274858474731445, 0.4840625822544098, 0.3670436143875122, 0.9873880743980408, 0.26404228806495667, -0.11477150768041611, 0.04886598512530327, -0.4960874021053314, 0.01015231478959322, 0.07769040763378143, -0.6583250761032104, -0.7323699593544006, -0.2227872908115387, 1.1822532415390015, 0.4899502098560333, 0.0229000523686409, 0.42653486132621765, -0.06964119523763657, 1.0574147701263428, -0.4130583703517914, 0.18657635152339935, -0.6286523938179016, 0.08408643305301666, -0.41577279567718506, -0.28580838441848755, -0.7889060378074646, -0.2695854604244232, 0.15521392226219177, -0.7854543328285217, -0.1193997785449028, 0.12601211667060852, 1.5960805416107178, 0.28999942541122437, -0.34892189502716064, -0.11433397233486176, -0.6243141293525696, 1.1364431381225586, -0.9004735946655273, 0.6201223731040955, 0.4479438066482544, 0.3508493900299072, 0.23847225308418274, -0.5571471452713013, -0.31529465317726135, 0.11536169797182083, -0.22836774587631226, 0.248357892036438, -0.07995663583278656, -0.2409665733575821, 0.395221471786499, 0.7989221215248108, -0.8274385929107666, -0.07023648172616959, -0.5574119091033936, -0.01738092675805092, 0.75089430809021, 0.0772525891661644, 0.22915121912956238, -0.23366902768611908, -0.43286898732185364, -0.6496873497962952, -0.7673437595367432, 0.1259414404630661, 0.3719562590122223, 0.40194573998451233, -0.5010368824005127, 0.7812349796295166, -0.20314723253250122, 0.6861649751663208, -0.060244739055633545, -0.06859170645475388, 1.0964491367340088, -0.446746826171875, -0.42206698656082153, -0.16399750113487244, 1.3361742496490479, 0.31758370995521545, 0.1215677335858345, 0.08727588504552841, -0.2795936167240143, -0.35967880487442017, 0.1440056562423706, -0.9485009908676147, -0.06419271975755692, 0.04280833899974823, -0.487215131521225, -0.15255624055862427, 0.06268049776554108, -0.6837138533592224, 0.2010980099439621, -0.4336355924606323, 0.7299283742904663, -0.7441356182098389, -0.3374122977256775, 0.3779967427253723, 0.00936616025865078, 0.42917680740356445, 0.0011806314578279853, -0.6741772890090942, 0.19379310309886932, 0.363170325756073, 0.8260673880577087, -0.34565290808677673, -0.22517326474189758, -0.41320520639419556, -0.17827481031417847, -0.14799878001213074, 0.6455084681510925, -0.09119632840156555, -0.4694344401359558, -0.06965430825948715, 0.5242711901664734, -0.4306860566139221, -0.2840648591518402, 1.3807048797607422, -0.3625521659851074, 0.8106253147125244, -0.576865017414093, -0.5770140290260315, -0.4233991503715515, 0.5216861963272095, -0.6449925303459167, 1.388148307800293, 0.16433610022068024, -0.9443317651748657, 0.2265295386314392, -0.9938260316848755, -0.24809160828590393, 0.022826939821243286, 0.08768502622842789, -0.7899289727210999, 0.1170865073800087, 0.19674311578273773, 0.41792741417884827, -0.38835790753364563, 0.3870457112789154, 0.010659011080861092, -0.37997564673423767, 0.09180868417024612, -0.4041021764278412, 1.1681829690933228, 0.3413148522377014, -0.3640521466732025, 0.1785331815481186, -0.9731932282447815, -0.026523612439632416, 0.07224141061306, -0.4628905653953552, -0.30104294419288635, 0.0851907953619957, 0.27487629652023315, 0.07829095423221588, 0.3754260838031769, -0.7017297744750977, 0.31071585416793823, -0.7730412483215332, 0.043722040951251984, 0.6811846494674683, -0.29216253757476807, 0.3615840971469879, -0.46066781878471375, 0.4205775558948517, 0.13740471005439758, 0.11424466222524643, -0.041229818016290665, -0.5270771384239197, -0.976696252822876, -0.21462638676166534, 0.6756218671798706, 1.1080832481384277, -0.9523525238037109, 0.9407910704612732, -0.7992449402809143, -0.8949800729751587, -0.8493120074272156, -0.20059499144554138, 0.6062318086624146, 0.3886084258556366, 0.5528435707092285, -0.2711217403411865, -0.49009039998054504, -1.2455893754959106, -0.1934034824371338, -0.17223230004310608, -0.20564518868923187, 0.1834796667098999, 0.6528552770614624, -0.18934547901153564, 0.6090195178985596, -0.5923193693161011, -0.3871237635612488, -0.22447039186954498, 0.17744246125221252, 0.5477132201194763, 0.6923846006393433, 0.636386513710022, -0.9101613163948059, -0.6758747696876526, 0.01568283699452877, -0.8556520342826843, -0.18755488097667694, 0.054683391004800797, -0.26925408840179443, 0.08497540652751923, 0.03706115484237671, -0.3106634318828583, 0.1077083945274353, 0.647113025188446, -0.6428842544555664, 0.5762648582458496, -0.051149193197488785, 0.3851577341556549, -1.547228217124939, 0.19493582844734192, -0.11995457857847214, -0.16761066019535065, -0.4916246831417084, 0.09559513628482819, 0.2861914336681366, 0.051582202315330505, -0.889668345451355, 0.54053795337677, -0.2948414981365204, -0.12203793972730637, 0.2829242944717407, -0.04607885330915451, 0.11238301545381546, 0.8069403767585754, -0.08472663164138794, 0.997374951839447, 0.8117726445198059, -0.5376314520835876, 0.19470781087875366, 0.6460493206977844, -0.5131726264953613, 0.3567693829536438, -0.863296627998352, -0.3324366807937622, 0.3338494896888733, -0.12342344224452972, -0.6942703127861023, 0.043537840247154236, 0.37276288866996765, -0.7025939226150513, 0.5085461735725403, -0.05808405950665474, -0.8284981846809387, -0.03960558772087097, -0.35885724425315857, 0.5168132781982422, 0.7834875583648682, -0.1668350100517273, 0.6674067974090576, 0.12053193897008896, -0.048767779022455215, -0.5232636332511902, -1.157007098197937, -0.1419714242219925, -0.3715302646160126, -0.7677446603775024, 0.18520089983940125, -0.40209653973579407, -0.022337310016155243, 0.0027696520555764437, 0.37416693568229675, -0.09361904114484787, 0.10704535245895386, 0.08090239018201828, 0.22994132339954376, -0.5847477316856384, 0.1467801034450531, 0.10412200540304184, -0.16757479310035706, -0.13572439551353455, -0.09569819271564484, 0.6330009698867798, -0.39511606097221375, -0.28900158405303955, -0.6901511549949646, 0.031116828322410583, 0.6276577711105347, -0.37477514147758484, 0.9922715425491333, 0.6021402478218079, -0.09137097746133804, 0.2523956298828125, -0.4580625891685486, 0.16006511449813843, -0.48756733536720276, 0.14771457016468048, -0.5641475915908813, -0.8235598802566528, 0.56831294298172, 0.11189529299736023, 0.480035662651062, 0.9824621677398682, 0.6847272515296936, 0.14697790145874023, 0.7193623185157776, 0.3014550507068634, -0.0358571857213974, 0.5071370005607605, -0.48488518595695496, -0.1473453938961029, -1.1559758186340332, 0.11157948523759842, -0.7698256373405457, -0.33112892508506775, -0.9375807642936707, -0.24993634223937988, 0.35414445400238037, 0.011769820004701614, -0.3160223066806793, 0.7656734585762024, -0.6511163711547852, 0.3267917037010193, 0.6555657386779785, -0.13859589397907257, 0.3272920846939087, 0.01608145795762539, -0.5654307007789612, -0.27945876121520996, -0.45730191469192505, -0.5563234686851501, 1.4135677814483643, 0.433645635843277, 0.3579408526420593, 0.27448198199272156, 0.531551718711853, 0.024851972237229347, 0.223103329539299, -0.6691436171531677, 0.5409590601921082, -0.25102218985557556, -0.8186627626419067, -0.36524492502212524, -0.6565901041030884, -0.9253037571907043, 0.526522159576416, -0.2781617045402527, -0.5518120527267456, 0.11603870242834091, -0.06383459270000458, -0.07301139086484909, 0.5043504238128662, -0.784161388874054, 1.2185944318771362, -0.06221650540828705, -0.06258177757263184, 0.35019418597221375, -0.575860321521759, 0.38615792989730835, -0.0288531593978405, 0.27604272961616516, -0.22578983008861542, 0.1960534304380417, 0.7286864519119263, -0.07820434868335724, 0.48835185170173645, -0.11418989300727844, -0.010631551034748554, 0.07170673459768295, 0.08902602642774582, 0.366242378950119, -0.12217042595148087, -0.5166452527046204, 0.40946272015571594, 0.04458412528038025, -0.5095400810241699, -0.14450061321258545, 0.6119710206985474, -0.9099892377853394, -0.0692521259188652, -0.5243031978607178, -0.6998474597930908, -0.02101435884833336, 0.40690362453460693, 0.753635823726654, 0.7350148558616638, -0.2601132392883301, 0.6464065909385681, 0.8988437652587891, -0.3713599443435669, 0.43321743607521057, 0.7840577960014343, -0.24859555065631866, -0.582131564617157, 0.9139996767044067, 0.13182774186134338, 0.4245368242263794, 0.680404007434845, 0.1548241376876831, -0.13198721408843994, -0.7634561657905579, -0.8287010192871094, 0.27533867955207825, -0.3459846079349518, -0.25409817695617676, -0.5866668224334717, -0.1644396185874939, -0.35796451568603516, 0.2377234697341919, -0.5906732082366943, -0.6300215721130371, -0.13185086846351624, -0.18946100771427155, 0.2532729208469391, 0.2522553503513336, 0.019170008599758148, 0.544498860836029, -1.1428450345993042, 0.17581069469451904, -0.15992888808250427, 0.40591397881507874, -0.48139429092407227, -0.8645357489585876, -0.5578678250312805, 0.09229786694049835, -0.7711855173110962, -0.7657738924026489, 0.5725466012954712, 0.10599225759506226, 0.26171576976776123, 0.3618262708187103, 0.22042036056518555, 0.4489356577396393, -0.6996935606002808, 1.171067476272583, -0.010975908488035202, -0.8502441644668579, 0.6069974303245544, -0.5246961116790771, 0.5959944725036621, 1.0835483074188232, 0.32633283734321594, -0.37547576427459717, -0.6399350762367249, -0.778365433216095, -0.861935019493103, 0.9410325884819031, 0.8131020069122314, -0.18271689116954803, 0.251877099275589, -0.07612781971693039, -0.0026388338301330805, 0.1491016149520874, -1.3390893936157227, -0.421580046415329, 0.05906715244054794, -0.4288092851638794, -0.209194153547287, -0.3036147356033325, -0.21804796159267426, -0.1890948861837387, 1.2581017017364502, 0.16982078552246094, 0.24371014535427094, 0.42742812633514404, -0.19454385340213776, -0.2974493205547333, 0.39196914434432983, 1.0064951181411743, 0.5430344939231873, -0.5625441670417786, -0.26147139072418213, 0.3641880750656128, -0.43110352754592896, -0.1298537403345108, 0.11673838645219803, -0.5602522492408752, 0.36562445759773254, 0.5352527499198914, 1.234269380569458, 0.2561444044113159, -0.6769498586654663, 0.5402894616127014, -0.40782681107521057, -0.4539714455604553, -0.7365549802780151, -0.10554162412881851, 0.07249680161476135, -0.045732807368040085, 0.2403036504983902, 0.13182078301906586, 0.25078284740448, -0.19831441342830658, 0.09481172263622284, 0.11170529574155807, -0.6970921158790588, -0.5679166316986084, 0.46749556064605713, 0.14790186285972595, -0.3343782424926758, 0.5100850462913513, -0.447822242975235, -0.580276370048523, 0.4018259346485138, 0.13691449165344238, 1.18239164352417, -0.2667597532272339, -0.2626836895942688, 0.8621523976325989, 0.6333434581756592, -0.2799963057041168, 0.4682934284210205, 0.09725978225469589, -0.7877727150917053, -0.6268317699432373, -0.95011305809021, -0.25595930218696594, 0.12428835034370422, -0.978980541229248, 0.415287047624588, 0.32282137870788574, 0.028977733105421066, -0.3631105124950409, 0.29451051354408264, -0.5239294171333313, 0.15247231721878052, -0.2566269636154175, 1.1048696041107178, -1.0799756050109863, 0.9710958003997803, 0.5850359201431274, -0.33811303973197937, -0.9299189448356628, -0.22821904718875885, -0.22544416785240173, -0.4968911409378052, 0.5899697542190552, 0.2520190179347992, 0.3377128541469574, -0.21442121267318726, -0.21809671819210052, -0.9247853755950928, 1.2484164237976074, 0.21306784451007843, -0.726439893245697, 0.039866749197244644, 0.1743692010641098, 0.5253881812095642, -0.3298723101615906, 0.20676805078983307, 0.4733302593231201, 0.8370499014854431, 0.08253572136163712, -1.240496277809143, -0.32480886578559875, -0.5987504720687866, -0.25662961602211, 0.6426451802253723, -0.6421784162521362, 0.9786811470985413, 0.5719348788261414, -0.1295047551393509, 0.13232538104057312, 0.6646832823753357, 0.35673987865448, 0.3687160909175873, 0.6234138011932373, 1.2834014892578125, 0.33438923954963684, -0.5663036704063416, 1.158543586730957, -0.3218803405761719, 0.5729837417602539, 1.2291431427001953, -0.07553921639919281, 0.9146144390106201, 0.2924257814884186, -0.16427916288375854, 0.603107213973999, 0.6476317048072815, -0.2554193139076233, 0.5462772846221924, 0.016594532877206802, 0.1521608531475067, -0.17480573058128357, 0.2473263144493103, -0.8153746128082275, 0.31404200196266174, 0.21849456429481506, -0.25587958097457886, 0.07129653543233871, -0.010988716967403889, 0.0648978129029274, 0.016021728515625, -0.15229223668575287, 0.737485408782959, -0.061964865773916245, -0.7030347585678101, 0.7549101710319519, -0.06843386590480804, 0.7556968331336975, -0.8391165733337402, 0.2171681523323059, -0.019121283665299416, 0.236811101436615, 0.06996273994445801, -0.6693083643913269, 0.5600545406341553, -0.0026739288587123156, -0.30158036947250366, -0.48496705293655396, 0.29276561737060547, -0.5646190047264099, -1.0247935056686401, 0.4112333357334137, 0.4659568667411804, 0.37012702226638794, 0.12374947965145111, -1.0083324909210205, 0.07987532019615173, 0.21357832849025726, -0.8032543659210205, 0.10425645858049393, 0.7832427620887756, 0.35197725892066956, 0.5086839199066162, 0.662196695804596, 0.2547883689403534, 0.16769619286060333, 0.030005881562829018, 0.7697539925575256, -0.5498029589653015, -0.48927226662635803, -0.8524938821792603, 0.8852575421333313, -0.22061125934123993, -0.7369288802146912, 0.8196304440498352, 1.1140944957733154, 1.0896235704421997, -0.19158847630023956, 0.34974992275238037, -0.0521358847618103, 0.8713019490242004, -0.7328627109527588, 0.6963207721710205, -1.050270676612854, 0.2345200926065445, -0.19528153538703918, -0.962973952293396, -0.29327133297920227, 0.42738837003707886, -0.23350393772125244, -0.365543931722641, 0.8258351683616638, 0.7296855449676514, -0.188884899020195, -0.17223237454891205, 0.34172019362449646, 0.3303900361061096, 0.27058687806129456, 0.6807617545127869, 0.42888715863227844, -1.1445590257644653, 0.5328148007392883, -0.32881906628608704, -0.09964054822921753, -0.05972777307033539, -0.7705119848251343, -0.9147281050682068, -0.6729668378829956, -0.23178143799304962, -0.2142496556043625, -0.30174797773361206, 0.9927442669868469, 0.5759202837944031, -1.0324583053588867, -0.60346519947052, 0.012321253307163715, 0.150517076253891, -0.2026372104883194, -0.30393797159194946, 0.5908207893371582, -0.4040292203426361, -1.0827209949493408, 0.5153957009315491, 0.10919743776321411, -0.09834672510623932, 0.0008191521046683192, -0.2972698211669922, -0.5720750689506531, -0.05577356740832329, 0.31683671474456787, 0.037860073149204254, -0.6149907112121582, 0.10955806076526642, 0.06311961263418198, -0.11738414317369461, 0.3700447380542755, 0.3929176330566406, -0.3044966161251068, 0.3642500042915344, 0.9012288451194763, 0.45507383346557617, 0.5113232731819153, -0.1526210606098175, 0.5897642970085144, -0.8525017499923706, 0.41109395027160645, 0.2538298964500427, 0.6939803957939148, 0.428138792514801, -0.07072252780199051, 0.9071017503738403, 0.2540096342563629, -0.7387567758560181, -1.1446139812469482, 0.0913127064704895, -1.3685704469680786, -0.035657934844493866, 0.9986840486526489, -0.36120864748954773, -0.3383793532848358, 0.391785204410553, -0.1602148562669754, 0.21913224458694458, -0.3942406475543976, 0.42872199416160583, 0.9567691683769226, 0.44527456164360046, 0.07305551320314407, -0.7387539744377136, 0.3493083715438843, 0.6031512022018433, -0.8072928190231323, -0.2570854127407074, 0.22563542425632477, 0.12216154485940933, 0.48265188932418823, 0.5498859882354736, -0.32711467146873474, 0.14236551523208618, -0.34387221932411194, 0.46827805042266846, -0.09894801676273346, -0.16549783945083618, -0.33219271898269653, 0.01086116861552, -0.032717909663915634, -0.32995858788490295 ]
flair/ner-german-large
flair
"2022-08-28T09:08:06Z"
23,987
26
flair
[ "flair", "pytorch", "token-classification", "sequence-tagger-model", "de", "dataset:conll2003", "arxiv:2011.06993", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- tags: - flair - token-classification - sequence-tagger-model language: de datasets: - conll2003 widget: - text: "George Washington ging nach Washington" --- ## German NER in Flair (large model) This is the large 4-class NER model for German that ships with [Flair](https://github.com/flairNLP/flair/). F1-Score: **92,31** (CoNLL-03 German revised) Predicts 4 tags: | **tag** | **meaning** | |---------------------------------|-----------| | PER | person name | | LOC | location name | | ORG | organization name | | MISC | other name | Based on document-level XLM-R embeddings and [FLERT](https://arxiv.org/pdf/2011.06993v1.pdf). --- ### Demo: How to use in Flair Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`) ```python from flair.data import Sentence from flair.models import SequenceTagger # load tagger tagger = SequenceTagger.load("flair/ner-german-large") # make example sentence sentence = Sentence("George Washington ging nach Washington") # predict NER tags tagger.predict(sentence) # print sentence print(sentence) # print predicted NER spans print('The following NER tags are found:') # iterate over entities and print for entity in sentence.get_spans('ner'): print(entity) ``` This yields the following output: ``` Span [1,2]: "George Washington" [− Labels: PER (1.0)] Span [5]: "Washington" [− Labels: LOC (1.0)] ``` So, the entities "*George Washington*" (labeled as a **person**) and "*Washington*" (labeled as a **location**) are found in the sentence "*George Washington ging nach Washington*". --- ### Training: Script to train this model The following Flair script was used to train this model: ```python import torch # 1. get the corpus from flair.datasets import CONLL_03_GERMAN corpus = CONLL_03_GERMAN() # 2. what tag do we want to predict? tag_type = 'ner' # 3. make the tag dictionary from the corpus tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type) # 4. initialize fine-tuneable transformer embeddings WITH document context from flair.embeddings import TransformerWordEmbeddings embeddings = TransformerWordEmbeddings( model='xlm-roberta-large', layers="-1", subtoken_pooling="first", fine_tune=True, use_context=True, ) # 5. initialize bare-bones sequence tagger (no CRF, no RNN, no reprojection) from flair.models import SequenceTagger tagger = SequenceTagger( hidden_size=256, embeddings=embeddings, tag_dictionary=tag_dictionary, tag_type='ner', use_crf=False, use_rnn=False, reproject_embeddings=False, ) # 6. initialize trainer with AdamW optimizer from flair.trainers import ModelTrainer trainer = ModelTrainer(tagger, corpus, optimizer=torch.optim.AdamW) # 7. run training with XLM parameters (20 epochs, small LR) from torch.optim.lr_scheduler import OneCycleLR trainer.train('resources/taggers/ner-german-large', learning_rate=5.0e-6, mini_batch_size=4, mini_batch_chunk_size=1, max_epochs=20, scheduler=OneCycleLR, embeddings_storage_mode='none', weight_decay=0., ) ) ``` --- ### Cite Please cite the following paper when using this model. ``` @misc{schweter2020flert, title={FLERT: Document-Level Features for Named Entity Recognition}, author={Stefan Schweter and Alan Akbik}, year={2020}, eprint={2011.06993}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` --- ### Issues? The Flair issue tracker is available [here](https://github.com/flairNLP/flair/issues/).
[ -0.5486577153205872, -0.5818594694137573, 0.3083069622516632, -0.00800122320652008, -0.11309636384248734, -0.17814427614212036, -0.27553191781044006, -0.4808814823627472, 0.4086131155490875, 0.2909591794013977, -0.4861382842063904, -0.6081026196479797, -0.514140248298645, 0.2537667155265808, -0.14199087023735046, 1.1567274332046509, 0.016354598104953766, 0.3248372972011566, 0.043618571013212204, -0.01333948876708746, -0.21734130382537842, -0.6322789192199707, -0.7939812541007996, -0.46788352727890015, 0.7054911851882935, 0.28453660011291504, 0.46126455068588257, 0.6768108010292053, 0.40088731050491333, 0.28712978959083557, -0.17591124773025513, -0.020846305415034294, -0.2967585325241089, -0.21243923902511597, -0.07564791291952133, -0.3013175129890442, -0.7435938715934753, 0.024360748007893562, 0.7250795960426331, 0.38846346735954285, 0.14231540262699127, 0.017371870577335358, -0.05730149522423744, 0.24384860694408417, -0.2666112184524536, 0.3458879590034485, -0.6323726177215576, -0.16880252957344055, -0.20066848397254944, 0.03643998131155968, -0.4840398132801056, -0.2054104208946228, 0.2867740988731384, -0.4749997556209564, 0.27880263328552246, 0.17203140258789062, 1.4729030132293701, 0.14398400485515594, -0.44781234860420227, -0.1035466194152832, -0.6225278973579407, 0.8664426207542419, -1.0218260288238525, 0.4476134777069092, 0.21486923098564148, -0.03836701065301895, -0.005807683803141117, -0.7674816250801086, -0.6357036828994751, -0.19668801128864288, -0.09653064608573914, 0.15006977319717407, -0.3426598012447357, -0.12013501673936844, 0.43615296483039856, 0.04063599556684494, -0.7195195555686951, 0.15030957758426666, -0.3058266043663025, -0.2571835517883301, 0.6841191053390503, 0.15189671516418457, 0.024362055584788322, -0.20080207288265228, -0.5017087459564209, -0.22007806599140167, -0.35448768734931946, -0.13301776349544525, 0.2701413333415985, 0.41161805391311646, -0.2211034744977951, 0.385130375623703, -0.013130499050021172, 0.7656223177909851, 0.22789309918880463, -0.19738128781318665, 0.7261355519294739, -0.011509280651807785, -0.19035810232162476, 0.06729904562234879, 0.8709810376167297, 0.28942248225212097, 0.21481575071811676, -0.141914501786232, -0.24511510133743286, 0.031377628445625305, -0.10275842994451523, -0.9273048639297485, -0.34419041872024536, 0.20167778432369232, -0.2980571687221527, -0.25271642208099365, 0.2096577286720276, -0.7311049699783325, -0.08052706718444824, -0.15095064043998718, 0.6682865023612976, -0.6289207935333252, -0.13425064086914062, -0.02163359336555004, -0.29471662640571594, 0.4737175703048706, 0.1899690181016922, -0.8141193985939026, 0.009842947125434875, 0.3526545763015747, 0.6550478339195251, 0.16861961781978607, -0.4273639917373657, -0.36013609170913696, -0.09413781762123108, -0.2660999000072479, 0.6793023943901062, -0.3459252715110779, -0.2179732322692871, -0.07414276152849197, 0.23006024956703186, -0.27671536803245544, -0.24862413108348846, 0.5776305198669434, -0.7269557118415833, 0.3358076214790344, -0.20007507503032684, -0.9046793580055237, -0.477294921875, 0.19643515348434448, -0.6679964661598206, 0.9804761409759521, 0.22849802672863007, -1.090862512588501, 0.4626648724079132, -0.46250832080841064, -0.38118258118629456, 0.04975651577115059, -0.029576685279607773, -0.6289829015731812, -0.14102406799793243, 0.08311175554990768, 0.7310169339179993, -0.11949565261602402, 0.24398918449878693, -0.35074228048324585, -0.057780634611845016, 0.1474149525165558, 0.022390320897102356, 0.7509798407554626, 0.12701009213924408, -0.4343838393688202, 0.1416490375995636, -0.9109376072883606, 0.038854777812957764, 0.3138074278831482, -0.41040903329849243, -0.06897640973329544, -0.1424470841884613, 0.32777947187423706, 0.32662755250930786, 0.2556583881378174, -0.46153688430786133, 0.3228644132614136, -0.4412975609302521, 0.41789737343788147, 0.575442373752594, 0.015186285600066185, 0.5257089138031006, -0.42871683835983276, 0.411760538816452, 0.07551299035549164, -0.2615654170513153, -0.04514792561531067, -0.501798689365387, -0.8618013262748718, -0.2539539039134979, 0.5444021224975586, 0.6454793214797974, -0.6186341047286987, 0.832499086856842, -0.39257746934890747, -0.9189620614051819, -0.2262035608291626, -0.22198502719402313, 0.23539932072162628, 0.6887146234512329, 0.5244115591049194, -0.028561115264892578, -0.7900518774986267, -0.9144131541252136, -0.0437433235347271, 0.06354428082704544, 0.14686399698257446, 0.2608513832092285, 1.0312281847000122, -0.4435485899448395, 0.8479687571525574, -0.4748704433441162, -0.3605501055717468, -0.45277661085128784, 0.16807733476161957, 0.5269180536270142, 0.6261926293373108, 0.5538108348846436, -0.6628380417823792, -0.7124531269073486, -0.08068481087684631, -0.5712925791740417, 0.21689926087856293, -0.12694287300109863, 0.013138565234839916, 0.548929750919342, 0.42139357328414917, -0.5404391288757324, 0.4030436873435974, 0.3090629279613495, -0.5038436651229858, 0.5453476309776306, -0.13052970170974731, -0.2834199070930481, -1.2974729537963867, 0.34012851119041443, 0.24536731839179993, -0.2658090591430664, -0.6546911001205444, -0.2568603754043579, 0.2416648268699646, 0.14861303567886353, -0.3828009366989136, 0.8471891283988953, -0.4582919776439667, 0.1725546270608902, -0.1389838308095932, -0.034729551523923874, 0.021045587956905365, 0.38475945591926575, 0.3315448760986328, 0.41853541135787964, 0.6563851237297058, -0.6095755100250244, 0.20614778995513916, 0.3812526762485504, -0.39259445667266846, 0.23079925775527954, -0.5289931893348694, -0.007756996434181929, -0.0781102254986763, 0.35838791728019714, -0.7310492396354675, -0.37269294261932373, 0.2008899599313736, -0.5734670162200928, 0.7862676978111267, -0.014454854652285576, -0.4549393653869629, -0.5244627594947815, -0.1635926514863968, 0.04148639366030693, 0.5288612246513367, -0.4779661297798157, 0.6546233296394348, 0.16323059797286987, 0.13940468430519104, -0.7239851951599121, -0.608506441116333, -0.12081228941679001, -0.33199775218963623, -0.6935980319976807, 0.6812582015991211, -0.05669410154223442, 0.05539441108703613, 0.09571272134780884, -0.09640522301197052, 0.05265844613313675, 0.08463283628225327, 0.11717207729816437, 0.5325781106948853, -0.2074832320213318, 0.057214219123125076, -0.34736892580986023, -0.1377611607313156, -0.032061412930488586, -0.23405641317367554, 0.8493480682373047, -0.23209404945373535, 0.2217898666858673, -0.5171182155609131, 0.09847892820835114, 0.3320118486881256, -0.23903365433216095, 1.0166970491409302, 1.0428885221481323, -0.5329951047897339, -0.18406528234481812, -0.4914180338382721, -0.3181213438510895, -0.3963559567928314, 0.6973223090171814, -0.4086662232875824, -0.7070848941802979, 0.6238705515861511, 0.12207110226154327, 0.1055777445435524, 0.8945549726486206, 0.43006432056427, 0.04614889249205589, 1.1777173280715942, 0.6979327201843262, -0.19293156266212463, 0.5439844131469727, -0.7464140057563782, 0.14329731464385986, -0.8607723116874695, -0.18773552775382996, -0.5063195824623108, -0.20215913653373718, -0.6467754244804382, -0.20871742069721222, 0.2034849226474762, 0.2950093150138855, -0.7147595882415771, 0.6009365320205688, -0.5077480673789978, 0.15406882762908936, 0.6453362703323364, 0.02260892651975155, -0.10675586760044098, -0.1385699212551117, -0.25513026118278503, -0.15734653174877167, -0.7805650234222412, -0.6059534549713135, 0.9781838059425354, 0.418391615152359, 0.7656410336494446, -0.18070708215236664, 0.9738240242004395, -0.16917678713798523, 0.3045385777950287, -0.8548508882522583, 0.4414675235748291, -0.024594636633992195, -0.840691864490509, -0.1473032385110855, -0.42372050881385803, -0.9884524345397949, 0.11421076208353043, -0.414929062128067, -0.9157249331474304, 0.1621614396572113, 0.06373835355043411, -0.4073828160762787, 0.5459223985671997, -0.480290025472641, 1.070916771888733, -0.1933213472366333, -0.2679908275604248, 0.23176556825637817, -0.8041712641716003, 0.10290080308914185, -0.10362191498279572, 0.22756750881671906, -0.12476055324077606, 0.06729452311992645, 1.1134977340698242, -0.2567042112350464, 0.7913312315940857, -0.11679600179195404, 0.08793989568948746, 0.04321669042110443, -0.1113201454281807, 0.6196160316467285, 0.00541845615953207, -0.28114554286003113, 0.20225976407527924, -0.0300274807959795, -0.221846804022789, -0.10943970084190369, 0.7494058609008789, -0.9147038459777832, -0.4502391815185547, -0.8334754109382629, -0.3584362864494324, 0.04848300293087959, 0.48025867342948914, 0.8406624794006348, 0.508377194404602, -0.18243636190891266, 0.07237788289785385, 0.5589861273765564, -0.21689769625663757, 0.6703417897224426, 0.3616308867931366, -0.39360475540161133, -0.575056254863739, 0.8109939694404602, 0.2301962524652481, 0.05124529078602791, 0.35759010910987854, 0.07286421209573746, -0.31900569796562195, -0.28963997960090637, -0.3551882207393646, 0.5369450449943542, -0.7372159957885742, -0.5380926728248596, -0.8229968547821045, -0.4593118131160736, -0.70265132188797, -0.25352391600608826, -0.2747504711151123, -0.2917783856391907, -0.7553289532661438, -0.0241557527333498, 0.40338999032974243, 0.7242032885551453, -0.14017707109451294, 0.3825940191745758, -0.689988374710083, -0.15646043419837952, 0.0014409070136025548, 0.12444770336151123, 0.04323652386665344, -0.9276851415634155, -0.4104970097541809, -0.11896710097789764, -0.4635342061519623, -0.9905431270599365, 0.9544978737831116, 0.2048284411430359, 0.528636634349823, 0.4605400264263153, 0.03060397505760193, 0.4751907289028168, -0.5735654830932617, 0.7358971238136292, 0.18824540078639984, -0.8680157661437988, 0.4334556460380554, -0.2641175389289856, 0.22755834460258484, 0.11958593875169754, 0.6844742298126221, -0.419847309589386, -0.12462224066257477, -0.9478683471679688, -1.0275781154632568, 0.9127212166786194, -0.047646790742874146, 0.147080197930336, -0.21531426906585693, 0.2182551920413971, -0.14497153460979462, -0.023674359545111656, -1.0595080852508545, -0.6055572032928467, -0.13280634582042694, -0.07170713692903519, -0.32454776763916016, -0.17750266194343567, 0.10028336197137833, -0.41198888421058655, 1.309209942817688, -0.018727151677012444, 0.5240703821182251, 0.4090508222579956, 0.02262789197266102, -0.055664680898189545, 0.23040631413459778, 0.504641056060791, 0.4402236044406891, -0.48186391592025757, -0.04047412425279617, 0.3839070796966553, -0.16665099561214447, -0.1784418523311615, 0.3826735019683838, -0.1233569011092186, 0.29136911034584045, 0.4707850217819214, 0.9798529744148254, 0.265859991312027, -0.16350388526916504, 0.45607906579971313, 0.12362094968557358, -0.34051671624183655, -0.6914970278739929, -0.06303595006465912, 0.2087373286485672, 0.26888149976730347, 0.42883846163749695, 0.16932488977909088, -0.13149888813495636, -0.4123480021953583, 0.12959185242652893, 0.5419784784317017, -0.4258019030094147, -0.40081870555877686, 0.9868150353431702, -0.07770222425460815, -0.17858509719371796, 0.5256280303001404, -0.4883766770362854, -0.9185241460800171, 0.7541115880012512, 0.7294552326202393, 0.7569619417190552, -0.14603765308856964, 0.007062005810439587, 0.8734915852546692, 0.18664133548736572, -0.18786972761154175, 0.4485650062561035, 0.4878738522529602, -0.9074419140815735, -0.2183607816696167, -0.8212258815765381, -0.009899468161165714, 0.2640915811061859, -0.649832546710968, 0.6736220717430115, -0.30121657252311707, -0.46901947259902954, 0.4654198884963989, 0.25039419531822205, -0.9967047572135925, 0.23031991720199585, 0.42839860916137695, 1.202778935432434, -0.8110052943229675, 1.0651921033859253, 0.8495578765869141, -0.630990207195282, -1.1168692111968994, -0.11748537421226501, -0.10077482461929321, -0.658832848072052, 0.80149906873703, 0.48069557547569275, 0.3472932279109955, 0.37184223532676697, -0.6342154145240784, -1.282341480255127, 1.2326985597610474, 0.01264158170670271, -0.4781254827976227, -0.2670831084251404, -0.37520313262939453, 0.3715151250362396, -0.399393767118454, 0.39633527398109436, 0.43519118428230286, 0.5834966897964478, 0.08097833395004272, -0.9527692198753357, 0.01776629500091076, -0.1403590589761734, -0.0723472610116005, 0.2859126627445221, -0.6630068421363831, 1.1529098749160767, -0.3134434223175049, -0.21237660944461823, 0.27106013894081116, 0.7626634836196899, 0.06714793294668198, 0.19813421368598938, 0.27889975905418396, 0.8899438381195068, 0.7204056978225708, -0.2284494936466217, 0.9838719964027405, -0.39498159289360046, 0.7799344062805176, 1.1448148488998413, -0.2699733078479767, 0.8958279490470886, 0.30281978845596313, -0.127883180975914, 0.6437747478485107, 0.7081940770149231, -0.38893041014671326, 0.5100575089454651, 0.18893179297447205, -0.07062487304210663, -0.2930750846862793, 0.07694502919912338, -0.5828457474708557, 0.5405051112174988, 0.2743564546108246, -0.591865062713623, -0.16897140443325043, -0.036539360880851746, 0.4963840842247009, -0.2886159121990204, -0.34304922819137573, 0.7675216197967529, 0.015635566785931587, -0.5256432890892029, 0.706078827381134, 0.15698948502540588, 0.9031550884246826, -0.5280491709709167, 0.09866199642419815, 0.024601032957434654, 0.3464961051940918, -0.2944600582122803, -0.5426210761070251, 0.0710081160068512, -0.1247289776802063, -0.22669687867164612, 0.04035509377717972, 0.6037291884422302, -0.4355229139328003, -0.5464515686035156, 0.4031672477722168, 0.4830145835876465, 0.200948104262352, -0.030290627852082253, -0.7119008898735046, -0.1802600473165512, 0.09170503914356232, -0.5193890333175659, 0.23538678884506226, 0.241370290517807, 0.05756067484617233, 0.45258331298828125, 0.48982909321784973, -0.006644385866820812, 0.006282539572566748, -0.20857472717761993, 0.8934128880500793, -0.8767563104629517, -0.3410772383213043, -0.926174521446228, 0.4704058766365051, -0.07570643723011017, -0.38679686188697815, 0.7794740796089172, 0.8716151714324951, 0.9728490114212036, -0.17824186384677887, 0.8028527498245239, -0.44566112756729126, 0.592127799987793, -0.2511497735977173, 0.7947902679443359, -0.5951932668685913, -0.03646833449602127, -0.3137132525444031, -0.9497897624969482, -0.3734906315803528, 0.8072481155395508, -0.45482534170150757, 0.1669844537973404, 0.619857132434845, 0.7645498514175415, 0.016562551259994507, -0.12810519337654114, 0.2626948654651642, 0.37548232078552246, 0.1730087250471115, 0.5150387287139893, 0.5574818253517151, -0.5691618323326111, 0.40533947944641113, -0.6478897333145142, -0.14409461617469788, -0.32631513476371765, -0.9384825825691223, -0.9878020882606506, -0.6764054298400879, -0.46562325954437256, -0.7069764137268066, -0.40980014204978943, 1.194470763206482, 0.7012363076210022, -0.9223860502243042, -0.06160235032439232, 0.05663760378956795, -0.15443292260169983, -0.04369376599788666, -0.2861049473285675, 0.6044676899909973, -0.3090546131134033, -0.8069314360618591, 0.14443017542362213, -0.2224140763282776, 0.2784297466278076, 0.18295766413211823, -0.11028510332107544, -0.5086382627487183, -0.07233801484107971, 0.3730398416519165, 0.2893717288970947, -0.8079760670661926, -0.30939772725105286, 0.20809940993785858, -0.331468403339386, 0.16765668988227844, 0.15369005501270294, -0.6860841512680054, 0.20812609791755676, 0.3487952947616577, 0.298478364944458, 0.662672221660614, -0.19676968455314636, 0.24854391813278198, -0.6324841976165771, -0.022179588675498962, 0.363741397857666, 0.7277294397354126, 0.3008410632610321, -0.2795311212539673, 0.5062834620475769, 0.25508883595466614, -0.7983964085578918, -0.6698578000068665, -0.06105318292975426, -1.1366289854049683, -0.24237102270126343, 1.2287201881408691, -0.22839680314064026, -0.31192079186439514, 0.1494058072566986, -0.19962316751480103, 0.6284900307655334, -0.49495837092399597, 0.3617790639400482, 0.5808997750282288, -0.17428098618984222, 0.02812364511191845, -0.5489572882652283, 0.6160829067230225, 0.23228295147418976, -0.5386090278625488, -0.2301122099161148, 0.3582293391227722, 0.6016011238098145, 0.3333910405635834, 0.401521235704422, 0.1377982497215271, 0.19871996343135834, 0.027451815083622932, 0.48670297861099243, 0.10647527873516083, -0.07800589501857758, -0.4811628460884094, -0.22594113647937775, -0.0806509330868721, -0.11457770317792892 ]
kakaobrain/align-base
kakaobrain
"2023-03-08T11:02:27Z"
23,940
17
transformers
[ "transformers", "pytorch", "align", "zero-shot-image-classification", "vision", "multi-modal", "en", "dataset:coyo-700m", "arxiv:2102.05918", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-image-classification
"2023-02-24T15:23:00Z"
--- language: en tags: - align - vision - multi-modal datasets: - coyo-700m widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png candidate_labels: playing music, playing sports example_title: Cat & Dog --- # ALIGN (base model) The [ALIGN](https://arxiv.org/abs/2102.05918) model was proposed in "Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision" by Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V. Le, Yunhsuan Sung, Zhen Li, Tom Duerig. ALIGN features a dual-encoder architecture with [EfficientNet](https://huggingface.co/docs/transformers/main/en/model_doc/efficientnet#efficientnet) as its vision encoder and [BERT](https://huggingface.co/docs/transformers/main/en/model_doc/bert) as its text encoder, and learns to align visual and text representations with contrastive learning. Unlike previous work, ALIGN leverages a massive noisy dataset and shows that the scale of the corpus can be used to achieve SOTA representations with a simple recipe. The code for ALIGN was not publicly released, the base model is converted from the original implementation of the Kakao Brain team. This implementation follows the same architecture and hyperparameters as provided in the original Google model but is trained on the open source [COYO](https://github.com/kakaobrain/coyo-dataset) dataset. Google’s [ALIGN](https://ai.googleblog.com/2021/05/align-scaling-up-visual-and-vision.html) model, while trained on a huge dataset of 1.8 billion image-text pairs, cannot be replicated as the datasets is not public. Kakao Brain's ALIGN is on-par or outperforms Google ALIGN's reported metrics despite being trained on the much smaller, albeit carefully curated COYO-700M dataset. <p> <center> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/132_vit_align/align-performance.png" alt="ALIGN performance"/> </center> </p> ## COYO-700M Dataset [COYO](https://github.com/kakaobrain/coyo-dataset#dataset-preview) is an image-text dataset of 700 million pairs similar to Google's `ALIGN 1.8B` image-text dataset which is a collection of "noisy" alt-text and image pairs from webpages, but open-source. `COYO-700M` and `ALIGN 1.8B` are "noisy" because minimal filtering was applied. `COYO` is similar to the other open-source image-text dataset, `LAION` but with the following differences. While `LAION` 2B is a much larger dataset of 2 billion English pairs, compared to `COYO`’s 700 million pairs, `COYO` pairs come with more metadata that give users more flexibility and finer-grained control over usage. The following table shows the differences: `COYO` comes equipped with aesthetic scores for all pairs, more robust watermark scores, and face count data. | COYO | LAION 2B| ALIGN 1.8B | | :----: | :----: | :----: | | Image-text similarity score calculated with CLIP ViT-B/32 and ViT-L/14 models, they are provided as metadata but nothing is filtered out so as to avoid possible elimination bias | Image-text similarity score provided with CLIP (ViT-B/32) - only examples above threshold 0.28 | Minimal, Frequency based filtering | | NSFW filtering on images and text | NSFW filtering on images | [Google Cloud API](https://cloud.google.com/vision) | | Face recognition (face count) data provided as meta-data | No face recognition data | NA | | 700 million pairs all English | 2 billion English| 1.8 billion | | From CC 2020 Oct - 2021 Aug| From CC 2014-2020| NA | |Aesthetic Score | Aesthetic Score Partial | NA| |More robust Watermark score | Watermark Score | NA| |Hugging Face Hub | Hugging Face Hub | Not made public | | English | English | English? | COYO is available on the hub as a [dataset](https://huggingface.co/datasets/kakaobrain/coyo-700m). ## Use with Transformers ### Zero-Shot Image Classification ```python3 import requests import torch from PIL import Image from transformers import AlignProcessor, AlignModel processor = AlignProcessor.from_pretrained("kakaobrain/align-base") model = AlignModel.from_pretrained("kakaobrain/align-base") url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) candidate_labels = ["an image of a cat", "an image of a dog"] inputs = processor(text=candidate_labels, images=image, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) # this is the image-text similarity score logits_per_image = outputs.logits_per_image # we can take the softmax to get the label probabilities probs = logits_per_image.softmax(dim=1) print(probs) ``` ### Multi-Modal Embedding Retrieval ```python3 import requests import torch from PIL import Image from transformers import AlignProcessor, AlignModel processor = AlignProcessor.from_pretrained("kakaobrain/align-base") model = AlignModel.from_pretrained("kakaobrain/align-base") url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) text = "an image of a cat" inputs = processor(text=text, images=image, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) # multi-modal text embedding text_embeds = outputs.text_embeds # multi-modal image embedding image_embeds = outputs.image_embeds ``` Alternatively, retrieve image or text embeddings separately. ```python3 import requests import torch from PIL import Image from transformers import AlignProcessor, AlignModel processor = AlignProcessor.from_pretrained("kakaobrain/align-base") model = AlignModel.from_pretrained("kakaobrain/align-base") # image embeddings url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(images=image, return_tensors="pt") image_embeds = model.get_image_features( pixel_values=inputs['pixel_values'], ) # text embeddings text = "an image of a cat" inputs = processor(text=text, return_tensors="pt") text_embeds = model.get_text_features( input_ids=inputs['input_ids'], attention_mask=inputs['attention_mask'], token_type_ids=inputs['token_type_ids'], ) ``` ## Model Use ### Intended Use The model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such models - the ALIGN paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. #### Primary intended uses The primary intended users of these models are AI researchers. We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of computer vision models.
[ -0.37025538086891174, -0.713869035243988, 0.1779685616493225, 0.11108163744211197, -0.3540394902229309, -0.23165279626846313, -0.27304887771606445, -0.7078282237052917, 0.22871118783950806, 0.19819796085357666, -0.49286291003227234, -0.5502427220344543, -0.6128074526786804, 0.028293918818235397, -0.1767336130142212, 0.9211375713348389, -0.08050775527954102, 0.11644958704710007, -0.3805863857269287, -0.3021470904350281, -0.3309031128883362, -0.18222835659980774, -0.5495327711105347, -0.2678726017475128, 0.4397221505641937, 0.1768353432416916, 0.7531394362449646, 0.6162217855453491, 0.7955353856086731, 0.33132246136665344, 0.1793755143880844, -0.041540488600730896, -0.4826887547969818, -0.18800964951515198, 0.11626981198787689, -0.39603176712989807, -0.3870607912540436, 0.20079180598258972, 0.41559088230133057, 0.22469735145568848, 0.18824347853660583, 0.1528359204530716, 0.002539832843467593, 0.5237061977386475, -0.6777405142784119, 0.31116539239883423, -0.45005524158477783, -0.01626223511993885, -0.04486459493637085, 0.1278364658355713, -0.37392571568489075, -0.2317231297492981, 0.30222582817077637, -0.8143423795700073, 0.23975521326065063, 0.03656180202960968, 1.478824257850647, 0.2787652909755707, -0.1896439790725708, -0.40037715435028076, -0.23571668565273285, 0.9345055818557739, -0.5008150935173035, 0.45771393179893494, 0.30259495973587036, 0.17952951788902283, 0.16327068209648132, -0.8033172488212585, -0.6522955894470215, -0.17737480998039246, -0.19407589733600616, 0.3505628705024719, -0.21012072265148163, 0.0003441091685090214, 0.04495930299162865, 0.44361093640327454, -0.578843891620636, 0.009949878789484501, -0.4277167022228241, -0.2737826108932495, 0.7461254596710205, -0.07061757892370224, 0.5476409792900085, -0.2791174054145813, -0.5016657710075378, -0.3585132658481598, -0.36333125829696655, 0.18615175783634186, 0.2582676112651825, 0.004905425012111664, -0.44276925921440125, 0.5236369371414185, -0.01715526543557644, 0.6753763556480408, 0.24760881066322327, -0.2144649475812912, 0.42335939407348633, -0.2816866934299469, -0.4460938274860382, -0.047284744679927826, 1.1816245317459106, 0.4917357265949249, 0.059813421219587326, -0.002013581804931164, 0.06375854462385178, 0.2682703137397766, -0.04152250289916992, -0.8889005780220032, -0.40779128670692444, 0.0686228796839714, -0.4309791326522827, -0.3957737386226654, -0.03327826410531998, -0.7062262892723083, -0.12599945068359375, -0.19583851099014282, 0.8396764993667603, -0.5628032684326172, -0.11744377017021179, 0.11541049927473068, -0.11390325427055359, 0.37220877408981323, 0.43060657382011414, -0.759828507900238, 0.1440269947052002, 0.3048868477344513, 0.9058975577354431, -0.19139304757118225, -0.2870887219905853, 0.039129868149757385, -0.17465218901634216, -0.20269018411636353, 0.566710889339447, -0.4711076319217682, -0.003457894315943122, -0.20183780789375305, 0.17503046989440918, -0.21339890360832214, -0.4110381305217743, 0.5459336042404175, -0.4816502332687378, 0.4612371027469635, -0.26808950304985046, -0.3951740562915802, -0.2965255677700043, 0.3427152931690216, -0.7890093326568604, 1.012388825416565, 0.12482086569070816, -0.8673419952392578, 0.3777221441268921, -0.4630981385707855, -0.011348448693752289, -0.06691717356443405, -0.2163405567407608, -0.7871264815330505, -0.3110004663467407, 0.41718336939811707, 0.5733383297920227, -0.3481750190258026, 0.2526370584964752, -0.40820348262786865, -0.39020735025405884, 0.200649693608284, -0.22662536799907684, 1.019087553024292, 0.14622093737125397, -0.32171401381492615, -0.01619192771613598, -0.6039491891860962, -0.07346884906291962, 0.4425942301750183, -0.19824403524398804, -0.294239342212677, -0.26737430691719055, 0.09992504864931107, 0.2906719744205475, 0.3802963197231293, -0.5749295949935913, 0.13432452082633972, -0.16227120161056519, 0.384535551071167, 0.5291476845741272, -0.20634017884731293, 0.6111315488815308, -0.36903446912765503, 0.3517594635486603, 0.16064994037151337, 0.19456470012664795, -0.345366507768631, -0.6203266978263855, -0.8694241642951965, -0.5808518528938293, 0.3061358332633972, 0.40885114669799805, -0.638408362865448, 0.5226729512214661, -0.372105211019516, -0.5919486284255981, -0.8119198083877563, 0.07568614184856415, 0.5557165145874023, 0.6788038015365601, 0.5033907890319824, -0.4995543360710144, -0.43720555305480957, -0.9487794041633606, -0.07481887936592102, 0.12049543857574463, 0.13861320912837982, 0.42809975147247314, 0.6728294491767883, -0.15036672353744507, 0.7718226909637451, -0.48658597469329834, -0.37069129943847656, 0.009496605955064297, 0.015717267990112305, 0.10109071433544159, 0.6413246393203735, 0.6646215915679932, -0.9012249112129211, -0.7572853565216064, -0.1094176173210144, -1.0053296089172363, 0.18648965656757355, -0.0462849885225296, -0.24126647412776947, 0.29381102323532104, 0.2833161950111389, -0.591616153717041, 0.47190988063812256, 0.6273531317710876, -0.287546843290329, 0.49966004490852356, -0.008953382261097431, 0.29578396677970886, -1.1396701335906982, 0.16929201781749725, 0.24169673025608063, -0.14797332882881165, -0.5036775469779968, 0.12542353570461273, 0.20720291137695312, -0.1369374692440033, -0.4802245497703552, 0.4885129928588867, -0.499378502368927, 0.10953610390424728, 0.024294288828969002, 0.12554214894771576, 0.26871874928474426, 0.708668053150177, 0.15957066416740417, 0.6041778326034546, 0.7380539774894714, -0.5052096843719482, 0.4414132237434387, 0.39316752552986145, -0.4425877034664154, 0.6145622134208679, -0.7713127136230469, 0.17553691565990448, -0.12486124038696289, 0.22417880594730377, -1.0686544179916382, -0.3464863896369934, 0.37527698278427124, -0.7153446674346924, 0.4526180326938629, -0.054181359708309174, -0.3821166157722473, -0.4350968301296234, -0.5946325063705444, 0.517545223236084, 0.48361605405807495, -0.6638549566268921, 0.3218032419681549, 0.2594245672225952, 0.1604336053133011, -0.8632165193557739, -0.7907758951187134, -0.11702384054660797, -0.10257745534181595, -0.8232030868530273, 0.5462248921394348, -0.034212321043014526, 0.1778876632452011, 0.34666818380355835, 0.07458403706550598, -0.06213557720184326, -0.19159871339797974, 0.2069162130355835, 0.5713780522346497, -0.1797865331172943, 0.08507943153381348, -0.08946477621793747, 0.06593400239944458, -0.15698683261871338, 0.019293583929538727, 0.6548473834991455, -0.2730315923690796, -0.1492467075586319, -0.8805308938026428, 0.028973756358027458, 0.45435038208961487, -0.12466926872730255, 0.8501129746437073, 0.9569223523139954, -0.48735788464546204, 0.3060004413127899, -0.508215069770813, -0.04148459807038307, -0.4921432435512543, 0.45192283391952515, -0.3549526631832123, -0.6810651421546936, 0.5769192576408386, 0.2833702266216278, -0.027703482657670975, 0.7251313924789429, 0.5829745531082153, -0.21040530502796173, 1.0105915069580078, 0.6317449808120728, 0.008929350413382053, 0.6777284741401672, -0.6895580291748047, 0.05997404456138611, -0.9065672755241394, -0.6028434038162231, -0.2765164077281952, -0.46929970383644104, -0.6239864826202393, -0.441631555557251, 0.21581575274467468, 0.2139810472726822, -0.3143322467803955, 0.5451445579528809, -0.7091212868690491, 0.27728623151779175, 0.604449450969696, 0.5075962543487549, 0.10384511947631836, 0.16177208721637726, 0.001393216080032289, -0.25901076197624207, -0.5606747269630432, -0.3253396451473236, 1.0552657842636108, 0.35475072264671326, 0.9410240054130554, -0.13134366273880005, 0.5811419486999512, -0.03961938992142677, 0.24638329446315765, -0.8402124047279358, 0.48741135001182556, -0.11986274272203445, -0.659468948841095, -0.10486886650323868, -0.35881614685058594, -1.0772711038589478, 0.15141408145427704, -0.4748064875602722, -0.7121804356575012, 0.23934371769428253, 0.16296368837356567, -0.13232259452342987, 0.23887941241264343, -0.9312466979026794, 0.9763029217720032, -0.18014934659004211, -0.6255455613136292, -0.04442723095417023, -0.6793295741081238, 0.39861562848091125, 0.12949739396572113, -0.1080351173877716, -0.08631529659032822, -0.051450517028570175, 1.001768946647644, -0.31717216968536377, 0.8053678870201111, -0.0702771320939064, 0.136002779006958, 0.48047640919685364, -0.1993197351694107, 0.16556157171726227, -0.05490756034851074, 0.12742944061756134, 0.3718017637729645, 0.01331265177577734, -0.44171860814094543, -0.5081965923309326, 0.8466181755065918, -1.0733753442764282, -0.3073602616786957, -0.4689352214336395, -0.6007718443870544, 0.16760702431201935, 0.25620490312576294, 0.5994566082954407, 0.427780419588089, -0.017577318474650383, 0.4337783753871918, 0.6089063882827759, -0.39333081245422363, 0.44329801201820374, 0.03611436486244202, -0.19773299992084503, -0.663986086845398, 0.8453680276870728, 0.1770601123571396, 0.26483529806137085, 0.3968307673931122, 0.15949445962905884, -0.42697566747665405, -0.030331674963235855, -0.45964324474334717, 0.3563114106655121, -0.629983127117157, -0.47274208068847656, -0.6849727034568787, -0.2589258849620819, -0.6087903380393982, -0.3318578898906708, -0.45154693722724915, -0.28445136547088623, -0.43977758288383484, 0.23362112045288086, 0.436576247215271, 0.3776073455810547, 0.1316150277853012, 0.33427390456199646, -0.5106030702590942, 0.3438951373100281, 0.3416863679885864, 0.41603773832321167, -0.04585226997733116, -0.6333935856819153, -0.2965249717235565, 0.08807392418384552, -0.593234121799469, -0.8458584547042847, 0.46507734060287476, 0.27684736251831055, 0.40113189816474915, 0.44683873653411865, -0.1399977058172226, 0.8502872586250305, -0.15227539837360382, 0.7244807481765747, 0.6433679461479187, -0.8084937930107117, 0.5397676825523376, -0.24548758566379547, 0.3463793992996216, 0.4928141236305237, 0.6488435864448547, -0.3167012929916382, -0.12034058570861816, -0.7488890886306763, -0.7008293271064758, 0.8544394373893738, 0.2898472249507904, 0.08921580016613007, 0.28320083022117615, 0.352264404296875, 0.004338052589446306, 0.11059597134590149, -0.9988495707511902, -0.3353252410888672, -0.31486839056015015, -0.5982991456985474, 0.013705560006201267, 0.01487966813147068, -0.00926304329186678, -0.5564209222793579, 0.5639795064926147, -0.060150470584630966, 0.7259374856948853, 0.42376625537872314, -0.36277809739112854, -0.11765982955694199, -0.19984737038612366, 0.32256990671157837, 0.19057902693748474, -0.22714582085609436, 0.03887229412794113, 0.003042873227968812, -0.7046908140182495, -0.07859794050455093, 0.07002668082714081, -0.3438447415828705, -0.02242295816540718, 0.34573671221733093, 0.9558802247047424, 0.1571459025144577, -0.41894760727882385, 0.672315776348114, -0.1045757383108139, -0.273594468832016, -0.15932431817054749, 0.04154593497514725, 0.1283990442752838, 0.16851426661014557, 0.2112806886434555, 0.23452676832675934, 0.04918768256902695, -0.6519579887390137, 0.15023380517959595, 0.43951037526130676, -0.4442243278026581, -0.4765639305114746, 0.7569728493690491, -0.005415030755102634, -0.16261152923107147, 0.6586371064186096, -0.10929204523563385, -0.5004451870918274, 0.865452766418457, 0.6503980159759521, 0.6771131157875061, -0.0921420305967331, 0.17535297572612762, 0.8197658061981201, 0.19950535893440247, -0.006761604454368353, 0.19988203048706055, 0.05045690760016441, -0.8502335548400879, -0.18071548640727997, -0.575724184513092, -0.17925570905208588, 0.2734832465648651, -0.6607430577278137, 0.5212604999542236, -0.4588194191455841, -0.2518520951271057, 0.04780897498130798, 0.310299813747406, -0.9362089037895203, 0.3433060944080353, 0.2044408619403839, 0.6473345756530762, -0.8947109580039978, 0.745650589466095, 0.8024623394012451, -0.7264960408210754, -0.8034271597862244, -0.25693055987358093, -0.05215342342853546, -0.9652206897735596, 0.42929765582084656, 0.5643470287322998, 0.08403622359037399, 0.035651080310344696, -0.9359344244003296, -0.8636922240257263, 1.4937701225280762, 0.5181003212928772, -0.354812890291214, 0.004887005779892206, -0.07022757828235626, 0.5223594903945923, -0.3687209486961365, 0.31829771399497986, 0.26996105909347534, 0.24534602463245392, 0.2019668072462082, -0.7750409841537476, 0.1236257404088974, -0.35749348998069763, -0.0987791195511818, -0.027269894257187843, -0.963557243347168, 0.8784265518188477, -0.316679984331131, -0.24816831946372986, 0.1006796807050705, 0.6491791009902954, 0.2724277675151825, 0.41807541251182556, 0.3186468482017517, 0.9792722463607788, 0.6126822829246521, -0.2472803294658661, 0.9341467022895813, -0.1142583042383194, 0.6747635006904602, 0.8901408314704895, 0.1954212188720703, 0.8023557066917419, 0.3882579803466797, -0.1517048180103302, 0.5747414231300354, 0.7687441110610962, -0.33626773953437805, 0.6898327469825745, -0.2743467390537262, -0.06310014426708221, -0.09468484669923782, -0.18654488027095795, -0.39790719747543335, 0.4632369577884674, 0.25584420561790466, -0.5379515886306763, -0.028613684698939323, 0.03028024174273014, 0.08528146147727966, -0.14067870378494263, -0.22851990163326263, 0.5536291599273682, 0.04433274641633034, -0.5050033926963806, 0.6420888304710388, -0.11703147739171982, 0.9735143780708313, -0.38231465220451355, 0.15317904949188232, 0.017608271911740303, 0.2557523548603058, -0.30897605419158936, -0.7815212607383728, 0.13898712396621704, -0.19160541892051697, -0.03418785706162453, -0.03871851786971092, 0.7792506217956543, -0.5765698552131653, -0.45895087718963623, 0.30631840229034424, 0.09693451970815659, 0.1337912231683731, 0.07468096166849136, -1.1066336631774902, 0.23067381978034973, -0.09724950045347214, -0.4001142680644989, 0.28834420442581177, 0.13590200245380402, 0.03421146422624588, 0.5832401514053345, 0.4703136384487152, -0.24307510256767273, 0.24487650394439697, -0.16553014516830444, 0.8465803265571594, -0.4288339912891388, -0.15402711927890778, -0.7808399200439453, 0.47881826758384705, -0.20426715910434723, -0.4041804373264313, 0.6795291304588318, 0.6475014090538025, 1.0232594013214111, -0.19253848493099213, 0.5433962345123291, -0.3548795282840729, -0.039842765778303146, -0.41211169958114624, 0.7386278510093689, -0.8326133489608765, -0.2236603945493698, -0.41063445806503296, -0.7747360467910767, -0.5141666531562805, 0.7925162315368652, -0.2900230586528778, 0.13106553256511688, 0.7177062034606934, 0.9597822427749634, -0.22052612900733948, -0.25719767808914185, 0.2707812190055847, 0.05082124099135399, 0.16143371164798737, 0.6783280372619629, 0.50469970703125, -1.0603363513946533, 0.6072538495063782, -0.5682648420333862, -0.17998149991035461, -0.2897219955921173, -0.6247901320457458, -0.8935752511024475, -0.8137329816818237, -0.5273658037185669, -0.45098742842674255, -0.18570035696029663, 0.7111893892288208, 0.8135793209075928, -0.7500263452529907, 0.020904241129755974, -0.001121136243455112, 0.0017946128500625491, -0.1012440174818039, -0.25583288073539734, 0.6364957690238953, -0.13614431023597717, -1.0266950130462646, -0.2419136017560959, 0.17237478494644165, 0.09944097697734833, -0.06802572309970856, -0.3072943687438965, -0.43474331498146057, -0.07276947051286697, 0.4876877963542938, 0.24869270622730255, -0.5694601535797119, -0.22910763323307037, 0.296527624130249, -0.41432568430900574, 0.364528089761734, 0.34395360946655273, -0.5925655961036682, 0.6159367561340332, 0.6369554400444031, 0.5108740329742432, 0.6587681174278259, -0.1382390856742859, 0.08751517534255981, -0.577885627746582, 0.33057719469070435, 0.089717797935009, 0.48379814624786377, 0.4668980538845062, -0.39311301708221436, 0.44484275579452515, 0.4953371584415436, -0.568070650100708, -0.6864306926727295, 0.006178550887852907, -1.3791002035140991, -0.0360315702855587, 0.9583176374435425, -0.3291195333003998, -0.5214542150497437, 0.22482357919216156, -0.2569548785686493, 0.5809902548789978, -0.36231300234794617, 0.7693993449211121, 0.5744600892066956, -0.02944565936923027, -0.46011149883270264, -0.29050514101982117, 0.32060426473617554, 0.2641059160232544, -0.6466919779777527, -0.5468898415565491, 0.3265489637851715, 0.44071847200393677, 0.37267962098121643, 0.6654330492019653, -0.34161022305488586, 0.27116429805755615, 0.09984654188156128, 0.3543418347835541, 0.015063416212797165, -0.1939295530319214, -0.3255102038383484, -0.005877994932234287, -0.25838032364845276, -0.4412113130092621 ]
sijunhe/nezha-cn-base
sijunhe
"2022-06-24T03:53:56Z"
23,796
9
transformers
[ "transformers", "pytorch", "nezha", "fill-mask", "arxiv:1909.00204", "license:afl-3.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-06-18T16:39:15Z"
--- license: afl-3.0 --- **Please use 'Bert' related tokenizer classes and 'Nezha' related model classes** [NEZHA: Neural Contextualized Representation for Chinese Language Understanding](https://arxiv.org/abs/1909.00204) Junqiu Wei, Xiaozhe Ren, Xiaoguang Li, Wenyong Huang, Yi Liao, Yasheng Wang, Jiashu Lin, Xin Jiang, Xiao Chen and Qun Liu. The original checkpoints can be found [here](https://github.com/huawei-noah/Pretrained-Language-Model/tree/master/NEZHA-PyTorch) ## Example Usage ``` from transformers import BertTokenizer, NezhaModel tokenizer = BertTokenizer.from_pretrained('sijunhe/nezha-cn-base') model = NezhaModel.from_pretrained("sijunhe/nezha-cn-base") text = "我爱北京天安门" encoded_input = tokenizer(text, return_tensors='pt') output = model(**encoded_input) ```
[ -0.14762039482593536, -0.5340226888656616, 0.24794234335422516, 0.48846423625946045, -0.5140717625617981, -0.27640652656555176, -0.2848118543624878, -0.07478093355894089, -0.022841397672891617, 0.21995662152767181, -0.502357542514801, -0.4229591488838196, -0.5721424221992493, -0.1615751087665558, -0.17666730284690857, 1.0409053564071655, -0.02355295605957508, 0.6471610069274902, 0.47998201847076416, -0.02596234157681465, -0.4045177400112152, -0.6889513731002808, -0.8832356333732605, -0.592166543006897, 0.479265958070755, 0.048754431307315826, 0.33533722162246704, 0.28698042035102844, -0.030187178403139114, 0.34419485926628113, -0.2887822389602661, -0.20285660028457642, -0.16237378120422363, -0.26301810145378113, 0.06073709949851036, -0.27859896421432495, -0.5877000093460083, -0.11957188695669174, 0.97141432762146, 0.5031558871269226, 0.2747753858566284, 0.06354957073926926, 0.11297031491994858, 0.14980781078338623, -0.46601492166519165, 0.35025450587272644, -0.6337199211120605, 0.25032734870910645, -0.08571586012840271, 0.007995468564331532, -0.6200250387191772, -0.40762466192245483, 0.39729148149490356, -0.7106438279151917, 0.00554994260892272, -0.1725456416606903, 1.4606410264968872, -0.11217600852251053, -0.5237320065498352, -0.09777586162090302, -0.36914464831352234, 1.0420002937316895, -1.1843054294586182, 0.38857752084732056, 0.2785167098045349, 0.4184388816356659, -0.16246835887432098, -1.1050422191619873, -0.7545960545539856, -0.29740509390830994, -0.09687167406082153, 0.11543276906013489, 0.11255140602588654, 0.1054612249135971, 0.3199125826358795, 0.23123447597026825, -0.4127858281135559, 0.034968651831150055, -0.3219600021839142, -0.4953837990760803, 0.23955386877059937, 0.01122721191495657, 0.5865183472633362, -0.4137888252735138, -0.40806999802589417, -0.3964497745037079, -0.5085206031799316, 0.14124231040477753, 0.14088983833789825, 0.39861786365509033, -0.2580968737602234, 0.23804235458374023, 0.10666457563638687, 1.0152065753936768, 0.08545737713575363, 0.006641026120632887, 0.6704115867614746, -0.36341002583503723, -0.4837033748626709, -0.08275547623634338, 0.803290843963623, -0.03609013929963112, 0.1854875683784485, -0.01813187077641487, -0.20991279184818268, -0.584689199924469, -0.11844264715909958, -0.9334231019020081, -0.3157089948654175, 0.16343750059604645, -0.8342181444168091, -0.08396199345588684, 0.43561428785324097, -0.5180131793022156, 0.083661749958992, -0.21376754343509674, 0.8727259039878845, -0.6532797813415527, -0.30914509296417236, -0.20214642584323883, -0.223774254322052, 0.7774785161018372, 0.21588869392871857, -1.2823984622955322, -0.0026869296561926603, 0.49687886238098145, 0.7528786659240723, 0.601632833480835, -0.6917078495025635, -0.44445833563804626, -0.0804329514503479, -0.24568167328834534, 0.37923094630241394, -0.03817100450396538, 0.12057768553495407, 0.27027377486228943, 0.3131912052631378, -0.3797319531440735, -0.38684627413749695, 0.6451429128646851, -0.6048505902290344, 0.43613502383232117, -0.30258387327194214, -0.4278390109539032, -0.636210024356842, 0.25199875235557556, -0.3953935205936432, 0.8493834137916565, 0.30918028950691223, -0.929796576499939, 0.3551747798919678, -0.6339790225028992, -0.5080627799034119, 0.21344080567359924, -0.07791882008314133, -0.4864214062690735, -0.0040877037681639194, 0.16191771626472473, 0.5041723847389221, 0.22433719038963318, 0.37359774112701416, -0.028397252783179283, -0.6313568949699402, 0.03805293142795563, -0.33995896577835083, 1.2457220554351807, 0.06142447143793106, -0.6815246343612671, 0.6038846373558044, -0.6330456733703613, 0.15466564893722534, 0.0635228306055069, -0.5392757654190063, -0.20911990106105804, 0.10451134294271469, 0.7441167235374451, 0.31174102425575256, 0.695883572101593, -0.6102719902992249, 0.015609712339937687, -0.63419508934021, 0.6270508766174316, 0.9826020002365112, -0.34863194823265076, 0.4820360839366913, -0.061455175280570984, 0.10277111828327179, 0.2529316246509552, 0.003304923651739955, -0.15837769210338593, -0.29638102650642395, -1.1567659378051758, 0.22327783703804016, 0.38266992568969727, 0.560275137424469, -1.0415215492248535, 0.7493870854377747, -0.22662942111492157, -0.49531659483909607, -0.09106886386871338, -0.14277130365371704, 0.13379034399986267, 0.347978800535202, 0.472783625125885, -0.2192254662513733, -0.6000174880027771, -0.701224148273468, 0.0295841284096241, -0.41631463170051575, -0.17052330076694489, 0.2435237616300583, 0.5343514680862427, -0.44141823053359985, 0.7296808362007141, -0.29073214530944824, -0.3811415433883667, -0.49565476179122925, 0.19566546380519867, 0.6042163372039795, 0.9375724792480469, 0.8884468674659729, -0.4469418525695801, -0.5245217680931091, 0.10360632091760635, -0.4021517038345337, 0.08511433750391006, -0.24303995072841644, -0.16123104095458984, 0.19359301030635834, 0.29013943672180176, -0.1365116685628891, 0.2818090617656708, 0.4189143776893616, -0.5329274535179138, 0.6825335025787354, -0.24130456149578094, -0.21019041538238525, -1.3504066467285156, 0.1252543330192566, -0.3083775043487549, -0.20407213270664215, -0.8080866932868958, 0.16292010247707367, 0.20144221186637878, 0.1473546177148819, -0.6333634853363037, 0.6693806052207947, -0.3321676552295685, -0.030440744012594223, -0.3574649393558502, 0.09390681236982346, -0.16957077383995056, 0.7161299586296082, 0.234905406832695, 0.5167824625968933, 0.8156558275222778, -0.8157735466957092, 0.5793737769126892, 0.4644605219364166, -0.28658849000930786, -0.22903995215892792, -0.9180334806442261, 0.18824157118797302, -0.04791786149144173, 0.26900938153266907, -0.6884465217590332, -0.07470976561307907, 0.8399631381034851, -0.6918035745620728, 0.2962675988674164, -0.1398918628692627, -0.5807400941848755, -0.10898236185312271, -0.21798360347747803, 0.5640730857849121, 0.5503814816474915, -0.943215012550354, 0.8969376683235168, -0.05364659056067467, 0.07637176662683487, -0.8720558285713196, -0.945623517036438, 0.005742337554693222, 0.004859303589910269, -0.5319629311561584, 0.5271434783935547, -0.05291770398616791, 0.169829860329628, -0.04569049924612045, 0.13437871634960175, -0.4117855429649353, 0.03735392168164253, -0.011896644718945026, 0.3913498818874359, -0.5280958414077759, 0.16042560338974, -0.05692063271999359, -0.21678198873996735, 0.15523628890514374, -0.34248238801956177, 1.1013522148132324, -0.22846044600009918, -0.19826488196849823, -0.6262490153312683, -0.09929093718528748, 0.22826959192752838, -0.21063637733459473, 0.9956903457641602, 1.35584557056427, -0.5521224141120911, -0.08644921332597733, -0.23407065868377686, -0.3388637602329254, -0.48924365639686584, 0.7337719798088074, -0.23454882204532623, -0.7711421847343445, 0.7249927520751953, 0.2316063642501831, 0.39595791697502136, 0.6308984160423279, 0.5313776135444641, 0.23637475073337555, 0.7337985038757324, 0.6337948441505432, -0.42687371373176575, 0.9605913162231445, -0.3018438518047333, 0.3692344129085541, -0.9815894961357117, -0.08371289074420929, -0.5602800250053406, 0.08464165776968002, -0.5021589994430542, -0.288646936416626, -0.13163596391677856, 0.07430410385131836, -0.48601430654525757, 0.6809232234954834, -0.4296835660934448, 0.20273654162883759, 0.8838672637939453, 0.013000110164284706, -0.31082436442375183, 0.039320725947618484, -0.26075857877731323, 0.019925665110349655, -0.6912683844566345, -0.5887173414230347, 0.8169142007827759, 0.5589426755905151, 0.41231608390808105, 0.020329156890511513, 0.7498705387115479, -0.4978633224964142, 0.16610004007816315, -0.8380674123764038, 0.5816609859466553, -0.41100677847862244, -0.6740908622741699, -0.2440742403268814, -0.4482600688934326, -0.9160757660865784, 0.4232703149318695, -0.08514247089624405, -0.9277839660644531, 0.2893582284450531, -0.1615648716688156, -0.4293542504310608, 0.38543540239334106, -0.5317564606666565, 1.2550930976867676, -0.13711513578891754, -0.09364712983369827, -0.1441749930381775, -0.6382812857627869, 0.34878718852996826, 0.1575089395046234, -0.055881910026073456, 0.008125455118715763, 0.3971399962902069, 1.0383780002593994, -0.3959106504917145, 0.958656370639801, -0.48174765706062317, 0.11881591379642487, 0.14508667588233948, -0.4424065053462982, 0.2036713808774948, 0.12336347997188568, 0.032095372676849365, 0.2441229522228241, 0.17743441462516785, -0.6368371844291687, -0.47687768936157227, 0.5444219708442688, -1.0609687566757202, -0.371694415807724, -0.7709912061691284, -0.47901734709739685, 0.3769277036190033, 0.5171399116516113, 0.4179507791996002, 0.6143553853034973, -0.07255508750677109, -0.004037704784423113, 0.4125605821609497, -0.6078784465789795, 0.8500425815582275, 0.38036206364631653, -0.24548253417015076, -0.5379998087882996, 1.0661789178848267, 0.1692742556333542, 0.06840606033802032, 0.37348178029060364, 0.24708285927772522, -0.11024972796440125, -0.706479012966156, -0.414501428604126, 0.149529829621315, -0.9830039143562317, 0.10688744485378265, -0.4540066123008728, -0.79886794090271, -0.7013688087463379, 0.14889097213745117, 0.07976815104484558, -0.18093757331371307, -0.6519048810005188, 0.11580057442188263, 0.024309946224093437, 0.5363341569900513, -0.212788388133049, 0.6367859840393066, -1.0562773942947388, 0.19801293313503265, 0.3338228166103363, 0.050875596702098846, 0.4601125419139862, -0.7672008872032166, -0.6639775633811951, -0.024897878989577293, -0.27835381031036377, -0.9156829118728638, 0.6776502728462219, -0.01948423869907856, 0.8941771388053894, 0.6813840270042419, -0.08045507222414017, 0.7093666791915894, -0.36778342723846436, 0.9600536227226257, -0.12437859177589417, -1.5280879735946655, 0.3474162220954895, -0.07780954241752625, 0.4027988910675049, 0.4289940893650055, -0.04940757155418396, -0.9164801836013794, -0.04229816421866417, -0.4104394316673279, -1.0138195753097534, 1.0620594024658203, 0.15834957361221313, 0.5627902150154114, 0.07036028057336807, 0.30413925647735596, -0.12593497335910797, -0.045917585492134094, -1.6575151681900024, -0.4178556203842163, -0.6640731692314148, -0.2362203449010849, 0.018657710403203964, -0.3858574330806732, 0.35258373618125916, -0.49240872263908386, 1.0816408395767212, -0.0642644539475441, 0.3300456702709198, 0.36648911237716675, -0.2575748860836029, 0.1404469609260559, 0.10535351186990738, 0.7107130289077759, 0.5516630411148071, -0.39217036962509155, 0.1240847036242485, 0.29702574014663696, -0.6743378639221191, -0.17296546697616577, 0.23766407370567322, -0.3077533543109894, 0.41196388006210327, 0.5386618971824646, 0.9748260974884033, 0.12610889971256256, -0.29072093963623047, 0.4264123737812042, -0.14360111951828003, -0.07234295457601547, -0.6659890413284302, -0.14510376751422882, 0.1870664805173874, 0.020159225910902023, 0.4361949861049652, -0.03874698281288147, -0.10379514843225479, -0.3623645007610321, 0.03972984850406647, 0.35759297013282776, -0.5804953575134277, -0.289562463760376, 0.5020435452461243, 0.23705868422985077, -0.12347888946533203, 1.0101512670516968, -0.29695814847946167, -0.9854814410209656, 0.8367127776145935, 0.645761251449585, 1.1641225814819336, -0.184809148311615, 0.037836506962776184, 0.941217839717865, 0.3956216275691986, 0.15340903401374817, 0.23929134011268616, -0.24101628363132477, -1.150774359703064, -0.39551636576652527, -0.5816882848739624, -0.27987679839134216, 0.2690841853618622, -0.4657919406890869, 0.32352808117866516, -0.6557168960571289, -0.09366407245397568, -0.21574842929840088, 0.1392379254102707, -0.2674296200275421, 0.10289284586906433, 0.007733292877674103, 0.8454006314277649, -0.7671195864677429, 1.4883308410644531, 0.745459794998169, -0.6558473706245422, -1.256644368171692, 0.2904522716999054, -0.46198949217796326, -0.7075940370559692, 1.173515796661377, 0.403423935174942, 0.21291935443878174, -0.006515823304653168, -0.42538994550704956, -0.6389115452766418, 0.9890652894973755, 0.08155517280101776, -0.2619147002696991, -0.09710872173309326, -0.12188343703746796, 0.3648580312728882, -0.1998458355665207, 0.4454532265663147, 0.33506467938423157, 0.676389217376709, 0.04560459405183792, -0.7921812534332275, 0.04493327438831329, -0.3226071298122406, 0.015583045780658722, -0.12255419045686722, -0.5138139724731445, 1.4939582347869873, -0.0875353291630745, -0.39699241518974304, 0.393022358417511, 0.8986395597457886, 0.34158527851104736, 0.22636322677135468, 0.4815881550312042, 0.3114086091518402, 0.2647857666015625, -0.22803902626037598, 0.5172526836395264, -0.2356199026107788, 0.5210127830505371, 1.149219036102295, 0.11398152261972427, 0.7837070822715759, 0.44634419679641724, -0.036106519401073456, 0.8608881831169128, 0.9168301224708557, -0.44428277015686035, 0.38906875252723694, 0.2585712969303131, -0.29132208228111267, -0.1839567869901657, 0.12121665477752686, -0.6703096032142639, 0.20087884366512299, 0.16422484815120697, -0.6162371039390564, -0.20976585149765015, -0.2269134372472763, 0.17797844111919403, -0.27837738394737244, -0.2227260023355484, 0.5601674318313599, 0.020494919270277023, -0.39042964577674866, 0.6538202166557312, 0.47670599818229675, 1.06936514377594, -0.7412270307540894, -0.13979846239089966, 0.02614533342421055, 0.20968060195446014, -0.14981681108474731, -0.2854289412498474, 0.18142542243003845, -0.43102046847343445, 0.08885534852743149, 0.016346510499715805, 0.697175145149231, -0.5168746113777161, -0.4359222948551178, 0.4800289571285248, 0.231654092669487, 0.3542262315750122, 0.12192800641059875, -0.7486664056777954, -0.21454280614852905, 0.14935903251171112, -0.15310433506965637, 0.2096770703792572, 0.15699897706508636, 0.20009350776672363, 0.29102033376693726, 0.6524080038070679, -0.1227668896317482, 0.3214358389377594, 0.3467566967010498, 0.8282551765441895, -0.8443265557289124, -0.48543423414230347, -0.9787107110023499, 0.3241221308708191, -0.009224110282957554, -0.47672969102859497, 0.9617014527320862, 0.40724125504493713, 0.9083265662193298, -0.41434356570243835, 0.4886290431022644, -0.12496025860309601, -0.058619849383831024, -0.4807122051715851, 1.1548980474472046, -0.37803927063941956, -0.1831381618976593, -0.4016093611717224, -1.0544134378433228, -0.2982671856880188, 1.1938819885253906, -0.2137143760919571, 0.14389629662036896, 0.7074576020240784, 0.6061298847198486, 0.22443875670433044, -0.22606825828552246, 0.3269675076007843, 0.41074126958847046, 0.38896799087524414, 0.9451526403427124, 0.9283077716827393, -0.8416653871536255, 0.21704265475273132, -0.39167582988739014, -0.1681993454694748, -0.08857589960098267, -0.7952731251716614, -1.208364486694336, -0.7760142087936401, -0.16495512425899506, -0.4125746786594391, -0.2790086269378662, 1.1177232265472412, 0.926341712474823, -1.0263315439224243, -0.3953893184661865, -0.27606043219566345, 0.45336079597473145, -0.2340957373380661, -0.28060993552207947, 0.6977125406265259, -0.660978376865387, -1.1795004606246948, 0.15582139790058136, -0.11072934418916702, 0.4485327899456024, -0.2608392536640167, -0.1693296581506729, -0.2487875372171402, -0.11573618650436401, 0.3584490418434143, 0.2879043519496918, -1.0294770002365112, -0.3055199980735779, -0.16400544345378876, -0.20175646245479584, 0.11612281203269958, 0.4860025644302368, -0.8461245894432068, 0.13219305872917175, 0.9684655666351318, 0.38220763206481934, 0.4207985997200012, -0.4291504919528961, 0.6510745286941528, -0.4340610206127167, 0.4910474717617035, 0.10559914261102676, 0.6711235642433167, 0.31207913160324097, -0.18986082077026367, 0.14842000603675842, 0.0856173112988472, -0.5308802127838135, -0.6576614379882812, 0.06677687168121338, -0.9881589412689209, -0.35085415840148926, 0.8641219139099121, -0.530677318572998, -0.4575974941253662, -0.22131988406181335, -0.4591551721096039, 0.6537767052650452, -0.13097427785396576, 0.5560600757598877, 0.8255966305732727, 0.35628294944763184, -0.18934354186058044, -0.3135666251182556, 0.3905978798866272, 0.6810182929039001, -0.700152575969696, -0.11846140772104263, 0.12114056199789047, 0.3485623896121979, 0.3355713486671448, 0.43452000617980957, -0.05122574791312218, 0.35318857431411743, 0.05023714527487755, 0.4088127613067627, 0.048607759177684784, -0.025769520550966263, -0.5185337066650391, -0.12581171095371246, 0.16221235692501068, -0.5686834454536438 ]
stablediffusionapi/realistic-stock-photo
stablediffusionapi
"2023-10-21T16:15:16Z"
23,782
1
diffusers
[ "diffusers", "stablediffusionapi.com", "stable-diffusion-api", "text-to-image", "ultra-realistic", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionXLPipeline", "region:us" ]
text-to-image
"2023-10-21T16:12:58Z"
--- license: creativeml-openrail-m tags: - stablediffusionapi.com - stable-diffusion-api - text-to-image - ultra-realistic pinned: true --- # Realistic Stock Photo API Inference ![generated from stablediffusionapi.com](https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/14450003171697899771.png) ## Get API Key Get API key from [Stable Diffusion API](http://stablediffusionapi.com/), No Payment needed. Replace Key in below code, change **model_id** to "realistic-stock-photo" Coding in PHP/Node/Java etc? Have a look at docs for more code examples: [View docs](https://stablediffusionapi.com/docs) Try model for free: [Generate Images](https://stablediffusionapi.com/models/realistic-stock-photo) Model link: [View model](https://stablediffusionapi.com/models/realistic-stock-photo) Credits: [View credits](https://civitai.com/?query=Realistic%20Stock%20Photo) View all models: [View Models](https://stablediffusionapi.com/models) import requests import json url = "https://stablediffusionapi.com/api/v4/dreambooth" payload = json.dumps({ "key": "your_api_key", "model_id": "realistic-stock-photo", "prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner)), blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K", "negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime", "width": "512", "height": "512", "samples": "1", "num_inference_steps": "30", "safety_checker": "no", "enhance_prompt": "yes", "seed": None, "guidance_scale": 7.5, "multi_lingual": "no", "panorama": "no", "self_attention": "no", "upscale": "no", "embeddings": "embeddings_model_id", "lora": "lora_model_id", "webhook": None, "track_id": None }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text) > Use this coupon code to get 25% off **DMGG0RBN**
[ -0.4861437976360321, -0.8245465755462646, 0.35087907314300537, 0.21732282638549805, -0.6104851961135864, 0.13022162020206451, 0.27735015749931335, -0.5839405059814453, 0.5523234605789185, 0.5231629014015198, -0.8489598631858826, -0.9308843612670898, -0.3742663562297821, -0.03303908184170723, -0.1867920607328415, 0.5174427032470703, 0.014181111939251423, -0.16977940499782562, -0.03991914540529251, 0.08617356419563293, -0.3375813364982605, -0.1811857670545578, -0.6991540789604187, 0.05635969713330269, 0.046246256679296494, -0.10944922268390656, 0.7765945196151733, 0.6605812907218933, 0.49614107608795166, 0.28392428159713745, -0.07918360829353333, -0.10652674734592438, -0.44895851612091064, -0.24782729148864746, -0.10785128176212311, -0.6787337064743042, -0.5588123798370361, 0.02039014920592308, 0.34097734093666077, 0.20616881549358368, 0.05865562707185745, 0.6096127033233643, -0.1490878462791443, 0.6786174774169922, -0.6318582892417908, 0.2148476094007492, -0.4087013900279999, 0.2454436719417572, -0.02949773333966732, -0.11859503388404846, -0.14969784021377563, -0.27590036392211914, -0.2209686040878296, -1.1140977144241333, 0.4111729562282562, 0.2842332124710083, 1.6368829011917114, 0.12367980182170868, -0.2235252857208252, -0.0979018360376358, -0.5835811495780945, 0.8418578505516052, -0.9549733400344849, 0.27212852239608765, 0.43080952763557434, 0.24587927758693695, -0.04887813702225685, -0.8264020085334778, -0.6675010919570923, 0.21557879447937012, 0.1907661110162735, 0.22974936664104462, -0.47893601655960083, -0.17309017479419708, 0.2947775423526764, 0.49614518880844116, -0.5742608904838562, -0.2007317841053009, -0.5371192693710327, -0.08600639551877975, 0.6671658754348755, 0.22743667662143707, 0.2378712296485901, -0.34070396423339844, -0.41563475131988525, -0.31535881757736206, -0.5328561067581177, 0.36351901292800903, 0.8146377205848694, 0.32899197936058044, -0.6212249398231506, 0.5998575091362, -0.3065336048603058, 0.7825136184692383, 0.23665282130241394, -0.18177276849746704, 0.6385781764984131, -0.22709612548351288, -0.24679183959960938, -0.38788387179374695, 0.9335401058197021, 0.8969486951828003, -0.0461256168782711, 0.3353683650493622, -0.2816758155822754, 0.09625609964132309, 0.13940554857254028, -1.1139332056045532, -0.12565408647060394, 0.7899031639099121, -0.7261292934417725, -0.6331453919410706, 0.15425986051559448, -1.0563783645629883, -0.0038942135870456696, -0.06643980741500854, 0.3845864236354828, -0.33567580580711365, -0.5118862390518188, 0.32380521297454834, -0.1762637346982956, 0.2646789252758026, 0.21401865780353546, -0.6619067788124084, 0.09961723536252975, 0.6148468852043152, 0.9726936221122742, 0.21601885557174683, 0.01566045917570591, 0.1418714076280594, 0.1592579483985901, -0.5165209174156189, 0.962712287902832, -0.1280737966299057, -0.4383288025856018, -0.0983395054936409, 0.36192530393600464, 0.16130831837654114, -0.5663793087005615, 0.5556842088699341, -0.6864758729934692, -0.16967153549194336, -0.2294108271598816, -0.40817776322364807, -0.2973971962928772, 0.3507540822029114, -0.7160743474960327, 0.6592509746551514, 0.10680246353149414, -0.8478134274482727, 0.3713599443435669, -0.7038721442222595, -0.1556372344493866, 0.06351179629564285, -0.034860868006944656, -0.5704621076583862, -0.20224568247795105, 0.08710350841283798, 0.3086092472076416, 0.057396434247493744, -0.1168454959988594, -0.83870530128479, -0.4861970841884613, 0.39116472005844116, -0.10191027075052261, 1.0541675090789795, 0.4646645486354828, -0.15160879492759705, 0.005858527962118387, -0.9123570919036865, 0.008014376275241375, 0.7810329794883728, -0.2078690230846405, -0.21522755920886993, -0.4733361005783081, 0.2197834998369217, 0.03162550553679466, 0.2953519821166992, -0.6126867532730103, 0.18568293750286102, -0.430502325296402, 0.3007717728614807, 0.6672648787498474, 0.23250338435173035, 0.29498860239982605, -0.34199652075767517, 0.8810901641845703, 0.09977197647094727, 0.35494691133499146, -0.061910230666399, -0.5065843462944031, -0.4009164869785309, -0.5342564582824707, 0.2802416980266571, 0.5459471940994263, -0.465255469083786, 0.44396403431892395, -0.15168489515781403, -0.601357638835907, -0.5922274589538574, -0.08705708384513855, 0.38209593296051025, 0.48976367712020874, 0.06214822456240654, -0.41826385259628296, -0.5949826836585999, -0.9870932102203369, -0.0638127401471138, 0.033251646906137466, -0.15971173346042633, 0.34617409110069275, 0.5011566877365112, -0.27032920718193054, 0.8847980499267578, -0.8973477482795715, -0.12189176678657532, -0.008363640867173672, -0.015220079571008682, 0.8784139752388, 0.6819292306900024, 0.9894476532936096, -0.8241530656814575, -0.37868478894233704, -0.35374894738197327, -0.7390686273574829, 0.24648337066173553, 0.09295319020748138, -0.38821497559547424, 0.0002770372957456857, 0.060505904257297516, -1.0150041580200195, 0.670364260673523, 0.4279247522354126, -0.5535176992416382, 0.7756463289260864, -0.18234117329120636, 0.5408788919448853, -1.3157786130905151, 0.08935926854610443, 0.3959951102733612, -0.3538615107536316, -0.31483030319213867, 0.5150080919265747, -0.025422008708119392, -0.2548643946647644, -0.7386279702186584, 0.6639528870582581, -0.4319445788860321, -0.06974907964468002, -0.2477763146162033, -0.022984102368354797, 0.2969614267349243, 0.37939679622650146, -0.06062493845820427, 0.4915204346179962, 0.6516430974006653, -0.43717160820961, 0.5784789323806763, 0.26758313179016113, -0.45843303203582764, 0.6327973008155823, -0.6879187226295471, 0.09569104760885239, 0.04755295440554619, 0.46050894260406494, -1.2412413358688354, -0.5945733189582825, 0.5914475917816162, -0.5683296918869019, -0.009046575054526329, -0.6459963321685791, -0.6964750289916992, -0.7818924784660339, -0.49292415380477905, 0.33509084582328796, 0.7293025851249695, -0.41326645016670227, 0.6334579586982727, 0.1525992602109909, 0.15752239525318146, -0.6877922415733337, -0.9752275347709656, -0.2283490151166916, -0.27303001284599304, -0.6921100616455078, 0.3995697498321533, 0.015691567212343216, -0.3773467242717743, 0.17946505546569824, 0.0752612054347992, -0.18092995882034302, -0.26638075709342957, 0.4388124644756317, 0.7932620048522949, -0.24726556241512299, -0.2744719982147217, 0.036093614995479584, -0.037433166056871414, 0.04498768597841263, -0.2534324526786804, 0.7859794497489929, -0.18996165692806244, -0.45971882343292236, -1.0701758861541748, -0.00639802310615778, 0.650992214679718, 0.11576786637306213, 0.5942091941833496, 0.6065710186958313, -0.6316518783569336, 0.06097743287682533, -0.5264955163002014, -0.25752606987953186, -0.5083678960800171, 0.2062303125858307, -0.5367682576179504, -0.32242774963378906, 1.0447636842727661, 0.016471294686198235, 0.033390820026397705, 0.6072530746459961, 0.37777355313301086, -0.25052738189697266, 1.1130088567733765, 0.2295203059911728, 0.26538318395614624, 0.37497130036354065, -0.9196158051490784, 0.013278486207127571, -0.6625035405158997, -0.15013517439365387, -0.15983127057552338, -0.4630930423736572, -0.36466363072395325, -0.49058133363723755, -0.004478896036744118, 0.20662209391593933, -0.43166273832321167, 0.38948097825050354, -0.5855389833450317, 0.4491666555404663, 0.534091591835022, 0.4219200611114502, 0.17534767091274261, 0.19267132878303528, -0.14283499121665955, -0.005848856642842293, -0.2663068175315857, -0.45927655696868896, 1.099117398262024, 0.28932225704193115, 0.8945347666740417, -0.11226561665534973, 0.5545400381088257, 0.16961011290550232, -0.0984526053071022, -0.6600955128669739, 0.5578031539916992, 0.10934673994779587, -1.0267592668533325, 0.23551836609840393, -0.187271386384964, -0.9626163840293884, 0.25555819272994995, -0.36960673332214355, -0.6017546057701111, 0.5640423893928528, 0.34203264117240906, -0.7721750140190125, 0.5313804149627686, -0.7306721806526184, 0.8415806889533997, -0.2295186072587967, -0.6345146894454956, -0.20790508389472961, -0.46105241775512695, 0.6218928098678589, -0.043147411197423935, 0.616653561592102, -0.49092897772789, -0.20477087795734406, 0.6709021329879761, -0.539666473865509, 1.0887943506240845, -0.4015118479728699, 0.09164296835660934, 0.6523331999778748, 0.18408715724945068, 0.4844093918800354, 0.29202669858932495, -0.09226859360933304, 0.25919309258461, 0.3304891586303711, -0.5883502960205078, -0.3749922811985016, 0.7316795587539673, -0.7756432294845581, -0.36366209387779236, -0.2486519068479538, -0.38183271884918213, 0.028562553226947784, 0.3117016553878784, 0.6292780041694641, 0.3520820438861847, 0.0495322048664093, -0.029444070532917976, 0.4572708308696747, -0.1217636838555336, 0.40418869256973267, 0.19740769267082214, -0.7719295024871826, -0.7703003883361816, 0.7511540055274963, -0.0007697389810346067, 0.294622004032135, -0.006404272746294737, 0.21237130463123322, -0.5565549731254578, -0.53830885887146, -0.5706892609596252, 0.4230271875858307, -0.8020341396331787, -0.471909761428833, -0.6498819589614868, 0.07482297718524933, -0.7422783374786377, -0.4202229976654053, -0.8168256878852844, -0.39173242449760437, -0.7059990763664246, -0.19998444616794586, 0.7677680850028992, 0.2921924889087677, -0.03303908184170723, 0.2866160273551941, -0.7664027810096741, 0.46855247020721436, 0.16556693613529205, 0.33708637952804565, 0.09060216695070267, -0.6483376026153564, 0.016230424866080284, 0.22863908112049103, -0.47645294666290283, -0.830970823764801, 0.6893077492713928, -0.19770649075508118, 0.3222201466560364, 0.8823208212852478, 0.21389099955558777, 1.0782018899917603, 0.05323423817753792, 0.8897483348846436, 0.4114006757736206, -0.7572120428085327, 0.8431136608123779, -0.7019608020782471, 0.12314494699239731, 0.5737777948379517, 0.3791203200817108, -0.2290770560503006, -0.28509634733200073, -0.9511300921440125, -1.1689832210540771, 0.5358647108078003, 0.09181134402751923, 0.3832355737686157, 0.20677459239959717, 0.5841678977012634, -0.011226354166865349, 0.2504073679447174, -0.9885292649269104, -0.2427615225315094, -0.3622816205024719, -0.0750650018453598, 0.4359194338321686, 0.01666748709976673, -0.3184056580066681, -0.46215519309043884, 0.7818969488143921, -0.06384247541427612, 0.3375626802444458, 0.2657404839992523, 0.3564107418060303, -0.3904813230037689, -0.08138275891542435, 0.39796182513237, 0.7335317134857178, -0.6138665080070496, -0.18106134235858917, -0.14088797569274902, -0.3632620573043823, 0.05234051123261452, 0.10676798224449158, -0.356169730424881, -0.003503509797155857, 0.23768284916877747, 0.8874225616455078, 0.005865477956831455, -0.5870149731636047, 0.6497201323509216, -0.1223517432808876, -0.5059565901756287, -0.6208721995353699, -0.04133997857570648, 0.3586093485355377, 0.5352980494499207, 0.505749523639679, 0.4216410219669342, 0.11045544594526291, -0.5015653967857361, 0.002628616988658905, 0.4370488226413727, -0.10751871764659882, -0.5270354747772217, 1.0121164321899414, -0.11977461725473404, -0.42387571930885315, 0.49679461121559143, -0.5198974013328552, -0.06447606533765793, 0.9611089825630188, 0.7874209880828857, 0.7694196701049805, 0.0427934005856514, 0.25307658314704895, 0.8774251341819763, 0.03763724863529205, -0.2223401814699173, 0.7871787548065186, 0.3527807593345642, -0.6702663898468018, -0.1729334592819214, -0.8726798295974731, -0.278848260641098, 0.40937909483909607, -0.6527206897735596, 0.6864503026008606, -0.8879939913749695, -0.5121977925300598, -0.17650534212589264, -0.2094239890575409, -0.6198099851608276, 0.3149043917655945, 0.0849403589963913, 0.8740379214286804, -0.7178972959518433, 0.5678386092185974, 0.6603627800941467, -0.6381176710128784, -1.1434547901153564, -0.14697419106960297, 0.245997354388237, -0.7466088533401489, 0.42126205563545227, 0.14114122092723846, 0.04112503305077553, 0.10510341078042984, -0.7850821018218994, -0.8878268003463745, 1.1969166994094849, 0.3657974600791931, -0.5819988250732422, 0.06566472351551056, -0.11261545121669769, 0.4655560255050659, -0.5849421620368958, 0.13437172770500183, 0.06772922724485397, 0.37861260771751404, 0.568279504776001, -0.3845592737197876, 0.1695099174976349, -0.394476056098938, 0.029760802164673805, -0.2898600101470947, -0.7665702700614929, 0.9176579117774963, -0.4238070845603943, -0.12971894443035126, 0.255866140127182, 0.6021198034286499, 0.7512193918228149, 0.48179975152015686, 0.6475147604942322, 1.049948811531067, 0.4842234253883362, -0.011298690922558308, 1.118552565574646, -0.3521517515182495, 0.7573828101158142, 0.6912838816642761, -0.1208745688199997, 1.0582586526870728, 0.34827151894569397, -0.4700685441493988, 0.601203441619873, 1.165995478630066, -0.5808511972427368, 0.6832306981086731, 0.06895426660776138, -0.3415706157684326, -0.08954503387212753, 0.10690274834632874, -0.568388819694519, 0.3446497917175293, 0.22284764051437378, -0.4584183990955353, 0.17530840635299683, 0.04244817793369293, -0.1339181810617447, -0.22004088759422302, -0.24623548984527588, 0.31899288296699524, -0.012006983160972595, -0.16651591658592224, 0.8593155741691589, -0.050392746925354004, 1.0871530771255493, -0.5159294605255127, 0.10930851846933365, -0.08724243938922882, 0.19986416399478912, -0.29872992634773254, -0.7045513391494751, 0.33871838450431824, -0.057067256420850754, -0.06551587581634521, -0.03258739039301872, 0.7666375041007996, 0.054753340780735016, -0.8944663405418396, 0.21946921944618225, 0.17957554757595062, 0.2660101056098938, -0.11001309752464294, -1.0401147603988647, 0.24786123633384705, 0.07743102312088013, -0.5353293418884277, -0.01216218713670969, 0.13857081532478333, 0.4602275788784027, 0.5883888006210327, 0.9565568566322327, 0.18159770965576172, 0.02430638298392296, -0.07938980311155319, 0.7252901196479797, -0.6428864002227783, -0.6977976560592651, -0.847688615322113, 0.6112515330314636, -0.2887924909591675, -0.2202419638633728, 0.5169745683670044, 0.9345467686653137, 0.7952254414558411, -0.7126699090003967, 0.7974656820297241, -0.14436794817447662, 0.4097302258014679, -0.35726484656333923, 0.8173472285270691, -0.8419073224067688, 0.02771884575486183, -0.44727084040641785, -0.7731221914291382, -0.28891393542289734, 0.6218556761741638, -0.2287573665380478, 0.07591520994901657, 0.39238184690475464, 1.009456753730774, -0.3761085569858551, -0.09300603717565536, 0.10426356643438339, 0.10385938733816147, 0.10291735082864761, 0.07384026050567627, 0.7011623382568359, -0.6339213848114014, 0.5204353332519531, -0.7606268525123596, -0.16665180027484894, -0.06357701122760773, -0.8394688367843628, -0.5772362351417542, -0.313186913728714, -0.6406832933425903, -0.6875191926956177, -0.1964423954486847, 0.8653263449668884, 1.0354173183441162, -0.770185649394989, -0.20307078957557678, -0.11108475923538208, -0.14176404476165771, -0.3335599899291992, -0.3480570316314697, 0.3071390986442566, 0.3250967562198639, -1.0764459371566772, 0.05671033635735512, 0.07671483606100082, 0.5721282958984375, 0.04253139719367027, 0.1387399137020111, -0.14392879605293274, 0.06673747301101685, 0.3381344676017761, 0.3799374997615814, -0.906842052936554, 0.030836917459964752, -0.11689381301403046, 0.04864498972892761, 0.2842552363872528, 0.3189338743686676, -0.3606756031513214, 0.25614261627197266, 0.6606706380844116, 0.2312970757484436, 0.5632185339927673, 0.1623978167772293, 0.07162163406610489, -0.5544269680976868, 0.6017026305198669, 0.08577709645032883, 0.5563480257987976, 0.24834851920604706, -0.7203645706176758, 0.4864642024040222, 0.7639569640159607, -0.29365643858909607, -0.8586568236351013, 0.012094375677406788, -1.392954707145691, -0.470498651266098, 1.013887882232666, -0.2951030433177948, -0.6626070141792297, 0.241502046585083, -0.19569814205169678, 0.24057936668395996, -0.3983286917209625, 0.7153025269508362, 0.5564558506011963, -0.1733851134777069, -0.30748608708381653, -0.7228569388389587, 0.03835868090391159, 0.017633376643061638, -0.814224362373352, -0.1908530294895172, 0.5785077810287476, 0.606669545173645, 0.5125490427017212, 0.6568372845649719, -0.5342835187911987, 0.19723090529441833, 0.38689982891082764, 0.508222222328186, -0.05125176161527634, 0.39258551597595215, -0.1933039128780365, 0.18321546912193298, -0.08699139207601547, -0.6587274074554443 ]
yahma/llama-7b-hf
yahma
"2023-04-08T14:50:03Z"
23,770
59
transformers
[ "transformers", "pytorch", "llama", "text-generation", "license:other", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-04-08T14:39:35Z"
--- license: other --- LLaMA-7B converted to work with git head Transformers/HuggingFace on April 8, 2023. This version should resolve the EOS token issues. This is under a special license, please see the LICENSE file for details. This contains the weights for the LLaMA-7b model. This model is under a non-commercial license (see the LICENSE file). You should only use this repository if you have been granted access to the model by filling out [this form](https://docs.google.com/forms/d/e/1FAIpQLSfqNECQnMkycAp2jP4Z9TFX0cGR4uf7b_fBxjY_OjhJILlKGA/viewform?usp=send_form) but either lost your copy of the weights or got some trouble converting them to the Transformers format. -- license: other --- # LLaMA Model Card ## Model details **Organization developing the model** The FAIR team of Meta AI. **Model date** LLaMA was trained between December. 2022 and Feb. 2023. **Model version** This is version 1 of the model. **Model type** LLaMA is an auto-regressive language model, based on the transformer architecture. The model comes in different sizes: 7B, 13B, 33B and 65B parameters. **Paper or resources for more information** More information can be found in the paper “LLaMA, Open and Efficient Foundation Language Models”, available at https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/. **Citations details** https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/ **License** Non-commercial bespoke license **Where to send questions or comments about the model** Questions and comments about LLaMA can be sent via the [GitHub repository](https://github.com/facebookresearch/llama) of the project , by opening an issue. ## Intended use **Primary intended uses** The primary use of LLaMA is research on large language models, including: exploring potential applications such as question answering, natural language understanding or reading comprehension, understanding capabilities and limitations of current language models, and developing techniques to improve those, evaluating and mitigating biases, risks, toxic and harmful content generations, hallucinations. **Primary intended users** The primary intended users of the model are researchers in natural language processing, machine learning and artificial intelligence. **Out-of-scope use cases** LLaMA is a base, or foundational, model. As such, it should not be used on downstream applications without further risk evaluation and mitigation. In particular, our model has not been trained with human feedback, and can thus generate toxic or offensive content, incorrect information or generally unhelpful answers. ## Factors **Relevant factors** One of the most relevant factors for which model performance may vary is which language is used. Although we included 20 languages in the training data, most of our dataset is made of English text, and we thus expect the model to perform better for English than other languages. Relatedly, it has been shown in previous studies that performance might vary for different dialects, and we expect that it will be the case for our model. **Evaluation factors** As our model is trained on data from the Web, we expect that it reflects biases from this source. We thus evaluated on RAI datasets to measure biases exhibited by the model for gender, religion, race, sexual orientation, age, nationality, disability, physical appearance and socio-economic status. We also measure the toxicity of model generations, depending on the toxicity of the context used to prompt the model. ## Metrics **Model performance measures** We use the following measure to evaluate the model: - Accuracy for common sense reasoning, reading comprehension, natural language understanding (MMLU), BIG-bench hard, WinoGender and CrowS-Pairs, - Exact match for question answering, - The toxicity score from Perspective API on RealToxicityPrompts. **Decision thresholds** Not applicable. **Approaches to uncertainty and variability** Due to the high computational requirements of training LLMs, we trained only one model of each size, and thus could not evaluate variability of pre-training. ## Evaluation datasets The model was evaluated on the following benchmarks: BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC, OpenBookQA, NaturalQuestions, TriviaQA, RACE, MMLU, BIG-bench hard, GSM8k, RealToxicityPrompts, WinoGender, CrowS-Pairs. ## Training dataset The model was trained using the following source of data: CCNet [67%], C4 [15%], GitHub [4.5%], Wikipedia [4.5%], Books [4.5%], ArXiv [2.5%], Stack Exchange[2%]. The Wikipedia and Books domains include data in the following languages: bg, ca, cs, da, de, en, es, fr, hr, hu, it, nl, pl, pt, ro, ru, sl, sr, sv, uk. See the paper for more details about the training set and corresponding preprocessing. ## Quantitative analysis Hyperparameters for the model architecture <table> <thead> <tr> <th >LLaMA</th> <th colspan=6>Model hyper parameters </th> </tr> <tr> <th>Number of parameters</th><th>dimension</th><th>n heads</th><th>n layers</th><th>Learn rate</th><th>Batch size</th><th>n tokens</th> </tr> </thead> <tbody> <tr> <th>7B</th> <th>4096</th> <th>32</th> <th>32</th> <th>3.0E-04</th><th>4M</th><th>1T </tr> <tr> <th>13B</th><th>5120</th><th>40</th><th>40</th><th>3.0E-04</th><th>4M</th><th>1T </tr> <tr> <th>33B</th><th>6656</th><th>52</th><th>60</th><th>1.5.E-04</th><th>4M</th><th>1.4T </tr> <tr> <th>65B</th><th>8192</th><th>64</th><th>80</th><th>1.5.E-04</th><th>4M</th><th>1.4T </tr> </tbody> </table> *Table 1 - Summary of LLama Model Hyperparameters* We present our results on eight standard common sense reasoning benchmarks in the table below. <table> <thead> <tr> <th>LLaMA</th> <th colspan=9>Reasoning tasks </th> </tr> <tr> <th>Number of parameters</th> <th>BoolQ</th><th>PIQA</th><th>SIQA</th><th>HellaSwag</th><th>WinoGrande</th><th>ARC-e</th><th>ARC-c</th><th>OBQA</th><th>COPA</th> </tr> </thead> <tbody> <tr> <th>7B</th><th>76.5</th><th>79.8</th><th>48.9</th><th>76.1</th><th>70.1</th><th>76.7</th><th>47.6</th><th>57.2</th><th>93 </th> <tr><th>13B</th><th>78.1</th><th>80.1</th><th>50.4</th><th>79.2</th><th>73</th><th>78.1</th><th>52.7</th><th>56.4</th><th>94 </th> <tr><th>33B</th><th>83.1</th><th>82.3</th><th>50.4</th><th>82.8</th><th>76</th><th>81.4</th><th>57.8</th><th>58.6</th><th>92 </th> <tr><th>65B</th><th>85.3</th><th>82.8</th><th>52.3</th><th>84.2</th><th>77</th><th>81.5</th><th>56</th><th>60.2</th><th>94</th></tr> </tbody> </table> *Table 2 - Summary of LLama Model Performance on Reasoning tasks* We present our results on bias in the table below. Note that lower value is better indicating lower bias. | No | Category | FAIR LLM | | --- | -------------------- | -------- | | 1 | Gender | 70.6 | | 2 | Religion | 79 | | 3 | Race/Color | 57 | | 4 | Sexual orientation | 81 | | 5 | Age | 70.1 | | 6 | Nationality | 64.2 | | 7 | Disability | 66.7 | | 8 | Physical appearance | 77.8 | | 9 | Socioeconomic status | 71.5 | | | LLaMA Average | 66.6 | *Table 3 - Summary bias of our model output* ## Ethical considerations **Data** The data used to train the model is collected from various sources, mostly from the Web. As such, it contains offensive, harmful and biased content. We thus expect the model to exhibit such biases from the training data. **Human life** The model is not intended to inform decisions about matters central to human life, and should not be used in such a way. **Mitigations** We filtered the data from the Web based on its proximity to Wikipedia text and references. For this, we used a Kneser-Ney language model and a fastText linear classifier. **Risks and harms** Risks and harms of large language models include the generation of harmful, offensive or biased content. These models are often prone to generating incorrect information, sometimes referred to as hallucinations. We do not expect our model to be an exception in this regard. **Use cases** LLaMA is a foundational model, and as such, it should not be used for downstream applications without further investigation and mitigations of risks. These risks and potential fraught use cases include, but are not limited to: generation of misinformation and generation of harmful, biased or offensive content.
[ -0.3945066034793854, -0.7050980925559998, 0.4528749883174896, 0.3027103543281555, -0.27657559514045715, -0.2429640293121338, 0.041860148310661316, -0.6746010184288025, 0.11652185767889023, 0.4336497187614441, -0.513897180557251, -0.5704678893089294, -0.7622138857841492, 0.21930940449237823, -0.4183509051799774, 0.9058069586753845, 0.1002606526017189, -0.09193327277898788, -0.16878318786621094, -0.234384223818779, -0.2896368205547333, -0.6250249743461609, -0.4943835735321045, -0.279573529958725, 0.4717715382575989, 0.25848135352134705, 0.69424968957901, 0.7021355032920837, 0.4803732633590698, 0.3441087305545807, -0.4541122019290924, 0.1672203540802002, -0.2908823490142822, -0.1513223797082901, -0.17976510524749756, -0.42105409502983093, -0.625158965587616, 0.10769359022378922, 0.3319151997566223, 0.5781378149986267, -0.25945454835891724, 0.6000189185142517, 0.045995406806468964, 0.676880955696106, -0.7246948480606079, 0.09595556557178497, -0.6021230220794678, -0.007574530318379402, -0.08395206928253174, 0.0868849828839302, -0.14531777799129486, -0.31453895568847656, 0.014902142807841301, -0.7380897998809814, -0.13477179408073425, 0.17655889689922333, 1.2336379289627075, 0.6337503790855408, -0.5325658917427063, -0.00007402023038594052, -0.2996618449687958, 1.101102352142334, -1.0234683752059937, 0.45527076721191406, 0.3297117352485657, 0.28289276361465454, -0.16300317645072937, -0.5607135891914368, -0.7721630334854126, -0.2907732129096985, 0.12390261888504028, 0.2218502163887024, -0.36981433629989624, -0.13456106185913086, 0.4800625741481781, 0.2082129567861557, -0.42033663392066956, 0.16874408721923828, -0.33578160405158997, -0.22930312156677246, 0.8860107660293579, 0.3343906104564667, 0.08754581212997437, -0.28334635496139526, -0.5285855531692505, -0.0666932463645935, -0.6087214350700378, 0.20422635972499847, 0.3661174178123474, 0.16844357550144196, -0.2798396050930023, 0.6586692929267883, -0.4648101031780243, 0.6606703996658325, -0.01551022008061409, -0.5274363160133362, 0.49123215675354004, -0.41797715425491333, -0.37208765745162964, -0.09509159624576569, 0.8114708662033081, 0.5300366878509521, 0.33634522557258606, 0.13972455263137817, -0.10318946093320847, 0.22571255266666412, 0.05710228532552719, -0.7605029940605164, 0.2158539891242981, 0.1823657900094986, -0.4170680344104767, -0.2646152973175049, -0.344890296459198, -0.6478163003921509, -0.31913456320762634, -0.43536511063575745, 0.04651641473174095, -0.24051569402217865, -0.35243162512779236, 0.29495543241500854, 0.08003554493188858, 0.3736885190010071, 0.39590752124786377, -0.606768012046814, 0.28797560930252075, 0.46106693148612976, 0.7023207545280457, -0.32120174169540405, -0.5159617066383362, -0.012163941748440266, 0.15628062188625336, -0.20511235296726227, 0.8610018491744995, -0.3142578899860382, -0.28817471861839294, -0.28992027044296265, 0.023899570107460022, -0.09462907910346985, -0.5879927277565002, 0.7038478851318359, -0.4495265483856201, 0.07629723101854324, -0.5186035633087158, -0.4783417582511902, -0.3738458752632141, 0.5745643973350525, -0.6522241830825806, 1.3428707122802734, -0.14097480475902557, -0.7834024429321289, 0.30285218358039856, -0.7205276489257812, -0.03960408270359039, -0.33135077357292175, -0.012811748310923576, -0.30810919404029846, -0.33850961923599243, 0.3509565591812134, 0.5493539571762085, -0.6746644973754883, 0.520092785358429, -0.30681660771369934, -0.5510170459747314, 0.24416916072368622, -0.5118545293807983, 1.147247314453125, 0.23511359095573425, -0.5524956583976746, -0.011540648527443409, -1.005837082862854, -0.12221502512693405, 0.5481893420219421, -0.5169631242752075, -0.11867839097976685, -0.12015797197818756, -0.06811558455228806, 0.35303571820259094, 0.31938162446022034, -0.4819182753562927, 0.10091125220060349, -0.42761698365211487, 0.372155100107193, 0.7475519180297852, 0.11077264696359634, 0.24016575515270233, -0.4922894835472107, 0.5155288577079773, 0.2681053876876831, 0.2740708887577057, 0.2760961651802063, -0.7061493992805481, -0.9309320449829102, -0.20396403968334198, 0.19044792652130127, 0.7198130488395691, -0.2511674761772156, 0.4999126195907593, -0.26437491178512573, -0.7007485628128052, -0.44387876987457275, 0.24463889002799988, 0.5695226788520813, 0.8020073771476746, 0.4682621657848358, -0.10007418692111969, -0.5364049077033997, -1.0613549947738647, -0.17702394723892212, -0.40022435784339905, 0.18507705628871918, 0.43370509147644043, 0.6789915561676025, -0.3979261815547943, 0.8061538338661194, -0.5122288465499878, -0.1412322223186493, -0.2624967694282532, -0.2766638398170471, 0.32886457443237305, 0.29754361510276794, 0.6316139698028564, -0.6927989721298218, -0.24138455092906952, -0.0867680087685585, -0.9390881061553955, -0.1778533160686493, 0.1921745091676712, -0.20756055414676666, 0.29848307371139526, 0.3021247088909149, -0.7557470202445984, 0.5407414436340332, 0.5544735789299011, -0.2376086264848709, 0.7714568376541138, 0.30448517203330994, -0.03212543576955795, -1.0968085527420044, 0.20148615539073944, 0.2351963371038437, 0.1611649990081787, -0.4191781282424927, 0.1206066757440567, -0.12362559139728546, -0.000713115674443543, -0.7918299436569214, 0.8201974034309387, -0.2067488431930542, 0.0383152961730957, -0.13188914954662323, 0.06397842615842819, 0.12883418798446655, 0.7377737760543823, -0.02674795500934124, 0.9643925428390503, 0.4178268611431122, -0.7613678574562073, 0.18026186525821686, 0.166645810008049, -0.3444499671459198, 0.3647487163543701, -0.912367045879364, 0.04858588054776192, 0.17734725773334503, 0.33458757400512695, -0.7858614325523376, -0.10791216790676117, 0.4889757037162781, -0.45028209686279297, -0.16297432780265808, 0.03268866613507271, -0.6274209022521973, -0.36837878823280334, -0.18432649970054626, 0.2931920289993286, 0.4653700888156891, -0.45543497800827026, 0.5090997219085693, 0.36178022623062134, 0.08711807429790497, -0.942467212677002, -0.8460038304328918, -0.06809010356664658, -0.37065041065216064, -0.8595600724220276, 0.20606237649917603, -0.15432071685791016, -0.42938151955604553, -0.08508680760860443, -0.10159635543823242, -0.029588285833597183, 0.2709027826786041, 0.21462978422641754, 0.26962950825691223, -0.12183938175439835, 0.04028966277837753, 0.04459802806377411, -0.16938850283622742, 0.11481935530900955, 0.10557695478200912, 0.5087766647338867, -0.30047497153282166, -0.5585997104644775, -0.6215275526046753, 0.07841493934392929, 0.47780656814575195, -0.2145749032497406, 0.7279869914054871, 0.4531729221343994, -0.365792453289032, 0.06096819415688515, -0.7425349354743958, -0.040372688323259354, -0.5090411305427551, 0.42090559005737305, -0.28826290369033813, -0.8079816699028015, 0.684806227684021, -0.1321096122264862, -0.013894155621528625, 0.6334341764450073, 0.7153866291046143, 0.09147896617650986, 1.0330514907836914, 0.4778285324573517, -0.247590109705925, 0.33534693717956543, -0.42071986198425293, 0.185381680727005, -0.9397977590560913, -0.39914679527282715, -0.4634952247142792, -0.26726531982421875, -0.45763692259788513, -0.36296987533569336, 0.2539019286632538, 0.029743116348981857, -0.7046721577644348, 0.22056174278259277, -0.6700680255889893, 0.30711454153060913, 0.6372333765029907, 0.19507437944412231, 0.3662520945072174, -0.04611486569046974, -0.318220317363739, 0.02908138558268547, -0.5666383504867554, -0.7341516613960266, 1.2599085569381714, 0.4331173896789551, 0.5596874356269836, 0.10447537899017334, 0.6389546990394592, 0.040375325828790665, 0.04818766191601753, -0.7291778922080994, 0.854427695274353, 0.3059269189834595, -0.8398364186286926, -0.225987046957016, -0.2623790502548218, -0.926466166973114, 0.5118889212608337, -0.04327062517404556, -0.8576797246932983, 0.39256033301353455, 0.013552583754062653, -0.23284421861171722, 0.3537661135196686, -0.8006773591041565, 0.6153572201728821, -0.40873515605926514, -0.3955463469028473, -0.10537677258253098, -0.6053065061569214, 0.573583722114563, 0.06829275190830231, 0.27921074628829956, -0.34010037779808044, -0.2358579784631729, 0.9707172513008118, -0.4492771625518799, 0.9782004952430725, -0.10659142583608627, 0.0796278640627861, 0.46750184893608093, -0.13987518846988678, 0.5862348675727844, 0.0048380643129348755, -0.3817406892776489, 0.5268758535385132, -0.03691581264138222, -0.48766249418258667, -0.45115983486175537, 0.6392039060592651, -1.0750283002853394, -0.9381173849105835, -0.6748048663139343, -0.6183339357376099, -0.17034724354743958, 0.2070908099412918, 0.12278245389461517, -0.17678071558475494, 0.20885694026947021, 0.07711053639650345, 0.6442821621894836, -0.32525235414505005, 0.31309130787849426, 0.38826581835746765, -0.03463573008775711, -0.2379305511713028, 0.7731808423995972, 0.20379582047462463, 0.21822774410247803, 0.003748685587197542, 0.2333284616470337, -0.3110337555408478, -0.5702222585678101, -0.4619038701057434, 0.391045480966568, -0.7831715941429138, -0.2950502336025238, -0.7607822418212891, -0.30086809396743774, -0.4360612630844116, -0.026450226083397865, -0.3929746448993683, -0.3757252097129822, -0.46773213148117065, -0.3062070608139038, 0.5467409491539001, 0.5227511525154114, 0.2016778141260147, 0.4126126766204834, -0.48020821809768677, 0.11904352158308029, 0.18336601555347443, 0.1050972193479538, 0.2401430755853653, -0.6136682629585266, -0.1340295523405075, 0.05738324671983719, -0.5979326963424683, -0.8658967018127441, 0.4096066653728485, -0.21380387246608734, 0.8461894392967224, 0.3591608703136444, -0.00955547671765089, 0.7488312125205994, -0.08946558833122253, 1.0910886526107788, 0.2223884016275406, -0.8573651909828186, 0.5504145622253418, -0.3515239357948303, 0.2909092605113983, 0.5591207146644592, 0.5323640704154968, -0.2797025442123413, -0.12285160273313522, -0.671795666217804, -0.8643532395362854, 0.5705914497375488, 0.13261356949806213, -0.1059962585568428, 0.04406348615884781, 0.22165504097938538, -0.13593348860740662, 0.2590864896774292, -1.0141137838363647, -0.4370373785495758, -0.18379993736743927, -0.07284270972013474, 0.17910204827785492, -0.2398453950881958, -0.251685231924057, -0.5996005535125732, 0.68314528465271, -0.05573953688144684, 0.2987874150276184, 0.06505769491195679, -0.20778588950634003, 0.09734196960926056, 0.2262336164712906, 0.4536268413066864, 0.8329145312309265, -0.14080506563186646, -0.15447811782360077, 0.5302308201789856, -0.6051464676856995, 0.23215727508068085, 0.14394688606262207, -0.2873663008213043, -0.339806467294693, 0.3645145297050476, 0.7522370219230652, 0.23286977410316467, -0.7949699759483337, 0.45741620659828186, 0.16796347498893738, -0.28077617287635803, -0.293081134557724, 0.14464251697063446, 0.23096507787704468, 0.4308299720287323, 0.25714534521102905, -0.029717618599534035, 0.23010998964309692, -0.2788470387458801, -0.19538868963718414, 0.22190599143505096, -0.04244992136955261, -0.14880625903606415, 0.7862212657928467, 0.06254515796899796, -0.11240658909082413, 0.4967050850391388, -0.11893448233604431, -0.4891853332519531, 0.8060353994369507, 0.547514796257019, 0.5486729741096497, -0.10173028707504272, 0.06888918578624725, 0.525610625743866, 0.3303765058517456, -0.08067401498556137, 0.3802790939807892, 0.052939366549253464, -0.5943328142166138, -0.29817715287208557, -0.8475908637046814, -0.499673068523407, 0.09914699196815491, -0.6243939399719238, 0.23020842671394348, -0.5163033604621887, -0.2596399784088135, -0.1855730414390564, 0.3346640169620514, -0.8776142001152039, 0.44461143016815186, 0.09027618169784546, 1.0932494401931763, -0.8597495555877686, 0.7421900629997253, 0.787968635559082, -0.7180933952331543, -1.069337248802185, -0.15237565338611603, 0.2349853813648224, -1.0171051025390625, 0.6754745244979858, 0.061879806220531464, -0.040247634053230286, -0.0764848068356514, -0.7512686252593994, -1.3271775245666504, 1.5241217613220215, 0.4599049687385559, -0.5325589776039124, 0.0011797734769061208, 0.3738046884536743, 0.5472886562347412, -0.21587353944778442, 0.3424394726753235, 0.5944322347640991, 0.5982195734977722, 0.19434024393558502, -0.9927390217781067, 0.3018265664577484, -0.5162835717201233, -0.026743898168206215, -0.19983579218387604, -1.0088765621185303, 1.013500452041626, -0.10158985108137131, 0.046406492590904236, -0.07834836095571518, 0.5907199382781982, 0.9768458008766174, 0.5372494459152222, 0.48676830530166626, 0.9474442601203918, 0.9066988229751587, 0.09181711822748184, 1.2128971815109253, -0.2972095012664795, 0.16753160953521729, 0.8439366817474365, -0.30509212613105774, 0.9115195274353027, 0.4990898370742798, -0.5720689296722412, 0.5161920785903931, 0.9025802612304688, 0.06215052679181099, 0.29144078493118286, 0.1498032510280609, 0.0237323809415102, -0.23530668020248413, -0.3301086723804474, -0.5262545943260193, 0.36227086186408997, 0.26213905215263367, -0.32259780168533325, -0.12441036105155945, -0.17165832221508026, 0.20701749622821808, -0.05895623192191124, -0.1968584656715393, 0.5067325830459595, 0.17158779501914978, -0.5167203545570374, 0.8661794066429138, -0.0616619847714901, 0.8479242324829102, -0.5525214076042175, 0.04864802584052086, -0.2708105444908142, 0.03389454260468483, -0.31889858841896057, -0.6195019483566284, 0.1661197990179062, 0.08991645276546478, -0.16079328954219818, 0.09569744765758514, 0.7183923721313477, 0.2669782042503357, -0.7135856747627258, 0.6051774621009827, 0.6012842059135437, 0.23879952728748322, -0.0743638426065445, -1.0718607902526855, 0.31946539878845215, -0.10807832330465317, -0.7076152563095093, 0.4293786883354187, 0.3360937833786011, -0.34321722388267517, 1.0671895742416382, 0.8328218460083008, 0.08853757381439209, 0.34002307057380676, 0.044066887348890305, 1.155168890953064, -0.7379082441329956, -0.2855946123600006, -0.7184240221977234, 0.5824132561683655, -0.025276299566030502, -0.5920960903167725, 0.8529354929924011, 0.4676339626312256, 0.8817989826202393, 0.2951006591320038, 0.7761608362197876, 0.09840183705091476, 0.5084743499755859, -0.3449413478374481, 0.6536640524864197, -0.8025432229042053, 0.3154558539390564, -0.3048090636730194, -1.032008409500122, -0.23861423134803772, 0.5561577081680298, -0.5337651371955872, 0.1850084364414215, 0.5663484930992126, 0.8914377689361572, -0.02543630637228489, -0.046904075890779495, 0.19047889113426208, 0.25753289461135864, 0.19593888521194458, 0.5629980564117432, 0.7522035241127014, -0.510215699672699, 0.6377300024032593, -0.43514934182167053, -0.15477409958839417, -0.18125762045383453, -0.7381901741027832, -0.872228741645813, -0.44492223858833313, -0.25199463963508606, -0.29061466455459595, 0.05148991569876671, 0.8955483436584473, 0.6639536619186401, -0.6551307439804077, -0.3801427185535431, 0.00013446167577058077, 0.1790551096200943, -0.24889087677001953, -0.20428964495658875, 0.41493889689445496, -0.005030474625527859, -0.7187492251396179, 0.1626148521900177, -0.0391862653195858, -0.05850708857178688, -0.31901997327804565, -0.2830468714237213, -0.6408340334892273, 0.1571657806634903, 0.5816789865493774, 0.18276455998420715, -1.0746761560440063, -0.14097712934017181, 0.21524032950401306, -0.19723162055015564, 0.025487327948212624, 0.032042309641838074, -0.7712759375572205, 0.04235944151878357, 0.2870419919490814, 0.7733064889907837, 0.5343751907348633, 0.008277442306280136, 0.11827065050601959, -0.38902631402015686, 0.2529188096523285, 0.2152106761932373, 0.38815391063690186, 0.23880666494369507, -0.5247570872306824, 0.823245644569397, 0.4143602252006531, -0.655091404914856, -1.0105828046798706, -0.008722836151719093, -1.215162992477417, -0.16003157198429108, 1.435603380203247, -0.07236447930335999, -0.5356677174568176, 0.010539085604250431, -0.25423645973205566, 0.378286749124527, -0.48876526951789856, 0.655299961566925, 0.7060686945915222, -0.25358498096466064, -0.1914338618516922, -0.7951694130897522, 0.16337190568447113, 0.5154493451118469, -0.8115813732147217, -0.27128830552101135, 0.4132176339626312, 0.3607136905193329, 0.1628313958644867, 0.5537058711051941, -0.0643564760684967, 0.2862250804901123, -0.027628939598798752, 0.16528645157814026, -0.26372891664505005, -0.1822376400232315, -0.18236768245697021, -0.06750957667827606, 0.09213310480117798, -0.12143487483263016 ]
timm/vit_base_patch16_224.dino
timm
"2023-11-22T16:18:49Z"
23,714
0
timm
[ "timm", "pytorch", "safetensors", "feature-extraction", "arxiv:2104.14294", "arxiv:2010.11929", "license:apache-2.0", "region:us" ]
feature-extraction
"2022-12-22T07:26:27Z"
--- license: apache-2.0 library_name: timm tags: - feature-extraction - timm --- # Model card for vit_base_patch16_224.dino A Vision Transformer (ViT) image feature model. Trained with Self-Supervised DINO method. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 85.8 - GMACs: 16.9 - Activations (M): 16.5 - Image size: 224 x 224 - **Papers:** - Emerging Properties in Self-Supervised Vision Transformers: https://arxiv.org/abs/2104.14294 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 - **Pretrain Dataset:** ImageNet-1k - **Original:** https://github.com/facebookresearch/dino ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('vit_base_patch16_224.dino', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'vit_base_patch16_224.dino', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 197, 768) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results). ## Citation ```bibtex @inproceedings{caron2021emerging, title={Emerging properties in self-supervised vision transformers}, author={Caron, Mathilde and Touvron, Hugo and Misra, Ishan and J{'e}gou, Herv{'e} and Mairal, Julien and Bojanowski, Piotr and Joulin, Armand}, booktitle={Proceedings of the IEEE/CVF international conference on computer vision}, pages={9650--9660}, year={2021} } ``` ```bibtex @article{dosovitskiy2020vit, title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale}, author={Dosovitskiy, Alexey and Beyer, Lucas and Kolesnikov, Alexander and Weissenborn, Dirk and Zhai, Xiaohua and Unterthiner, Thomas and Dehghani, Mostafa and Minderer, Matthias and Heigold, Georg and Gelly, Sylvain and Uszkoreit, Jakob and Houlsby, Neil}, journal={ICLR}, year={2021} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.5691468715667725, -0.3220832347869873, 0.07567217946052551, 0.16221016645431519, -0.36666208505630493, -0.3321826457977295, -0.2659989893436432, -0.5380971431732178, 0.31176644563674927, 0.35500890016555786, -0.5100625157356262, -0.5238016843795776, -0.6808634400367737, 0.02147054672241211, -0.22042426466941833, 0.9866490960121155, -0.07365735620260239, -0.2414790838956833, -0.24193410575389862, -0.5025882720947266, -0.11422193795442581, -0.31455522775650024, -0.47949159145355225, -0.3500780463218689, 0.3635402023792267, 0.032341957092285156, 0.6528103947639465, 0.8884795308113098, 0.6498071551322937, 0.4975444972515106, -0.05088108777999878, 0.08288884907960892, -0.14197972416877747, -0.22138768434524536, 0.1632109135389328, -0.5324258208274841, -0.4723757803440094, 0.30358952283859253, 0.7552469968795776, 0.38285353779792786, 0.06037115678191185, 0.3690381646156311, 0.17302203178405762, 0.5178022384643555, -0.31736019253730774, 0.25285425782203674, -0.5113509893417358, 0.22297266125679016, -0.10375265777111053, 0.01022460125386715, -0.20562197268009186, -0.23547810316085815, 0.18365301191806793, -0.5441684722900391, 0.5903904438018799, -0.11513616889715195, 1.3499479293823242, 0.2735265791416168, -0.08846750855445862, 0.10833065956830978, -0.3850054442882538, 0.8269200921058655, -0.690818727016449, 0.35856303572654724, 0.12441694736480713, 0.1512640118598938, -0.014238039962947369, -1.0114392042160034, -0.694672703742981, -0.02873300574719906, -0.26987603306770325, 0.05554890260100365, -0.4030763804912567, 0.05323847010731697, 0.2736932337284088, 0.5441696047782898, -0.360347718000412, 0.02505476586520672, -0.5844849944114685, -0.3760448098182678, 0.6368878483772278, -0.07431337982416153, 0.2068546712398529, -0.38743263483047485, -0.6366147994995117, -0.5967208743095398, -0.334999680519104, 0.24407459795475006, 0.31091955304145813, 0.13114885985851288, -0.5034430623054504, 0.5523951053619385, 0.07194744795560837, 0.5849193334579468, 0.29277503490448, -0.2771500051021576, 0.6755886673927307, -0.21951167285442352, -0.2980926036834717, -0.2230854332447052, 1.216854214668274, 0.4686664938926697, 0.3580745458602905, 0.04235989227890968, -0.13757085800170898, -0.18683715164661407, -0.029736671596765518, -1.1166586875915527, -0.42867496609687805, 0.1372968554496765, -0.5619560480117798, -0.37765756249427795, 0.152068629860878, -0.8514785766601562, -0.10850667208433151, -0.0696944072842598, 0.7577023506164551, -0.4327363669872284, -0.43312254548072815, -0.005662705283612013, -0.13879074156284332, 0.45486506819725037, 0.15445484220981598, -0.7683019638061523, 0.11746538430452347, 0.19778338074684143, 1.0330841541290283, -0.03072049468755722, -0.5778340697288513, -0.11272621154785156, -0.3417808413505554, -0.3023098111152649, 0.6606218218803406, -0.04311502352356911, -0.34120145440101624, -0.3048444986343384, 0.3745827376842499, -0.25853613018989563, -0.6533294916152954, 0.25632381439208984, -0.09842225909233093, 0.33164945244789124, 0.1318318396806717, -0.13798758387565613, -0.3090691566467285, 0.22908926010131836, -0.4387659728527069, 1.3470619916915894, 0.4505402743816376, -0.8301417827606201, 0.453550785779953, -0.4507790207862854, -0.1352689415216446, -0.18865099549293518, -0.04722069948911667, -1.154046654701233, -0.04222870245575905, 0.3609139621257782, 0.6267026662826538, -0.1839701533317566, 0.05956590548157692, -0.5509549379348755, -0.12239562720060349, 0.3607093393802643, -0.23427541553974152, 0.9441022872924805, 0.14358475804328918, -0.5106722116470337, 0.2869955897331238, -0.6839415431022644, 0.10310640931129456, 0.43893301486968994, -0.24994014203548431, -0.027345072478055954, -0.603571355342865, 0.0615297332406044, 0.35452210903167725, 0.34206727147102356, -0.6374780535697937, 0.40115687251091003, -0.2148311883211136, 0.4591471254825592, 0.7341364622116089, -0.24108044803142548, 0.4079574942588806, -0.28902482986450195, 0.36046698689460754, 0.29701539874076843, 0.4245881736278534, -0.1682605743408203, -0.6299039721488953, -0.9092896580696106, -0.6072009205818176, 0.3614373803138733, 0.3424643874168396, -0.5208015441894531, 0.6218414306640625, -0.33576831221580505, -0.7352948188781738, -0.6236616373062134, 0.17251065373420715, 0.503312349319458, 0.5844348669052124, 0.5573841333389282, -0.5431585907936096, -0.4902859628200531, -1.0046807527542114, -0.06177739426493645, -0.11246074736118317, -0.02269238606095314, 0.45117849111557007, 0.61100172996521, -0.24888326227664948, 0.935818076133728, -0.4272303283214569, -0.4365556836128235, -0.13619168102741241, 0.14203613996505737, 0.371017187833786, 0.7284552454948425, 0.8785204291343689, -0.6655269265174866, -0.4577217698097229, -0.2411961853504181, -0.9117294549942017, 0.09856020659208298, 0.004953432362526655, -0.07451653480529785, 0.3444584012031555, 0.1771421879529953, -0.8157669305801392, 0.6793971657752991, 0.3339800536632538, -0.4403890073299408, 0.4645356237888336, -0.33803433179855347, 0.09847097098827362, -1.2255467176437378, 0.03710998222231865, 0.407528281211853, -0.1532728672027588, -0.39579904079437256, -0.021382706239819527, 0.15233361721038818, 0.04165465757250786, -0.41496604681015015, 0.5999689698219299, -0.6259670257568359, -0.2867462933063507, -0.04155659303069115, -0.2727464437484741, 0.033085111528635025, 0.7391294240951538, -0.015851236879825592, 0.6168528199195862, 0.819611132144928, -0.5155285596847534, 0.5338174700737, 0.4437769651412964, -0.19860388338565826, 0.5656063556671143, -0.6736382246017456, 0.10121414065361023, 0.07847127318382263, 0.1678711473941803, -1.06397545337677, -0.15248744189739227, 0.30600398778915405, -0.6526681184768677, 0.6689730286598206, -0.5634723901748657, -0.42602214217185974, -0.6893409490585327, -0.4597887694835663, 0.493674099445343, 0.6748519539833069, -0.8406288623809814, 0.6745424270629883, 0.21193569898605347, 0.260251522064209, -0.5935574173927307, -0.8601337671279907, -0.12744157016277313, -0.4351613223552704, -0.7048755884170532, 0.5366402268409729, -0.006330888252705336, 0.2378462702035904, 0.13103735446929932, -0.0427740141749382, 0.010300529189407825, -0.18709887564182281, 0.40510502457618713, 0.42406725883483887, -0.260689377784729, -0.08687762171030045, -0.2972790598869324, -0.18899992108345032, 0.15573950111865997, -0.3850734531879425, 0.5382359027862549, -0.35042765736579895, -0.08002014458179474, -0.6974534392356873, -0.23638607561588287, 0.6084928512573242, -0.3043208420276642, 0.6519260406494141, 1.0939046144485474, -0.3647151291370392, 0.005154557526111603, -0.5415948629379272, -0.32301685214042664, -0.5462245941162109, 0.41431140899658203, -0.43604013323783875, -0.46465998888015747, 0.9146331548690796, 0.11983990669250488, -0.12135785073041916, 0.9654783010482788, 0.45121821761131287, -0.07788814604282379, 0.8312552571296692, 0.6629933714866638, 0.15037177503108978, 0.7484818696975708, -0.9924370050430298, -0.0598050057888031, -0.9710481762886047, -0.5323313474655151, -0.22355769574642181, -0.4371902346611023, -0.8722171187400818, -0.4950694143772125, 0.4410044848918915, 0.05080917105078697, -0.1673063337802887, 0.6521949172019958, -0.9612946510314941, -0.003363717347383499, 0.834806501865387, 0.46334895491600037, -0.16822116076946259, 0.3113235831260681, -0.3123375475406647, -0.0740254819393158, -0.6823529601097107, -0.023944513872265816, 1.1863082647323608, 0.39512649178504944, 0.7885811924934387, -0.1953454613685608, 0.727939248085022, -0.16211575269699097, 0.25377538800239563, -0.7322275638580322, 0.6588054299354553, -0.005484240595251322, -0.5443800091743469, -0.34703874588012695, -0.39933788776397705, -1.146181583404541, 0.17666292190551758, -0.3064621090888977, -0.7590419054031372, 0.4785318076610565, 0.22769795358181, -0.2656434178352356, 0.7231184840202332, -0.7213936448097229, 0.9903790354728699, -0.13577629625797272, -0.45282837748527527, 0.05364290997385979, -0.6639417409896851, 0.1565428227186203, 0.11192326992750168, -0.23889762163162231, -0.08420871943235397, 0.23542149364948273, 0.9051455855369568, -0.5964710712432861, 0.8886394500732422, -0.3736514449119568, 0.20780576765537262, 0.569379448890686, -0.1407148540019989, 0.26409003138542175, -0.07905463874340057, 0.08382884413003922, 0.46657389402389526, 0.10296688228845596, -0.3532583713531494, -0.5292637348175049, 0.5847653150558472, -1.0711774826049805, -0.5651153326034546, -0.5313467979431152, -0.4863875210285187, 0.21004188060760498, 0.19849243760108948, 0.6170582175254822, 0.6122823357582092, 0.32110464572906494, 0.3342493772506714, 0.6100443601608276, -0.2627367675304413, 0.5979151129722595, 0.07497000694274902, -0.2324763983488083, -0.5619300603866577, 0.9438630938529968, 0.30962318181991577, 0.14427022635936737, 0.05740721896290779, 0.2882811427116394, -0.46811407804489136, -0.5429734587669373, -0.4504377245903015, 0.4435037672519684, -0.6513959765434265, -0.5352084636688232, -0.6429336667060852, -0.5548223853111267, -0.5146375298500061, 0.08973990380764008, -0.5666646361351013, -0.44289112091064453, -0.47557953000068665, 0.10269410163164139, 0.7808676362037659, 0.5316774845123291, -0.33241161704063416, 0.3973793089389801, -0.5242676138877869, 0.21418939530849457, 0.5009191632270813, 0.5541399121284485, -0.2780313789844513, -1.0204709768295288, -0.24821335077285767, -0.04841967672109604, -0.46811071038246155, -0.6767857074737549, 0.5945985913276672, 0.22084879875183105, 0.5745750069618225, 0.28455960750579834, -0.18375660479068756, 0.7837393283843994, -0.06531567871570587, 0.5863998532295227, 0.3260931372642517, -0.6713224649429321, 0.641184389591217, -0.22147750854492188, 0.15512166917324066, 0.09431082755327225, 0.21807976067066193, -0.18327747285366058, -0.02606578916311264, -1.0924967527389526, -0.7394149303436279, 0.7210361957550049, 0.2139173150062561, 0.1372631937265396, 0.29952576756477356, 0.6553249955177307, -0.11696726828813553, 0.033138617873191833, -0.9402474164962769, -0.42958471179008484, -0.5503516793251038, -0.33360227942466736, -0.03612237423658371, -0.10965999960899353, -0.016665302217006683, -0.7405002117156982, 0.5894107818603516, -0.28270453214645386, 0.8379372358322144, 0.5142024159431458, -0.07448267936706543, -0.15447326004505157, -0.3036003112792969, 0.3634037375450134, 0.3091886639595032, -0.33332768082618713, 0.08102062344551086, 0.19622044265270233, -0.5985031723976135, -0.018688496202230453, 0.40489479899406433, 0.030412031337618828, -0.04905381053686142, 0.39957618713378906, 0.8911987543106079, 0.014969981275498867, 0.10537362098693848, 0.5980813503265381, -0.004283150192350149, -0.4700373411178589, -0.3005494177341461, 0.1814253181219101, -0.1709068864583969, 0.43543741106987, 0.46270376443862915, 0.36142227053642273, -0.03453469276428223, -0.34180617332458496, 0.26626285910606384, 0.5763227343559265, -0.4697497487068176, -0.507168710231781, 0.7109467387199402, -0.22879531979560852, -0.06395788490772247, 0.7925825715065002, -0.053555767983198166, -0.5474544167518616, 1.0285342931747437, 0.458820641040802, 0.9646956324577332, -0.28654512763023376, 0.06904266029596329, 0.7520924210548401, 0.21435979008674622, -0.002606189576908946, 0.1476907879114151, 0.0028926602099090815, -0.9063065648078918, 0.032501280307769775, -0.6322702765464783, -0.00594730582088232, 0.26715677976608276, -0.542476236820221, 0.35742196440696716, -0.5727897882461548, -0.460501104593277, 0.27979639172554016, 0.17690758407115936, -0.9406490325927734, 0.35920098423957825, 0.07844894379377365, 0.683928906917572, -0.7424505949020386, 0.8375957012176514, 0.7646818161010742, -0.6498715281486511, -0.9535970091819763, -0.18472407758235931, -0.08834080398082733, -0.965127170085907, 0.5548362135887146, 0.40769079327583313, -0.0043468293733894825, 0.2775174081325531, -0.7808156609535217, -0.8575478196144104, 1.4339778423309326, 0.48424312472343445, -0.07424508035182953, 0.11699292808771133, 0.023305460810661316, 0.3994556665420532, -0.39332425594329834, 0.40425369143486023, 0.2548021078109741, 0.3663952350616455, 0.2823880612850189, -0.8327736854553223, 0.12745670974254608, -0.35538432002067566, 0.0976947546005249, 0.21151599287986755, -1.0030639171600342, 0.9132206439971924, -0.5062939524650574, -0.15241728723049164, 0.15174849331378937, 0.7283830046653748, 0.23139236867427826, 0.09209606051445007, 0.623545229434967, 0.8658406734466553, 0.40108516812324524, -0.35658934712409973, 0.8793843388557434, -0.2737289369106293, 0.8003024458885193, 0.5467808842658997, 0.4518062472343445, 0.501671314239502, 0.41407862305641174, -0.44846266508102417, 0.504334568977356, 0.9579933881759644, -0.6107540726661682, 0.38878393173217773, 0.07735148072242737, 0.03127148374915123, -0.2812574803829193, 0.02531205490231514, -0.4340983033180237, 0.6082141399383545, 0.19832980632781982, -0.6241122484207153, -0.07333293557167053, 0.04840395599603653, -0.10883084684610367, -0.2928190529346466, -0.17215833067893982, 0.5366333723068237, 0.051904723048210144, -0.46981292963027954, 0.7571261525154114, -0.08732772618532181, 0.8562729954719543, -0.3155653774738312, 0.023207731544971466, -0.2873898446559906, 0.3865354657173157, -0.33463171124458313, -1.0077213048934937, 0.2358565330505371, -0.3501308262348175, -0.06680378317832947, -0.04749413952231407, 0.7736682891845703, -0.33269184827804565, -0.6150796413421631, 0.2990823984146118, 0.2752368748188019, 0.33284100890159607, -0.02268792688846588, -1.1069214344024658, -0.11492518335580826, -0.0744885727763176, -0.6182500123977661, 0.23279953002929688, 0.5088440775871277, 0.08365004509687424, 0.8080734014511108, 0.6582546234130859, -0.13431720435619354, 0.2484726458787918, -0.24680425226688385, 1.0006786584854126, -0.5965809226036072, -0.3426390290260315, -0.8139117360115051, 0.5768294930458069, -0.09711264073848724, -0.6077700257301331, 0.6573778390884399, 0.6180279850959778, 0.8728927373886108, -0.05010363832116127, 0.3821415305137634, -0.17223523557186127, 0.04091696813702583, -0.2987077534198761, 0.6536977887153625, -0.668044924736023, -0.06962493807077408, -0.22684277594089508, -0.9326944947242737, -0.36362984776496887, 0.8164995908737183, -0.2800326943397522, 0.5616599917411804, 0.46536844968795776, 0.9618878364562988, -0.3605680465698242, -0.5213873386383057, 0.28295546770095825, 0.22299039363861084, 0.09220149368047714, 0.28723639249801636, 0.48343515396118164, -0.8167011737823486, 0.5891665816307068, -0.6250431537628174, -0.1054929867386818, -0.1753242015838623, -0.6872612237930298, -1.0715066194534302, -0.9030705690383911, -0.6538332104682922, -0.6739431619644165, -0.22868728637695312, 0.7960805892944336, 1.1054105758666992, -0.6787720918655396, -0.021066216751933098, -0.06142309308052063, 0.05274546146392822, -0.234015554189682, -0.2453453540802002, 0.6229575872421265, -0.06511267274618149, -0.7990916967391968, -0.273138165473938, 0.08458661288022995, 0.556698739528656, -0.29580193758010864, -0.14114229381084442, -0.09262905269861221, -0.22500646114349365, 0.20227713882923126, 0.40479496121406555, -0.7802904844284058, -0.2601539194583893, -0.07362771034240723, -0.13327880203723907, 0.6448827981948853, 0.33852171897888184, -0.8213825225830078, 0.5091571807861328, 0.4036104083061218, 0.24044188857078552, 1.008861780166626, -0.26552870869636536, 0.1131499707698822, -0.728749692440033, 0.43914794921875, -0.16161763668060303, 0.5666355490684509, 0.5747765898704529, -0.4074585735797882, 0.6002472043037415, 0.6627480983734131, -0.42513179779052734, -0.7073679566383362, -0.06913899630308151, -1.0953751802444458, 0.016464445739984512, 0.961167573928833, -0.3987901210784912, -0.545903742313385, 0.449489951133728, 0.013700068928301334, 0.6743887662887573, -0.08389709889888763, 0.6721717715263367, 0.22050680220127106, 0.002840691711753607, -0.7337053418159485, -0.2908337414264679, 0.4838651120662689, 0.15515822172164917, -0.6469853520393372, -0.37403443455696106, 0.05505957826972008, 0.7043264508247375, 0.47971078753471375, 0.38339462876319885, -0.2946906089782715, 0.1359836310148239, 0.0017550939228385687, 0.5954706072807312, -0.28301212191581726, -0.1954139918088913, -0.41346481442451477, -0.14532743394374847, -0.15823540091514587, -0.5046964287757874 ]
sentence-transformers/stsb-roberta-base
sentence-transformers
"2022-06-15T20:36:10Z"
23,581
0
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "roberta", "feature-extraction", "sentence-similarity", "transformers", "arxiv:1908.10084", "license:apache-2.0", "endpoints_compatible", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- pipeline_tag: sentence-similarity license: apache-2.0 tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- **⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: [SBERT.net - Pretrained Models](https://www.sbert.net/docs/pretrained_models.html)** # sentence-transformers/stsb-roberta-base This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search. ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer sentences = ["This is an example sentence", "Each sentence is converted"] model = SentenceTransformer('sentence-transformers/stsb-roberta-base') embeddings = model.encode(sentences) print(embeddings) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch #Mean Pooling - Take attention mask into account for correct averaging def mean_pooling(model_output, attention_mask): token_embeddings = model_output[0] #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) # Sentences we want sentence embeddings for sentences = ['This is an example sentence', 'Each sentence is converted'] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/stsb-roberta-base') model = AutoModel.from_pretrained('sentence-transformers/stsb-roberta-base') # Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) # Perform pooling. In this case, max pooling. sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) print("Sentence embeddings:") print(sentence_embeddings) ``` ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/stsb-roberta-base) ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 128, 'do_lower_case': True}) with Transformer model: RobertaModel (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False}) ) ``` ## Citing & Authors This model was trained by [sentence-transformers](https://www.sbert.net/). If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084): ```bibtex @inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "http://arxiv.org/abs/1908.10084", } ```
[ -0.19993604719638824, -0.8392296433448792, 0.32066312432289124, 0.40185126662254333, -0.39578378200531006, -0.41075730323791504, -0.3454127311706543, -0.08012020587921143, 0.1499418318271637, 0.4281996190547943, -0.5378449559211731, -0.46949994564056396, -0.7721296548843384, 0.06757983565330505, -0.4691801071166992, 0.8625432848930359, -0.10942361503839493, 0.10427835583686829, -0.30071821808815, -0.1284802407026291, -0.3347722887992859, -0.4387786090373993, -0.30287590622901917, -0.23873835802078247, 0.12758925557136536, 0.16080360114574432, 0.44211527705192566, 0.35972681641578674, 0.2985988259315491, 0.4487619698047638, -0.09450172632932663, 0.14193500578403473, -0.4104093909263611, -0.05022101849317551, 0.07267336547374725, -0.3316231667995453, -0.1144217699766159, 0.32819828391075134, 0.5643436312675476, 0.48743465542793274, -0.12880319356918335, 0.11500539630651474, -0.019166244193911552, 0.27886685729026794, -0.4074658751487732, 0.42935991287231445, -0.5584486722946167, 0.18644508719444275, 0.0974782258272171, 0.032527483999729156, -0.6869755387306213, -0.17419150471687317, 0.3361772298812866, -0.38180482387542725, 0.1225278303027153, 0.17899945378303528, 1.16323983669281, 0.418840616941452, -0.2627038359642029, -0.28538548946380615, -0.3728867769241333, 0.86894690990448, -0.8672322630882263, 0.26312384009361267, 0.2621203362941742, -0.007614722941070795, -0.015440384857356548, -1.03309965133667, -0.7066584825515747, -0.20930352807044983, -0.3834036588668823, 0.2146405130624771, -0.4535313546657562, -0.010258672758936882, 0.12559400498867035, 0.2979794144630432, -0.7379776239395142, -0.1265578716993332, -0.4404321312904358, -0.05839921534061432, 0.4785459637641907, 0.0010036914609372616, 0.41112858057022095, -0.6175782680511475, -0.5029403567314148, -0.31786611676216125, -0.22088581323623657, -0.168376624584198, 0.10500282794237137, 0.19239571690559387, -0.3541601598262787, 0.7864035964012146, 0.04632081463932991, 0.6286619901657104, 0.03865852206945419, 0.30877405405044556, 0.647404670715332, -0.2961868643760681, -0.36905089020729065, -0.15861906111240387, 1.08954656124115, 0.32568359375, 0.3956057131290436, -0.12344690412282944, -0.0833016186952591, 0.08668950945138931, 0.31833308935165405, -0.7966679930686951, -0.4298645555973053, 0.16507859528064728, -0.3791852593421936, -0.3087036609649658, 0.19260038435459137, -0.6358140707015991, 0.0681314542889595, 0.06100190058350563, 0.7044245600700378, -0.6223134994506836, 0.03659573942422867, 0.3272174596786499, -0.24581290781497955, 0.1107264906167984, -0.25835084915161133, -0.6639431715011597, 0.22521956264972687, 0.2152620404958725, 0.9365716576576233, 0.0841517522931099, -0.4610757827758789, -0.252729594707489, -0.14156438410282135, 0.05426470562815666, 0.7016352415084839, -0.3247978687286377, -0.16668739914894104, 0.1232406497001648, 0.2911432981491089, -0.5638279318809509, -0.3264269232749939, 0.6147904992103577, -0.35622692108154297, 0.8162170052528381, 0.2582607567310333, -0.8755353093147278, -0.20454011857509613, 0.10079354792833328, -0.4927690923213959, 1.0639564990997314, 0.29433542490005493, -0.8680351376533508, 0.08050298690795898, -0.7723251581192017, -0.30931973457336426, -0.1440557986497879, 0.10712651908397675, -0.7621828317642212, 0.14056897163391113, 0.45379021763801575, 0.6959221959114075, 0.12496878206729889, 0.4155632257461548, -0.23762352764606476, -0.4412652850151062, 0.3882734477519989, -0.40364137291908264, 1.191424012184143, 0.1304619312286377, -0.3462163507938385, 0.19431844353675842, -0.5484218001365662, -0.058184366673231125, 0.3325027823448181, -0.16853617131710052, -0.1950075924396515, -0.08466342836618423, 0.38497865200042725, 0.25028231739997864, 0.18664519488811493, -0.6701541543006897, 0.16454291343688965, -0.6388593912124634, 0.9538868069648743, 0.5883609056472778, 0.00899658165872097, 0.6196536421775818, -0.3007780611515045, 0.28126153349876404, 0.306997150182724, 0.031835440546274185, -0.2252945750951767, -0.41371020674705505, -0.9923286437988281, -0.33168673515319824, 0.37118276953697205, 0.5230732560157776, -0.6512803435325623, 1.123557686805725, -0.4609437584877014, -0.5273469686508179, -0.711249053478241, -0.0785868838429451, 0.14521567523479462, 0.3923094570636749, 0.7127026915550232, -0.1298402100801468, -0.6852712035179138, -0.8945984244346619, -0.034383777529001236, 0.04638313129544258, 0.12167169153690338, 0.2761188745498657, 0.7301573753356934, -0.4477100074291229, 0.9944108724594116, -0.6926945447921753, -0.47144705057144165, -0.5381726026535034, 0.25281041860580444, 0.21660245954990387, 0.7157415151596069, 0.550627589225769, -0.6505728363990784, -0.3819693326950073, -0.7036945223808289, -0.6624290347099304, 0.04760214313864708, -0.22584261000156403, -0.17328263819217682, 0.3008269667625427, 0.43299680948257446, -0.9078450202941895, 0.37506628036499023, 0.6967862248420715, -0.5358421802520752, 0.3159997761249542, -0.2806564271450043, -0.22139322757720947, -1.4157631397247314, -0.023734508082270622, 0.08004909753799438, -0.29967331886291504, -0.3845157027244568, 0.09648454189300537, 0.12983278930187225, -0.15619033575057983, -0.48141956329345703, 0.45558077096939087, -0.44145718216896057, 0.12180828303098679, -0.002458730712532997, 0.4741378724575043, 0.073086678981781, 0.7116819024085999, -0.057248737663030624, 0.6930938959121704, 0.48782792687416077, -0.5205800533294678, 0.3013377785682678, 0.7186353206634521, -0.5203645825386047, 0.1523735225200653, -0.8817606568336487, 0.01236604806035757, -0.02753749117255211, 0.4983958899974823, -1.1104135513305664, -0.004561346024274826, 0.3483096659183502, -0.6105272173881531, 0.2166445106267929, 0.1958823800086975, -0.6407365202903748, -0.6164321899414062, -0.3157835304737091, 0.16214868426322937, 0.6228007674217224, -0.5591859221458435, 0.5680351257324219, 0.3339814245700836, -0.01586015895009041, -0.46382570266723633, -1.1641480922698975, 0.048438556492328644, -0.1889253407716751, -0.7400113940238953, 0.601081907749176, -0.08178111165761948, 0.20859572291374207, 0.352203369140625, 0.3122023344039917, -0.0002531320496927947, -0.003021405078470707, 0.0801946222782135, 0.27880480885505676, -0.07749821990728378, 0.2738615572452545, 0.10236571729183197, -0.21306855976581573, -0.00010474793816683814, -0.29806891083717346, 0.7903255820274353, -0.18149466812610626, -0.10382411628961563, -0.47820475697517395, 0.12046660482883453, 0.36272063851356506, -0.3180428147315979, 1.0834259986877441, 1.017839789390564, -0.3931927978992462, -0.15922532975673676, -0.5125125646591187, -0.30026888847351074, -0.4597736597061157, 0.6401694416999817, -0.14609944820404053, -1.0172932147979736, 0.3029940128326416, 0.17907801270484924, -0.08779086917638779, 0.6302427649497986, 0.5511296391487122, -0.12975956499576569, 0.7861515283584595, 0.5919324159622192, -0.18329596519470215, 0.5633623600006104, -0.6988650560379028, 0.31999534368515015, -1.0325677394866943, 0.0005174654652364552, -0.305585652589798, -0.22894276678562164, -0.7139201164245605, -0.5352946519851685, 0.21175307035446167, -0.10789010673761368, -0.335404634475708, 0.6337136626243591, -0.6249074935913086, 0.1284395307302475, 0.6315009593963623, 0.17785008251667023, -0.09544306993484497, 0.024779750034213066, -0.2998356819152832, -0.08550737798213959, -0.7297437787055969, -0.5490730404853821, 0.8854936361312866, 0.41496023535728455, 0.47437554597854614, -0.1105865016579628, 0.7034326791763306, 0.017620127648115158, 0.013266357593238354, -0.6876342296600342, 0.5452525019645691, -0.38319072127342224, -0.4712132215499878, -0.30615749955177307, -0.3546944558620453, -0.8863052725791931, 0.3783468008041382, -0.21285349130630493, -0.753949761390686, 0.027155671268701553, -0.20534855127334595, -0.29200345277786255, 0.22258441150188446, -0.7642245888710022, 1.1105871200561523, 0.04495084658265114, -0.08061687648296356, -0.1474408060312271, -0.6313861012458801, 0.1775875687599182, 0.34170860052108765, 0.06764043122529984, 0.021351419389247894, 0.061887435615062714, 0.8224433660507202, -0.27773016691207886, 0.9907141327857971, -0.1873740404844284, 0.26883384585380554, 0.3725157678127289, -0.2913338541984558, 0.3276207447052002, -0.06046072021126747, -0.013705701567232609, 0.1000867411494255, -0.20489832758903503, -0.34142202138900757, -0.5055803656578064, 0.7205177545547485, -0.9837971925735474, -0.4072529673576355, -0.5341724157333374, -0.5919938683509827, -0.056074317544698715, 0.17586641013622284, 0.3879736363887787, 0.4628882110118866, -0.223552867770195, 0.48182523250579834, 0.4861142337322235, -0.3719644844532013, 0.6909192204475403, 0.15485993027687073, -0.011916822753846645, -0.5490541458129883, 0.580462634563446, 0.07452584058046341, 0.014364628121256828, 0.41711753606796265, 0.2169853001832962, -0.4308915436267853, -0.24045182764530182, -0.42370516061782837, 0.41663917899131775, -0.5366661548614502, -0.20799225568771362, -1.075201392173767, -0.5009552836418152, -0.6810981035232544, -0.03715364262461662, -0.24818894267082214, -0.5295096039772034, -0.616001546382904, -0.33563342690467834, 0.3919185698032379, 0.4979110658168793, 0.005785201210528612, 0.4282730519771576, -0.7543164491653442, 0.11335733532905579, 0.060252368450164795, 0.11877485364675522, -0.08322176337242126, -0.824734091758728, -0.3794015944004059, -0.027611518278717995, -0.41545677185058594, -0.8477120399475098, 0.693583071231842, 0.20810142159461975, 0.5539103150367737, 0.09161034971475601, 0.11157859861850739, 0.646378219127655, -0.5496405363082886, 0.979022741317749, 0.00736516248434782, -1.0663830041885376, 0.5029833316802979, -0.0886634811758995, 0.37735164165496826, 0.4332176446914673, 0.3012304902076721, -0.4474245011806488, -0.4435649514198303, -0.8253947496414185, -1.0881779193878174, 0.6652848124504089, 0.4030279219150543, 0.6114977598190308, -0.34170302748680115, 0.26616397500038147, -0.28154557943344116, 0.16824586689472198, -1.1677308082580566, -0.33257603645324707, -0.4134855270385742, -0.630138099193573, -0.35026273131370544, -0.3064573407173157, 0.17970018088817596, -0.35316914319992065, 0.8113609552383423, 0.08526088297367096, 0.7111618518829346, 0.346770703792572, -0.6080771684646606, 0.10376947373151779, 0.22039833664894104, 0.5778232216835022, 0.17532296478748322, -0.12496113032102585, 0.11711882054805756, 0.21482619643211365, -0.28927043080329895, -0.024081915616989136, 0.4959917962551117, -0.2227638214826584, 0.18017981946468353, 0.4322981536388397, 0.9928012490272522, 0.615156352519989, -0.45547401905059814, 0.7685738801956177, -0.05041084066033363, -0.19750544428825378, -0.5662411451339722, -0.0626809298992157, 0.3060492277145386, 0.27608805894851685, 0.20604285597801208, 0.05176810547709465, -0.019462693482637405, -0.36001643538475037, 0.32791808247566223, 0.27102699875831604, -0.4877561628818512, -0.05398084223270416, 0.7062157392501831, 0.10610630363225937, -0.19550487399101257, 0.9824422597885132, -0.2533038854598999, -0.7354859709739685, 0.43201619386672974, 0.7032344937324524, 1.0138200521469116, 0.05142739787697792, 0.33561474084854126, 0.5387726426124573, 0.3371802270412445, -0.03190402686595917, -0.016002623364329338, 0.13994556665420532, -0.8859640955924988, -0.2310783863067627, -0.609761118888855, 0.10970616340637207, -0.023395391181111336, -0.5774388313293457, 0.21980950236320496, -0.11020934581756592, -0.1485966145992279, -0.27607861161231995, 0.038725294172763824, -0.6446850895881653, 0.08297774940729141, -0.04551667720079422, 0.8374854326248169, -0.9816626906394958, 0.7884924411773682, 0.6573614478111267, -0.8029000759124756, -0.7231334447860718, -0.06738333404064178, -0.3235901892185211, -0.76866215467453, 0.605144202709198, 0.45523613691329956, 0.22579459846019745, 0.26146239042282104, -0.5583416223526001, -0.8413484692573547, 1.3346718549728394, 0.2165362387895584, -0.36212754249572754, -0.21364298462867737, 0.04011072590947151, 0.5310672521591187, -0.5731431245803833, 0.3720870912075043, 0.2956196665763855, 0.38249242305755615, -0.10848280042409897, -0.6445608139038086, 0.21755462884902954, -0.26950353384017944, 0.2659142017364502, -0.22929340600967407, -0.5980100631713867, 1.0365577936172485, -0.09509067982435226, -0.22653749585151672, 0.2871192991733551, 0.8738746047019958, 0.27661335468292236, -0.1144832968711853, 0.43163931369781494, 0.9028851985931396, 0.5707489252090454, -0.16779720783233643, 0.9613826274871826, -0.359666109085083, 0.7705875635147095, 1.072495460510254, 0.0954146459698677, 1.0902000665664673, 0.39672961831092834, -0.1094302088022232, 0.9268651008605957, 0.5087031722068787, -0.38821661472320557, 0.631111741065979, 0.2851617932319641, 0.11377129703760147, -0.0354427695274353, 0.14912302792072296, -0.21008391678333282, 0.544879138469696, 0.17071127891540527, -0.7766595482826233, 0.012099841609597206, 0.18919436633586884, 0.09157003462314606, 0.09005866199731827, 0.19481641054153442, 0.6027821898460388, 0.16150020062923431, -0.45540478825569153, 0.3921566605567932, 0.18637026846408844, 0.9678137898445129, -0.3504348695278168, 0.12711144983768463, -0.014126562513411045, 0.38507509231567383, 0.020752299576997757, -0.5542115569114685, 0.3099488914012909, -0.12062288075685501, -0.04257940500974655, -0.26203280687332153, 0.5967147946357727, -0.6740198731422424, -0.6468062996864319, 0.37852567434310913, 0.5367977619171143, 0.03062812238931656, 0.0737006887793541, -0.9987580180168152, 0.04743202030658722, -0.06664756685495377, -0.554981529712677, 0.15131781995296478, 0.2874317467212677, 0.4121197760105133, 0.591357409954071, 0.3926296830177307, -0.09468960016965866, 0.08389553427696228, 0.19725285470485687, 0.8170827031135559, -0.6320953369140625, -0.566396176815033, -0.8661224246025085, 0.7650782465934753, -0.2001200020313263, -0.32706835865974426, 0.7274975776672363, 0.5232976675033569, 0.9245368838310242, -0.3168792426586151, 0.6049628853797913, -0.13680556416511536, 0.2606079578399658, -0.5725055932998657, 0.8386269807815552, -0.46208325028419495, -0.051110509783029556, -0.259550005197525, -0.9377983808517456, -0.3268897831439972, 1.2019011974334717, -0.35742881894111633, 0.2256869524717331, 0.9278534054756165, 0.7803605198860168, -0.0923532098531723, -0.05472945421934128, 0.12216656655073166, 0.4916689097881317, 0.244310662150383, 0.5172497034072876, 0.4469606280326843, -0.8810862302780151, 0.6020757555961609, -0.484810471534729, -0.08779317140579224, -0.23980079591274261, -0.8257477879524231, -0.9841256141662598, -0.8659675717353821, -0.4272851049900055, -0.32857996225357056, -0.021091191098093987, 1.116256594657898, 0.671228289604187, -0.6933866739273071, -0.07672601193189621, -0.2814616560935974, -0.20477886497974396, -0.10492412000894547, -0.3242899179458618, 0.5339143872261047, -0.5562143921852112, -0.8842593431472778, 0.21322861313819885, -0.10437354445457458, 0.1468561291694641, -0.452152818441391, 0.13099758327007294, -0.6183915734291077, 0.0972333624958992, 0.5860923528671265, -0.3017949163913727, -0.8071746230125427, -0.3534494936466217, 0.022889768704771996, -0.37691888213157654, -0.09804500639438629, 0.3229476511478424, -0.7395586371421814, 0.2160482406616211, 0.3826207220554352, 0.5215443968772888, 0.7102067470550537, -0.1634414941072464, 0.5091158151626587, -0.7601656913757324, 0.26974624395370483, 0.16491302847862244, 0.711929976940155, 0.4858108460903168, -0.26556769013404846, 0.6037414073944092, 0.2417604774236679, -0.5444895625114441, -0.6574925184249878, -0.09375159442424774, -1.0928665399551392, -0.3438928425312042, 1.1235681772232056, -0.4534783363342285, -0.3631719946861267, 0.2384217232465744, -0.19424597918987274, 0.5260379910469055, -0.30673930048942566, 0.7735599279403687, 0.8130233287811279, 0.03880678489804268, -0.3327633738517761, -0.2817329466342926, 0.20154497027397156, 0.4254297912120819, -0.5852837562561035, -0.14586478471755981, 0.3506009578704834, 0.3315247893333435, 0.2626273036003113, 0.420024037361145, -0.1500019133090973, 0.0025137390475720167, 0.02987011708319187, 0.1259450912475586, -0.2621201276779175, -0.04263290390372276, -0.38457003235816956, 0.10525131225585938, -0.3876001238822937, -0.3148899972438812 ]
nerijs/pixel-art-xl
nerijs
"2023-11-09T18:45:23Z"
23,574
214
diffusers
[ "diffusers", "text-to-image", "stable-diffusion", "lora", "base_model:stabilityai/stable-diffusion-xl-base-1.0", "license:creativeml-openrail-m", "has_space", "region:us" ]
text-to-image
"2023-08-03T19:13:23Z"
--- license: creativeml-openrail-m tags: - text-to-image - stable-diffusion - lora - diffusers base_model: stabilityai/stable-diffusion-xl-base-1.0 instance_prompt: pixel art widget: - text: pixel art, a cute corgi, simple, flat colors --- # Pixel Art XL ## Consider supporting further research on [Patreon](https://www.patreon.com/user?u=29466374) or [Twitter](https://twitter.com/nerijs) ![F1hS8XHXwAQrMEW.jpeg](https://cdn-uploads.huggingface.co/production/uploads/6303f37c3926de1f7ec42d3e/SSOQ9lfB1PVhXVWJiL7Mx.jpeg) ![F1hS489X0AE-PK5.jpeg](https://cdn-uploads.huggingface.co/production/uploads/6303f37c3926de1f7ec42d3e/tY19J3xWDlSY2hhTTHySc.jpeg) Downscale 8 times to get pixel perfect images (use Nearest Neighbors) Use a fixed VAE to avoid artifacts (0.9 or fp16 fix) ### Need more performance? Use it with a LCM Lora! Use 8 steps and guidance scale of 1.5 1.2 Lora strength for the Pixel Art XL works better ```python from diffusers import DiffusionPipeline, LCMScheduler import torch model_id = "stabilityai/stable-diffusion-xl-base-1.0" lcm_lora_id = "latent-consistency/lcm-lora-sdxl" pipe = DiffusionPipeline.from_pretrained(model_id, variant="fp16") pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config) pipe.load_lora_weights(lcm_lora_id, adapter_name="lora") pipe.load_lora_weights("./pixel-art-xl.safetensors", adapter_name="pixel") pipe.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2]) pipe.to(device="cuda", dtype=torch.float16) prompt = "pixel, a cute corgi" negative_prompt = "3d render, realistic" num_images = 9 for i in range(num_images): img = pipe( prompt=prompt, negative_prompt=negative_prompt, num_inference_steps=8, guidance_scale=1.5, ).images[0] img.save(f"lcm_lora_{i}.png") ``` ### Tips: Don't use refiner Works great with only 1 text encoder No style prompt required No trigger keyword require Works great with isometric and non-isometric Works with 0.9 and 1.0 #### Changelog v1: Initial release
[ -0.650871217250824, -0.5737020969390869, 0.46289438009262085, 0.11492637544870377, -0.4177461266517639, -0.14007501304149628, 0.16267716884613037, -0.46012017130851746, 0.5322789549827576, 0.5450087785720825, -0.574070155620575, -0.5880430936813354, -0.7226358652114868, -0.06750105321407318, -0.19702859222888947, 0.9072812795639038, -0.18492963910102844, -0.08950001746416092, 0.3622744381427765, 0.02987707033753395, -0.10101915150880814, -0.05890081450343132, -1.0032967329025269, -0.2103324681520462, 0.913391649723053, 0.28904131054878235, 0.7522941827774048, 0.46640288829803467, 0.41909822821617126, 0.34467118978500366, -0.15274928510189056, 0.009369676932692528, -0.5625326633453369, -0.17589665949344635, 0.06932283192873001, -0.2611125409603119, -0.5194308161735535, -0.09912534803152084, 0.4687786400318146, 0.09092141687870026, -0.000593904813285917, 0.008605188690125942, -0.004586819093674421, 0.8651806712150574, -0.6740615367889404, -0.16290423274040222, -0.2425195276737213, 0.14606378972530365, 0.05327868461608887, -0.19937707483768463, -0.10163964331150055, -0.5308827757835388, 0.04096284881234169, -0.9197011590003967, 0.34011703729629517, -0.22322778403759003, 1.1725704669952393, 0.3614266514778137, -0.22431719303131104, -0.23145100474357605, -0.4994649887084961, 0.5966111421585083, -0.8565104603767395, 0.07366712391376495, -0.03202647343277931, 0.2941432595252991, 0.1654847264289856, -1.1274141073226929, -0.5161149501800537, 0.3939078152179718, 0.1445661336183548, 0.30950066447257996, -0.5391983389854431, -0.19391025602817535, 0.3094198703765869, 0.10385546833276749, -0.42090368270874023, 0.05811488628387451, -0.66307133436203, -0.24579796195030212, 0.6050133109092712, 0.2009892761707306, 0.49299898743629456, 0.11950532346963882, -0.334391325712204, -0.12360876798629761, -0.7210415005683899, 0.11713917553424835, 0.5991933345794678, -0.1850477010011673, -0.5009658932685852, 0.5696979761123657, 0.06698335707187653, 0.4524313509464264, 0.35271763801574707, 0.19649575650691986, 0.328746497631073, -0.2757112383842468, -0.14908115565776825, -0.021425962448120117, 0.9514512419700623, 0.5203902125358582, -0.05996028333902359, 0.1667887568473816, -0.009356046095490456, 0.040400922298431396, 0.18376311659812927, -1.5428001880645752, -0.5561248660087585, 0.28752651810646057, -0.4597409963607788, -0.24899035692214966, -0.23424111306667328, -1.0413906574249268, -0.5599162578582764, 0.04191327095031738, 0.6747862100601196, -0.5084037780761719, -0.38173961639404297, 0.21042750775814056, -0.22835271060466766, 0.27914753556251526, 0.48980823159217834, -0.8516468405723572, 0.12098126113414764, 0.2810497283935547, 0.9840689897537231, 0.2529487907886505, 0.06629025191068649, -0.34639132022857666, -0.2641626000404358, -0.5104401707649231, 0.9539178013801575, -0.19481222331523895, -0.5191653370857239, -0.3459044098854065, 0.35693293809890747, -0.017997631803154945, -0.5036163330078125, 0.9077044725418091, -0.37987014651298523, 0.1099703460931778, -0.2952832579612732, -0.4238424301147461, -0.23555848002433777, -0.06744924932718277, -0.6603537201881409, 0.6200361251831055, 0.25493350625038147, -1.0264555215835571, 0.3086162507534027, -0.8703939318656921, 0.2652888298034668, 0.032666780054569244, -0.228975310921669, -0.8038773536682129, 0.09310857206583023, 0.25313109159469604, 0.4130047559738159, 0.10316348075866699, -0.527215301990509, -0.5138049721717834, -0.4080899655818939, -0.006007363088428974, -0.13326051831245422, 0.9607516527175903, 0.3317304849624634, -0.5259741544723511, 0.25727662444114685, -0.6417654752731323, 0.23112159967422485, 0.3663922846317291, -0.1817011535167694, 0.26862260699272156, -0.17263564467430115, 0.42610281705856323, 0.26056551933288574, 0.314418226480484, -0.8794869780540466, 0.11663592606782913, -0.22055360674858093, 0.6014113426208496, 0.8957798480987549, -0.08661962300539017, 0.3280334174633026, -0.3091066777706146, 0.5110719799995422, 0.07709357887506485, -0.11902981251478195, 0.20345422625541687, -0.5584176778793335, -0.9106135368347168, -0.45506444573402405, 0.02942357398569584, 0.17613449692726135, -0.7290385365486145, 0.3392789363861084, -0.2120271623134613, -0.6292877197265625, -0.23066091537475586, -0.03839271888136864, 0.13593751192092896, 0.38884085416793823, 0.06566344201564789, -0.4366314113140106, -0.5645368099212646, -0.670933187007904, 0.3608151972293854, 0.4221140146255493, 0.10877376049757004, 0.46737900376319885, 0.6479778289794922, -0.2564253509044647, 0.8385854363441467, -0.7515016198158264, -0.312909334897995, -0.19147145748138428, 0.12651684880256653, 0.7355355620384216, 0.6313000917434692, 0.9166432023048401, -0.6540109515190125, -0.8855143785476685, 0.05570192262530327, -0.5394346714019775, -0.06722518801689148, 0.3147960603237152, -0.10758136957883835, 0.5132672786712646, 0.2936340570449829, -0.613507091999054, 0.7699017524719238, 0.9501983523368835, -0.980927586555481, 0.829350471496582, -0.5581040382385254, 0.3495766520500183, -1.0660653114318848, 0.37457093596458435, 0.20496511459350586, -0.32310181856155396, -0.4999868869781494, 0.07352262735366821, -0.04444228485226631, -0.3281189799308777, -0.8175694942474365, 0.7556642889976501, -0.30585917830467224, 0.23209060728549957, -0.4895167350769043, -0.12923629581928253, 0.05074399709701538, 0.44222208857536316, 0.3779638409614563, 0.6898298859596252, 0.8935835361480713, -0.49076589941978455, 0.43083205819129944, 0.013185156509280205, -0.6183678507804871, 0.6817305684089661, -1.166298270225525, 0.3001343607902527, 0.05454621836543083, 0.18107183277606964, -1.0697375535964966, -0.03767478093504906, 0.5638675689697266, -0.7779051661491394, 0.22939442098140717, -0.23144294321537018, -0.4728828966617584, -0.3145368695259094, -0.3517758250236511, 0.5787857174873352, 0.772327184677124, -0.5662421584129333, 0.3594852387905121, 0.1657787561416626, 0.0966673418879509, -0.4280001223087311, -0.5306042432785034, -0.06851072609424591, -0.35924220085144043, -1.0552805662155151, 0.4467695355415344, -0.28340303897857666, -0.06577881425619125, 0.12983812391757965, -0.1262967735528946, -0.3840586841106415, -0.3009570240974426, 0.195291668176651, 0.3669038712978363, -0.35920989513397217, -0.595654308795929, -0.2956198453903198, -0.49485844373703003, 0.05293489620089531, -0.12492132186889648, 0.8295116424560547, -0.06486932933330536, -0.380847305059433, -0.9002272486686707, -0.02324996516108513, 0.6328531503677368, 0.4595693051815033, 0.6686847805976868, 1.1543246507644653, -0.3761368691921234, 0.03908006474375725, -0.40862801671028137, -0.2330150455236435, -0.5403113961219788, 0.2560281455516815, -0.2154937982559204, -0.4240672290325165, 0.705818235874176, 0.27162453532218933, 0.19568240642547607, 0.3755605220794678, 0.42359042167663574, -0.3948756158351898, 1.2092266082763672, 0.5240752100944519, 0.07188428193330765, 0.5213498473167419, -1.157508373260498, 0.21023118495941162, -1.1468384265899658, -0.09505396336317062, -0.4281546473503113, -0.747075080871582, -0.3457587957382202, -0.5278650522232056, 0.5270331501960754, 0.1000320315361023, -0.3332403004169464, 0.39689651131629944, -0.5356388688087463, 0.5119772553443909, 0.2109842598438263, 0.52358478307724, 0.018787309527397156, 0.18996790051460266, 0.11730759590864182, -0.2685473561286926, -0.5642237663269043, -0.4538356363773346, 1.0333349704742432, 0.1709851324558258, 0.9915176033973694, 0.13135507702827454, 0.7522597312927246, -0.14236120879650116, -0.19179339706897736, -0.6377562284469604, 0.41115549206733704, -0.29628607630729675, -0.7131416201591492, -0.15440380573272705, -0.2397981584072113, -1.3527207374572754, 0.34320950508117676, -0.29751262068748474, -0.7857576012611389, 0.3388907313346863, 0.25771456956863403, -0.4240109622478485, 0.8436042666435242, -0.7398610711097717, 0.8227916955947876, -0.08260706067085266, -0.8427985906600952, -0.23415975272655487, -0.22841842472553253, 0.10477066785097122, 0.11971680819988251, 0.07488302141427994, -0.16840435564517975, -0.34716910123825073, 0.6753824353218079, -0.7336193323135376, 0.8309247493743896, -0.29499348998069763, -0.294150173664093, 0.3195211887359619, 0.04046041890978813, 0.5850912928581238, 0.07485048472881317, -0.17282849550247192, 0.16837915778160095, 0.2959413528442383, -0.6284730434417725, -0.5326660871505737, 0.9237051606178284, -1.010493516921997, -0.3776218891143799, -0.4398691654205322, -0.39504945278167725, 0.2969996929168701, 0.11940312385559082, 0.8451733589172363, 0.5410590767860413, 0.05957883596420288, 0.39020130038261414, 0.7477156519889832, -0.1774742603302002, 0.7579745650291443, 0.11511237174272537, -0.3182094395160675, -0.5653460025787354, 0.8843669295310974, 0.19223010540008545, 0.34436264634132385, 0.04825040325522423, 0.4288751482963562, -0.35901379585266113, -0.48595860600471497, -0.5188690423965454, 0.24890629947185516, -0.6441546678543091, -0.11218011379241943, -0.4928845763206482, -0.37558886408805847, -0.3915698528289795, -0.6188961267471313, -0.39624354243278503, -0.27646932005882263, -0.8130358457565308, 0.5344899296760559, 0.5681672096252441, 0.627689778804779, -0.37764373421669006, 0.1787271350622177, -0.5096127986907959, 0.3823319375514984, 0.27515360713005066, 0.3875182569026947, -0.09818489104509354, -0.7078503370285034, -0.06126305088400841, 0.08778204768896103, -0.6989545226097107, -0.4967861473560333, 0.7794433832168579, -0.08218241482973099, 0.35505518317222595, 0.5131080150604248, -0.15305091440677643, 0.8176265954971313, -0.2665569484233856, 0.7052962779998779, 0.6829534769058228, -0.8922504782676697, 0.42126721143722534, -0.6603366136550903, 0.48112860321998596, 0.09487731009721756, 0.26335957646369934, -0.4758847951889038, -0.052738968282938004, -0.771648645401001, -0.891887903213501, 0.7982373237609863, 0.4183811843395233, 0.1915176808834076, 0.4110686480998993, 0.14160093665122986, 0.022206829860806465, -0.2872035801410675, -0.98087477684021, -0.30514442920684814, -0.24425572156906128, 0.020999891683459282, -0.28376519680023193, -0.06114748492836952, 0.07205064594745636, -0.6297851800918579, 0.8307350873947144, -0.14046502113342285, 0.43861493468284607, 0.48580819368362427, 0.2872845530509949, -0.17305439710617065, -0.040824033319950104, 0.5515607595443726, 0.8676256537437439, -0.34369680285453796, -0.17485395073890686, -0.030307510867714882, -0.5687615871429443, -0.01259011309593916, -0.291777104139328, -0.19489744305610657, 0.1406717449426651, -0.017454884946346283, 0.7121500372886658, 0.021040190011262894, -0.4155941605567932, 0.4073363244533539, -0.13841021060943604, -0.6117980480194092, -0.4385920763015747, 0.13431282341480255, 0.3809833824634552, 0.2298692911863327, 0.1389472335577011, 0.37136518955230713, -0.01847023144364357, -0.3669661581516266, -0.09897080063819885, 0.5173065066337585, -0.4662623405456543, -0.3180607855319977, 0.5877074599266052, 0.22549881041049957, -0.26905500888824463, 0.3389914929866791, -0.17368434369564056, -0.3747502267360687, 1.075637936592102, 0.635307252407074, 0.7920738458633423, 0.2540965676307678, 0.2349368929862976, 0.8901249766349792, 0.014821624383330345, 0.16001754999160767, 0.5556443929672241, 0.13996660709381104, -0.6773965954780579, -0.09314034879207611, -0.24720700085163116, -0.3562558889389038, 0.2589445412158966, -0.21269088983535767, 0.920339822769165, -0.6630924940109253, -0.096758171916008, -0.04471943899989128, 0.19228243827819824, -0.6324461698532104, 0.16349391639232635, 0.29661568999290466, 0.9073503613471985, -0.410279780626297, 0.7864502668380737, 0.41555795073509216, -0.43149468302726746, -0.8354710340499878, -0.3765774965286255, 0.13072361052036285, -0.9058210253715515, 0.644477903842926, 0.09079809486865997, -0.32367295026779175, 0.2982850670814514, -0.7987235188484192, -1.003598928451538, 1.3595962524414062, 0.36242514848709106, -0.348831444978714, 0.33262893557548523, -0.2345927506685257, 0.4817139506340027, -0.505121648311615, 0.4074082374572754, 0.051529284566640854, 0.36853402853012085, 0.6430810689926147, -0.6236292123794556, 0.02168412134051323, -0.44871288537979126, -0.07326193153858185, 0.26614952087402344, -0.6532625555992126, 0.9702699780464172, -0.612727701663971, -0.4347767233848572, 0.5905481576919556, 0.2990748882293701, 0.39943209290504456, 0.25266245007514954, 0.4784034788608551, 1.0618292093276978, 0.31640541553497314, -0.25723621249198914, 0.8814690113067627, -0.25591209530830383, 0.5844534039497375, 0.7607808113098145, 0.056457627564668655, 0.6668000221252441, 0.4356515407562256, -0.14167143404483795, 0.7618461847305298, 0.9037594795227051, -0.07712589204311371, 0.4763755798339844, 0.4319322109222412, -0.2506214678287506, 0.09653733670711517, 0.034460365772247314, -0.7106693387031555, 0.024016637355089188, 0.23238149285316467, -0.35071396827697754, -0.31858184933662415, -0.13004499673843384, 0.045755401253700256, -0.12368413805961609, -0.436707466840744, 0.46947067975997925, -0.13383899629116058, -0.16759991645812988, 0.8676698207855225, -0.40616756677627563, 1.2066775560379028, -0.6687399744987488, 0.022025061771273613, 0.04121896252036095, 0.4193915128707886, -0.5907825827598572, -1.1285450458526611, 0.3908672034740448, 0.03564533218741417, 0.036693066358566284, -0.15876702964305878, 0.5056007504463196, 0.07638075202703476, -0.8130090236663818, 0.24936917424201965, 0.0064809261821210384, 0.43376460671424866, 0.06992080807685852, -0.8538660407066345, 0.49630093574523926, 0.033663857728242874, -0.23868940770626068, 0.07724301517009735, 0.3287012577056885, 0.6526016592979431, 0.7805140018463135, 0.502160906791687, 0.3092384338378906, 0.1616910845041275, -0.19242791831493378, 0.809945821762085, -0.513420045375824, -0.20968680083751678, -0.8068869709968567, 0.6264728307723999, -0.16383115947246552, -0.3363708257675171, 0.6629663705825806, 0.7337762713432312, 0.6265290379524231, -0.26665952801704407, 0.7273426651954651, -0.5108222365379333, 0.15596522390842438, -0.6963515877723694, 1.050567388534546, -0.7403814792633057, -0.05503823235630989, -0.42617490887641907, -0.8923797011375427, -0.06999456882476807, 0.8002400994300842, -0.20581284165382385, -0.013665352948009968, 0.8621450066566467, 1.070733904838562, -0.2546360492706299, -0.23815220594406128, 0.3744353652000427, 0.0033481644932180643, 0.32980993390083313, 0.7374696135520935, 0.6432827115058899, -0.6476092338562012, 0.6550974249839783, -0.6150373816490173, 0.011782319284975529, 0.0267893448472023, -0.9884268045425415, -0.7281336784362793, -0.5656764507293701, -0.6576391458511353, -0.686922013759613, -0.40638014674186707, 0.7500988245010376, 1.2400496006011963, -0.6961061954498291, -0.24832089245319366, -0.3045526146888733, 0.14954271912574768, 0.13272906839847565, -0.26225003600120544, 0.3366619050502777, -0.05510725453495979, -1.2057098150253296, -0.3443460464477539, 0.14649127423763275, 0.37680187821388245, -0.08566935360431671, -0.24950382113456726, -0.08694653958082199, -0.07282824069261551, 0.35929059982299805, 0.5242765545845032, -0.6813511252403259, -0.2679191827774048, -0.17470936477184296, -0.00029704588814638555, 0.37740546464920044, 0.6177507638931274, -0.682356059551239, 0.3167158365249634, 0.7994986772537231, 0.18026898801326752, 0.5841675996780396, -0.4102332890033722, 0.16234442591667175, -0.17256993055343628, 0.11118263751268387, 0.12669847905635834, 0.7636170387268066, 0.04785418510437012, -0.34293004870414734, 0.7044438123703003, 0.32747647166252136, -0.7489914298057556, -0.504365861415863, 0.10812127590179443, -1.3287928104400635, -0.38667064905166626, 1.0109729766845703, -0.18528343737125397, -0.24877819418907166, 0.06294885277748108, -0.8101971745491028, -0.07386051118373871, -0.5143119692802429, 0.8275067806243896, 0.5870808959007263, -0.3710435628890991, -0.4782256484031677, -0.2536405324935913, 0.1829225718975067, 0.06414756178855896, -0.8914468288421631, -0.29511693120002747, 0.6129759550094604, 0.6942388415336609, 0.521687924861908, 0.6807768940925598, -0.3569674491882324, 0.3255026936531067, 0.19851340353488922, 0.1589498668909073, 0.17752671241760254, 0.2665270268917084, -0.3390073776245117, -0.043220724910497665, -0.21568149328231812, -0.4321598410606384 ]
timm/xcit_large_24_p8_224.fb_in1k
timm
"2023-04-13T02:02:40Z"
23,497
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2106.09681", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-13T01:59:56Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for xcit_large_24_p8_224.fb_in1k A XCiT (Cross-Covariance Image Transformer) image classification model. Pretrained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 188.9 - GMACs: 141.2 - Activations (M): 181.6 - Image size: 224 x 224 - **Papers:** - XCiT: Cross-Covariance Image Transformers: https://arxiv.org/abs/2106.09681 - **Dataset:** ImageNet-1k - **Original:** https://github.com/facebookresearch/xcit ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('xcit_large_24_p8_224.fb_in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'xcit_large_24_p8_224.fb_in1k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 785, 768) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Citation ```bibtex @article{el2021xcit, title={XCiT: Cross-Covariance Image Transformers}, author={El-Nouby, Alaaeldin and Touvron, Hugo and Caron, Mathilde and Bojanowski, Piotr and Douze, Matthijs and Joulin, Armand and Laptev, Ivan and Neverova, Natalia and Synnaeve, Gabriel and Verbeek, Jakob and others}, journal={arXiv preprint arXiv:2106.09681}, year={2021} } ```
[ -0.42490440607070923, -0.2758063077926636, 0.027564097195863724, 0.22544226050376892, -0.38450315594673157, -0.2341519594192505, -0.255928099155426, -0.3911764919757843, 0.3168349266052246, 0.31425151228904724, -0.7029023170471191, -0.6912056803703308, -0.7259497046470642, -0.18251028656959534, -0.43356817960739136, 1.0768777132034302, -0.13576915860176086, 0.05745881423354149, -0.18660587072372437, -0.36275699734687805, -0.08835070580244064, -0.3304797112941742, -0.9324739575386047, -0.3516124188899994, 0.4467960000038147, 0.12455814331769943, 0.6402236223220825, 0.4453878104686737, 0.5127204656600952, 0.4977196753025055, 0.015146908350288868, -0.06885993480682373, -0.47721582651138306, -0.36102113127708435, 0.2569807767868042, -0.8497910499572754, -0.5067377090454102, 0.23730477690696716, 0.8139582872390747, 0.4071318507194519, 0.14401115477085114, 0.3647877275943756, 0.05939502269029617, 0.3856641948223114, -0.24974779784679413, 0.18761056661605835, -0.511976420879364, 0.36687731742858887, -0.22424769401550293, -0.012741046957671642, -0.2801090180873871, -0.40200892090797424, 0.23851579427719116, -0.6730287671089172, 0.5340388417243958, 0.20293056964874268, 1.327203392982483, 0.20575356483459473, -0.0007505767862312496, -0.03981879726052284, -0.2630405128002167, 0.9528084993362427, -0.6026173233985901, 0.48852381110191345, 0.2181316465139389, 0.208328515291214, -0.12345191836357117, -0.8990136981010437, -0.6883974671363831, -0.02052481472492218, -0.23032929003238678, -0.01132869441062212, -0.28822413086891174, -0.13287869095802307, 0.25205039978027344, 0.42970436811447144, -0.5351684093475342, 0.10428398102521896, -0.5048874616622925, -0.25661057233810425, 0.6687806248664856, 0.10039154440164566, 0.27355867624282837, -0.1695098876953125, -0.7536731362342834, -0.6339398622512817, -0.37279316782951355, 0.4139638841152191, 0.3784434497356415, 0.22408834099769592, -0.7627766132354736, 0.3400290608406067, 0.167570561170578, 0.3827555477619171, 0.36504065990448, -0.28301674127578735, 0.7519344687461853, -0.08683501183986664, -0.478000283241272, 0.021200265735387802, 1.0915855169296265, 0.26727840304374695, 0.12638501822948456, 0.04107002541422844, -0.027356792241334915, -0.34817856550216675, -0.07139474898576736, -1.0544053316116333, -0.16503013670444489, 0.28607994318008423, -0.5430887937545776, -0.4466208219528198, 0.22845907509326935, -0.6312667727470398, 0.026631943881511688, -0.03164498135447502, 0.714763343334198, -0.4401271343231201, -0.3124014735221863, 0.12762907147407532, -0.21492686867713928, 0.4432460367679596, 0.15150031447410583, -0.619249165058136, 0.20960867404937744, 0.26619449257850647, 0.9512466788291931, -0.0317925326526165, -0.4539860188961029, -0.20782913267612457, -0.23970913887023926, -0.28902649879455566, 0.45631903409957886, -0.10061563551425934, -0.16860046982765198, -0.13695956766605377, 0.532923698425293, -0.2131592333316803, -0.5377482175827026, 0.543260931968689, -0.33310776948928833, 0.4499967396259308, -0.07828864455223083, -0.2661888003349304, -0.34142571687698364, 0.31687554717063904, -0.4405902922153473, 1.078505039215088, 0.536960244178772, -0.8414819836616516, 0.4972236752510071, -0.47736284136772156, -0.1422024518251419, -0.25760617852211, -0.18828797340393066, -1.249850869178772, -0.1263389140367508, 0.040758512914180756, 0.7511833906173706, -0.2755357623100281, 0.05362721160054207, -0.6057380437850952, -0.24965991079807281, 0.3725951313972473, -0.1511085033416748, 1.122302532196045, -0.0589766688644886, -0.4951871633529663, 0.2685738503932953, -0.8449326157569885, 0.29400473833084106, 0.5120270848274231, -0.29670506715774536, -0.17834678292274475, -0.799338698387146, 0.21595174074172974, 0.37094414234161377, 0.07196643203496933, -0.6854593753814697, 0.21803146600723267, 0.0026307273656129837, 0.3511316478252411, 0.6278908252716064, -0.31059688329696655, 0.40156126022338867, -0.3951166570186615, 0.3450925052165985, 0.34027010202407837, 0.3124749958515167, 0.05597732216119766, -0.5490648746490479, -0.7439678907394409, -0.629612386226654, 0.2703837454319, 0.3247976303100586, -0.5027968287467957, 0.6593400239944458, -0.3061290681362152, -0.8400291204452515, -0.41284826397895813, -0.027449866756796837, 0.5491588115692139, 0.43845269083976746, 0.4970390498638153, -0.4033631682395935, -0.5929290652275085, -0.8404948115348816, 0.11686090379953384, 0.06479958444833755, 0.04957512393593788, 0.222383052110672, 0.6968440413475037, -0.21048878133296967, 0.5727091431617737, -0.5016946196556091, -0.3617793321609497, -0.07003867626190186, 0.1640578955411911, 0.31384819746017456, 0.8069010972976685, 0.9929901361465454, -0.7195363640785217, -0.6417848467826843, -0.2150018960237503, -0.8717631697654724, 0.1381857991218567, -0.2762432098388672, -0.4107724130153656, 0.3955335319042206, 0.09409644454717636, -0.7595307230949402, 0.7150431275367737, 0.34620460867881775, -0.5040189623832703, 0.5289987921714783, -0.11925778537988663, 0.19550193846225739, -1.0150463581085205, 0.0449056513607502, 0.2965351343154907, -0.245345801115036, -0.5104958415031433, -0.2142632007598877, 0.09912499040365219, 0.06866120547056198, -0.5535339713096619, 0.7254658341407776, -0.5374143123626709, -0.1018313392996788, -0.07110179960727692, -0.2572309374809265, 0.12742464244365692, 0.8422493934631348, 0.023326443508267403, 0.23052416741847992, 0.7879717350006104, -0.417745977640152, 0.39761149883270264, 0.7488835453987122, -0.3301331400871277, 0.6088544130325317, -0.5913163423538208, 0.005062700714915991, 0.07160245627164841, 0.2870756983757019, -1.0683847665786743, -0.10892479121685028, 0.4104255735874176, -0.5534424185752869, 0.7802545428276062, -0.2602560222148895, -0.26045265793800354, -0.5523618459701538, -0.5623090267181396, 0.512111246585846, 0.6663184762001038, -0.8097153306007385, 0.3223429322242737, 0.06351815164089203, 0.19719649851322174, -0.6788031458854675, -0.9658370018005371, -0.3385518789291382, -0.24714107811450958, -0.8781229257583618, 0.6265577077865601, 0.011309291236102581, 0.25960952043533325, 0.18334852159023285, -0.10498712956905365, -0.09580779075622559, -0.33574968576431274, 0.43810081481933594, 0.3762677311897278, -0.29071447253227234, -0.20480811595916748, -0.034632571041584015, -0.07251036912202835, 0.1601572185754776, -0.13885021209716797, 0.6567806601524353, -0.10132179409265518, -0.26590895652770996, -0.7229586839675903, 0.0454048216342926, 0.55545973777771, 0.10130490362644196, 0.8163410425186157, 1.2318010330200195, -0.35634732246398926, -0.02733268402516842, -0.27539998292922974, -0.1474776715040207, -0.49983668327331543, 0.5612784624099731, -0.41147860884666443, -0.514458417892456, 0.9014689922332764, 0.3350515067577362, -0.016996152698993683, 0.6482617855072021, 0.5180311799049377, 0.08620140701532364, 0.8368765115737915, 0.6126989126205444, 0.22970393300056458, 0.7365473508834839, -0.9578688740730286, -0.11574896425008774, -0.8175472021102905, -0.5353279709815979, -0.3433004915714264, -0.5298601388931274, -0.6692615747451782, -0.4091199040412903, 0.33778074383735657, -0.06878559291362762, -0.4226115047931671, 0.48335573077201843, -0.594021737575531, -0.13178884983062744, 0.7661471962928772, 0.5254889130592346, -0.2676108181476593, 0.26968011260032654, -0.2534862458705902, 0.06726489961147308, -0.7354521155357361, -0.015362879261374474, 1.0690174102783203, 0.4544028341770172, 0.8294215798377991, -0.2863313853740692, 0.7373273372650146, -0.2017636001110077, 0.26527276635169983, -0.5421125292778015, 0.5525577068328857, -0.1234230101108551, -0.6724194884300232, -0.2880314588546753, -0.38075315952301025, -1.1423563957214355, 0.09432397037744522, -0.4426186978816986, -0.5760424733161926, 0.44127094745635986, 0.17422498762607574, -0.3441726863384247, 0.7226176857948303, -0.6618703603744507, 0.9160681366920471, -0.2581597864627838, -0.5428529977798462, 0.004516452085226774, -0.6259093880653381, 0.3246823251247406, -0.09975015372037888, -0.2353980392217636, 0.032688915729522705, 0.22173407673835754, 1.0959614515304565, -0.6259380578994751, 1.0142804384231567, -0.4899355173110962, 0.14932666718959808, 0.45759671926498413, -0.40537595748901367, 0.30446648597717285, -0.11198460310697556, -0.03529581055045128, 0.5042343735694885, 0.21841426193714142, -0.5942786931991577, -0.5908588171005249, 0.5835375189781189, -1.1282286643981934, -0.4759543836116791, -0.359494149684906, -0.5611230731010437, 0.15051500499248505, 0.13697019219398499, 0.688160240650177, 0.5687118768692017, 0.060015443712472916, 0.4135114252567291, 0.5476521849632263, -0.45313483476638794, 0.40009430050849915, -0.0956672951579094, -0.3028116822242737, -0.47262588143348694, 0.7389867901802063, 0.38029909133911133, 0.23870626091957092, 0.21489757299423218, 0.18820379674434662, -0.33463814854621887, -0.4515038728713989, -0.37224164605140686, 0.3679381012916565, -0.645176112651825, -0.5024393200874329, -0.5736832618713379, -0.48246270418167114, -0.5231984853744507, -0.13343453407287598, -0.48887449502944946, -0.45666953921318054, -0.3273668885231018, 0.23226125538349152, 0.5682860612869263, 0.3828710615634918, -0.1934831589460373, 0.6144995093345642, -0.7704227566719055, 0.06694629788398743, 0.12282080203294754, 0.5268392562866211, -0.05096133425831795, -1.0631072521209717, -0.39279264211654663, -0.054069310426712036, -0.4439862072467804, -0.6531721949577332, 0.5818203091621399, 0.16718775033950806, 0.6808279156684875, 0.5169579982757568, -0.12575648725032806, 0.7846429944038391, -0.0819195881485939, 0.4729102551937103, 0.503396213054657, -0.7586684226989746, 0.32511183619499207, -0.07122761011123657, 0.11532870680093765, 0.04845164343714714, 0.7122546434402466, -0.1987941563129425, -0.01945680007338524, -0.9739965796470642, -0.6528600454330444, 0.8323631286621094, 0.2572673559188843, 0.04759448394179344, 0.3327963352203369, 0.6630792617797852, 0.2712911069393158, 0.11865464597940445, -0.803687572479248, -0.4320514500141144, -0.4205240309238434, -0.2509695589542389, 0.05199423432350159, 0.025691406801342964, -0.05757562816143036, -0.684532880783081, 0.8451281785964966, -0.11500640958547592, 0.9038497805595398, 0.30456727743148804, 0.00030033831717446446, -0.28274005651474, -0.3498859405517578, 0.47156327962875366, 0.14811360836029053, -0.29006001353263855, -0.09130306541919708, 0.1508042812347412, -0.5887229442596436, 0.1180933341383934, 0.22052675485610962, 0.0004310926888138056, -0.020863723009824753, 0.45708781480789185, 1.0057710409164429, 0.14858850836753845, 0.12862025201320648, 0.5405426025390625, -0.232610285282135, -0.505807638168335, -0.4295227527618408, 0.22624553740024567, -0.14924751222133636, 0.5309608578681946, 0.3728550374507904, 0.3924463987350464, -0.2197788506746292, -0.3722485899925232, 0.20277424156665802, 0.7122374176979065, -0.37153515219688416, -0.6310936212539673, 0.5973004698753357, -0.20600298047065735, -0.08185523003339767, 0.7409225702285767, -0.08124573528766632, -0.4937227964401245, 0.9628504514694214, 0.5443850159645081, 0.9948799014091492, -0.12742313742637634, 0.0678885206580162, 0.7747445702552795, 0.0478367879986763, 0.04352573677897453, 0.23384927213191986, 0.0968485102057457, -0.8987461924552917, -0.0261758454144001, -0.6096682548522949, -0.10850811004638672, 0.4127298891544342, -0.655379056930542, 0.5298970341682434, -0.576899528503418, -0.32275673747062683, 0.17251716554164886, 0.3265945315361023, -0.9603543877601624, 0.3958834409713745, 0.11511477082967758, 0.8789700865745544, -0.9944127798080444, 0.8719958662986755, 0.7351781129837036, -0.6139952540397644, -0.9319536685943604, -0.21763697266578674, -0.13081902265548706, -1.0999795198440552, 0.6570127606391907, 0.32957950234413147, 0.15477745234966278, -0.01528719812631607, -0.9453231692314148, -0.8667755722999573, 1.462986707687378, 0.43618813157081604, -0.23630550503730774, 0.06653904914855957, 0.25882214307785034, 0.3209127187728882, -0.4483771324157715, 0.43889617919921875, 0.16298343241214752, 0.49803823232650757, 0.29727140069007874, -0.6454809904098511, 0.3503730893135071, -0.3011760711669922, -0.054941073060035706, 0.20156706869602203, -1.0569491386413574, 0.9878502488136292, -0.44894346594810486, -0.07669085264205933, 0.1481950581073761, 0.7796911001205444, 0.23884344100952148, 0.19522815942764282, 0.6559365391731262, 0.7662585973739624, 0.6089444160461426, -0.26027822494506836, 0.7869023680686951, -0.05155908316373825, 0.6519367098808289, 0.6288594603538513, 0.23002149164676666, 0.5510583519935608, 0.47615817189216614, -0.34784823656082153, 0.605262279510498, 0.940556526184082, -0.4806382358074188, 0.4190388023853302, 0.1502109169960022, 0.05491097271442413, -0.22419607639312744, 0.28447285294532776, -0.4891563057899475, 0.5588911771774292, 0.21014322340488434, -0.6001878976821899, -0.19336634874343872, 0.1718389391899109, 0.07267174124717712, -0.41315650939941406, -0.2511720061302185, 0.2278727889060974, 0.06047653406858444, -0.4159996211528778, 0.8716344237327576, -0.15786759555339813, 0.931698739528656, -0.44092804193496704, 0.08780524879693985, -0.19422921538352966, 0.42515280842781067, -0.43446677923202515, -0.8507956266403198, 0.4885600805282593, -0.37273967266082764, -0.2158856987953186, 0.002551363781094551, 0.6959623098373413, -0.441425085067749, -0.5315609574317932, 0.4160354733467102, 0.24271515011787415, 0.4083898961544037, 0.032262980937957764, -1.2134970426559448, 0.13872340321540833, 0.10903021693229675, -0.7605002522468567, 0.4585922956466675, 0.4667700529098511, -0.1465916931629181, 0.6719481945037842, 0.6009165644645691, -0.24720485508441925, 0.350490003824234, -0.29801294207572937, 0.8997443914413452, -0.5606220364570618, -0.3312835991382599, -0.6761882901191711, 0.6260848045349121, -0.06153656542301178, -0.5656242370605469, 0.5158067345619202, 0.5719082355499268, 1.074674129486084, -0.1844828873872757, 0.6161928772926331, -0.2732149064540863, 0.06706687062978745, -0.3282611668109894, 0.7506740689277649, -0.7479874491691589, -0.2406531423330307, -0.1716262698173523, -0.7164342999458313, -0.3941633403301239, 0.6209324598312378, -0.33538416028022766, 0.45133712887763977, 0.6090685129165649, 0.9673059582710266, -0.32087329030036926, -0.24779708683490753, 0.44467201828956604, 0.22901871800422668, 0.16870881617069244, 0.39419683814048767, 0.41218823194503784, -0.9243414402008057, 0.5493391156196594, -0.5856387615203857, -0.23443980515003204, -0.16157792508602142, -0.6865791082382202, -1.096168875694275, -0.8429319262504578, -0.7224727869033813, -0.6326410174369812, -0.27967652678489685, 0.9868252277374268, 1.1245954036712646, -0.7788998484611511, -0.05109323561191559, 0.15661633014678955, 0.04479816555976868, -0.19882076978683472, -0.2264755368232727, 0.6071557998657227, -0.24869999289512634, -0.9553172588348389, -0.4248804748058319, -0.06694149971008301, 0.40389886498451233, -0.2307666689157486, -0.23303104937076569, -0.24106642603874207, -0.14293590188026428, 0.3347506821155548, 0.33475592732429504, -0.4512673318386078, -0.3217293322086334, -0.0805363655090332, -0.15428204834461212, 0.5953775644302368, 0.3183942139148712, -0.5485795140266418, 0.05258284881711006, 0.585031270980835, 0.35037970542907715, 0.8816850185394287, -0.408862441778183, 0.08768770843744278, -0.8481529951095581, 0.40393632650375366, -0.31884217262268066, 0.6053252220153809, 0.37816476821899414, -0.47273117303848267, 0.4054872989654541, 0.42583388090133667, -0.4996975362300873, -0.8069660067558289, -0.15873903036117554, -1.2545274496078491, -0.02737080678343773, 0.847055196762085, -0.504584014415741, -0.727807343006134, 0.34714198112487793, 0.015613974072039127, 0.7222598791122437, -0.10268888622522354, 0.5772463083267212, 0.19281762838363647, -0.20194751024246216, -0.4553147256374359, -0.19301682710647583, 0.4240958094596863, 0.27138325572013855, -0.6641150116920471, -0.5446492433547974, -0.19595187902450562, 0.7141241431236267, 0.5263437032699585, 0.3492411971092224, -0.27289852499961853, 0.1293790638446808, 0.1067855954170227, 0.6047728657722473, -0.16421927511692047, 0.03033311478793621, -0.29066231846809387, 0.08414012938737869, -0.2654222846031189, -0.5733375549316406 ]
TheBloke/Falcon-7B-Instruct-GPTQ
TheBloke
"2023-08-21T11:21:22Z"
23,494
61
transformers
[ "transformers", "safetensors", "RefinedWebModel", "text-generation", "custom_code", "en", "dataset:tiiuae/falcon-refinedweb", "arxiv:2205.14135", "arxiv:1911.02150", "arxiv:2005.14165", "arxiv:2104.09864", "license:apache-2.0", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-05-27T09:03:00Z"
--- datasets: - tiiuae/falcon-refinedweb license: apache-2.0 language: - en inference: false --- <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Falcon-7B-Instruct GPTQ This repo contains an experimantal GPTQ 4bit model for [Falcon-7B-Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct). It is the result of quantising to 4bit using [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ). ## PERFORMANCE Please note that performance with this GPTQ is currently very slow with AutoGPTQ. It may perform better with the latest GPTQ-for-LLaMa code, but I havne't tested that personally yet. ## Prompt template ``` A helpful assistant who helps the user with any questions asked. User: prompt Assistant: ``` ## AutoGPTQ AutoGPTQ is required: `GITHUB_ACTIONS=true pip install auto-gptq` AutoGPTQ provides pre-compiled wheels for Windows and Linux, with CUDA toolkit 11.7 or 11.8. If you are running CUDA toolkit 12.x, you will need to compile your own by following these instructions: ``` git clone https://github.com/PanQiWei/AutoGPTQ cd AutoGPTQ pip install . ``` These manual steps will require that you have the [Nvidia CUDA toolkit](https://developer.nvidia.com/cuda-12-0-1-download-archive) installed. ## How to download and use this model in text-generation-webui 1. Launch text-generation-webui 2. Click the **Model tab**. 3. Untick **Autoload model** 4. Under **Download custom model or LoRA**, enter `TheBloke/falcon-7B-instruct-GPTQ`. 5. Click **Download**. 6. Wait until it says it's finished downloading. 7. Click the **Refresh** icon next to **Model** in the top left. 8. In the **Model drop-down**: choose the model you just downloaded, `falcon-7B-instruct-GPTQ`. 9. Set **Loader** to **AutoGPTQ**. This model will not work with ExLlama. It might work with recent GPTQ-for-LLaMa but I haven't tested that. 10. Tick **Trust Remote Code**, followed by **Save Settings** 11. Click **Reload**. 12. Once it says it's loaded, click the **Text Generation tab** and enter a prompt! ## About `trust_remote_code` Please be aware that this command line argument causes Python code provided by Falcon to be executed on your machine. This code is required at the moment because Falcon is too new to be supported by Hugging Face transformers. At some point in the future transformers will support the model natively, and then `trust_remote_code` will no longer be needed. In this repo you can see two `.py` files - these are the files that get executed. They are copied from the base repo at [Falcon-7B-Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct). ## Simple Python example code To run this code you need to install AutoGPTQ and einops: ``` GITHUB_ACTIONS=true pip install auto-gptq pip install einops ``` You can then run this example code: ```python from transformers import AutoTokenizer, pipeline, logging from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig import argparse model_name_or_path = "TheBloke/falcon-7b-instruct-GPTQ" # You could also download the model locally, and access it there # model_name_or_path = "/path/to/TheBloke_falcon-7b-instruct-GPTQ" model_basename = "model" use_triton = False tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) model = AutoGPTQForCausalLM.from_quantized(model_name_or_path, model_basename=model_basename, use_safetensors=True, trust_remote_code=True, device="cuda:0", use_triton=use_triton, quantize_config=None) prompt = "Tell me about AI" prompt_template=f'''A helpful assistant who helps the user with any questions asked. User: {prompt} Assistant:''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512) print(tokenizer.decode(output[0])) # Inference can also be done using transformers' pipeline # Note that if you use pipeline, you will see a spurious error message saying the model type is not supported # This can be ignored! Or you can hide it with the following logging line: # Prevent printing spurious transformers error when using pipeline with AutoGPTQ logging.set_verbosity(logging.CRITICAL) print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, temperature=0.7, top_p=0.95, repetition_penalty=1.15 ) print(pipe(prompt_template)[0]['generated_text']) ``` ## Provided files **gptq_model-4bit-64g.safetensors** This will work with AutoGPTQ 0.2.0 and later. It was created with groupsize 64 to give higher inference quality, and without `desc_act` (act-order) to increase inference speed. * `gptq_model-4bit-64g.safetensors` * Works with AutoGPTQ CUDA 0.2.0 and later. * At this time it does not work with AutoGPTQ Triton, but support will hopefully be added in time. * Works with text-generation-webui using `--trust-remote-code` * Does not work with any version of GPTQ-for-LLaMa * Parameters: Groupsize = 64. No act-order. <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute. Thanks to the [chirper.ai](https://chirper.ai) team! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # ✨ Original model card: Falcon-7B-Instruct **Falcon-7B-Instruct is a 7B parameters causal decoder-only model built by [TII](https://www.tii.ae) based on [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b) and finetuned on a mixture of chat/instruct datasets. It is made available under the [TII Falcon LLM License](https://huggingface.co/tiiuae/falcon-7b-instruct/blob/main/LICENSE.txt).** *Paper coming soon 😊.* ## Why use Falcon-7B-Instruct? * **You are looking for a ready-to-use chat/instruct model based on [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b).** * **Falcon-7B is a strong base model, outperforming comparable open-source models** (e.g., [MPT-7B](https://huggingface.co/mosaicml/mpt-7b), [StableLM](https://github.com/Stability-AI/StableLM), [RedPajama](https://huggingface.co/togethercomputer/RedPajama-INCITE-Base-7B-v0.1) etc.), thanks to being trained on 1,500B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) enhanced with curated corpora. See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). * **It features an architecture optimized for inference**, with FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135)) and multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)). 💬 **This is an instruct model, which may not be ideal for further finetuning.** If you are interested in building your own instruct/chat model, we recommend starting from [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b). 🔥 **Looking for an even more powerful model?** [Falcon-40B-Instruct](https://huggingface.co/tiiuae/falcon-40b-instruct) is Falcon-7B-Instruct's big brother! ```python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model = "tiiuae/falcon-7b-instruct" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, tokenizer=tokenizer, torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto", ) sequences = pipeline( "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:", max_length=200, do_sample=True, top_k=10, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ``` 💥 **Falcon LLMs require PyTorch 2.0 for use with `transformers`!** # Model Card for Falcon-7B-Instruct ## Model Details ### Model Description - **Developed by:** [https://www.tii.ae](https://www.tii.ae); - **Model type:** Causal decoder-only; - **Language(s) (NLP):** English and French; - **License:** [TII Falcon LLM License](https://huggingface.co/tiiuae/falcon-7b-instruct/blob/main/LICENSE.txt); - **Finetuned from model:** [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b). ### Model Source - **Paper:** *coming soon*. ## Uses ### Direct Use Falcon-7B-Instruct has been finetuned on a mixture of instruct and chat datasets. ### Out-of-Scope Use Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful. ## Bias, Risks, and Limitations Falcon-7B-Instruct is mostly trained on English data, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online. ### Recommendations We recommend users of Falcon-7B-Instruct to develop guardrails and to take appropriate precautions for any production use. ## How to Get Started with the Model ```python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model = "tiiuae/falcon-7b-instruct" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, tokenizer=tokenizer, torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto", ) sequences = pipeline( "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:", max_length=200, do_sample=True, top_k=10, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ``` ## Training Details ### Training Data Falcon-7B-Instruct was finetuned on a 250M tokens mixture of instruct/chat datasets. | **Data source** | **Fraction** | **Tokens** | **Description** | |--------------------|--------------|------------|-----------------------------------| | [Bai ze](https://github.com/project-baize/baize-chatbot) | 65% | 164M | chat | | [GPT4All](https://github.com/nomic-ai/gpt4all) | 25% | 62M | instruct | | [GPTeacher](https://github.com/teknium1/GPTeacher) | 5% | 11M | instruct | | [RefinedWeb-English](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) | 5% | 13M | massive web crawl | The data was tokenized with the Falcon-[7B](https://huggingface.co/tiiuae/falcon-7b)/[40B](https://huggingface.co/tiiuae/falcon-40b) tokenizer. ## Evaluation *Paper coming soon.* See the [OpenLLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) for early results. Note that this model variant is not optimized for NLP benchmarks. ## Technical Specifications For more information about pretraining, see [Falcon-7B](https://huggingface.co/tiiuae/falcon-7b). ### Model Architecture and Objective Falcon-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token). The architecture is broadly adapted from the GPT-3 paper ([Brown et al., 2020](https://arxiv.org/abs/2005.14165)), with the following differences: * **Positionnal embeddings:** rotary ([Su et al., 2021](https://arxiv.org/abs/2104.09864)); * **Attention:** multiquery ([Shazeer et al., 2019](https://arxiv.org/abs/1911.02150)) and FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135)); * **Decoder-block:** parallel attention/MLP with a single layer norm. | **Hyperparameter** | **Value** | **Comment** | |--------------------|-----------|----------------------------------------| | Layers | 32 | | | `d_model` | 4544 | Increased to compensate for multiquery | | `head_dim` | 64 | Reduced to optimise for FlashAttention | | Vocabulary | 65024 | | | Sequence length | 2048 | | ### Compute Infrastructure #### Hardware Falcon-7B-Instruct was trained on AWS SageMaker, on 32 A100 40GB GPUs in P4d instances. #### Software Falcon-7B-Instruct was trained a custom distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO and high-performance Triton kernels (FlashAttention, etc.) ## Citation *Paper coming soon 😊.* ## License Falcon-7B-Instruct is made available under the [TII Falcon LLM License](https://huggingface.co/tiiuae/falcon-7b-instruct/blob/main/LICENSE.txt). Broadly speaking, * You can freely use our models for research and/or personal purpose; * You are allowed to share and build derivatives of these models, but you are required to give attribution and to share-alike with the same license; * For commercial use, you are exempt from royalties payment if the attributable revenues are inferior to $1M/year, otherwise you should enter in a commercial agreement with TII. ## Contact falconllm@tii.ae
[ -0.5876091122627258, -0.7084431648254395, 0.20330122113227844, 0.08687889575958252, -0.22205941379070282, 0.07987143844366074, 0.19982430338859558, -0.43550896644592285, 0.3475465178489685, 0.1725105345249176, -0.660894513130188, -0.4013198912143707, -0.5171087980270386, 0.041009463369846344, -0.39622485637664795, 0.964821994304657, 0.2512097954750061, -0.4390198588371277, 0.14008381962776184, 0.08341802656650543, -0.22751030325889587, -0.3398978114128113, -0.843571662902832, -0.21243581175804138, 0.272146612405777, 0.14170584082603455, 0.9316362142562866, 0.7452176809310913, 0.3847232162952423, 0.4513337016105652, -0.0638635903596878, 0.12975898385047913, -0.3206635117530823, -0.275744765996933, 0.11861526966094971, -0.28324469923973083, -0.5554354190826416, 0.13596728444099426, 0.6189618706703186, 0.1944567859172821, -0.25413283705711365, 0.15377287566661835, -0.044277846813201904, 0.5048272609710693, -0.375629723072052, 0.32816892862319946, -0.41868457198143005, 0.057439614087343216, -0.1198788657784462, 0.1603097915649414, 0.0019858540035784245, -0.3310466706752777, -0.23212523758411407, -1.0197460651397705, 0.1864853948354721, 0.12570354342460632, 1.3268249034881592, 0.3855641484260559, -0.3797619938850403, -0.05811434984207153, -0.435285747051239, 0.5412999987602234, -0.9122751951217651, 0.365487277507782, 0.22417601943016052, 0.27564096450805664, -0.1815735548734665, -1.167842984199524, -0.7879292964935303, -0.1407913714647293, -0.1811087429523468, 0.4371868968009949, -0.5731483697891235, -0.0636579841375351, 0.2992970645427704, 0.515509307384491, -0.590868353843689, -0.18071195483207703, -0.4251125752925873, -0.17691607773303986, 0.7128592729568481, 0.22381679713726044, 0.455843061208725, -0.29193809628486633, -0.32625070214271545, -0.3283306658267975, -0.47114038467407227, 0.31400299072265625, 0.29696574807167053, 0.10339417308568954, -0.5955981016159058, 0.45631465315818787, -0.2432144582271576, 0.4669434428215027, 0.6166330575942993, 0.1329241693019867, 0.3082354664802551, -0.47911277413368225, -0.5283191800117493, -0.250000536441803, 1.3358631134033203, 0.28186067938804626, -0.16589650511741638, 0.09001694619655609, -0.09419367462396622, 0.00041903145029209554, 0.07867158204317093, -0.8202366828918457, -0.36258333921432495, 0.40293464064598083, -0.4134465157985687, -0.3096328675746918, 0.054339636117219925, -0.7780152559280396, -0.08696368336677551, 0.09867161512374878, 0.45118728280067444, -0.32551223039627075, -0.4281279444694519, 0.07629785686731339, -0.20638899505138397, 0.43641385436058044, 0.07519631087779999, -0.9079521298408508, 0.21129700541496277, 0.4443187117576599, 0.7710627913475037, 0.3698273301124573, -0.3647371232509613, -0.6737070083618164, 0.1373526155948639, -0.23268643021583557, 0.5264257192611694, -0.31010618805885315, -0.5783235430717468, -0.28191956877708435, 0.36575403809547424, -0.09529300034046173, -0.2563057541847229, 0.49951475858688354, -0.23647432029247284, 0.2917625308036804, -0.3869195580482483, -0.32813018560409546, -0.26079314947128296, 0.03797634690999985, -0.5155920386314392, 1.0026724338531494, 0.3798650801181793, -0.8520234823226929, 0.030314188450574875, -0.7277470827102661, -0.3064759075641632, 0.1942247450351715, -0.09810571372509003, -0.5784375667572021, -0.11796025186777115, 0.3628807067871094, 0.33589544892311096, -0.25920620560646057, 0.18038181960582733, -0.4064200818538666, -0.3805680274963379, 0.13021111488342285, -0.23801060020923615, 1.1840157508850098, 0.367546021938324, -0.7149892449378967, 0.022209202870726585, -0.5157197117805481, -0.003522303653880954, 0.41155749559402466, -0.07469255477190018, 0.21933409571647644, -0.31004205346107483, -0.03528119996190071, 0.11338961124420166, 0.19893379509449005, -0.48880910873413086, 0.33997946977615356, -0.3864887058734894, 0.7790355086326599, 0.5950111150741577, 0.0010428373934701085, 0.4151208996772766, -0.5334964394569397, 0.5637162923812866, 0.09937677532434464, 0.5776827931404114, 0.084358811378479, -0.6432837247848511, -0.9385560154914856, -0.2023538053035736, 0.22317281365394592, 0.4658839702606201, -0.7988442182540894, 0.43023115396499634, 0.04833982139825821, -0.6650142669677734, -0.5525216460227966, -0.2259443998336792, 0.2740248739719391, 0.5126332640647888, 0.38859477639198303, -0.335153728723526, -0.39316511154174805, -0.8186075091362, -0.015460783615708351, -0.45357775688171387, 0.07312306016683578, 0.4246596395969391, 0.5715352296829224, -0.4145916998386383, 0.6932445764541626, -0.5113712549209595, -0.33139726519584656, -0.0315840058028698, 0.061495013535022736, 0.32947590947151184, 0.6584022045135498, 0.744261622428894, -0.6219380497932434, -0.5392006039619446, -0.0482376292347908, -0.6804261207580566, -0.08615019917488098, -0.03167952969670296, -0.4210592210292816, 0.1894114464521408, 0.23273423314094543, -1.0762202739715576, 0.5277346968650818, 0.46676188707351685, -0.5773495435714722, 0.5586659908294678, -0.19768396019935608, 0.22646209597587585, -1.0418598651885986, 0.15949085354804993, 0.06420034170150757, -0.22284042835235596, -0.530426561832428, 0.07636316865682602, -0.08745696395635605, -0.10132177919149399, -0.42511463165283203, 0.6658786535263062, -0.40929609537124634, 0.08016780018806458, -0.04246465489268303, -0.08718845993280411, 0.2615719735622406, 0.45247355103492737, -0.16140393912792206, 0.8215726613998413, 0.6169880628585815, -0.5005327463150024, 0.4631690979003906, 0.4794383645057678, -0.031487561762332916, 0.2834048867225647, -0.9956121444702148, 0.12392804771661758, 0.0036028041504323483, 0.2916453778743744, -1.0648187398910522, -0.29611650109291077, 0.6911004781723022, -0.7818597555160522, 0.36073675751686096, -0.2589465081691742, -0.24055683612823486, -0.5426856279373169, -0.23889319598674774, 0.22759485244750977, 0.7520902752876282, -0.47500747442245483, 0.652123749256134, 0.5544903874397278, -0.03003014251589775, -0.6509258151054382, -0.7221575975418091, -0.04530448466539383, -0.27845513820648193, -0.630128800868988, 0.5513566732406616, -0.18398502469062805, -0.10222220420837402, 0.02391297183930874, 0.17227520048618317, -0.07051040232181549, 0.00943690538406372, 0.36489683389663696, 0.32682284712791443, -0.10920782387256622, -0.22603373229503632, 0.1289745569229126, -0.14902503788471222, 0.09743689745664597, -0.3133731484413147, 0.5205527544021606, -0.6280453205108643, -0.11315710842609406, -0.667465329170227, 0.22105976939201355, 0.6396828889846802, -0.3215802311897278, 0.559371292591095, 0.9325541257858276, -0.32828086614608765, 0.05704225227236748, -0.5214155912399292, -0.19417214393615723, -0.5821753740310669, 0.11491544544696808, -0.23343291878700256, -0.7071124911308289, 0.5735491514205933, 0.3237374424934387, 0.12162554264068604, 0.8646913766860962, 0.47303757071495056, -0.20400281250476837, 0.9984346628189087, 0.5824622511863708, -0.12084341049194336, 0.3647424578666687, -0.7549797296524048, 0.04365236684679985, -0.7754899263381958, -0.28143197298049927, -0.431375652551651, -0.17895615100860596, -0.7389951944351196, -0.3472801744937897, 0.45684346556663513, 0.035687945783138275, -0.8065306544303894, 0.30379152297973633, -0.8468103408813477, 0.18722212314605713, 0.6378335356712341, 0.05572628974914551, 0.14911049604415894, -0.06383766978979111, -0.17118506133556366, 0.14416007697582245, -0.7972990870475769, -0.23881705105304718, 0.773057758808136, 0.3447958528995514, 0.4753016531467438, 0.11717087030410767, 0.6953641772270203, 0.11891636997461319, 0.33298420906066895, -0.4794531762599945, 0.42381396889686584, -0.13378079235553741, -0.6242853999137878, -0.23977935314178467, -0.4626218378543854, -0.8635957837104797, 0.059092797338962555, -0.11524377018213272, -0.5361493229866028, 0.45074978470802307, 0.03946186229586601, -0.6839044690132141, 0.37548771500587463, -0.5819376111030579, 0.7712351083755493, -0.19403621554374695, -0.41812124848365784, 0.18446485698223114, -0.6796852946281433, 0.4289481043815613, 0.1780966818332672, 0.2271788865327835, -0.14451920986175537, -0.018600638955831528, 0.7362117767333984, -0.7287584543228149, 0.8114956021308899, -0.19589203596115112, 0.07455027848482132, 0.6328315734863281, -0.022740866988897324, 0.5727627873420715, 0.3148316442966461, -0.04184155911207199, 0.3198389410972595, 0.1875734031200409, -0.28323712944984436, -0.3875284790992737, 0.6883770227432251, -1.0741201639175415, -0.621768057346344, -0.5198895335197449, -0.3900667130947113, 0.13300323486328125, 0.2419450730085373, 0.4960843026638031, 0.3795895576477051, 0.16391828656196594, 0.05055820196866989, 0.27359524369239807, -0.26109519600868225, 0.8294349908828735, 0.29561296105384827, -0.1665961742401123, -0.6824102401733398, 0.8295518159866333, 0.033207084983587265, 0.08681875467300415, 0.09724239259958267, 0.20824523270130157, -0.6086467504501343, -0.2692696154117584, -0.6702193021774292, 0.4729326367378235, -0.5033626556396484, -0.4053131639957428, -0.6656956672668457, -0.42853212356567383, -0.518720805644989, -0.04093359783291817, -0.5632551908493042, -0.4349904954433441, -0.5650151968002319, 0.17425069212913513, 0.5958200693130493, 0.6540128588676453, -0.26678594946861267, 0.4504867494106293, -0.7949919700622559, 0.23295597732067108, 0.47695064544677734, 0.2433582991361618, 0.05307960510253906, -0.7328397035598755, -0.05736438184976578, 0.29636678099632263, -0.5635937452316284, -0.6497319936752319, 0.8355404138565063, 0.09664707630872726, 0.5766345262527466, 0.1947849690914154, 0.18648934364318848, 0.7918308973312378, -0.21398678421974182, 0.8982464075088501, 0.31851524114608765, -1.1356899738311768, 0.41811099648475647, -0.6044387817382812, 0.3605974614620209, 0.3684324324131012, 0.4866816997528076, -0.39911237359046936, -0.373015820980072, -0.8490265607833862, -0.6148315072059631, 0.5506459474563599, 0.5081881284713745, 0.06877146661281586, -0.03336884081363678, 0.5820592641830444, -0.2707225978374481, 0.1632716953754425, -0.897830605506897, -0.5010554194450378, -0.6612582802772522, -0.1362464874982834, 0.09138856083154678, 0.09025081247091293, -0.12627378106117249, -0.5665408968925476, 0.9339307546615601, -0.19641998410224915, 0.7852195501327515, 0.47234901785850525, 0.21335773169994354, -0.21456055343151093, 0.0035615942906588316, 0.45897942781448364, 0.5964975357055664, -0.09943588078022003, -0.10887596756219864, 0.006549373269081116, -0.5469541549682617, 0.09436644613742828, 0.4444030225276947, -0.3011947274208069, -0.08945133537054062, -0.017390405759215355, 0.8123981356620789, -0.14495012164115906, -0.15493521094322205, 0.43611177802085876, -0.26712286472320557, -0.3933716416358948, -0.3488321900367737, 0.220971941947937, 0.28325167298316956, 0.6156231164932251, 0.439186155796051, -0.24332471191883087, 0.16943073272705078, -0.46855539083480835, 0.15794220566749573, 0.5485271215438843, -0.3535902202129364, -0.23438748717308044, 1.2124216556549072, 0.06604202836751938, -0.263953298330307, 0.7942942380905151, -0.2613151967525482, -0.6104907989501953, 0.9918457269668579, 0.5657374262809753, 0.8983429670333862, -0.10908401012420654, 0.3598986864089966, 0.5791593790054321, 0.3321448564529419, 0.02843545936048031, 0.2797892689704895, 0.2056313008069992, -0.547402024269104, -0.19186809659004211, -0.5835667848587036, -0.35902392864227295, 0.2124331295490265, -0.4724602699279785, 0.27847838401794434, -0.6620593070983887, -0.43464794754981995, -0.0009014240349642932, 0.23572413623332977, -0.5714574456214905, 0.29806607961654663, 0.16955067217350006, 0.6492725610733032, -0.5353093147277832, 0.7218607664108276, 0.5648068189620972, -0.6653192639350891, -1.0967248678207397, -0.17754286527633667, -0.024107476696372032, -0.7204309701919556, 0.40554261207580566, 0.08451390266418457, -0.006281639449298382, 0.39688703417778015, -0.7391999363899231, -0.9220932126045227, 1.344541311264038, 0.1735198050737381, -0.5930392742156982, -0.05147954076528549, 0.13576583564281464, 0.3217948377132416, -0.38139110803604126, 0.6997129321098328, 0.4817441999912262, 0.4788517355918884, 0.16644889116287231, -0.9616298675537109, 0.31397882103919983, -0.48762908577919006, -0.1110200434923172, 0.12747137248516083, -1.3117098808288574, 1.0349507331848145, -0.2168871909379959, -0.14406807720661163, 0.09089135378599167, 0.7338524460792542, 0.32244688272476196, 0.1633543074131012, 0.4733251929283142, 0.6080036163330078, 0.773838996887207, -0.23356330394744873, 1.020066499710083, -0.4990394711494446, 0.6947055459022522, 0.6776670217514038, 0.040298573672771454, 0.5496155619621277, 0.14374537765979767, -0.46125397086143494, 0.4769596457481384, 0.7436025738716125, -0.3086588382720947, 0.3438062071800232, -0.010213315486907959, -0.2597178816795349, -0.17859692871570587, -0.08831720054149628, -0.7603145837783813, 0.33741459250450134, 0.34010958671569824, -0.2515658736228943, 0.028902897611260414, -0.2850300967693329, -0.036870844662189484, -0.476268470287323, -0.21484224498271942, 0.43526577949523926, 0.21652567386627197, -0.49171385169029236, 1.0774929523468018, -0.015078860335052013, 0.7039473652839661, -0.554233193397522, -0.044866759330034256, -0.5148383975028992, 0.08181752264499664, -0.24557998776435852, -0.6553936004638672, 0.2674295902252197, -0.2180677354335785, -0.04766790196299553, 0.08502835035324097, 0.6173382997512817, -0.25677168369293213, -0.5536360144615173, 0.16775286197662354, 0.3250397741794586, 0.1669367253780365, -0.015323901548981667, -1.030648946762085, 0.2742364704608917, 0.09233240783214569, -0.3313392102718353, 0.22123560309410095, 0.255410373210907, 0.2909487783908844, 0.7778183221817017, 0.6325668096542358, -0.22374753654003143, 0.15569426119327545, -0.2151210755109787, 0.9823611378669739, -0.7469828128814697, -0.39776650071144104, -0.8338297605514526, 0.6187053918838501, 0.012529989704489708, -0.35115116834640503, 0.6881006360054016, 0.5547674894332886, 0.7098948955535889, -0.04215047508478165, 0.8445031046867371, -0.319201797246933, 0.17425672709941864, -0.25956326723098755, 1.0811940431594849, -0.7761048078536987, 0.2076403647661209, -0.3032284379005432, -0.6383923292160034, -0.06916960328817368, 0.7843878865242004, 0.01981716975569725, 0.2523157596588135, 0.4857582151889801, 0.853298544883728, -0.09012362360954285, 0.11379583179950714, 0.15115554630756378, 0.4229012429714203, 0.3891283869743347, 0.8548173904418945, 0.7996569871902466, -0.9475805163383484, 0.6496819257736206, -0.6722216010093689, -0.16440646350383759, 0.03690013289451599, -0.8650569915771484, -0.8049659729003906, -0.46603792905807495, -0.47369036078453064, -0.5148263573646545, -0.0017159830313175917, 0.8299165964126587, 0.79123854637146, -0.5448794960975647, -0.28622323274612427, -0.2007896453142166, 0.00538933789357543, -0.07511049509048462, -0.29045647382736206, 0.40535396337509155, -0.012860921211540699, -0.8910799026489258, 0.22634081542491913, 0.056681036949157715, 0.47517603635787964, -0.10772011429071426, -0.14369285106658936, -0.32003384828567505, 0.014499837532639503, 0.34829697012901306, 0.5642256736755371, -0.634483814239502, -0.16155853867530823, 0.0709049254655838, -0.06149273365736008, 0.24411769211292267, 0.2713095545768738, -0.7993934750556946, 0.09840603172779083, 0.39475804567337036, 0.3791886866092682, 0.7148431539535522, 0.06576035916805267, 0.400554358959198, -0.23569540679454803, 0.13308501243591309, 0.07362943887710571, 0.3685333728790283, 0.1537601500749588, -0.6381680965423584, 0.5883495807647705, 0.4163627624511719, -0.7667531967163086, -0.7291048765182495, -0.17866091430187225, -1.0661237239837646, -0.14091543853282928, 1.046130895614624, -0.12317514419555664, -0.37741535902023315, 0.03530502691864967, -0.1473766267299652, 0.5517928600311279, -0.5014808773994446, 0.6326444149017334, 0.3635628819465637, -0.20263953506946564, -0.3552477955818176, -0.5625050663948059, 0.587299108505249, 0.2745401859283447, -0.9023990631103516, -0.1299510896205902, 0.4115484356880188, 0.4261323809623718, 0.08714725822210312, 0.769920825958252, -0.11332479864358902, 0.3488544225692749, 0.10898242145776749, 0.02939063310623169, -0.29450756311416626, -0.051569413393735886, -0.23083415627479553, -0.012276804074645042, -0.3508760631084442, -0.22469182312488556 ]
EleutherAI/polyglot-ko-1.3b
EleutherAI
"2023-06-07T05:03:00Z"
23,492
56
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "causal-lm", "ko", "arxiv:2104.09864", "arxiv:2204.04541", "arxiv:2306.02254", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-09-15T06:10:18Z"
--- language: - ko tags: - pytorch - causal-lm license: apache-2.0 --- # Polyglot-Ko-1.3B ## Model Description Polyglot-Ko is a series of large-scale Korean autoregressive language models made by the EleutherAI polyglot team. | Hyperparameter | Value | |----------------------|----------------------------------------------------------------------------------------------------------------------------------------| | \\(n_{parameters}\\) | 1,331,810,304 | | \\(n_{layers}\\) | 24 | | \\(d_{model}\\) | 2,048 | | \\(d_{ff}\\) | 8,192 | | \\(n_{heads}\\) | 16 | | \\(d_{head}\\) | 128 | | \\(n_{ctx}\\) | 2,048 | | \\(n_{vocab}\\) | 30,003 / 30,080 | | Positional Encoding | [Rotary Position Embedding (RoPE)](https://arxiv.org/abs/2104.09864) | | RoPE Dimensions | [64](https://github.com/kingoflolz/mesh-transformer-jax/blob/f2aa66e0925de6593dcbb70e72399b97b4130482/mesh_transformer/layers.py#L223) | The model consists of 24 transformer layers with a model dimension of 2048, and a feedforward dimension of 8192. The model dimension is split into 16 heads, each with a dimension of 128. Rotary Position Embedding (RoPE) is applied to 64 dimensions of each head. The model is trained with a tokenization vocabulary of 30003. ## Training data Polyglot-Ko-1.3B was trained on 863 GB of Korean language data (1.2TB before processing), a large-scale dataset curated by [TUNiB](https://tunib.ai/). The data collection process has abided by South Korean laws. This dataset was collected for the purpose of training Polyglot-Ko models, so it will not be released for public use. | Source |Size (GB) | Link | |-------------------------------------|---------|------------------------------------------| | Korean blog posts | 682.3 | - | | Korean news dataset | 87.0 | - | | Modu corpus | 26.4 |corpus.korean.go.kr | | Korean patent dataset | 19.0 | - | | Korean Q & A dataset | 18.1 | - | | KcBert dataset | 12.7 | github.com/Beomi/KcBERT | | Korean fiction dataset | 6.1 | - | | Korean online comments | 4.2 | - | | Korean wikipedia | 1.4 | ko.wikipedia.org | | Clova call | < 1.0 | github.com/clovaai/ClovaCall | | Naver sentiment movie corpus | < 1.0 | github.com/e9t/nsmc | | Korean hate speech dataset | < 1.0 | - | | Open subtitles | < 1.0 | opus.nlpl.eu/OpenSubtitles.php | | AIHub various tasks datasets | < 1.0 |aihub.or.kr | | Standard Korean language dictionary | < 1.0 | stdict.korean.go.kr/main/main.do | Furthermore, in order to avoid the model memorizing and generating personally identifiable information (PII) in the training data, we masked out the following sensitive information in the pre-processing stage: * `<|acc|>` : bank account number * `<|rrn|>` : resident registration number * `<|tell|>` : phone number ## Training procedure Polyglot-Ko-1.3B was trained on 213 billion tokens over 102,000 steps on 256 A100 GPUs with the [GPT-NeoX framework](https://github.com/EleutherAI/gpt-neox). It was trained as an autoregressive language model, using cross-entropy loss to maximize the likelihood of predicting the next token. ## How to use This model can be easily loaded using the `AutoModelForCausalLM` class: ```python from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/polyglot-ko-1.3b") model = AutoModelForCausalLM.from_pretrained("EleutherAI/polyglot-ko-1.3b") ``` ## Evaluation results We evaluate Polyglot-Ko-1.3B on [KOBEST dataset](https://arxiv.org/abs/2204.04541), a benchmark with 5 downstream tasks, against comparable models such as skt/ko-gpt-trinity-1.2B-v0.5, kakaobrain/kogpt and facebook/xglm-7.5B, using the prompts provided in the paper. The following tables show the results when the number of few-shot examples differ. You can reproduce these results using the [polyglot branch of lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness/tree/polyglot) and the following scripts. For a fair comparison, all models were run under the same conditions and using the same prompts. In the tables, `n` refers to the number of few-shot examples. In case of WiC dataset, all models show random performance. ```console python main.py \ --model gpt2 \ --model_args pretrained='EleutherAI/polyglot-ko-1.3b' \ --tasks kobest_copa,kobest_hellaswag,kobest_boolq,kobest_sentineg,kobest_wic \ --num_fewshot $YOUR_NUM_FEWSHOT \ --batch_size $YOUR_BATCH_SIZE \ --device $YOUR_DEVICE \ --output_path $/path/to/output/ ``` ### COPA (F1) | Model | params | 0-shot | 5-shot | 10-shot | 50-shot | |----------------------------------------------------------------------------------------------|--------|--------|--------|---------|---------| | [skt/ko-gpt-trinity-1.2B-v0.5](https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5) | 1.2B | 0.6696 | 0.6477 | 0.6419 | 0.6514 | | [kakaobrain/kogpt](https://huggingface.co/kakaobrain/kogpt) | 6.0B | 0.7345 | 0.7287 | 0.7277 | 0.7479 | | [facebook/xglm-7.5B](https://huggingface.co/facebook/xglm-7.5B) | 7.5B | 0.6723 | 0.6731 | 0.6769 | 0.7119 | | **[EleutherAI/polyglot-ko-1.3b](https://huggingface.co/EleutherAI/polyglot-ko-1.3b) (this)** | **1.3B** | **0.7196** | **0.7193** | **0.7204** | **0.7206** | | [EleutherAI/polyglot-ko-3.8b](https://huggingface.co/EleutherAI/polyglot-ko-3.8b) | 3.8B | 0.7595 | 0.7608 | 0.7638 | 0.7788 | | [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) | 5.8B | 0.7745 | 0.7676 | 0.7775 | 0.7887 | | [EleutherAI/polyglot-ko-12.8b](https://huggingface.co/EleutherAI/polyglot-ko-12.8b) | 12.8B | 0.7937 | 0.8108 | 0.8037 | 0.8369 | <img src="https://github.com/EleutherAI/polyglot/assets/19511788/d5b49364-aed5-4467-bae2-5a322c8e2ceb" width="800px"> ### HellaSwag (F1) | Model | params | 0-shot | 5-shot | 10-shot | 50-shot | |----------------------------------------------------------------------------------------------|--------|--------|--------|---------|---------| | [skt/ko-gpt-trinity-1.2B-v0.5](https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5) | 1.2B | 0.5243 | 0.5272 | 0.5166 | 0.5352 | | [kakaobrain/kogpt](https://huggingface.co/kakaobrain/kogpt) | 6.0B | 0.5590 | 0.5833 | 0.5828 | 0.5907 | | [facebook/xglm-7.5B](https://huggingface.co/facebook/xglm-7.5B) | 7.5B | 0.5665 | 0.5689 | 0.5565 | 0.5622 | | **[EleutherAI/polyglot-ko-1.3b](https://huggingface.co/EleutherAI/polyglot-ko-1.3b) (this)** | **1.3B** | **0.5247** | **0.5260** | **0.5278** | **0.5427** | | [EleutherAI/polyglot-ko-3.8b](https://huggingface.co/EleutherAI/polyglot-ko-3.8b) | 3.8B | 0.5707 | 0.5830 | 0.5670 | 0.5787 | | [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) | 5.8B | 0.5976 | 0.5998 | 0.5979 | 0.6208 | | [EleutherAI/polyglot-ko-12.8b](https://huggingface.co/EleutherAI/polyglot-ko-12.8b) | 12.8B | 0.5954 | 0.6306 | 0.6098 | 0.6118 | <img src="https://github.com/EleutherAI/polyglot/assets/19511788/5acb60ac-161a-4ab3-a296-db4442e08b7f" width="800px"> ### BoolQ (F1) | Model | params | 0-shot | 5-shot | 10-shot | 50-shot | |----------------------------------------------------------------------------------------------|--------|--------|--------|---------|---------| | [skt/ko-gpt-trinity-1.2B-v0.5](https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5) | 1.2B | 0.3356 | 0.4014 | 0.3640 | 0.3560 | | [kakaobrain/kogpt](https://huggingface.co/kakaobrain/kogpt) | 6.0B | 0.4514 | 0.5981 | 0.5499 | 0.5202 | | [facebook/xglm-7.5B](https://huggingface.co/facebook/xglm-7.5B) | 7.5B | 0.4464 | 0.3324 | 0.3324 | 0.3324 | | **[EleutherAI/polyglot-ko-1.3b](https://huggingface.co/EleutherAI/polyglot-ko-1.3b) (this)** | **1.3B** | **0.3552** | **0.4751** | **0.4109** | **0.4038** | | [EleutherAI/polyglot-ko-3.8b](https://huggingface.co/EleutherAI/polyglot-ko-3.8b) | 3.8B | 0.4320 | 0.5263 | 0.4930 | 0.4038 | | [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) | 5.8B | 0.4356 | 0.5698 | 0.5187 | 0.5236 | | [EleutherAI/polyglot-ko-12.8b](https://huggingface.co/EleutherAI/polyglot-ko-12.8b) | 12.8B | 0.4818 | 0.6041 | 0.6289 | 0.6448 | <img src="https://github.com/EleutherAI/polyglot/assets/19511788/b74c23c0-01f3-4b68-9e10-a48e9aa052ab" width="800px"> ### SentiNeg (F1) | Model | params | 0-shot | 5-shot | 10-shot | 50-shot | |----------------------------------------------------------------------------------------------|--------|--------|--------|---------|---------| | [skt/ko-gpt-trinity-1.2B-v0.5](https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5) | 1.2B | 0.6065 | 0.6878 | 0.7280 | 0.8413 | | [kakaobrain/kogpt](https://huggingface.co/kakaobrain/kogpt) | 6.0B | 0.3747 | 0.8942 | 0.9294 | 0.9698 | | [facebook/xglm-7.5B](https://huggingface.co/facebook/xglm-7.5B) | 7.5B | 0.3578 | 0.4471 | 0.3964 | 0.5271 | | **[EleutherAI/polyglot-ko-1.3b](https://huggingface.co/EleutherAI/polyglot-ko-1.3b) (this)** | **1.3B** | **0.6790** | **0.6257** | **0.5514** | **0.7851** | | [EleutherAI/polyglot-ko-3.8b](https://huggingface.co/EleutherAI/polyglot-ko-3.8b) | 3.8B | 0.4858 | 0.7950 | 0.7320 | 0.7851 | | [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) | 5.8B | 0.3394 | 0.8841 | 0.8808 | 0.9521 | | [EleutherAI/polyglot-ko-12.8b](https://huggingface.co/EleutherAI/polyglot-ko-12.8b) | 12.8B | 0.9117 | 0.9015 | 0.9345 | 0.9723 | <img src="https://github.com/EleutherAI/polyglot/assets/19511788/95b56b19-d349-4b70-9ff9-94a5560f89ee" width="800px"> ### WiC (F1) | Model | params | 0-shot | 5-shot | 10-shot | 50-shot | |----------------------------------------------------------------------------------------------|--------|--------|--------|---------|---------| | [skt/ko-gpt-trinity-1.2B-v0.5](https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5) | 1.2B | 0.3290 | 0.4313 | 0.4001 | 0.3621 | | [kakaobrain/kogpt](https://huggingface.co/kakaobrain/kogpt) | 6.0B | 0.3526 | 0.4775 | 0.4358 | 0.4061 | | [facebook/xglm-7.5B](https://huggingface.co/facebook/xglm-7.5B) | 7.5B | 0.3280 | 0.4903 | 0.4945 | 0.3656 | | **[EleutherAI/polyglot-ko-1.3b](https://huggingface.co/EleutherAI/polyglot-ko-1.3b) (this)** | **1.3B** | **0.3297** | **0.4850** | **0.465** | **0.3290** | | [EleutherAI/polyglot-ko-3.8b](https://huggingface.co/EleutherAI/polyglot-ko-3.8b) | 3.8B | 0.3390 | 0.4944 | 0.4203 | 0.3835 | | [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b) | 5.8B | 0.3913 | 0.4688 | 0.4189 | 0.3910 | | [EleutherAI/polyglot-ko-12.8b](https://huggingface.co/EleutherAI/polyglot-ko-12.8b) | 12.8B | 0.3985 | 0.3683 | 0.3307 | 0.3273 | <img src="https://github.com/EleutherAI/polyglot/assets/19511788/4de4a4c3-d7ac-4e04-8b0c-0d533fe88294" width="800px"> ## Limitations and Biases Polyglot-Ko has been trained to optimize next token prediction. Language models such as this are often used for a wide variety of tasks and it is important to be aware of possible unexpected outcomes. For instance, Polyglot-Ko will not always return the most factual or accurate response but the most statistically likely one. In addition, Polyglot may produce socially unacceptable or offensive content. We recommend having a human curator or other filtering mechanism to censor sensitive content. ## Citation and Related Information ### BibTeX entry If you find our work useful, please consider citing: ```bibtex @misc{ko2023technical, title={A Technical Report for Polyglot-Ko: Open-Source Large-Scale Korean Language Models}, author={Hyunwoong Ko and Kichang Yang and Minho Ryu and Taekyoon Choi and Seungmu Yang and jiwung Hyun and Sungho Park}, year={2023}, eprint={2306.02254}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ### Licensing All our models are licensed under the terms of the Apache License 2.0. ``` Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` ### Acknowledgement This project was made possible thanks to the computing resources from [Stability.ai](https://stability.ai), and thanks to [TUNiB](https://tunib.ai) for providing a large-scale Korean dataset for this work.
[ -0.6777914762496948, -0.7142272591590881, 0.27884605526924133, 0.0570552796125412, -0.5218119025230408, 0.0026885117404162884, -0.10490328818559647, -0.5287187695503235, 0.4331170320510864, 0.18892715871334076, -0.47951191663742065, -0.6608365178108215, -0.7378224730491638, -0.1041838750243187, -0.06434906274080276, 1.2638413906097412, -0.049377795308828354, -0.21807295083999634, 0.025447752326726913, -0.06680360436439514, -0.09525060653686523, -0.6496692299842834, -0.5594414472579956, -0.4907941520214081, 0.3528657555580139, 0.037911366671323776, 0.8272707462310791, 0.4295181930065155, 0.3459412753582001, 0.3093321919441223, -0.2728773057460785, 0.022403236478567123, -0.5146200060844421, -0.4909753203392029, 0.27171045541763306, -0.5333526730537415, -0.8276165127754211, -0.016224104911088943, 0.6305912733078003, 0.2869584858417511, -0.1342063844203949, 0.44114670157432556, 0.012607100419700146, 0.6582865118980408, -0.43609508872032166, 0.26220858097076416, -0.3464735150337219, 0.19270454347133636, -0.42667266726493835, 0.3075254559516907, -0.2589811086654663, -0.4084376394748688, 0.1616676300764084, -0.5992099046707153, 0.055373821407556534, -0.037046294659376144, 1.3124423027038574, -0.03009132295846939, -0.20104438066482544, -0.03716804087162018, -0.5515378713607788, 0.7654280662536621, -1.0757650136947632, 0.2504657208919525, 0.3501875400543213, 0.10923703014850616, 0.010401008650660515, -0.6879743337631226, -0.6014707684516907, 0.026879772543907166, -0.3991345167160034, 0.48162558674812317, -0.24256768822669983, 0.030678197741508484, 0.4787940979003906, 0.4326433837413788, -0.7818305492401123, -0.08501175791025162, -0.5302334427833557, -0.3101261854171753, 0.9341661930084229, 0.22309990227222443, 0.39795371890068054, -0.3334668278694153, -0.3185597062110901, -0.32824087142944336, -0.29589906334877014, 0.4090745449066162, 0.528792142868042, -0.003561522113159299, -0.726066529750824, 0.5602560639381409, -0.2229333221912384, 0.6731464266777039, 0.19017408788204193, -0.5103865265846252, 0.6730574369430542, -0.39238986372947693, -0.34360259771347046, -0.07151211053133011, 1.150315284729004, 0.45402535796165466, 0.30187880992889404, 0.18360623717308044, -0.09419764578342438, -0.037244293838739395, -0.1571044772863388, -0.841518223285675, -0.28865504264831543, 0.2410605251789093, -0.5778383612632751, -0.3498052954673767, 0.3711757957935333, -0.8367777466773987, 0.028595853596925735, -0.16904018819332123, 0.39160120487213135, -0.48154860734939575, -0.4494360089302063, 0.21882903575897217, 0.02358420565724373, 0.4714968502521515, 0.21302694082260132, -0.5880647301673889, 0.23396813869476318, 0.39234238862991333, 0.9303635358810425, -0.1557369828224182, -0.34144994616508484, -0.028839804232120514, -0.04163719341158867, -0.2252814918756485, 0.5723496675491333, -0.1748153120279312, -0.18897417187690735, -0.35196229815483093, 0.15586188435554504, -0.3492412865161896, -0.31983083486557007, 0.42385175824165344, -0.1664009839296341, 0.25777485966682434, -0.055055152624845505, -0.47622302174568176, -0.42512524127960205, 0.07882060110569, -0.5392764806747437, 1.0697062015533447, 0.18886815011501312, -1.0075374841690063, 0.24922128021717072, -0.34899500012397766, -0.03850468620657921, -0.09625841677188873, 0.008736817166209221, -0.8300621509552002, 0.10066446661949158, 0.29677823185920715, 0.35161280632019043, -0.3646828830242157, -0.011585995554924011, -0.3278517425060272, -0.2856433689594269, -0.02607685886323452, -0.13116534054279327, 1.004407286643982, 0.1319524645805359, -0.4803845286369324, -0.03369920328259468, -0.8853891491889954, 0.26117047667503357, 0.5505485534667969, -0.13258834183216095, -0.09367375075817108, -0.3474193811416626, -0.10470791906118393, 0.47856301069259644, 0.3195677101612091, -0.5596199631690979, 0.23146012425422668, -0.5377144813537598, -0.028674378991127014, 0.6902687549591064, -0.08640427142381668, 0.17990347743034363, -0.5160811543464661, 0.8575950860977173, 0.19410260021686554, 0.47023946046829224, 0.034759584814310074, -0.6870514750480652, -0.7563260793685913, -0.38383662700653076, 0.25155115127563477, 0.5983597636222839, -0.6553323864936829, 0.49338364601135254, -0.06450430303812027, -0.9153763055801392, -0.7282577753067017, 0.14208675920963287, 0.4690682888031006, 0.31989577412605286, 0.17599622905254364, -0.22975128889083862, -0.5116836428642273, -1.0039153099060059, -0.005765246693044901, -0.19095683097839355, 0.18021048605442047, 0.43768033385276794, 0.6877367496490479, -0.034534092992544174, 0.8498781323432922, -0.7483077049255371, -0.10635820776224136, -0.3685554563999176, 0.21987099945545197, 0.7112019658088684, 0.4101952314376831, 0.887503445148468, -0.670391857624054, -1.1022404432296753, 0.15642382204532623, -0.9945154190063477, -0.1299349069595337, 0.0554383248090744, -0.09222178161144257, 0.3336701989173889, 0.2477431744337082, -0.8781627416610718, 0.6473907828330994, 0.664957582950592, -0.38251620531082153, 0.9360789060592651, -0.09886515885591507, -0.0353073850274086, -1.050481915473938, 0.07196247577667236, -0.1921469122171402, -0.2715367078781128, -0.6990417838096619, -0.04029325768351555, -0.1817144751548767, 0.08762619644403458, -0.7087381482124329, 0.658369779586792, -0.4715024530887604, 0.07042788714170456, -0.2399403601884842, 0.06167040392756462, -0.12421605736017227, 0.6038346290588379, -0.043591950088739395, 0.6055343151092529, 0.9440999627113342, -0.28313976526260376, 0.6497373580932617, 0.04547541216015816, -0.28091153502464294, 0.25623783469200134, -0.8741542100906372, 0.31783878803253174, -0.24826952815055847, 0.4184746742248535, -0.8527942895889282, -0.23143121600151062, 0.39958977699279785, -0.45938143134117126, 0.08602235466241837, -0.3974241614341736, -0.5972229838371277, -0.6926114559173584, -0.6577112078666687, 0.46293649077415466, 0.7522066831588745, -0.26738348603248596, 0.49859818816185, 0.22643959522247314, -0.16969646513462067, -0.4610956609249115, -0.42815065383911133, -0.3781724274158478, -0.355306476354599, -0.8546781539916992, 0.3176307678222656, 0.027879655361175537, 0.01839609444141388, -0.010543731041252613, -0.010841533541679382, 0.08619777113199234, -0.34789925813674927, 0.28246191143989563, 0.5322300791740417, -0.2317693680524826, -0.24425403773784637, -0.22248707711696625, -0.20535524189472198, -0.0479414239525795, -0.1319846212863922, 0.889465868473053, -0.41929441690444946, -0.20786210894584656, -0.7195265293121338, 0.03918430581688881, 0.7832469940185547, -0.12150299549102783, 0.9485446810722351, 1.0901144742965698, -0.3438713252544403, 0.2719559371471405, -0.47512540221214294, -0.031010383740067482, -0.47645553946495056, 0.10235635191202164, -0.4785761833190918, -0.5961130261421204, 0.9442570805549622, 0.20433099567890167, 0.006799543276429176, 0.7197149395942688, 0.6510306596755981, 0.002175027970224619, 1.2208914756774902, 0.3831884562969208, -0.23451963067054749, 0.404241681098938, -0.6177816390991211, 0.21794430911540985, -0.8536818027496338, -0.3651018738746643, -0.07472651451826096, -0.21396134793758392, -0.8610163927078247, -0.3910403549671173, 0.5342759490013123, 0.3497907519340515, -0.1809305101633072, 0.5164209008216858, -0.41610831022262573, 0.28049227595329285, 0.4742005467414856, 0.12531480193138123, 0.02036440558731556, -0.030243566259741783, -0.3944953382015228, -0.019510997459292412, -0.7304163575172424, -0.3378051519393921, 1.0468498468399048, 0.4498481750488281, 0.9052251577377319, 0.03568359836935997, 0.8388345241546631, -0.11940134316682816, -0.02359338290989399, -0.6382566690444946, 0.5832830667495728, -0.0749439150094986, -0.6593483090400696, -0.25048360228538513, -0.4353412687778473, -0.8422559499740601, 0.38579097390174866, -0.24021302163600922, -1.0687388181686401, 0.08388470858335495, 0.24126973748207092, -0.48424413800239563, 0.5763890147209167, -0.7243422865867615, 0.755855917930603, -0.1918889880180359, -0.3439463675022125, 0.017697473987936974, -0.561546802520752, 0.3573206961154938, -0.08013841509819031, 0.009543885476887226, -0.22771108150482178, 0.21605920791625977, 0.7428498268127441, -0.6511335968971252, 0.71194988489151, -0.2213035225868225, -0.03845442086458206, 0.6416242122650146, -0.17232710123062134, 0.7926802039146423, 0.030894285067915916, -0.03347046300768852, 0.29756873846054077, 0.05179721489548683, -0.49734073877334595, -0.5287566781044006, 0.508672833442688, -0.8537694811820984, -0.5281225442886353, -0.7098531126976013, -0.5573123097419739, 0.1736130714416504, 0.233986958861351, 0.6610691547393799, 0.27126702666282654, 0.23657572269439697, 0.21978619694709778, 0.4029558598995209, -0.5034175515174866, 0.5119374990463257, 0.1609608381986618, -0.46753135323524475, -0.5118865370750427, 0.8750496506690979, 0.25797849893569946, 0.45990630984306335, -0.09704515337944031, 0.2963755130767822, -0.32169950008392334, -0.3635292649269104, -0.3188636898994446, 0.6546937823295593, -0.41664358973503113, -0.20489399135112762, -0.46455320715904236, -0.5731182098388672, -0.6067181825637817, -0.07088159024715424, -0.5534508228302002, -0.2927640378475189, -0.11479482054710388, -0.12483493238687515, 0.46870920062065125, 0.7204722166061401, -0.025314778089523315, 0.4093576669692993, -0.6050257682800293, 0.2899360656738281, 0.3488719165325165, 0.39412587881088257, 0.027894794940948486, -0.7127690315246582, -0.2105606496334076, 0.09145700931549072, -0.3084579110145569, -0.7736013531684875, 0.534417450428009, 0.07170578837394714, 0.5010648965835571, 0.3351520299911499, -0.0625806599855423, 0.8083813786506653, -0.3735208809375763, 0.85281902551651, 0.3726740777492523, -0.7747597098350525, 0.715498149394989, -0.3993817865848541, 0.6131569147109985, 0.2811838686466217, 0.5662616491317749, -0.37136372923851013, -0.29590722918510437, -0.8534931540489197, -0.8976584672927856, 1.1756083965301514, 0.4877358376979828, -0.06550606340169907, 0.18027417361736298, 0.2924657166004181, -0.03811709210276604, 0.037782926112413406, -1.0318603515625, -0.6157154440879822, -0.30001014471054077, -0.16654905676841736, 0.03288281708955765, -0.23455287516117096, 0.03514917939901352, -0.6169394254684448, 0.8454275131225586, -0.004835498984903097, 0.45794835686683655, 0.2000291496515274, -0.1707984060049057, 0.05341865494847298, -0.07500478625297546, 0.7332473397254944, 0.7575589418411255, -0.4247717261314392, -0.165289968252182, 0.42323988676071167, -0.6498639583587646, 0.0955657958984375, 0.022460436448454857, -0.35864293575286865, 0.19197148084640503, 0.3650662899017334, 1.072413444519043, -0.2383733093738556, -0.4079042375087738, 0.5197787284851074, 0.07608436048030853, -0.3017496168613434, -0.4218963384628296, 0.08400101214647293, 0.12371596693992615, 0.20459480583667755, 0.24649687111377716, -0.32330185174942017, -0.16909021139144897, -0.4262964129447937, 0.2325516939163208, 0.30036649107933044, -0.21154765784740448, -0.5398046970367432, 0.48402419686317444, -0.1701328158378601, -0.07024956494569778, 0.48522788286209106, -0.3759846091270447, -0.6212909817695618, 0.692040205001831, 0.6228805780410767, 0.8035877346992493, -0.30783581733703613, 0.31006985902786255, 0.7487016916275024, 0.2608332633972168, -0.0022939923219382763, 0.2697012722492218, 0.38167381286621094, -0.5833867192268372, -0.3031357228755951, -0.8533749580383301, 0.12726649641990662, 0.4775886833667755, -0.6419577598571777, 0.39397159218788147, -0.5792583227157593, -0.47623318433761597, 0.12556152045726776, 0.023206349462270737, -0.5861639976501465, 0.12963099777698517, 0.34829244017601013, 0.698714017868042, -0.9968041777610779, 0.8882516622543335, 0.7324995994567871, -0.5375215411186218, -0.7595856189727783, -0.09472692757844925, 0.2769067585468292, -0.7848071455955505, 0.4920542538166046, 0.0731934905052185, -0.024145152419805527, -0.07971524447202682, -0.47843417525291443, -1.103238582611084, 1.3191108703613281, 0.49104321002960205, -0.5568283796310425, -0.07581950724124908, 0.2911710739135742, 0.6031638383865356, -0.23445798456668854, 0.49198994040489197, 0.4868558943271637, 0.4632832705974579, -0.04866441711783409, -1.2799699306488037, 0.06740287691354752, -0.3511672616004944, 0.0633627250790596, 0.21206237375736237, -1.1805753707885742, 1.0809613466262817, -0.05794737488031387, 0.007112770341336727, -0.1936083883047104, 0.4529276490211487, 0.4831470847129822, 0.09044264256954193, 0.6352885365486145, 0.8207786083221436, 0.4386323392391205, -0.16299234330654144, 1.2605865001678467, -0.22461771965026855, 0.8085843920707703, 0.9499987363815308, 0.1760711967945099, 0.45410871505737305, 0.143821120262146, -0.5159859657287598, 0.5661014914512634, 0.6368312835693359, -0.14837348461151123, 0.33676567673683167, 0.1499118059873581, -0.28482985496520996, -0.19410337507724762, -0.04334019497036934, -0.42324209213256836, 0.5507723093032837, 0.08834417164325714, -0.21384680271148682, -0.17942023277282715, 0.17087051272392273, 0.3151175081729889, -0.3398504853248596, -0.2600991725921631, 0.7814888954162598, 0.22888678312301636, -0.5261774063110352, 0.880562961101532, -0.15688256919384003, 0.7424015998840332, -0.6818384528160095, 0.15435582399368286, -0.1610700786113739, 0.0647682324051857, -0.3821224868297577, -0.8111009001731873, 0.21884985268115997, 0.034872155636548996, -0.15395615994930267, 0.09909289330244064, 0.7081499695777893, -0.2960132360458374, -0.7576409578323364, 0.5249707102775574, 0.25110122561454773, 0.4250699281692505, 0.04002650827169418, -1.165107250213623, 0.1313083916902542, 0.13365904986858368, -0.5212594866752625, 0.32355818152427673, 0.23448066413402557, 0.06357309222221375, 0.5226653814315796, 0.5865477919578552, 0.3285435736179352, 0.4452294707298279, 0.22030767798423767, 0.7789198160171509, -0.6094706654548645, -0.3428146541118622, -0.9678331017494202, 0.6104276776313782, -0.22707897424697876, -0.42388296127319336, 0.7777066230773926, 0.648614764213562, 0.9936274290084839, -0.13026906549930573, 0.6903387308120728, -0.4105716049671173, 0.29488444328308105, -0.4544851779937744, 0.6316431164741516, -0.5025359392166138, -0.06436906009912491, -0.490374356508255, -0.9382123351097107, -0.07411020249128342, 0.7102991342544556, -0.2567811906337738, 0.22282132506370544, 0.5719484090805054, 0.761029064655304, -0.11796236038208008, -0.41896650195121765, 0.250031977891922, 0.39161568880081177, 0.2103988230228424, 0.7494902610778809, 0.5609453320503235, -0.8228812217712402, 0.5632006525993347, -0.720333456993103, -0.18397696316242218, -0.2237643450498581, -0.6082579493522644, -0.9365293383598328, -0.4366546869277954, -0.4574374258518219, -0.2705956995487213, -0.10802094638347626, 1.0227638483047485, 0.8701850771903992, -0.7910824418067932, -0.39042210578918457, 0.059011299163103104, 0.10030145943164825, -0.2750454545021057, -0.2980972230434418, 0.5582582354545593, -0.12814147770404816, -0.995887279510498, -0.08408761024475098, 0.10707464069128036, 0.4601214528083801, 0.06953973323106766, -0.173165425658226, -0.42185282707214355, -0.033170636743307114, 0.7482006549835205, 0.27746468782424927, -0.8277117609977722, -0.27933356165885925, -0.05939192697405815, -0.027574600651860237, 0.17837408185005188, 0.28674226999282837, -0.4553366005420685, 0.4405486285686493, 0.7849276065826416, 0.17120954394340515, 0.9491771459579468, 0.141299307346344, 0.41351497173309326, -0.6134034395217896, 0.4311502277851105, 0.07665763050317764, 0.303999125957489, 0.05221569910645485, -0.2947258949279785, 0.6664578914642334, 0.44057562947273254, -0.4296276569366455, -0.8132649064064026, -0.05591701716184616, -1.1238622665405273, -0.12910272181034088, 1.0907995700836182, -0.36361050605773926, -0.3243723213672638, 0.13254131376743317, -0.22724421322345734, 0.2223798930644989, -0.19627645611763, 0.5694804191589355, 0.9359464645385742, -0.43351492285728455, -0.30499720573425293, -0.7403950691223145, 0.5554174780845642, 0.405312716960907, -0.8295252919197083, -0.07490933686494827, 0.038908250629901886, 0.34273988008499146, 0.35869523882865906, 0.6817668676376343, -0.3834589123725891, 0.35569047927856445, -0.07488838583230972, 0.1724844127893448, 0.07869291305541992, -0.23073557019233704, -0.2924332022666931, -0.1829649657011032, -0.21651782095432281, -0.1789553165435791 ]
Salesforce/safety-flan-t5-base
Salesforce
"2023-05-04T05:23:20Z"
23,209
7
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2023-04-27T05:35:36Z"
--- {} --- # Model Details ## Model Description - **Model type:** Language model - **License:** CC BY-NC - **Related Models:** [All FLAN-T5 Checkpoints](https://huggingface.co/models?search=flan-t5) - **Resources for more information:** - [GitHub Repo](https://github.com/salesforce/AuditNLG) # Usage Find below some example scripts on how to use the model in `transformers`: ## Using the Pytorch model ### Running the model <details> <summary> Click to expand </summary> ```python from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, AutoConfig config = AutoConfig.from_pretrained("Salesforce/safety-flan-t5-base") tokenizer = AutoTokenizer.from_pretrained("Salesforce/safety-flan-t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/safety-flan-t5-base", config=config) prefix = "Is the <Text> field safe or unsafe?" input_context = "Can you teach me this?" input_text = "You are so stupid" input_ids = tokenizer(prefix + " <Text> " + input_text + " <Context> " + input_context, return_tensors="pt").input_ids outputs = model.generate(input_ids) print(tokenizer.decode(outputs[0])) ``` </details>
[ -0.13554254174232483, -0.39644548296928406, 0.10540937632322311, -0.04498406872153282, -0.10906359553337097, -0.22941678762435913, 0.14195790886878967, -0.3207184970378876, -0.2709489166736603, 0.29450738430023193, -0.6632912755012512, -0.5048024654388428, -0.5922895669937134, 0.042153775691986084, -0.5838050842285156, 1.1640905141830444, -0.15308047831058502, -0.13560956716537476, 0.2074943333864212, -0.1123722642660141, -0.12086649239063263, -0.5670287013053894, -0.564175009727478, -0.4390353560447693, 0.21415624022483826, 0.1389254480600357, 0.6178988218307495, 0.4293067455291748, 0.4772632420063019, 0.40346601605415344, -0.22302797436714172, -0.1555621474981308, -0.24075524508953094, 0.09118826687335968, -0.3296407163143158, -0.5893276929855347, -0.5967333912849426, -0.04067225754261017, 0.4239468276500702, 0.17367401719093323, -0.2158978134393692, 0.45357203483581543, -0.20934081077575684, -0.03864087909460068, -0.6269843578338623, 0.3829287886619568, -0.5318444967269897, 0.08848323673009872, 0.2565305531024933, 0.03279903531074524, -0.23506207764148712, -0.19864091277122498, 0.3671855926513672, -0.662401020526886, 0.6801007390022278, -0.19896703958511353, 1.481147050857544, 0.07468056678771973, -0.6761527061462402, -0.11594606190919876, -0.5579420328140259, 0.7101733088493347, -0.9934722185134888, 0.17932383716106415, 0.4091275632381439, 0.5200791358947754, 0.18185067176818848, -1.346208930015564, -0.42136216163635254, -0.07579868286848068, -0.4374966323375702, 0.06394369900226593, -0.1407328099012375, 0.2846033573150635, 0.5158169269561768, 0.39337456226348877, -0.6444465517997742, -0.25155290961265564, -0.5995610952377319, -0.5261518955230713, 0.7547557353973389, 0.4771631956100464, 0.09626930207014084, -0.21328730881214142, -0.6322987079620361, -0.5262521505355835, -0.08682572096586227, 0.1668953150510788, 0.14555004239082336, 0.12277108430862427, -0.19370245933532715, 0.482764333486557, -0.3410760462284088, 0.4261563718318939, 0.08935631066560745, -0.2830387353897095, 0.4980628788471222, -0.32582929730415344, -0.4792028069496155, -0.07060251384973526, 0.9294320940971375, 0.39545929431915283, -0.01316662784665823, 0.14210902154445648, -0.7717084884643555, -0.07437702268362045, 0.2188710868358612, -1.1069095134735107, -0.3632690906524658, 0.45180878043174744, -0.4794980585575104, -0.8765246868133545, 0.3615586757659912, -0.7347584962844849, -0.17180068790912628, -0.01617659628391266, 1.035322666168213, -0.35128024220466614, -0.5219836831092834, -0.09161840379238129, -0.24593044817447662, 0.3200764060020447, 0.2020305097103119, -0.9266238212585449, 0.05001923814415932, 0.5362321734428406, 0.945148229598999, 0.2572774887084961, -0.3833049237728119, -0.3148515820503235, 0.16865304112434387, -0.0673963651061058, 0.2516815960407257, 0.06420329213142395, -0.3416079878807068, 0.2822129726409912, 0.3864966630935669, -0.3962010443210602, -0.4707503616809845, 0.2835606634616852, -0.5521779656410217, 0.3442821800708771, 0.2613309323787689, -0.44388020038604736, -0.521903395652771, 0.24384894967079163, -0.6496917605400085, 1.1513171195983887, 0.5261855125427246, -0.5629631876945496, 0.29790863394737244, -0.8596674799919128, -0.49971234798431396, -0.15637831389904022, 0.14774329960346222, -1.0600711107254028, -0.11403918266296387, 0.12263328582048416, 0.47401493787765503, 0.09967441856861115, 0.27645251154899597, -0.29744216799736023, -0.15606875717639923, 0.24720200896263123, -0.3071611523628235, 1.0036505460739136, 0.2880818545818329, -0.6408563852310181, 0.5330049395561218, -0.6961637139320374, 0.015470187179744244, 0.22849249839782715, -0.1616540253162384, 0.33259907364845276, -0.42884278297424316, 0.3617933988571167, 0.3027891218662262, 0.29184839129447937, -0.28365758061408997, 0.13627147674560547, -0.38482728600502014, 0.748920202255249, 0.6629195809364319, 0.10455624759197235, 0.3824681341648102, -0.4586520493030548, 0.5064806938171387, 0.3264986276626587, 0.34498634934425354, -0.25592127442359924, -0.14927151799201965, -1.130330204963684, -0.1710992306470871, 0.17449207603931427, 0.5747783184051514, -0.6208001375198364, 0.7169378995895386, -0.17138339579105377, -0.6368328928947449, 0.04189890995621681, 0.02692682296037674, 0.07839877903461456, 0.56307053565979, 0.30178898572921753, -0.07219389081001282, -0.6076110601425171, -0.8471051454544067, -0.2552662193775177, -0.23746128380298615, -0.1537073403596878, -0.11225087195634842, 1.1600784063339233, -0.2908051013946533, 0.7638807892799377, -0.5361832976341248, -0.5546567440032959, -0.3498062193393707, 0.2669813334941864, 0.38175326585769653, 0.8080111742019653, 0.6889796853065491, -0.46851396560668945, -0.1713341325521469, -0.18652817606925964, -0.6628502607345581, 0.16896815598011017, -0.2633805274963379, -0.2525746524333954, 0.27223268151283264, 0.3239183723926544, -0.7152206301689148, 1.0195109844207764, 0.29169467091560364, -0.7549335360527039, 0.6127994656562805, -0.021435849368572235, -0.06991644203662872, -1.3364708423614502, 0.3137238621711731, -0.11235522478818893, -0.5190286636352539, -0.6526443958282471, 0.156609445810318, 0.2594793438911438, -0.2718818485736847, -0.5245630145072937, 0.5520006418228149, -0.1377556473016739, 0.1306440681219101, -0.15018168091773987, -0.3810519874095917, 0.2702787220478058, 0.49766531586647034, 0.178952157497406, 0.6593372821807861, 0.7278354167938232, -0.8668580651283264, 0.5050015449523926, 0.38042372465133667, -0.3736365735530853, 0.08061915636062622, -0.7178617715835571, 0.001697888714261353, 0.2981777489185333, 0.3203270733356476, -0.8296397924423218, -0.4928067624568939, 0.2624206840991974, -0.5545497536659241, 0.24897457659244537, -0.27096912264823914, -0.5707113146781921, -0.2888602316379547, -0.04703127592802048, 0.44905662536621094, 0.6396384835243225, -0.6787914037704468, 1.125036597251892, 0.08120595663785934, 0.407746821641922, -0.37852486968040466, -0.9649922847747803, -0.3536636233329773, -0.4539395868778229, -0.7689171433448792, 0.34465986490249634, 0.4772007167339325, 0.08458105474710464, -0.22210311889648438, -0.23822131752967834, -0.2462712824344635, 0.23676879703998566, 0.16239288449287415, 0.26565736532211304, -0.3148205578327179, 0.027473682537674904, -0.2587655782699585, -0.32374873757362366, 0.24601233005523682, -0.4273592531681061, 0.6094784736633301, -0.44585108757019043, -0.07444729655981064, -0.8906882405281067, -0.0836898535490036, 0.5739842057228088, -0.4252732992172241, 1.0079216957092285, 0.9377956390380859, -0.5778106451034546, -0.311063677072525, -0.46019983291625977, -0.7723658680915833, -0.5520178079605103, 0.6442587971687317, -0.25254592299461365, -0.3784851133823395, 0.7964790463447571, 0.15641003847122192, 0.20122916996479034, 0.7913215756416321, 0.5526925325393677, -0.14323632419109344, 1.0182266235351562, 0.4233073592185974, 0.2164134532213211, 0.8090575933456421, -0.8811756372451782, 0.20899838209152222, -0.43343186378479004, -0.24933169782161713, -0.27317342162132263, -0.10414698719978333, -0.41089969873428345, -0.1093834713101387, 0.568660318851471, 0.25847965478897095, -0.7355698943138123, 0.6509002447128296, -0.45549747347831726, 0.07606073468923569, 0.8320027589797974, 0.16025754809379578, -0.07282516360282898, 0.10405247658491135, -0.1708279550075531, 0.36169949173927307, -0.8190164566040039, -0.4868706464767456, 0.9411028623580933, 0.5218523740768433, 0.7163333296775818, 0.18779028952121735, 0.7055904269218445, 0.013375832699239254, 0.2612661123275757, -0.7052149176597595, 0.36733493208885193, 0.27984628081321716, -1.014726161956787, -0.193144291639328, -0.2855318486690521, -0.8313069939613342, 0.3633403182029724, 0.07631132751703262, -0.8580239415168762, 0.15082426369190216, 0.2758590579032898, -0.4964873194694519, 0.5461204051971436, -0.7795982360839844, 1.2227299213409424, -0.35007426142692566, -0.3544458746910095, -0.06137140840291977, -0.6433756947517395, 0.49378758668899536, 0.1903885304927826, -0.14486061036586761, 0.08023572713136673, 0.13512927293777466, 0.9453510642051697, -0.9658157229423523, 0.9735962152481079, -0.24773862957954407, 0.1067969873547554, 0.5834254622459412, 0.19454176723957062, 0.4610706567764282, 0.29984885454177856, -0.1183449774980545, 0.3836095631122589, 0.534415066242218, -0.22312414646148682, -0.5823870301246643, 0.41008222103118896, -0.9250157475471497, -0.42683449387550354, -1.0176640748977661, -0.41435906291007996, 0.26737233996391296, 0.4872417747974396, 0.31276848912239075, 0.4867607057094574, 0.15435166656970978, 0.13632839918136597, 0.29296740889549255, -0.1921793669462204, 0.726757287979126, 0.4325374364852905, -0.36922508478164673, -0.7417803406715393, 0.7262091040611267, -0.14182046055793762, 0.42309194803237915, 0.16241857409477234, 0.31259530782699585, -0.5997511744499207, 0.022964367642998695, -0.3930804133415222, 0.0759112685918808, -0.9840426445007324, -0.5609986782073975, -0.4499993622303009, -0.44447076320648193, -0.7113115191459656, 0.08424379676580429, -0.3352794051170349, -0.4919240176677704, -0.5261898040771484, -0.35578808188438416, 0.6749621033668518, 0.5918260812759399, -0.284152626991272, 0.6714800000190735, -0.8328688144683838, 0.17767834663391113, 0.20398375391960144, 0.41193968057632446, 0.03683959320187569, -0.7973288297653198, -0.15979881584644318, -0.012426329776644707, -0.5213499665260315, -0.9437531232833862, 0.49517759680747986, 0.10478410124778748, 0.4445555806159973, 0.6689971089363098, 0.1927420198917389, 0.5763958096504211, 0.13136224448680878, 0.8730718493461609, 0.14678002893924713, -1.128655195236206, 0.5835201740264893, -0.3611137866973877, 0.213346928358078, 0.5504637360572815, -0.06569075584411621, -0.49328452348709106, -0.022443076595664024, -0.8295453786849976, -1.125744342803955, 1.1135470867156982, 0.5465617179870605, -0.04475248605012894, 0.3432826101779938, 0.14350354671478271, -0.1961064636707306, 0.16583169996738434, -0.9783797860145569, -0.249491885304451, -0.7147392630577087, -0.3450133502483368, 0.1940060704946518, -0.04406726360321045, -0.3310471475124359, -0.3795488476753235, 0.9562273025512695, -0.07112317532300949, 0.45284298062324524, 0.29148539900779724, -0.35754552483558655, 0.0665275901556015, -0.0893222987651825, 0.7671678066253662, 0.47122982144355774, -0.39407438039779663, 0.13272947072982788, 0.38488736748695374, -0.49582207202911377, 0.04695190116763115, 0.12448414415121078, -0.2796800136566162, 0.05066193640232086, 0.4921661913394928, 1.054877758026123, -0.14192067086696625, -0.16031613945960999, 0.6111693382263184, -0.08098062127828598, -0.5597691535949707, -0.8305352330207825, 0.34591710567474365, 0.0031830102670937777, 0.21551044285297394, 0.3172939717769623, 0.19414444267749786, -0.23736260831356049, -0.30239641666412354, 0.29792699217796326, 0.18828114867210388, -0.4336300492286682, -0.18535062670707703, 1.0321991443634033, 0.1850285530090332, -0.3258763551712036, 0.8277468681335449, 0.0455668680369854, -0.9011796712875366, 1.0140447616577148, 0.3975926339626312, 1.1252962350845337, -0.053579941391944885, -0.13302823901176453, 0.8516446352005005, 0.36734312772750854, -0.02074187435209751, 0.2120472639799118, -0.0024555206764489412, -0.5822886824607849, 0.18395303189754486, -0.5967627167701721, 0.05423225462436676, 0.462229460477829, -0.6902376413345337, 0.5061585903167725, -0.6038392186164856, -0.2526247501373291, -0.30882954597473145, -0.056387849152088165, -0.9911032915115356, 0.44885918498039246, -0.031973499804735184, 0.8518516421318054, -0.8309525847434998, 0.7187789678573608, 0.5148141384124756, -0.9478732347488403, -1.247998595237732, -0.05991337075829506, 0.05628720670938492, -0.7010341286659241, 0.5817931294441223, 0.5237207412719727, 0.095208078622818, 0.0459771491587162, -0.41808632016181946, -0.9346452951431274, 1.567665457725525, -0.04733363538980484, -0.33392366766929626, -0.06257065385580063, 0.3764282166957855, 0.3998379409313202, -0.16876107454299927, 0.9453275203704834, 0.6009138822555542, 0.5394407510757446, -0.04066658765077591, -0.8286049365997314, 0.1709880381822586, -0.18938681483268738, -0.07922068983316422, -0.13123072683811188, -0.7660341858863831, 0.9692539572715759, -0.16823269426822662, -0.26002606749534607, 0.29299259185791016, 0.8592930436134338, 0.16930846869945526, 0.2205444723367691, 0.7287340760231018, 0.3675556182861328, 0.4895297586917877, -0.32008305191993713, 0.822502851486206, -0.5994680523872375, 1.050872802734375, 0.8687502145767212, -0.022960342466831207, 0.5171059966087341, 0.3177233934402466, -0.08185186982154846, 0.5950981974601746, 0.7201982736587524, -0.5153690576553345, 0.32075804471969604, -0.005505847744643688, -0.28525310754776, -0.24109667539596558, 0.28763100504875183, -0.49387475848197937, 0.4051627218723297, 0.3227705657482147, -0.8127098083496094, -0.31868281960487366, -0.2842532694339752, -0.2018425613641739, -0.6512470245361328, -0.07816830277442932, 0.6079800724983215, -0.03420204296708107, -0.6453405618667603, 0.7421227097511292, 0.2511630654335022, 0.6074784994125366, -0.850866436958313, -0.005777955520898104, -0.13960964977741241, 0.6531252861022949, -0.48646092414855957, -0.5086411237716675, 0.1870376169681549, -0.22194106876850128, -0.011640457436442375, -0.12723734974861145, 0.7123566269874573, -0.39978325366973877, -0.6804243326187134, 0.11450020223855972, -0.008242741227149963, 0.02415177784860134, 0.002964963670819998, -0.7694278955459595, -0.27911192178726196, 0.021717337891459465, -0.4729137420654297, 0.022001154720783234, 0.07074913382530212, -0.053714215755462646, 0.7944331169128418, 0.6104325652122498, -0.4179612398147583, 0.30723267793655396, 0.2220011055469513, 0.6718699932098389, -0.6631979942321777, -0.7583868503570557, -0.7027032375335693, 0.8463417887687683, -0.0755527913570404, -0.6082105040550232, 0.5792937278747559, 0.8131120204925537, 0.9496180415153503, -0.3121553957462311, 0.8714849948883057, -0.16125598549842834, 0.2329818159341812, -0.3955399692058563, 1.1698867082595825, -0.5909716486930847, 0.029361117631196976, -0.08075139671564102, -0.5748160481452942, -0.1854545772075653, 1.1443607807159424, -0.12660540640354156, 0.4332676827907562, 0.8253011107444763, 1.3081176280975342, -0.3263294994831085, 0.14719508588314056, 0.14360842108726501, 0.2513648271560669, 0.6498396992683411, 0.43208447098731995, 0.8109027743339539, -0.9881821870803833, 0.7779353260993958, -0.784936785697937, 0.03129667788743973, -0.4039338231086731, -0.755110502243042, -1.0956674814224243, -0.5088211297988892, -0.5245289206504822, -1.0164064168930054, -0.467376172542572, 0.9492602348327637, 0.8880400061607361, -1.2604742050170898, -0.2534812390804291, -0.36506587266921997, -0.041925232857465744, -0.3013783395290375, -0.3586999475955963, 0.5742450952529907, -0.3489191234111786, -0.6669020652770996, 0.05383067950606346, -0.34411412477493286, 0.3601537346839905, -0.34179383516311646, -0.025736985728144646, -0.21442030370235443, -0.2866285741329193, 0.0825560912489891, 0.17256473004817963, -0.7823774218559265, -0.3263624608516693, -0.21969690918922424, -0.1992507129907608, 0.038179751485586166, 0.6270577907562256, -0.5029504895210266, 0.2786802649497986, 0.8633822202682495, 0.26607879996299744, 0.7181258201599121, -0.05419247969985008, 0.7412599325180054, -0.561631441116333, 0.2630455493927002, 0.2639855444431305, 0.5280832648277283, 0.14619296789169312, -0.3121604025363922, 0.5327195525169373, 0.35629919171333313, -0.4621230661869049, -0.9752269983291626, 0.03915046155452728, -0.6835679411888123, -0.019270187243819237, 1.1964002847671509, -0.21645325422286987, -0.32061466574668884, 0.0100614745169878, -0.08979891985654831, 0.7029775977134705, -0.3436145484447479, 0.6190391182899475, 0.4332242012023926, 0.04038432613015175, -0.10006003081798553, -0.38024479150772095, 0.6334421634674072, 0.5492521524429321, -0.5807269215583801, -0.17132578790187836, -0.04052659496665001, 0.7225381135940552, 0.1782003492116928, 0.035395726561546326, -0.0855160653591156, 0.5027447938919067, 0.17790672183036804, 0.2049562931060791, -0.3349197506904602, 0.039353709667921066, -0.504507839679718, 0.0424506701529026, -0.307133287191391, -0.4192538857460022 ]
microsoft/trocr-large-handwritten
microsoft
"2023-01-24T16:57:33Z"
23,205
41
transformers
[ "transformers", "pytorch", "vision-encoder-decoder", "trocr", "image-to-text", "arxiv:2109.10282", "endpoints_compatible", "has_space", "region:us" ]
image-to-text
"2022-03-02T23:29:05Z"
--- tags: - trocr - image-to-text widget: - src: https://fki.tic.heia-fr.ch/static/img/a01-122-02.jpg example_title: Note 1 - src: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSoolxi9yWGAT5SLZShv8vVd0bz47UWRzQC19fDTeE8GmGv_Rn-PCF1pP1rrUx8kOjA4gg&usqp=CAU example_title: Note 2 - src: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRNYtTuSBpZPV_nkBYPMFwVVD9asZOPgHww4epu9EqWgDmXW--sE2o8og40ZfDGo87j5w&usqp=CAU example_title: Note 3 --- # TrOCR (large-sized model, fine-tuned on IAM) TrOCR model fine-tuned on the [IAM dataset](https://fki.tic.heia-fr.ch/databases/iam-handwriting-database). It was introduced in the paper [TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models](https://arxiv.org/abs/2109.10282) by Li et al. and first released in [this repository](https://github.com/microsoft/unilm/tree/master/trocr). Disclaimer: The team releasing TrOCR did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The TrOCR model is an encoder-decoder model, consisting of an image Transformer as encoder, and a text Transformer as decoder. The image encoder was initialized from the weights of BEiT, while the text decoder was initialized from the weights of RoBERTa. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. Next, the Transformer text decoder autoregressively generates tokens. ## Intended uses & limitations You can use the raw model for optical character recognition (OCR) on single text-line images. See the [model hub](https://huggingface.co/models?search=microsoft/trocr) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model in PyTorch: ```python from transformers import TrOCRProcessor, VisionEncoderDecoderModel from PIL import Image import requests # load image from the IAM database url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg' image = Image.open(requests.get(url, stream=True).raw).convert("RGB") processor = TrOCRProcessor.from_pretrained('microsoft/trocr-large-handwritten') model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-large-handwritten') pixel_values = processor(images=image, return_tensors="pt").pixel_values generated_ids = model.generate(pixel_values) generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] ``` ### BibTeX entry and citation info ```bibtex @misc{li2021trocr, title={TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models}, author={Minghao Li and Tengchao Lv and Lei Cui and Yijuan Lu and Dinei Florencio and Cha Zhang and Zhoujun Li and Furu Wei}, year={2021}, eprint={2109.10282}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.2062290608882904, -0.4010957181453705, 0.16339415311813354, -0.35159313678741455, -0.3670754134654999, -0.004132409114390612, -0.05807711184024811, -0.8914527297019958, 0.13219642639160156, 0.679703414440155, -0.339279443025589, -0.4701688587665558, -0.684040367603302, 0.15381747484207153, -0.3749956488609314, 1.0962527990341187, -0.15298594534397125, -0.008701084181666374, 0.11035403609275818, -0.4766217768192291, -0.054407864809036255, -0.6071314811706543, -0.5740522146224976, -0.18829785287380219, 0.3826797306537628, 0.33412888646125793, 0.6430877447128296, 0.727838397026062, 1.0246480703353882, 0.3912767171859741, -0.3483266830444336, 0.11992260068655014, -0.24778063595294952, -0.35718318819999695, 0.22843298316001892, -0.4660532772541046, -0.6658948659896851, 0.055134549736976624, 0.6622956991195679, 0.1514553278684616, -0.05237314850091934, 0.15100781619548798, 0.05306875333189964, 0.5486646890640259, -0.26475632190704346, -0.08571922034025192, -0.3381696343421936, 0.27522188425064087, -0.08323770016431808, 0.015741465613245964, -0.4329642653465271, -0.4257515072822571, 0.34679579734802246, -0.568469762802124, 0.620327889919281, 0.0745277926325798, 1.2021139860153198, -0.14377786219120026, -0.312205970287323, -0.5624817609786987, -0.7756356596946716, 0.6366750597953796, -0.6171083450317383, 0.3657011091709137, 0.03128071129322052, 0.22806596755981445, 0.10532381385564804, -1.0464065074920654, -0.9303022027015686, -0.3811182379722595, -0.25929567217826843, 0.004720164928585291, -0.2334122359752655, 0.2875087857246399, 0.47523215413093567, 0.5623788237571716, -0.5968979597091675, -0.20877960324287415, -0.6915640234947205, -0.38569775223731995, 0.32019713521003723, -0.006878247018903494, 0.34671518206596375, 0.08658737689256668, -0.3921526074409485, -0.46570703387260437, -0.11748941242694855, -0.07397909462451935, 0.08811197429895401, -0.04233653470873833, -0.3828127384185791, 0.7104777097702026, 0.3296191990375519, 0.8490780591964722, 0.2741849720478058, -0.3456002473831177, 0.5428013801574707, -0.06146624684333801, -0.0038863925728946924, 0.05250900238752365, 1.063092827796936, 0.30938878655433655, 0.38575518131256104, -0.11298336088657379, -0.2802952826023102, 0.2489953190088272, 0.06510286033153534, -0.9041680693626404, -0.015803463757038116, -0.06328020989894867, -0.5616321563720703, -0.2535611391067505, 0.22284631431102753, -0.8674140572547913, -0.2468900978565216, -0.19430851936340332, 0.47058427333831787, -0.4189692735671997, 0.1289220005273819, -0.08661103993654251, -0.15324032306671143, 0.17343394458293915, 0.30392149090766907, -0.5277795791625977, 0.035469308495521545, 0.18006372451782227, 1.1623010635375977, -0.15006503462791443, -0.33326080441474915, -0.376741498708725, -0.04154456406831741, -0.19891254603862762, 0.6225802302360535, -0.2830576002597809, -0.26994436979293823, -0.07158122956752777, 0.048324983566999435, 0.00477942731231451, -0.5463544130325317, 0.5668054223060608, -0.4195019602775574, 0.33053267002105713, 0.1516345739364624, -0.010553443804383278, -0.047805435955524445, 0.385600745677948, -0.9234461784362793, 1.1717300415039062, 0.26349133253097534, -0.796786367893219, 0.16832628846168518, -0.7251623868942261, -0.30607274174690247, 0.015019155107438564, 0.22002939879894257, -0.9045958518981934, 0.03766956180334091, 0.0662580356001854, 0.19850677251815796, -0.3475114107131958, 0.03859782591462135, -0.159585103392601, -0.39394620060920715, 0.2623998522758484, -0.23943458497524261, 0.7697802186012268, 0.3001756966114044, -0.3989281952381134, -0.05126591771841049, -1.046143651008606, 0.09211867302656174, 0.08694066107273102, -0.3597264289855957, -0.06592412292957306, -0.37472739815711975, 0.3744460940361023, 0.4815874993801117, 0.4399322271347046, -0.6762346029281616, 0.27295982837677, -0.27442848682403564, 0.807151734828949, 0.37153491377830505, -0.25972023606300354, 0.4374363422393799, -0.28691092133522034, 0.4179445505142212, 0.22121712565422058, 0.13128836452960968, -0.1408814936876297, -0.19415883719921112, -0.9920477271080017, -0.28064990043640137, 0.22570696473121643, 0.6633215546607971, -0.959287703037262, 0.47460484504699707, -0.3605154752731323, -0.6707919239997864, -0.4904305934906006, -0.06835059076547623, 0.6483935117721558, 0.7671773433685303, 0.37607985734939575, -0.6027635931968689, -0.41912975907325745, -0.6476565003395081, -0.11030049622058868, -0.24467343091964722, 0.0603330172598362, 0.2809712290763855, 0.6565077900886536, -0.2735312879085541, 0.7020118832588196, -0.3661454916000366, -0.8124976754188538, -0.25628662109375, 0.2908321022987366, 0.1736377626657486, 0.6632869839668274, 0.42134687304496765, -0.6383926868438721, -0.5908858776092529, 0.02158309519290924, -0.6914900541305542, 0.11576776206493378, -0.08008018881082535, -0.1494041532278061, 0.5948396921157837, 0.4176410138607025, -0.7046184539794922, 0.7634731531143188, 0.45338916778564453, -0.48084816336631775, 0.5568440556526184, -0.5214987397193909, 0.1307145208120346, -1.1025817394256592, 0.4151243567466736, 0.08443348109722137, -0.2246873825788498, -0.7782293558120728, 0.20550397038459778, 0.21032246947288513, -0.28230252861976624, -0.276066392660141, 0.5967888236045837, -0.8120313286781311, -0.020268158987164497, -0.06845289468765259, 0.07394473999738693, 0.11615990102291107, 0.6870023608207703, 0.44049587845802307, 0.7657161951065063, 0.22456094622612, -0.3276379704475403, 0.18473629653453827, 0.40024539828300476, -0.399691104888916, 0.6359363198280334, -0.9891520142555237, 0.5740426182746887, -0.06534424424171448, -0.005437183193862438, -0.7785878777503967, 0.1726420372724533, 0.32473060488700867, -0.47427883744239807, 0.42921024560928345, 0.0452636294066906, -0.5486400127410889, -0.8315657377243042, -0.0666189044713974, 0.4424789547920227, 0.403091698884964, -0.6137934327125549, 1.1371896266937256, 0.19372431933879852, 0.3306843638420105, -0.49401944875717163, -1.0733522176742554, 0.06360084563493729, -0.13492193818092346, -0.6831215620040894, 0.483845978975296, -0.23380252718925476, 0.22676558792591095, -0.11628489196300507, 0.10933783650398254, -0.14487680792808533, -0.41599953174591064, 0.13475282490253448, 0.551695704460144, -0.2691003978252411, -0.2346831113100052, -0.5051203370094299, -0.18376754224300385, -0.2822270095348358, -0.22173887491226196, 0.6132855415344238, -0.3445153832435608, 0.0404387041926384, -0.6223623752593994, 0.18825727701187134, 0.8221094608306885, -0.56946861743927, 0.6892499327659607, 0.6998838782310486, -0.293571412563324, 0.05612482130527496, -0.6924169063568115, -0.0868329256772995, -0.48028019070625305, 0.34625473618507385, -0.3081709146499634, -0.7588512301445007, 0.8439429402351379, 0.4030235707759857, -0.10777292400598526, 0.42377254366874695, 0.41593214869499207, 0.01594465970993042, 0.8644008040428162, 0.7241533398628235, 0.02848946675658226, 0.8660215735435486, -0.5380985736846924, 0.2300686091184616, -0.9361015558242798, -0.42573240399360657, -0.44379857182502747, -0.4290698170661926, -0.5226670503616333, -0.2544865906238556, 0.3894731402397156, -0.09363605082035065, -0.21162517368793488, 0.5657370686531067, -1.0327694416046143, 0.30981627106666565, 0.786291778087616, 0.461265504360199, 0.18304623663425446, 0.15569986402988434, -0.23224934935569763, 0.12683363258838654, -0.36582157015800476, -0.5248390436172485, 0.7845165729522705, 0.16308549046516418, 0.7393997311592102, -0.19908775389194489, 0.5260608196258545, 0.22992007434368134, 0.08244293928146362, -0.7974811792373657, 0.6444688439369202, -0.2691195607185364, -0.5244796872138977, -0.06636510789394379, -0.2914441227912903, -0.9505234360694885, -0.03383718803524971, -0.47143566608428955, -0.801834762096405, 0.6562300324440002, 0.4394172132015228, -0.11924751847982407, 0.5230761766433716, -0.6490992903709412, 0.9132887721061707, -0.3417399525642395, -0.3407863676548004, 0.22394220530986786, -0.8351552486419678, -0.01016389112919569, 0.1742575764656067, -0.2385721504688263, 0.3495650291442871, 0.1728447675704956, 0.9522666335105896, -0.7922917604446411, 0.7293664813041687, -0.10373289883136749, 0.00830331165343523, 0.5667040944099426, 0.0027826225850731134, 0.6381941437721252, -0.6080532670021057, -0.23499834537506104, 0.5966094136238098, 0.1018122062087059, -0.14548978209495544, -0.32778438925743103, 0.27563798427581787, -0.9288230538368225, -0.1863824725151062, -0.8364682197570801, -0.6534579992294312, 0.285605251789093, 0.5338781476020813, 0.7679005265235901, 0.6639264225959778, -0.047750554978847504, -0.01747777871787548, 0.5433257222175598, -0.052791450172662735, 0.49420100450515747, 0.3300752639770508, 0.028457878157496452, -0.7744663953781128, 0.7917832136154175, 0.19370734691619873, 0.3177323043346405, 0.4763467311859131, 0.17688080668449402, -0.2059224247932434, -0.3981996178627014, -0.3156880736351013, 0.4945540428161621, -0.6115808486938477, -0.23938484489917755, -0.4422247111797333, -0.34508174657821655, -0.3291788697242737, -0.20451931655406952, -0.15087354183197021, -0.2762010395526886, -0.7218294143676758, 0.2775026559829712, 0.3894438147544861, 0.5654759407043457, 0.11288072168827057, 0.7986143231391907, -0.8255941867828369, 0.38912051916122437, -0.006408043671399355, 0.3673000931739807, 0.06806498020887375, -0.6240711808204651, -0.21676692366600037, -0.006864252500236034, -0.41991907358169556, -0.687941312789917, 0.7785053253173828, 0.3901275396347046, 0.24644839763641357, 0.4996647536754608, -0.022515378892421722, 0.7690252661705017, -0.5160855650901794, 0.535419225692749, 0.47265246510505676, -1.023511528968811, 0.35550814867019653, -0.05637799948453903, 0.3303591310977936, 0.43532055616378784, 0.09159356355667114, -0.6418986916542053, -0.15775349736213684, -0.5921936631202698, -0.570666491985321, 1.063429355621338, -0.004614370875060558, -0.10095028579235077, 0.31232601404190063, 0.5160898566246033, -0.25418370962142944, 0.2130454182624817, -1.0050891637802124, -0.20193395018577576, -0.3019219934940338, -0.6806057691574097, -0.15338924527168274, -0.3701838254928589, 0.15343505144119263, -0.26867079734802246, 0.45182082056999207, -0.048484817147254944, 0.7652713060379028, 0.5444823503494263, -0.4924643635749817, -0.1234288141131401, -0.1207820475101471, 0.6838845610618591, 0.39084726572036743, -0.19875240325927734, 0.18669192492961884, -0.08383461833000183, -1.1476987600326538, -0.02300160937011242, 0.1352410465478897, -0.3652341067790985, 0.01036502979695797, 0.5499034523963928, 1.1107860803604126, -0.26923808455467224, -0.5254594683647156, 0.5260085463523865, -0.020315781235694885, -0.3275427222251892, -0.40543514490127563, -0.05352533236145973, -0.32776638865470886, 0.19868601858615875, 0.4902379512786865, 0.19035136699676514, -0.009841395542025566, -0.5314148664474487, -0.03756476193666458, 0.5613271594047546, -0.6522402763366699, -0.29744237661361694, 0.6479859948158264, -0.09765691310167313, -0.6187349557876587, 0.8565144538879395, 0.027463730424642563, -0.918524444103241, 0.7701234221458435, 0.671071469783783, 0.6966880559921265, -0.2775341272354126, 0.08012378215789795, 0.6257919669151306, 0.47056496143341064, -0.09546785056591034, 0.2817060649394989, -0.08051512390375137, -0.6986719369888306, 0.32143303751945496, -0.5622718334197998, -0.2517833411693573, 0.036075983196496964, -0.6805143356323242, 0.5251274108886719, -0.6329745054244995, -0.3718332350254059, -0.07039034366607666, 0.1464550793170929, -0.6689475774765015, 0.3673242926597595, -0.013362298719584942, 0.8416013121604919, -0.500932514667511, 0.7535901665687561, 0.5418208837509155, -0.4119028151035309, -0.7404294610023499, -0.13347582519054413, -0.14327950775623322, -1.0572048425674438, 0.5841228365898132, 0.3660130798816681, -0.07923221588134766, 0.15671169757843018, -0.6125078797340393, -0.8160144686698914, 1.2598098516464233, 0.21217814087867737, -0.69488924741745, -0.36263689398765564, 0.38483020663261414, 0.7932819724082947, -0.36844760179519653, 0.6123508214950562, 0.3550620973110199, 0.24802549183368683, 0.476080060005188, -0.8356360793113708, 0.12806695699691772, -0.3937121331691742, 0.2448006570339203, 0.23229707777500153, -0.7280444502830505, 0.8557494282722473, -0.5116693377494812, -0.2501058280467987, 0.5049231648445129, 0.6479024291038513, 0.22217321395874023, 0.3098176419734955, 0.34433436393737793, 0.6964263916015625, 0.7081542611122131, -0.15320290625095367, 0.8350644111633301, -0.38497403264045715, 0.3517961800098419, 0.7973954677581787, -0.011016283184289932, 0.7607041597366333, 0.44691771268844604, 0.017358578741550446, 0.6809764504432678, 0.385691374540329, -0.513489842414856, 0.40331315994262695, -0.08813197165727615, 0.023353202268481255, 0.10461187362670898, 0.06697506457567215, -0.22396737337112427, 0.33824312686920166, 0.15855711698532104, -0.7790852189064026, 0.060711268335580826, 0.25649920105934143, -0.12401244044303894, -0.2426895797252655, -0.4520187973976135, 0.7445371747016907, 0.004299908876419067, -0.6445687413215637, 0.6814835071563721, -0.01854654587805271, 0.9159451127052307, -0.6737375855445862, -0.03610851243138313, -0.03346392884850502, 0.6000292897224426, -0.14866602420806885, -0.76787930727005, 0.1266486793756485, -0.07758982479572296, -0.22091954946517944, 0.13836751878261566, 0.7270153760910034, -0.6558997631072998, -0.8924641609191895, 0.26470324397087097, -0.1108817383646965, 0.20986464619636536, 0.2566700279712677, -0.781618595123291, 0.17800557613372803, -0.0265866257250309, -0.18807576596736908, -0.00402377313002944, 0.48309046030044556, -0.03559750318527222, 0.5573263764381409, 0.5993102192878723, 0.13278521597385406, 0.13983002305030823, -0.24027812480926514, 0.6513449549674988, -0.5945521593093872, -0.5171570181846619, -0.7352327108383179, 0.5263151526451111, 0.045719213783741, -0.6130182147026062, 0.5518829226493835, 0.5772731900215149, 0.6145060658454895, -0.2857757806777954, 0.38935548067092896, -0.13510696589946747, 0.2935468554496765, -0.3533693552017212, 1.0108661651611328, -0.6591678857803345, -0.19996057450771332, -0.5910767316818237, -0.8320300579071045, -0.6009619832038879, 0.9736895561218262, -0.2210504114627838, 0.304546058177948, 0.6498976349830627, 1.0903586149215698, -0.09183524549007416, -0.30204445123672485, 0.10516003519296646, 0.24892951548099518, 0.08456296473741531, 0.7053496241569519, 0.4491667151451111, -0.8373945355415344, 0.7938973903656006, -0.30079030990600586, -0.13954293727874756, -0.24837437272071838, -0.8886790871620178, -1.142069935798645, -0.7642301321029663, -0.39170071482658386, -0.7520489692687988, -0.12470831722021103, 0.633609414100647, 0.715968132019043, -0.8674341440200806, -0.16761840879917145, -0.16589972376823425, -0.024324415251612663, -0.12595489621162415, -0.2167450487613678, 0.5893309116363525, 0.3439636528491974, -0.7851831316947937, -0.5377158522605896, -0.131113663315773, 0.5000870227813721, 0.0939001590013504, -0.19112883508205414, -0.12293193489313126, -0.08854632824659348, 0.44410744309425354, 0.5670338869094849, -0.5340574383735657, -0.0637224093079567, 0.14464236795902252, -0.27645623683929443, 0.5015610456466675, 0.623552143573761, -0.590894877910614, 0.41662484407424927, 0.4538440704345703, 0.1276356279850006, 0.7781971096992493, -0.1415083259344101, 0.09632203727960587, -0.33106788992881775, 0.291187584400177, 0.17643766105175018, 0.49056097865104675, 0.4470026195049286, -0.523090660572052, 0.37707608938217163, 0.39156368374824524, -0.5765765309333801, -0.8880237340927124, -0.1983213722705841, -1.3808226585388184, 0.16971825063228607, 0.8433496952056885, -0.07985427230596542, -0.5245786309242249, 0.2524240016937256, -0.3929140269756317, 0.4509681165218353, -0.3760010004043579, 0.6074169874191284, 0.44751426577568054, 0.13221563398838043, -0.6389410495758057, 0.06256558001041412, 0.24935583770275116, -0.10094595700502396, -0.6202453970909119, -0.07703448086977005, 0.4471857249736786, 0.3435899615287781, 0.6965340971946716, 0.5782955288887024, -0.331434428691864, 0.2373141497373581, 0.02327863499522209, 0.7127832174301147, -0.25239694118499756, -0.3066675662994385, -0.47558343410491943, 0.015167780220508575, -0.1076107919216156, -0.11355172842741013 ]
distilbert-base-german-cased
null
"2023-04-06T13:40:31Z"
23,131
13
transformers
[ "transformers", "pytorch", "safetensors", "distilbert", "fill-mask", "de", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:04Z"
--- language: de license: apache-2.0 --- ## distilbert-base-german-cased
[ -0.5089784264564514, -0.7314537167549133, 0.6164876222610474, 0.6532193422317505, -0.5425529479980469, 0.39639812707901, 0.3631584346294403, 0.5611106157302856, 0.4523722231388092, 0.4352973997592926, -0.4325210154056549, -0.8042364120483398, -0.8696053624153137, 0.026462921872735023, -0.24360747635364532, 1.017285704612732, 0.04521064832806587, 0.41010501980781555, 0.5661206841468811, -0.17848826944828033, -0.18412436544895172, -0.9060547947883606, -0.6136922240257263, -0.4262881278991699, 0.6896063685417175, 0.49785947799682617, 0.573175311088562, -0.03391784802079201, 0.4963230490684509, 0.2781631648540497, -0.10489698499441147, -0.5124475955963135, -0.5299632549285889, 0.1668008267879486, -0.10018289089202881, -0.3465581238269806, -0.6297340393066406, -0.05190792307257652, 0.03223615884780884, 1.0497426986694336, -0.5417287945747375, -0.02095958963036537, -0.5060986876487732, 0.9817633628845215, -0.4180314242839813, 0.19068755209445953, -0.4673607051372528, -0.016386471688747406, -0.40895381569862366, 0.4795495569705963, -0.4745314419269562, -0.0615428164601326, 0.14295914769172668, -0.4683264195919037, 0.6773343682289124, -0.25963446497917175, 1.111653447151184, 0.12209118902683258, -0.8110703229904175, 0.021840211004018784, -0.4130854606628418, 0.7938399910926819, -0.3053443431854248, 0.5545787811279297, 0.6474271416664124, 0.5866268277168274, -0.5897876620292664, -0.7240365743637085, -0.04599711671471596, 0.3559429943561554, -0.2220964878797531, 0.10164229571819305, -0.4949403405189514, -0.08308152109384537, 0.7903054356575012, 0.4970065653324127, -0.4377637803554535, -0.31275564432144165, -0.8011556267738342, 0.004071997944265604, 0.4664817452430725, -0.422728955745697, 0.05916907638311386, 0.4221821129322052, -0.09490390866994858, 0.0511971190571785, -0.4222432076931, -0.33079275488853455, -0.0015844564186409116, 0.43333762884140015, -0.5453449487686157, 0.5066509246826172, -0.4417039752006531, -0.10698088258504868, 0.9680333733558655, 0.1608809381723404, 0.6301761269569397, -0.025018274784088135, -0.8850007653236389, 0.6249617338180542, 0.4062263071537018, 0.27088332176208496, 0.40360361337661743, -0.08194809406995773, -0.17899727821350098, 0.2765958905220032, 0.21975387632846832, -1.217058777809143, -0.8282610774040222, 0.2017677128314972, -0.482541561126709, -0.3419378101825714, 0.6796936988830566, -0.37562012672424316, -0.19050264358520508, 0.23117080330848694, 0.35937783122062683, -0.15396901965141296, -0.3380548059940338, 0.19130229949951172, -1.054707646369934, 0.11218298226594925, -0.08134794235229492, -1.5096200704574585, 0.19718994200229645, 0.505350649356842, 0.39634424448013306, 0.46103429794311523, 0.08918167650699615, -0.38737836480140686, 0.2624148726463318, -0.821665346622467, 0.5091046690940857, 0.19875867664813995, -1.157161831855774, -0.09921769052743912, 0.2987939417362213, 0.7176480293273926, -0.5047835111618042, 0.866317093372345, -0.8533719182014465, 0.1909090131521225, -0.9421694874763489, -0.02217167802155018, 0.034829672425985336, 0.19273416697978973, -0.8962183594703674, 0.8755797147750854, 0.7345131039619446, -0.4948475658893585, 0.8364219665527344, -0.7655297517776489, -0.8388082385063171, 0.5930379629135132, 0.05522695556282997, -0.14093829691410065, 0.7346418499946594, -0.10515450686216354, 0.289762407541275, 0.22142447531223297, 0.23689024150371552, -0.271719366312027, -0.097389355301857, -0.36708348989486694, -0.40860646963119507, 1.467519760131836, 0.27943965792655945, -0.31205031275749207, -0.5353994965553284, -0.8011528253555298, -0.019624900072813034, 0.32700008153915405, -0.3369506001472473, -0.6590837836265564, -0.2438168078660965, -0.21291153132915497, -0.29152601957321167, 0.34897640347480774, -0.6995322108268738, 0.3776349425315857, 0.0884379968047142, 0.0013465902302414179, 0.41801995038986206, 0.07101498544216156, 0.6629551649093628, 0.03761862590909004, 0.20808659493923187, 0.30187466740608215, 0.0034383535385131836, 0.41778188943862915, 0.3307655453681946, -1.3986259698867798, -0.40708068013191223, 0.40536952018737793, 0.7218297123908997, -0.3190480172634125, 0.9094076156616211, 0.05955816060304642, -0.9060466885566711, 0.17411580681800842, -0.14518237113952637, 0.2768614590167999, 0.42438051104545593, 0.3744904696941376, -0.19276373088359833, -0.7822175621986389, -1.2908413410186768, 0.36486297845840454, -0.602073073387146, -0.21174219250679016, -0.3789452016353607, 0.607512354850769, -0.9098728895187378, 0.12980839610099792, -0.5840480923652649, -0.3172398507595062, -0.022360006347298622, 0.016466179862618446, 1.1092603206634521, 0.49703869223594666, 0.8902329802513123, -0.8685089945793152, -0.98521488904953, -0.20258529484272003, -0.9316693544387817, -0.42222023010253906, 0.49967846274375916, -0.588261604309082, 0.29115596413612366, 0.45776858925819397, -0.7052106857299805, 0.5538504719734192, 0.4034133553504944, -0.9576565623283386, 0.11518524587154388, 0.1130867749452591, 0.024360185489058495, -0.978026807308197, -0.42342880368232727, -0.32756781578063965, -0.09355147927999496, -0.5865276455879211, -0.09540070593357086, 0.22124744951725006, 0.15965278446674347, -0.4188908040523529, -0.23327882587909698, -0.7857887148857117, 0.27036207914352417, -0.16037961840629578, -1.2195369005203247, 0.5320600271224976, -0.15215976536273956, -0.16788442432880402, 0.6720291972160339, 1.1066570281982422, -0.1535046100616455, 0.7752795219421387, 0.4864976704120636, 0.3728749454021454, 0.9812120795249939, -0.8627852201461792, -0.2451757937669754, -0.10389353334903717, 0.3066398799419403, -0.9266814589500427, -0.2773072421550751, -0.024877021089196205, -0.11581846326589584, 0.42273658514022827, -0.625688374042511, -0.5339551568031311, -0.5914583206176758, -0.016721775755286217, 0.7292773127555847, 1.0319926738739014, -0.30594339966773987, 0.40959104895591736, 0.45619672536849976, -0.20979860424995422, -0.42356011271476746, -1.040387511253357, 0.2623063921928406, -0.28795701265335083, -0.5131624341011047, 0.668796956539154, 0.04786526784300804, -0.7721133828163147, -0.24756591022014618, -0.7690194845199585, -0.45256853103637695, -0.0613144114613533, 0.2337891310453415, 0.4330778121948242, -0.5013774633407593, -0.11286481469869614, 0.19581620395183563, -0.23392711579799652, 0.012983406893908978, -0.07950459420681, 0.8605249524116516, -0.701240599155426, -0.2846396863460541, 0.048008985817432404, 0.6326292753219604, 0.7747239470481873, 0.20059537887573242, 0.4647394120693207, 0.30853769183158875, -0.5198826193809509, -0.20981457829475403, -0.641105592250824, -0.4909050464630127, -0.566961944103241, 0.18463589251041412, -0.8849383592605591, -1.0290744304656982, 0.39778485894203186, 0.038575299084186554, 0.17215083539485931, 0.8087073564529419, 0.6935821771621704, -0.7584658861160278, 0.8320221304893494, 0.6909681558609009, -0.2349795252084732, -0.047286272048950195, -0.4491179585456848, 0.4099400043487549, -0.0650627389550209, -0.007519415579736233, -0.20617368817329407, -0.2091374397277832, -0.7582241892814636, -0.13598479330539703, 0.03262563794851303, 0.655938446521759, -0.3377382457256317, 0.7307463884353638, -0.5646629333496094, 0.9027957916259766, 0.521894097328186, -0.048832543194293976, 0.08980680257081985, 0.22722864151000977, -0.1409129649400711, 0.001698403968475759, -0.6036320328712463, -0.5074962973594666, 0.9006386399269104, 0.5007643103599548, 0.7715319991111755, 0.2591819167137146, 1.2832562923431396, 0.618475615978241, 0.24031789600849152, -0.6642728447914124, 0.3092591464519501, -0.39624378085136414, -1.0299955606460571, -0.4643540382385254, 0.19980904459953308, -1.1201003789901733, 0.48087039589881897, 0.3904065191745758, -0.018132243305444717, 0.02939463034272194, -0.04085301607847214, -0.4670305848121643, 0.1453477293252945, -0.835345447063446, 1.1228193044662476, -0.5951018929481506, 0.06270508468151093, -0.12601695954799652, -0.33335232734680176, -0.03678605332970619, 0.05438525229692459, 0.2622144818305969, -0.667801558971405, 0.20183472335338593, 0.42919912934303284, -0.6105644106864929, 0.546116054058075, -0.1780913919210434, -0.27398255467414856, -0.03771132975816727, 0.23873941600322723, -0.026399075984954834, 0.31473031640052795, -0.009399158880114555, 0.5541795492172241, 0.36308589577674866, -1.0794070959091187, -0.07447117567062378, 0.7292847037315369, -0.24381256103515625, -0.7213850021362305, -1.0026942491531372, 0.20977243781089783, 0.2666633129119873, 0.2696782648563385, 0.548457682132721, 0.44400647282600403, -0.7002530694007874, 0.2628629207611084, 0.7163823246955872, 0.32317957282066345, 0.5825363993644714, 0.6629921197891235, -0.21773545444011688, -0.03341435268521309, 0.31487321853637695, 0.04997147247195244, -0.28909602761268616, -0.12182356417179108, 0.08776120096445084, -0.22221800684928894, -0.39438870549201965, -0.5465803742408752, 0.33150771260261536, -0.5273225903511047, 0.04849547892808914, -0.40004250407218933, -0.37123236060142517, -0.5905017256736755, -0.3656594157218933, -0.3572808802127838, -0.250118225812912, -0.5652068257331848, -0.9501249194145203, 0.09769165515899658, 0.4600526988506317, -0.532943844795227, 0.722987949848175, -0.806000828742981, 0.4033774435520172, 0.25069013237953186, 0.5030806660652161, -0.8660443425178528, -0.459068238735199, -0.04660288244485855, 0.03693624958395958, -0.42158272862434387, -0.8424323797225952, 0.4059469401836395, -0.0420190766453743, 0.7281397581100464, 0.831192672252655, 0.4179653525352478, 0.6434916257858276, -0.7798828482627869, 0.46919816732406616, 0.47097334265708923, -0.6338925957679749, 0.676302433013916, -0.4172232449054718, 0.516850471496582, 1.3961225748062134, 0.584810733795166, -0.5915960669517517, -0.1295882612466812, -1.188232421875, -1.0869028568267822, 0.27667728066444397, 0.12760815024375916, 0.6074070334434509, -0.18504513800144196, -0.5286101698875427, 0.3011029064655304, 0.40435242652893066, -0.7091881632804871, -0.6597430109977722, 0.06983235478401184, 0.13293586671352386, 0.4468902051448822, -0.7816054224967957, -0.5054232478141785, -0.7385725975036621, 0.8816271424293518, 0.5204678177833557, -0.12225355207920074, 0.0333423838019371, 0.10697770118713379, 0.03690147399902344, -0.0031137859914451838, 0.5295388102531433, 0.9691126942634583, -0.6270840764045715, 0.44793543219566345, 0.29763513803482056, -0.34019654989242554, 0.3645345866680145, 0.22681188583374023, -0.005416350904852152, 0.784214437007904, 0.28452858328819275, 0.7646232843399048, -0.3699151575565338, -0.2446935921907425, 0.12545256316661835, -0.14081664383411407, -0.5459091067314148, -1.5126965045928955, 0.034252651035785675, 0.07217930257320404, 0.33826184272766113, 1.2072535753250122, -0.1342461258172989, 0.2901032865047455, -0.6008694767951965, 0.6808390617370605, 0.5060932040214539, -1.1324280500411987, -0.36658287048339844, 0.06661920249462128, 0.7435541749000549, -0.6493567824363708, 0.5455484390258789, -0.21967579424381256, -1.0145838260650635, 1.0897371768951416, 0.21317994594573975, 0.8241255879402161, -0.1563556045293808, 0.19422776997089386, 0.24758170545101166, 0.1697053164243698, -0.14430078864097595, 0.7374288439750671, -0.04969065636396408, -0.8643150329589844, 0.3141481578350067, -0.48216453194618225, 0.17055992782115936, 0.22771967947483063, -0.7369748950004578, 0.13004615902900696, -0.7349457740783691, -0.7932197451591492, 0.04154488071799278, -0.1348157525062561, -0.3902662396430969, 0.051187124103307724, 0.35137268900871277, 1.2365485429763794, -1.0070933103561401, 0.9049921035766602, 0.7098832726478577, -0.16779637336730957, -0.3834483325481415, -0.023100456222891808, -0.1925414353609085, -0.3989458382129669, 1.2299420833587646, 0.47490519285202026, 0.12860453128814697, 0.2777196764945984, -0.5575914978981018, -0.9189305901527405, 1.0652016401290894, -0.04832286760210991, -0.7066207528114319, 0.46079549193382263, -0.41745519638061523, 0.5325132012367249, -0.2377602607011795, -0.044076431542634964, 1.1297556161880493, 0.6853479743003845, 0.00655146362259984, -1.1461994647979736, -0.5102101564407349, -0.42313581705093384, -0.30823618173599243, 0.9364255666732788, -0.7177029848098755, 0.8238497376441956, -0.06938518583774567, -0.18688634037971497, -0.2816906273365021, 0.4215790927410126, 0.43166351318359375, 0.0949181541800499, 0.718506932258606, 1.0901620388031006, 0.5801610350608826, -0.42428159713745117, 0.5640501976013184, 0.14803102612495422, 0.16921159625053406, 0.7003094553947449, -0.5523358583450317, 0.3226466774940491, 1.1484181880950928, -0.6296592354774475, 0.9673327803611755, 0.49550411105155945, -0.6258791089057922, 1.1358091831207275, 0.3390452563762665, -0.6150708198547363, -0.23355232179164886, -0.042881231755018234, -0.721754252910614, 0.45803624391555786, 0.1443920135498047, -0.3670015335083008, -0.6636408567428589, -0.5511031150817871, 0.35750916600227356, 0.1663627326488495, -0.20656003057956696, 0.6800733804702759, 0.1850070059299469, -0.378949373960495, 0.678749144077301, 0.23105178773403168, 1.0487825870513916, -0.7133608460426331, 0.059430282562971115, -0.12007798254489899, 0.17334644496440887, -0.015451244078576565, -0.48833411931991577, 0.3079768717288971, -0.18202652037143707, -0.6437311768531799, -0.5352360606193542, 0.5812612771987915, -0.47684982419013977, -1.260394811630249, 0.5685610175132751, 0.6885132193565369, 0.04270577430725098, -0.3898709714412689, -0.3704592287540436, -0.10592551529407501, 0.10131116211414337, -0.24791160225868225, 0.2173725813627243, 0.6519097089767456, -0.21303650736808777, 0.2706572413444519, 0.7962144017219543, -0.03362557664513588, -0.19729378819465637, 0.35690635442733765, 0.9280174970626831, -0.4212200939655304, -0.34601736068725586, -1.7235933542251587, 0.538472056388855, -0.38519662618637085, -0.3750231862068176, 0.6947070360183716, 1.0863165855407715, 0.9376181960105896, -0.26685526967048645, 1.0096652507781982, -0.4552361071109772, 0.3386717438697815, 0.13184866309165955, 0.967696487903595, -0.31963759660720825, -0.2165854126214981, 0.10053956508636475, -0.8954338431358337, -0.12658977508544922, 0.8076996207237244, 0.16937658190727234, -0.4035581052303314, 0.6782848238945007, 0.42211106419563293, -0.6829003095626831, -0.24721206724643707, 0.5282877683639526, -0.04084673151373863, 0.09346755594015121, 0.4586049020290375, 0.4086487591266632, -0.6428288221359253, 0.4555026888847351, -0.5942252278327942, -0.4471016228199005, -0.5692259669303894, -1.173280119895935, -1.1150578260421753, -0.16705648601055145, -0.2155493199825287, -0.5617757439613342, -0.28823596239089966, 0.7574300765991211, 0.9314572215080261, -1.3276617527008057, -0.615732729434967, -0.06834644824266434, -0.03136187791824341, 0.1395871788263321, -0.1586596667766571, 0.04205084592103958, -0.1472352296113968, -0.6349097490310669, 0.36376771330833435, 0.1727021485567093, 0.7135828137397766, 0.1425144374370575, 0.03113958053290844, -0.06457849591970444, -0.14370998740196228, 0.8290928602218628, 0.2215341180562973, -0.5696477890014648, -0.3164524435997009, 0.07549829035997391, -0.7332527041435242, 0.11535535752773285, 0.4958028197288513, -0.42560699582099915, -0.2394728660583496, 0.49109914898872375, 0.331411749124527, 0.5765346884727478, 0.49539533257484436, 0.9760954976081848, -1.051080584526062, 0.9779136776924133, 0.286115437746048, 0.6316884160041809, 0.2070854753255844, -0.400841623544693, 1.0368878841400146, 0.47188955545425415, -0.15142665803432465, -0.85552978515625, 0.14233605563640594, -1.1704930067062378, -0.4634692668914795, 0.8435631990432739, 0.17901434004306793, -0.09441457688808441, -0.08823899179697037, -0.6812575459480286, 0.1912461668252945, -0.9202492833137512, 0.5370475053787231, 1.2656317949295044, 0.21697960793972015, -0.12727265059947968, -0.49825477600097656, 0.2611232101917267, 0.4712166488170624, -0.32842615246772766, -0.25792771577835083, 0.7311686277389526, 0.3168460428714752, 0.26029109954833984, 0.7003587484359741, 0.032901667058467865, 0.3280315697193146, 0.3459368646144867, 0.3465924859046936, -0.0305979885160923, -0.1362743228673935, 0.10904158651828766, -0.1948397159576416, -0.043256063014268875, -0.6737048029899597 ]
EleutherAI/llemma_7b
EleutherAI
"2023-10-17T23:41:53Z"
23,106
53
transformers
[ "transformers", "pytorch", "llama", "text-generation", "math", "reasoning", "en", "dataset:EleutherAI/proof-pile-2", "dataset:open-web-math/open-web-math", "arxiv:2310.10631", "license:llama2", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-09-12T22:09:33Z"
--- license: llama2 datasets: - EleutherAI/proof-pile-2 - open-web-math/open-web-math language: - en tags: - math - reasoning --- <img src="llemma.png" width="400"> [ArXiv](http://arxiv.org/abs/2310.10631) | [Models](https://huggingface.co/EleutherAI/llemma_34b) | [Data](https://huggingface.co/datasets/EleutherAI/proof-pile-2) | [Code](https://github.com/EleutherAI/math-lm) | [Blog](https://blog.eleuther.ai/llemma/) | [Sample Explorer](https://llemma-demo.github.io/) [Zhangir Azerbayev](https://zhangir-azerbayev.github.io/), [Hailey Schoelkopf](https://github.com/haileyschoelkopf), [Keiran Paster](https://keirp.com), [Marco Dos Santos](https://github.com/dsantosmarco), [Stephen McAleer](https://www.andrew.cmu.edu/user/smcaleer/), [Albert Q. Jiang](https://albertqjiang.github.io/), [Jia Deng](https://www.cs.princeton.edu/~jiadeng/), [Stella Biderman](https://www.stellabiderman.com/), [Sean Welleck](https://wellecks.com/) **Llemma 7B** is a language model for mathematics. It was initialized with [Code Llama 7B](https://github.com/facebookresearch/codellama) weights, and trained on the [Proof-Pile-2](https://huggingface.co/datasets/EleutherAI/proof-pile-2) for 200B tokens. This model also comes in a 34B parameter version: [Llemma 34B](https://huggingface.co/EleutherAI/llemma_34b). ## Evaluations Llemma models are particularly strong at chain-of-thought mathematical reasoning and using computational tools for mathematics, such as Python and formal theorem provers. ### Chain-of-thought Math On chain-of-thought mathematics tasks, Llemma models outperform Llama-2, Code Llama, and when controlled for model size, outperform Minerva. | Model | Size | GSM8k | [OCW](https://openreview.net/forum?id=IFXTZERXdM7) | MMLU-STEM | [SAT](https://huggingface.co/datasets/mcaleste/sat_multiple_choice_math_may_23) | MATH | |------------|------|--------|-------|-----------|-------|-------| | Llama 2 | 7B | 11.8% | 3.7% | 29.9% | 25% | 3.2% | | Code Llama | 7B | 10.5% | 4.4% | 25.1% | 9.4% | 4.5% | | LLEMMA | 7B | **36.4%** | **7.7%** | **37.7%** | **53.1%** | **18.0%** | | Minerva | 8B | 16.2% | **7.7%** | 35.6% | - | 14.1% | |------------|------|--------|-------|-----------|-------|-------| | Code Llama | 34B | 29.6% | 7.0% | 40.5% | 40.6% | 12.2% | | LLEMMA | 34B | **51.5%** | **11.8%** | **49.0%** | **71.9%** | **25.0%** | |------------|------|--------|-------|-----------|-------|-------| | Minerva | 62B | 52.4% | 12.0% | 53.9% | - | 27.6% | | Minerva | 540B | 58.8% | 17.6% | 63.9% | - | 33.6% | Further performance can be extracted by using majority voting: | Model | Size | GSM8k maj@100 | OCW maj@100 | MMLU-STEM maj@16 | SAT maj@16 | MATH maj@256 | |---------|------|-------------|-----------|-----------------|-----------|------------| | LLEMMA | 7B | 54.0% | 14.3% | 49.9% | 78.1% | **33.5** | | Minerva | 8B | 28.4% | 12.5% | 43.4% | - | 25.4% | |---------|------|-------------|-----------|-----------------|-----------|------------| | LLEMMA | 34B | 69.3% | 18.4% | 59.7% | 81.3% | **43.1%** | |---------|------|-------------|-----------|-----------------|-----------|------------| | Minerva | 62B | 68.5% | 23.5% | 63.5% | - | 43.4% | | Minerva | 540B | 78.5% | 30.8% | 75.0% | - | 50.3% | ### Tool Use and Theorem Proving In addition to chain-of-thought reasoning, Llemma has strong capabilities in computational mathematics tasks. For tool use and formal theorem proving evaluations, see [our paper](http://arxiv.org/abs/2310.10631). ### Citation ``` @misc{azerbayev2023llemma, title={Llemma: An Open Language Model For Mathematics}, author={Zhangir Azerbayev and Hailey Schoelkopf and Keiran Paster and Marco Dos Santos and Stephen McAleer and Albert Q. Jiang and Jia Deng and Stella Biderman and Sean Welleck}, year={2023}, eprint={2310.10631}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.580186665058136, -0.7283741235733032, 0.5920252203941345, 0.14390648901462555, -0.3008624017238617, 0.14187125861644745, -0.0054038818925619125, -0.2406574934720993, 0.5155118107795715, 0.4201206862926483, -0.5352737307548523, -0.7390236258506775, -0.832192063331604, -0.09711696207523346, -0.30425605177879333, 0.7294004559516907, -0.10056997835636139, -0.09748151898384094, -0.3427138328552246, -0.1233796551823616, -0.22444280982017517, -0.26221024990081787, -0.503612220287323, -0.47615620493888855, 0.051490332931280136, 0.3571798801422119, 0.5941888093948364, 0.5804116129875183, 0.6518183946609497, 0.3485971689224243, -0.12636598944664001, 0.3539133071899414, -0.3397563695907593, 0.07916765660047531, 0.11118674278259277, -0.5790718793869019, -0.8043290376663208, -0.11179544776678085, 0.46874067187309265, 0.3873041868209839, -0.3551657497882843, 0.45129555463790894, -0.002628370188176632, 0.9502449035644531, -0.6006357073783875, 0.2622302770614624, -0.5980913043022156, -0.1389504224061966, -0.37181925773620605, -0.10232846438884735, -0.21792519092559814, -0.5262441039085388, -0.260932594537735, -0.5215789675712585, -0.2994481921195984, 0.07014821469783783, 1.2171621322631836, 0.342041552066803, -0.25009018182754517, -0.3036205768585205, -0.29270321130752563, 1.0034607648849487, -0.9020015001296997, 0.2030712068080902, 0.5658063292503357, 0.2584612965583801, -0.26960477232933044, -0.5522473454475403, -0.5896731019020081, 0.3376111388206482, 0.10528754442930222, 0.5812225341796875, -0.5441763997077942, -0.3398054242134094, 0.2818753123283386, 0.59088534116745, -0.4532758891582489, 0.18995413184165955, -0.49196335673332214, -0.19312739372253418, 0.846298098564148, 0.36440709233283997, 0.2933211326599121, -0.32026901841163635, -0.41586002707481384, -0.025855589658021927, -0.7561771273612976, 0.4590088725090027, 0.40487048029899597, 0.009635313414037228, -0.3573974668979645, 0.7388623952865601, -0.04710853472352028, 0.6788807511329651, -0.12954352796077728, -0.5730084180831909, 0.40423399209976196, -0.3015751242637634, -0.3704569339752197, -0.2614586651325226, 0.9533140659332275, 0.42925506830215454, 0.058108970522880554, 0.4558866620063782, -0.31079745292663574, 0.2791927456855774, -0.23754604160785675, -0.9346179962158203, 0.06029863655567169, 0.43738996982574463, -0.4605971872806549, -0.3684813976287842, 0.016431383788585663, -0.8474743366241455, -0.0674266442656517, -0.3263794779777527, 0.22720862925052643, -0.2809073328971863, -0.30558517575263977, 0.33753320574760437, 0.3283100128173828, 0.31452396512031555, 0.45805004239082336, -0.7079880833625793, 0.31809884309768677, 0.7587302327156067, 0.9594976305961609, -0.22843174636363983, 0.015601527877151966, -0.0755276307463646, -0.16654223203659058, -0.524196207523346, 1.005475401878357, -0.4270857572555542, -0.2743501365184784, -0.17963744699954987, -0.20625580847263336, -0.2625706195831299, -0.446931928396225, 0.6442719101905823, -0.5079312324523926, 0.41133859753608704, -0.31968650221824646, -0.7110653519630432, -0.3760298490524292, 0.33624935150146484, -0.6997146606445312, 1.2350881099700928, -0.11145893484354019, -0.8333308100700378, 0.10921591520309448, -0.7170251607894897, 0.004974071867763996, -0.36130011081695557, -0.16832976043224335, -0.9312450289726257, -0.26052072644233704, 0.5831526517868042, 0.519986093044281, -0.6275857090950012, 0.28709134459495544, -0.35025012493133545, -0.39435794949531555, 0.16941194236278534, -0.1714407503604889, 1.4506654739379883, 0.4264175295829773, -0.4434219300746918, -0.009531236253678799, -0.9720579385757446, 0.1344558298587799, 0.5320223569869995, -0.21964557468891144, -0.12122885137796402, -0.3089565932750702, -0.5120816230773926, 0.3131377696990967, 0.3841756284236908, -0.2565583288669586, 0.4444819390773773, -0.3950505554676056, 0.508217990398407, 1.0690529346466064, 0.13512437045574188, 0.2375185638666153, -0.7859017252922058, 0.8131253123283386, 0.13002446293830872, -0.006089556496590376, -0.197548046708107, -0.8696398138999939, -1.0913375616073608, -0.5351452827453613, 0.3218965530395508, 0.7327686548233032, -0.5015157461166382, 0.5641834735870361, -0.15907196700572968, -0.7288872599601746, -0.5610884428024292, 0.046667423099279404, 0.21694348752498627, 0.516266405582428, 0.2539469301700592, 0.08179806172847748, -0.6755086183547974, -1.070599913597107, 0.19709642231464386, -0.3950534462928772, 0.16645243763923645, 0.2760707437992096, 0.9151540994644165, -0.29432326555252075, 1.0667647123336792, -0.7491955161094666, -0.32748299837112427, -0.2950472831726074, -0.2840878367424011, 0.9869592785835266, 0.24776403605937958, 0.5411776304244995, -0.42785149812698364, -0.3090728223323822, -0.003939557820558548, -0.9184379577636719, -0.3419939875602722, 0.13848884403705597, -0.26770102977752686, 0.19975866377353668, 0.09433811902999878, -0.7344322800636292, 0.5500931143760681, 0.7402321696281433, -0.3146584630012512, 0.767962634563446, 0.127061128616333, 0.12635284662246704, -1.3983899354934692, 0.04943574592471123, -0.021251367405056953, -0.16124607622623444, -0.4239983856678009, 0.23854973912239075, -0.04907383769750595, 0.12902240455150604, -0.5116740465164185, 0.686992883682251, -0.46664461493492126, -0.1441613882780075, 0.055902138352394104, 0.23220087587833405, -0.06937059760093689, 0.6027966141700745, -0.2862934470176697, 1.0526889562606812, 0.8726547956466675, -0.5648496150970459, 0.3154868185520172, 0.171244814991951, -0.6296255588531494, 0.32300421595573425, -0.6523924469947815, 0.07624764740467072, 0.021748775616288185, 0.19002516567707062, -1.1400614976882935, 0.016770849004387856, 0.47007977962493896, -0.39136937260627747, -0.004249099642038345, -0.029737919569015503, -0.6144648790359497, -0.6699880957603455, -0.5794517397880554, 0.2752491533756256, 0.5908418297767639, -0.39755234122276306, 0.594387948513031, 0.5314315557479858, -0.010053792037069798, -0.7082319855690002, -0.4666562080383301, -0.18308502435684204, -0.30214378237724304, -0.9888876080513, 0.2846090495586395, -0.1831512153148651, -0.5568997859954834, -0.10381067544221878, 0.009586428292095661, 0.17109212279319763, 0.17463357746601105, 0.41713589429855347, 0.5222304463386536, -0.11002439260482788, -0.20202472805976868, 0.005306807812303305, -0.30043870210647583, 0.027261175215244293, -0.0431697852909565, 0.6912327408790588, -0.5530390739440918, -0.7641315460205078, -0.32348042726516724, -0.06465690582990646, 0.7048335671424866, -0.2607124447822571, 0.4998185932636261, 0.29938605427742004, -0.4506159722805023, -0.10532873123884201, -0.5562958717346191, -0.14241959154605865, -0.46071508526802063, 0.3101254403591156, -0.501191258430481, -1.056334137916565, 0.9327812194824219, -0.09706947952508926, 0.3331911563873291, 0.6554006338119507, 0.9803587198257446, -0.07983670383691788, 0.8602359890937805, 0.17834332585334778, -0.1292111873626709, 0.1580544263124466, -0.7527287602424622, 0.07248418778181076, -0.9572827219963074, -0.35734641551971436, -0.4267096221446991, -0.39488494396209717, -0.7149191498756409, -0.5552409291267395, 0.3456491231918335, 0.07649914175271988, -0.4865660071372986, 0.35907790064811707, -0.5598554015159607, 0.4434584081172943, 0.5219981074333191, 0.15845294296741486, 0.371381551027298, 0.11444403976202011, -0.5440484881401062, -0.24209727346897125, -0.6276046633720398, -0.6340530514717102, 1.3317233324050903, 0.3946962356567383, 0.674895167350769, 0.4831239879131317, 0.9415019154548645, 0.2923896908760071, 0.34393078088760376, -0.6457929611206055, 0.9148618578910828, 0.16772712767124176, -0.6419652700424194, -0.16331933438777924, -0.3649343252182007, -1.146804690361023, 0.6560191512107849, -0.18447677791118622, -0.9274187684059143, 0.26370564103126526, -0.12636972963809967, -0.4276164472103119, 0.6264901161193848, -0.35591214895248413, 0.4101971685886383, -0.15161636471748352, -0.5793694257736206, -0.0390186607837677, -0.3112647831439972, 0.83391273021698, -0.1017504408955574, 0.5762832760810852, -0.4196184575557709, -0.22658517956733704, 1.0363514423370361, -0.6906695365905762, 0.7824296951293945, 0.11356944590806961, -0.23843500018119812, 0.7621647119522095, 0.17218847572803497, 0.8236570358276367, 0.1569218635559082, -0.21426501870155334, 0.27758681774139404, -0.25163373351097107, -0.5042446851730347, -0.47987109422683716, 0.8775601983070374, -1.0776865482330322, -1.068335771560669, -0.6877922415733337, -0.3431229889392853, 0.143841952085495, 0.2886466979980469, 0.1971592903137207, 0.1944536715745926, 0.37489572167396545, 0.2007090002298355, 0.6334031820297241, 0.04727712646126747, 0.6863101720809937, 0.2269342839717865, -0.6619369983673096, -0.7498520016670227, 0.9077274799346924, 0.2150261551141739, 0.2646784782409668, 0.22946839034557343, 0.27610722184181213, -0.2689748704433441, -0.55614173412323, -0.354731947183609, 0.47334787249565125, -0.6604687571525574, -0.4468832314014435, -0.56852787733078, -0.31982502341270447, -0.314135879278183, -0.130526602268219, -0.4821355640888214, -0.7766460180282593, -0.3023744225502014, -0.39228132367134094, 0.4607534408569336, 0.6596171855926514, 0.10398508608341217, 0.07273814082145691, -0.32812339067459106, 0.0010031458223238587, 0.391644150018692, -0.013162949122488499, 0.03115903027355671, -0.6072065830230713, -0.06844363361597061, -0.13429029285907745, -0.690292477607727, -0.93651282787323, 0.5579966902732849, -0.12629544734954834, 0.6590820550918579, 0.563825786113739, -0.04742417857050896, 0.833057165145874, -0.06900811940431595, 0.8572663068771362, 0.25359225273132324, -0.9423580765724182, 0.6019923090934753, -0.3612220585346222, 0.19656577706336975, 0.40700334310531616, 0.26839736104011536, -0.17232677340507507, -0.44277647137641907, -0.8370220065116882, -0.8255937099456787, 0.561972975730896, 0.5390698313713074, -0.28778040409088135, 0.2369087189435959, 0.057167209684848785, -0.20220845937728882, 0.2315312772989273, -1.0105056762695312, -0.6473838090896606, -0.10504361242055893, -0.05862188711762428, 0.3268953263759613, -0.18607307970523834, -0.13388527929782867, -0.3169936239719391, 0.795170783996582, 0.008815831504762173, 0.3790894150733948, 0.04510153830051422, 0.0357418954372406, -0.13511782884597778, 0.28900817036628723, 0.9693871736526489, 1.0489652156829834, -0.28803345561027527, 0.2315642386674881, 0.35471153259277344, -0.4771987199783325, 0.34475794434547424, -0.05562324821949005, -0.5476235747337341, -0.26726362109184265, 0.7732440233230591, 0.7046070694923401, 0.10481050610542297, -0.518907904624939, 0.4438334107398987, 0.1743946373462677, -0.5032650828361511, -0.4617074429988861, 0.08286194503307343, 0.29557400941848755, 0.18567955493927002, 0.48979702591896057, 0.14433912932872772, 0.056200332939624786, -0.3659861087799072, 0.12260610610246658, 0.5497979521751404, -0.17132534086704254, -0.2676025927066803, 0.7014061808586121, -0.09949253499507904, -0.14606334269046783, 0.1689508557319641, -0.08995785564184189, -0.8489993810653687, 0.9305415749549866, 0.6407595276832581, 0.6035774350166321, -0.28423094749450684, 0.04515383765101433, 0.8346951603889465, 0.39734843373298645, -0.14812256395816803, 0.44668644666671753, 0.1872156858444214, -0.6258248090744019, -0.2355562150478363, -0.7049492597579956, -0.405020147562027, 0.06369321048259735, -0.4841368496417999, 0.40505945682525635, -0.5396183729171753, -0.4789053499698639, -0.37957051396369934, 0.47279322147369385, -0.5455906987190247, 0.0558868907392025, -0.006103646010160446, 0.8615304827690125, -0.8039830327033997, 0.7508164048194885, 0.6867803931236267, -0.33880195021629333, -0.9661327600479126, -0.49402663111686707, 0.175885409116745, -1.2149466276168823, 0.5257616639137268, 0.03551412373781204, -0.023267483338713646, -0.0604696162045002, -0.5643168091773987, -1.3383888006210327, 1.61811101436615, 0.19889239966869354, -0.832838773727417, 0.3214752972126007, 0.03725745156407356, 0.38318678736686707, -0.39818835258483887, 0.6019957661628723, 0.34067678451538086, 0.6604153513908386, 0.32766151428222656, -0.6936091780662537, 0.3098665177822113, -0.6102523803710938, -0.12497079372406006, 0.23496343195438385, -1.1048132181167603, 1.32342529296875, -0.3396869897842407, -0.16850291192531586, -0.22371019423007965, 0.8504522442817688, 1.080271601676941, 0.46257102489471436, 0.5114590525627136, 1.1494419574737549, 0.9894089698791504, -0.3148185610771179, 1.1268645524978638, -0.22436071932315826, 0.587832510471344, 0.8386846780776978, -0.11212781071662903, 0.8845381736755371, 0.436396986246109, -0.8379837274551392, 0.6082932949066162, 0.8985151648521423, 0.09271292388439178, 0.27751624584198, 0.22728808224201202, -0.09789469838142395, -0.5688645839691162, 0.13023722171783447, -0.673084557056427, 0.21605730056762695, 0.3621995151042938, -0.24465009570121765, -0.17420394718647003, -0.30080631375312805, 0.4113611578941345, 0.11988049745559692, -0.2112603485584259, 0.41754060983657837, 0.28587958216667175, -0.5340983867645264, 0.7717902064323425, -0.07579504698514938, 0.6523364782333374, -0.40305057168006897, -0.04648718982934952, -0.363626092672348, 0.07338269054889679, -0.4821544289588928, -1.0187186002731323, -0.04852423071861267, -0.05718471482396126, -0.026233140379190445, 0.0028774484526365995, 0.6256589293479919, -0.04249539226293564, -0.9647833108901978, 0.2687976062297821, 0.6100782752037048, 0.09982744604349136, 0.43748050928115845, -0.9616461396217346, 0.16069139540195465, 0.1379728615283966, -0.5576537251472473, 0.2325609028339386, 0.4147647023200989, -0.32154580950737, 0.9952048659324646, 1.1571018695831299, 0.18460699915885925, 0.13218988478183746, -0.045271169394254684, 1.219451665878296, -0.6528821587562561, -0.3968006670475006, -1.2964779138565063, 0.49789175391197205, -0.09138894081115723, -0.26047125458717346, 1.1159329414367676, 0.7977417707443237, 0.3996371030807495, 0.18693935871124268, 0.5326443314552307, 0.04950586333870888, 0.2821371555328369, -0.6126634478569031, 0.5896325707435608, -0.6861265301704407, 0.5811676383018494, -0.3703925311565399, -1.0251996517181396, -0.5336595773696899, 0.8209761381149292, -0.47143808007240295, 0.1154387965798378, 0.6415826082229614, 0.899692714214325, 0.23116379976272583, -0.06219696253538132, 0.21330201625823975, 0.27335125207901, 0.46228691935539246, 1.0712753534317017, 0.9433378577232361, -0.6257361769676208, 0.4723014533519745, -0.353224515914917, -0.2232772558927536, -0.39070188999176025, -0.9075537323951721, -1.0158371925354004, -0.5221894979476929, -0.43647271394729614, -0.4768519997596741, -0.18496976792812347, 1.1542707681655884, 0.6541431546211243, -0.7761228680610657, -0.49259868264198303, -0.003774795215576887, 0.6605925559997559, -0.29136648774147034, -0.18825657665729523, 0.7311259508132935, 0.14264987409114838, -0.7446047067642212, 0.1714763045310974, 0.2137289196252823, 0.1595630645751953, -0.2930447459220886, -0.330039381980896, -0.29222458600997925, 0.32614853978157043, 0.5125017166137695, 0.09918726980686188, -1.0015342235565186, 0.13950060307979584, 0.11070828139781952, -0.2368859052658081, 0.2990577816963196, 0.2909975051879883, -0.4790108799934387, 0.24583889544010162, 0.5584713220596313, 0.40217533707618713, 0.61725252866745, 0.06861181557178497, -0.11268278956413269, -0.144737109541893, 0.07160548865795135, 0.06653859466314316, 0.6165699362754822, 0.03835991397500038, -0.22237731516361237, 0.8556729555130005, 0.3388848900794983, -0.6193642616271973, -1.010493278503418, -0.003995536360889673, -1.302990436553955, -0.0875808447599411, 1.1770350933074951, -0.13178814947605133, -0.6115779280662537, 0.2792820930480957, -0.2495928853750229, -0.15726253390312195, -0.7718061804771423, 0.5854914784431458, 0.7606468796730042, -0.16343961656093597, -0.26909205317497253, -0.637620747089386, 0.04136313498020172, 0.24654485285282135, -0.9915859699249268, -0.28951483964920044, 0.24433094263076782, 0.1022619679570198, 0.2752892076969147, 0.8602415919303894, -0.2731359899044037, 0.12239016592502594, -0.2146228551864624, -0.05817253515124321, -0.3426867127418518, -0.01656489446759224, 0.001391611061990261, 0.36346012353897095, -0.030670681968331337, -0.1215905025601387 ]
Salesforce/codet5p-110m-embedding
Salesforce
"2023-07-18T10:44:11Z"
23,087
22
transformers
[ "transformers", "pytorch", "codet5p_embedding", "custom_code", "arxiv:2305.07922", "license:bsd-3-clause", "endpoints_compatible", "region:us" ]
null
"2023-07-18T09:52:49Z"
--- license: bsd-3-clause --- # CodeT5+ 110M Embedding Models ## Model description [CodeT5+](https://github.com/salesforce/CodeT5/tree/main/CodeT5+) is a new family of open code large language models with an encoder-decoder architecture that can flexibly operate in different modes (i.e. _encoder-only_, _decoder-only_, and _encoder-decoder_) to support a wide range of code understanding and generation tasks. It is introduced in the paper: [CodeT5+: Open Code Large Language Models for Code Understanding and Generation](https://arxiv.org/pdf/2305.07922.pdf) by [Yue Wang](https://yuewang-cuhk.github.io/)\*, [Hung Le](https://sites.google.com/view/henryle2018/home?pli=1)\*, [Akhilesh Deepak Gotmare](https://akhileshgotmare.github.io/), [Nghi D.Q. Bui](https://bdqnghi.github.io/), [Junnan Li](https://sites.google.com/site/junnanlics), [Steven C.H. Hoi](https://sites.google.com/view/stevenhoi/home) (* indicates equal contribution). Compared to the original CodeT5 family (base: `220M`, large: `770M`), CodeT5+ is pretrained with a diverse set of pretraining tasks including _span denoising_, _causal language modeling_, _contrastive learning_, and _text-code matching_ to learn rich representations from both unimodal code data and bimodal code-text data. Additionally, it employs a simple yet effective _compute-efficient pretraining_ method to initialize the model components with frozen off-the-shelf LLMs such as [CodeGen](https://github.com/salesforce/CodeGen) to efficiently scale up the model (i.e. `2B`, `6B`, `16B`), and adopts a "shallow encoder and deep decoder" architecture. Furthermore, it is instruction-tuned to align with natural language instructions (see our InstructCodeT5+ 16B) following [Code Alpaca](https://github.com/sahil280114/codealpaca). ## How to use This checkpoint consists of an encoder of CodeT5+ 220M model (pretrained from 2 stages on both unimodal and bimodal) and a projection layer, which can be used to extract code embeddings of 256 dimension. It can be easily loaded using the `AutoModel` functionality and employs the same [CodeT5](https://github.com/salesforce/CodeT5) tokenizer. ```python from transformers import AutoModel, AutoTokenizer checkpoint = "Salesforce/codet5p-110m-embedding" device = "cuda" # for GPU usage or "cpu" for CPU usage tokenizer = AutoTokenizer.from_pretrained(checkpoint, trust_remote_code=True) model = AutoModel.from_pretrained(checkpoint, trust_remote_code=True).to(device) inputs = tokenizer.encode("def print_hello_world():\tprint('Hello World!')", return_tensors="pt").to(device) embedding = model(inputs)[0] print(f'Dimension of the embedding: {embedding.size()[0]}, with norm={embedding.norm().item()}') # Dimension of the embedding: 256, with norm=1.0 print(embedding) # tensor([ 0.0185, 0.0229, -0.0315, -0.0307, -0.1421, -0.0575, -0.0275, 0.0501, # 0.0203, 0.0337, -0.0067, -0.0075, -0.0222, -0.0107, -0.0250, -0.0657, # 0.1571, -0.0994, -0.0370, 0.0164, -0.0948, 0.0490, -0.0352, 0.0907, # -0.0198, 0.0130, -0.0921, 0.0209, 0.0651, 0.0319, 0.0299, -0.0173, # -0.0693, -0.0798, -0.0066, -0.0417, 0.1076, 0.0597, -0.0316, 0.0940, # -0.0313, 0.0993, 0.0931, -0.0427, 0.0256, 0.0297, -0.0561, -0.0155, # -0.0496, -0.0697, -0.1011, 0.1178, 0.0283, -0.0571, -0.0635, -0.0222, # 0.0710, -0.0617, 0.0423, -0.0057, 0.0620, -0.0262, 0.0441, 0.0425, # -0.0413, -0.0245, 0.0043, 0.0185, 0.0060, -0.1727, -0.1152, 0.0655, # -0.0235, -0.1465, -0.1359, 0.0022, 0.0177, -0.0176, -0.0361, -0.0750, # -0.0464, -0.0846, -0.0088, 0.0136, -0.0221, 0.0591, 0.0876, -0.0903, # 0.0271, -0.1165, -0.0169, -0.0566, 0.1173, -0.0801, 0.0430, 0.0236, # 0.0060, -0.0778, -0.0570, 0.0102, -0.0172, -0.0051, -0.0891, -0.0620, # -0.0536, 0.0190, -0.0039, -0.0189, -0.0267, -0.0389, -0.0208, 0.0076, # -0.0676, 0.0630, -0.0962, 0.0418, -0.0172, -0.0229, -0.0452, 0.0401, # 0.0270, 0.0677, -0.0111, -0.0089, 0.0175, 0.0703, 0.0714, -0.0068, # 0.1214, -0.0004, 0.0020, 0.0255, 0.0424, -0.0030, 0.0318, 0.1227, # 0.0676, -0.0723, 0.0970, 0.0637, -0.0140, -0.0283, -0.0120, 0.0343, # -0.0890, 0.0680, 0.0514, 0.0513, 0.0627, -0.0284, -0.0479, 0.0068, # -0.0794, 0.0202, 0.0208, -0.0113, -0.0747, 0.0045, -0.0854, -0.0609, # -0.0078, 0.1168, 0.0618, -0.0223, -0.0755, 0.0182, -0.0128, 0.1116, # 0.0240, 0.0342, 0.0119, -0.0235, -0.0150, -0.0228, -0.0568, -0.1528, # 0.0164, -0.0268, 0.0727, -0.0569, 0.1306, 0.0643, -0.0158, -0.1070, # -0.0107, -0.0139, -0.0363, 0.0366, -0.0986, -0.0628, -0.0277, 0.0316, # 0.0363, 0.0038, -0.1092, -0.0679, -0.1398, -0.0648, 0.1711, -0.0666, # 0.0563, 0.0581, 0.0226, 0.0347, -0.0672, -0.0229, -0.0565, 0.0623, # 0.1089, -0.0687, -0.0901, -0.0073, 0.0426, 0.0870, -0.0390, -0.0144, # -0.0166, 0.0262, -0.0310, 0.0467, -0.0164, -0.0700, -0.0602, -0.0720, # -0.0386, 0.0067, -0.0337, -0.0053, 0.0829, 0.1004, 0.0427, 0.0026, # -0.0537, 0.0951, 0.0584, -0.0583, -0.0208, 0.0124, 0.0067, 0.0403, # 0.0091, -0.0044, -0.0036, 0.0524, 0.1103, -0.1511, -0.0479, 0.1709, # 0.0772, 0.0721, -0.0332, 0.0866, 0.0799, -0.0581, 0.0713, 0.0218], # device='cuda:0', grad_fn=<SelectBackward0>) ``` ## Pretraining data This checkpoint is trained on the stricter permissive subset of the deduplicated version of the [github-code dataset](https://huggingface.co/datasets/codeparrot/github-code). The data is preprocessed by reserving only permissively licensed code ("mit" “apache-2”, “bsd-3-clause”, “bsd-2-clause”, “cc0-1.0”, “unlicense”, “isc”). Supported languages (9 in total) are as follows: `c`, `c++`, `c-sharp`, `go`, `java`, `javascript`, `php`, `python`, `ruby.` ## Training procedure This checkpoint is first trained on the unimodal code data at the first-stage pretraining and then on bimodal text-code pair data using the proposed mixture of pretraining tasks. Please refer to the paper for more details. ## Evaluation results We show the zero-shot results of this checkpoint on 6 downstream code retrieval tasks from CodeXGLUE in the following table. | Ruby | JavaScript | Go | Python | Java | PHP | Overall | | ----- | ---------- | ----- | ------ | ----- | ----- | ------- | | 74.51 | 69.07 | 90.69 | 71.55 | 71.82 | 67.72 | 74.23 | ## BibTeX entry and citation info ```bibtex @article{wang2023codet5plus, title={CodeT5+: Open Code Large Language Models for Code Understanding and Generation}, author={Wang, Yue and Le, Hung and Gotmare, Akhilesh Deepak and Bui, Nghi D.Q. and Li, Junnan and Hoi, Steven C. H.}, journal={arXiv preprint}, year={2023} } ```
[ -0.5575071573257446, -0.5358647704124451, 0.2568278908729553, 0.0963524654507637, -0.16249018907546997, 0.07979972660541534, -0.20913147926330566, -0.1254481077194214, 0.46887487173080444, 0.2742719352245331, -0.3583388924598694, -0.8399337530136108, -0.5343846678733826, 0.01809501461684704, -0.25544866919517517, 1.0167396068572998, -0.13403314352035522, -0.11031947284936905, 0.012177841737866402, -0.2777656018733978, -0.37997162342071533, -0.47100433707237244, -0.41376620531082153, -0.10810311883687973, 0.2322632074356079, 0.3266196846961975, 0.5738271474838257, 0.7504918575286865, 0.47240155935287476, 0.30417704582214355, -0.17749875783920288, -0.09325071424245834, -0.37207821011543274, -0.3296412229537964, 0.10252602398395538, -0.6872994899749756, -0.5746763944625854, 0.05146659165620804, 0.43232691287994385, 0.5803948640823364, -0.05436452478170395, 0.46620726585388184, -0.03565213456749916, 0.5689017176628113, -0.4768635928630829, 0.30690398812294006, -0.24893884360790253, 0.16112077236175537, -0.19331549108028412, -0.19928240776062012, -0.11298771947622299, -0.33868691325187683, -0.10728611797094345, -0.6594125628471375, 0.40420985221862793, -0.017381273210048676, 1.4603298902511597, 0.1670285165309906, -0.3127995729446411, -0.1298021525144577, -0.38991761207580566, 1.0663293600082397, -0.9837596416473389, 0.2551279664039612, 0.5674670934677124, -0.0631670132279396, -0.08461586385965347, -0.8428815007209778, -0.742416262626648, 0.1239408403635025, -0.13425181806087494, 0.2368648201227188, -0.05233123153448105, -0.2182508260011673, 0.5474269390106201, 0.5385513305664062, -0.5773015022277832, -0.1511072963476181, -0.5300511121749878, -0.1961592584848404, 0.7078439593315125, 0.2533581554889679, 0.3357098400592804, -0.4395456314086914, -0.517618715763092, -0.23119905591011047, -0.5810961127281189, 0.3071349263191223, 0.44936561584472656, 0.20936866104602814, -0.46466997265815735, 0.4022291302680969, -0.164224773645401, 0.614475667476654, 0.0009035111870616674, -0.23798269033432007, 0.888757050037384, -0.628160297870636, -0.43098020553588867, -0.12369058281183243, 0.9636124968528748, 0.32220590114593506, 0.15910081565380096, 0.12181811034679413, -0.18785585463047028, -0.09464959055185318, 0.05979292094707489, -1.0118317604064941, -0.47557270526885986, 0.4780319929122925, -0.6754458546638489, -0.44387269020080566, 0.25697752833366394, -0.7397975921630859, -0.026310734450817108, -0.16702410578727722, 0.5575279593467712, -0.506145179271698, -0.4128103256225586, 0.01606704480946064, -0.27132871747016907, 0.470905601978302, 0.11197596788406372, -0.9507020711898804, 0.06587125360965729, 0.3612593710422516, 0.8819616436958313, 0.27998408675193787, -0.2247270941734314, -0.009719815105199814, 0.2918335497379303, -0.3646160066127777, 0.6607306003570557, -0.3231292963027954, -0.4857788681983948, -0.19658119976520538, 0.475831001996994, -0.15690962970256805, -0.4380495846271515, 0.41144803166389465, -0.500626802444458, 0.23185747861862183, -0.30102917551994324, -0.2610945403575897, -0.21727925539016724, 0.4536176025867462, -0.6387063264846802, 1.1585700511932373, 0.2369169145822525, -0.951743483543396, 0.4471437335014343, -0.7319828271865845, -0.28740784525871277, -0.15928281843662262, -0.18127615749835968, -0.6447206735610962, -0.4594354033470154, 0.26728716492652893, 0.4012049734592438, -0.44844499230384827, 0.14838625490665436, -0.18358276784420013, -0.4476766288280487, 0.15543612837791443, -0.21017864346504211, 1.274263858795166, 0.3454185128211975, -0.7550022602081299, -0.04099588096141815, -0.9785265922546387, 0.2104770392179489, 0.233163982629776, -0.2593984603881836, -0.17401547729969025, -0.328826904296875, -0.050002314150333405, 0.1069929450750351, 0.4822309613227844, -0.5880510210990906, 0.4066459536552429, -0.271504282951355, 0.7485857605934143, 0.7725233435630798, 0.10602393001317978, 0.308132141828537, -0.4508795738220215, 0.6398029923439026, 0.4149629473686218, 0.16290855407714844, -0.4181458055973053, -0.5285907983779907, -1.0608793497085571, -0.5072960257530212, 0.41177114844322205, 0.6118213534355164, -0.46900731325149536, 0.7409478425979614, -0.17821723222732544, -0.8428810834884644, -0.5537594556808472, 0.14195062220096588, 0.4679178297519684, 0.38662251830101013, 0.4437077045440674, -0.16777966916561127, -0.8547036647796631, -0.8717254996299744, 0.05287623777985573, 0.03361118584871292, 0.08448585122823715, 0.32756415009498596, 0.847095787525177, -0.5522200465202332, 1.1468095779418945, -0.8423843383789062, -0.3758050501346588, 0.05322724208235741, 0.1481131911277771, 0.6416599154472351, 0.7872584462165833, 0.6246806383132935, -0.5622500777244568, -0.48902881145477295, 0.08410240709781647, -1.006035566329956, 0.3180907070636749, -0.07534095644950867, -0.07564323395490646, 0.21986214816570282, 0.4623068869113922, -0.4449923038482666, 0.574777364730835, 0.47675976157188416, -0.4736913740634918, 0.5199438333511353, -0.4544651508331299, 0.2895759046077728, -1.4653695821762085, 0.36252105236053467, -0.20445729792118073, -0.1384543776512146, -0.38073301315307617, 0.05648087337613106, 0.22009041905403137, -0.154551699757576, -0.26369237899780273, 0.44666388630867004, -0.785385012626648, 0.020450778305530548, 0.1948128193616867, 0.034359510987997055, -0.05018157884478569, 0.6848738193511963, -0.003491584910079837, 0.8967169523239136, 0.837078332901001, -0.55854332447052, 0.25479111075401306, 0.20385615527629852, -0.37597936391830444, 0.18281994760036469, -0.7535696029663086, 0.2637411952018738, -0.009593780152499676, 0.03842133283615112, -1.1806836128234863, -0.2700473666191101, 0.2054664045572281, -0.6440452337265015, 0.18812261521816254, -0.3406887948513031, -0.36708900332450867, -0.5820609927177429, -0.46575573086738586, 0.5306773781776428, 0.40112391114234924, -0.2484845221042633, 0.3467329740524292, 0.3369288146495819, 0.09690766036510468, -0.7089637517929077, -0.7728347778320312, 0.002268181648105383, -0.14413870871067047, -0.6876489520072937, 0.44112518429756165, -0.1866893470287323, -0.0337350033223629, 0.0704788789153099, 0.1037084087729454, -0.16767507791519165, 0.08388858288526535, 0.29373040795326233, 0.29793474078178406, -0.34216973185539246, -0.1972605139017105, -0.2943190336227417, -0.23453737795352936, 0.04651414230465889, -0.25421351194381714, 0.7420094609260559, -0.41589775681495667, -0.2901758849620819, -0.3193032145500183, 0.057139802724123, 0.39823102951049805, -0.3121960163116455, 0.8804777264595032, 0.7970650792121887, -0.3259558379650116, 0.10865753144025803, -0.24767807126045227, 0.004121443722397089, -0.5257745385169983, 0.4239650368690491, -0.4457838833332062, -0.8430448770523071, 0.986136794090271, 0.10516933351755142, -0.11196447163820267, 0.5657864212989807, 0.5951667428016663, -0.03220449388027191, 0.9597263336181641, 0.3741540014743805, -0.25492584705352783, 0.5319631099700928, -0.9550430178642273, 0.3024842143058777, -0.8336426019668579, -0.5244405269622803, -0.5711950063705444, -0.4799288213253021, -0.6467391848564148, -0.562417209148407, 0.29111814498901367, 0.2229926884174347, -0.7039299607276917, 0.5677194595336914, -0.6454795598983765, 0.37725701928138733, 0.6413485407829285, 0.2470421940088272, 0.06050775945186615, -0.10014215856790543, -0.25779664516448975, -0.08778433501720428, -0.5647469162940979, -0.5045536160469055, 1.4923514127731323, 0.2534937560558319, 0.8385792970657349, 0.2123873233795166, 0.9393779039382935, 0.18185248970985413, -0.0005800387589260936, -0.5009127855300903, 0.31890541315078735, 0.26481643319129944, -0.8662185668945312, -0.2271314263343811, -0.39017874002456665, -1.0892281532287598, 0.20777451992034912, -0.11756022274494171, -0.8616494536399841, 0.49115511775016785, -0.08494029939174652, -0.569980263710022, 0.342149943113327, -0.8294026851654053, 0.9318394064903259, -0.13207729160785675, -0.568654477596283, -0.0268076341599226, -0.7822341918945312, 0.37128058075904846, 0.13579963147640228, 0.43140608072280884, -0.01156601496040821, -0.015395589172840118, 1.0865998268127441, -0.6081100702285767, 0.674174427986145, -0.3022759258747101, -0.07358380407094955, 0.5357051491737366, -0.010430492460727692, 0.4639253318309784, 0.2558254301548004, -0.04077685624361038, 0.3181685209274292, 0.47649529576301575, -0.7488847970962524, -0.3276667892932892, 0.7943376302719116, -1.1731445789337158, -0.5031754374504089, -0.697744607925415, -0.4485701620578766, 0.1610954999923706, 0.5390697717666626, 0.4583245813846588, 0.6926065683364868, 0.13081440329551697, 0.39943593740463257, 0.8308139443397522, -0.311343789100647, 0.7213025093078613, 0.3807128965854645, -0.21843814849853516, -0.7636623382568359, 1.0478805303573608, 0.15555977821350098, 0.25936898589134216, 0.16501133143901825, 0.018408242613077164, -0.2709098756313324, -0.4123592972755432, -0.3650951683521271, 0.25837093591690063, -0.5203519463539124, -0.4556700587272644, -0.7254904508590698, -0.21793539822101593, -0.9022645354270935, -0.46439629793167114, -0.44296759366989136, -0.2684907615184784, -0.548531174659729, -0.0698978453874588, 0.6384126543998718, 0.6024886965751648, -0.05239381641149521, 0.11534141004085541, -0.9613879919052124, 0.27745211124420166, 0.035151153802871704, 0.4566412568092346, 0.04061773791909218, -0.6142540574073792, -0.49383294582366943, 0.17203152179718018, -0.3238729238510132, -0.8201748132705688, 0.6552623510360718, 0.029263734817504883, 0.5562516450881958, 0.6598483920097351, -0.13457749783992767, 1.0232244729995728, -0.044239357113838196, 0.9693766832351685, 0.28646010160446167, -1.0186430215835571, 0.6784544587135315, -0.44810950756073, 0.23509317636489868, 0.7311151623725891, 0.40241095423698425, -0.5423499345779419, -0.22966237366199493, -0.9694142937660217, -1.0319048166275024, 0.9473820924758911, 0.2780584394931793, 0.140171617269516, 0.03747028484940529, 0.25701403617858887, -0.2206643670797348, 0.3161950409412384, -0.9866508841514587, -0.7420350909233093, -0.4129868745803833, -0.2758020758628845, 0.10527048259973526, -0.06802024692296982, -0.2473248988389969, -0.6822589039802551, 0.6641058921813965, -0.007544762920588255, 0.724730908870697, 0.36174488067626953, -0.165566548705101, 0.028692876920104027, 0.029482640326023102, 0.6446747183799744, 0.6687777638435364, -0.4886062443256378, 0.09309409558773041, 0.11736299097537994, -0.7747429609298706, 0.310586541891098, 0.05381961911916733, -0.1601228564977646, -0.15292593836784363, 0.5002283453941345, 0.5505529046058655, 0.23885585367679596, -0.36619803309440613, 0.7388965487480164, -0.0024590538814663887, -0.3101464807987213, -0.5822150707244873, 0.18183645606040955, 0.15014119446277618, 0.19357818365097046, 0.5697617530822754, 0.2596708834171295, -0.07131007313728333, -0.8071007132530212, 0.2115745097398758, 0.33826690912246704, -0.4593401551246643, -0.2801658809185028, 0.8574454188346863, -0.02737264521420002, -0.23392431437969208, 0.558333158493042, -0.3931370973587036, -0.5310239791870117, 0.9714763760566711, 0.5588776469230652, 0.8244320154190063, -0.1319974958896637, 0.026126524433493614, 0.9213871955871582, 0.38369789719581604, 0.1671087145805359, 0.4943510890007019, -0.0888894572854042, -0.6550053358078003, 0.12912079691886902, -0.7189343571662903, 0.0029274332337081432, 0.13249099254608154, -0.6657876372337341, 0.4202371835708618, -0.5828908681869507, -0.21587993204593658, -0.2865489721298218, 0.2579984962940216, -0.7624057531356812, 0.3235650956630707, 0.07259106636047363, 0.9076679348945618, -0.802095890045166, 1.1150492429733276, 0.646109402179718, -0.923375129699707, -1.1205118894577026, -0.17334364354610443, -0.29078835248947144, -0.8069087266921997, 0.6309450268745422, 0.242939755320549, 0.07837888598442078, 0.24586541950702667, -0.7140682935714722, -1.1677381992340088, 1.5997554063796997, 0.06678430736064911, -0.38741394877433777, 0.1069127544760704, 0.07385995984077454, 0.5653254389762878, -0.19767925143241882, 0.7050325274467468, 0.5246420502662659, 0.5174592733383179, 0.02629248984158039, -0.7107170820236206, 0.3364380896091461, -0.5374851822853088, -0.0580204576253891, 0.25113746523857117, -1.0069760084152222, 1.308695912361145, -0.3831508159637451, 0.01248632650822401, -0.042122550308704376, 0.6571705937385559, 0.29811686277389526, 0.11686595529317856, 0.37184739112854004, 0.8641296029090881, 0.9119575023651123, -0.22891904413700104, 0.9928362965583801, -0.5970388650894165, 0.9471288919448853, 0.6720584630966187, 0.04833943769335747, 0.8779177665710449, 0.27012911438941956, -0.5915411710739136, 0.7092814445495605, 0.8770321607589722, -0.2569446861743927, 0.5209707021713257, -0.09619958698749542, -0.20758794248104095, -0.04094645008444786, 0.411876380443573, -0.8426782488822937, 0.23411497473716736, 0.2653511166572571, -0.5849688053131104, -0.018589701503515244, -0.1955096572637558, 0.26923590898513794, -0.24512432515621185, -0.19130916893482208, 0.6567955017089844, 0.003924731630831957, -0.4087212383747101, 0.972914457321167, 0.16473545134067535, 0.833022952079773, -0.7085071802139282, 0.06035345420241356, -0.20631670951843262, 0.3892325758934021, -0.5565930604934692, -0.905561089515686, 0.19990265369415283, -0.06691142171621323, -0.13185656070709229, -0.08805089443922043, 0.4943375289440155, -0.2481677532196045, -0.4898580014705658, 0.26528483629226685, 0.007302394602447748, 0.09104641526937485, 0.21311509609222412, -0.7677589654922485, -0.009138341061770916, 0.37585461139678955, -0.4963937997817993, 0.3757483661174774, 0.5336887240409851, 0.15282201766967773, 0.4909469485282898, 0.8584792613983154, -0.1120368167757988, 0.26124730706214905, -0.34725162386894226, 1.07526433467865, -1.2416483163833618, -0.5400567054748535, -0.7021682262420654, 0.5316121578216553, -0.0002130111970473081, -0.6363705396652222, 0.9496000409126282, 0.9748220443725586, 0.7501829862594604, -0.08722547441720963, 0.7250149846076965, -0.6119705438613892, 0.24587738513946533, -0.5099951028823853, 0.7984410524368286, -0.6384127140045166, 0.04697231203317642, -0.3869275450706482, -0.7992289066314697, -0.36587923765182495, 0.757425844669342, -0.5027269124984741, 0.27603164315223694, 0.8239577412605286, 1.1259630918502808, 0.06968192756175995, -0.06025689095258713, 0.0957818552851677, 0.24240736663341522, 0.3282810151576996, 0.7232107520103455, 0.46459320187568665, -0.7662509679794312, 0.633772611618042, -0.469825804233551, -0.11179837584495544, -0.25972989201545715, -0.759608268737793, -0.7346645593643188, -0.7597044110298157, -0.3365583121776581, -0.6675614714622498, -0.24370285868644714, 1.012137532234192, 0.7756940722465515, -0.8639081120491028, -0.33939990401268005, -0.14933474361896515, -0.0378277450799942, -0.04080274701118469, -0.3088192939758301, 0.6653206944465637, -0.22324301302433014, -0.7317466139793396, 0.14110665023326874, -0.06445430219173431, 0.0381423681974411, -0.22157318890094757, -0.22652581334114075, -0.43834421038627625, -0.10569062829017639, 0.4494001269340515, 0.30391186475753784, -0.5450742840766907, -0.24353405833244324, -0.052015937864780426, -0.2577352523803711, 0.4433850646018982, 0.5870417356491089, -0.8273138999938965, 0.4147148132324219, 0.46350952982902527, 0.4055025279521942, 0.7311556935310364, -0.04678359255194664, 0.2543366849422455, -0.6626816391944885, 0.4154733717441559, -0.09461367130279541, 0.4528610110282898, 0.11425064504146576, -0.4315815567970276, 0.5677555203437805, 0.5451564788818359, -0.6183342337608337, -0.9270887970924377, -0.25372669100761414, -1.2533347606658936, -0.07992023229598999, 1.234326958656311, -0.29827383160591125, -0.5538392663002014, -0.023949867114424706, -0.32463711500167847, 0.3089295029640198, -0.3896935284137726, 0.5557177066802979, 0.6048440933227539, -0.08505240827798843, 0.03592170029878616, -0.6649405360221863, 0.39639121294021606, 0.20359477400779724, -0.7703917622566223, -0.06871020793914795, 0.1085708886384964, 0.628990113735199, 0.41926199197769165, 0.6610267758369446, -0.3358970284461975, 0.09599415957927704, 0.3271801769733429, 0.4103790521621704, -0.11558341234922409, -0.002044717315584421, -0.39801955223083496, 0.10267522931098938, 0.013558008708059788, -0.4315764009952545 ]
blanchefort/rubert-base-cased-sentiment-rusentiment
blanchefort
"2023-04-06T04:06:16Z"
23,032
4
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "bert", "text-classification", "sentiment", "ru", "dataset:RuSentiment", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - ru tags: - sentiment - text-classification datasets: - RuSentiment --- # RuBERT for Sentiment Analysis This is a [DeepPavlov/rubert-base-cased-conversational](https://huggingface.co/DeepPavlov/rubert-base-cased-conversational) model trained on [RuSentiment](http://text-machine.cs.uml.edu/projects/rusentiment/). ## Labels 0: NEUTRAL 1: POSITIVE 2: NEGATIVE ## How to use ```python import torch from transformers import AutoModelForSequenceClassification from transformers import BertTokenizerFast tokenizer = BertTokenizerFast.from_pretrained('blanchefort/rubert-base-cased-sentiment-rusentiment') model = AutoModelForSequenceClassification.from_pretrained('blanchefort/rubert-base-cased-sentiment-rusentiment', return_dict=True) @torch.no_grad() def predict(text): inputs = tokenizer(text, max_length=512, padding=True, truncation=True, return_tensors='pt') outputs = model(**inputs) predicted = torch.nn.functional.softmax(outputs.logits, dim=1) predicted = torch.argmax(predicted, dim=1).numpy() return predicted ``` ## Dataset used for model training **[RuSentiment](http://text-machine.cs.uml.edu/projects/rusentiment/)** > A. Rogers A. Romanov A. Rumshisky S. Volkova M. Gronas A. Gribov RuSentiment: An Enriched Sentiment Analysis Dataset for Social Media in Russian. Proceedings of COLING 2018.
[ -0.24816977977752686, -0.6554567217826843, 0.049795106053352356, 0.4914593994617462, -0.4790070056915283, 0.07855227589607239, -0.36579835414886475, -0.0006084602791815996, 0.33839190006256104, 0.14690251648426056, -0.4608140289783478, -0.700937807559967, -0.5997909307479858, -0.17354358732700348, -0.24929821491241455, 1.6153664588928223, 0.18055219948291779, 0.5695404410362244, -0.11325540393590927, -0.09975199401378632, -0.12583357095718384, -0.5534812808036804, -0.47443699836730957, -0.6667423844337463, 0.4310406446456909, 0.45661717653274536, 0.41883713006973267, -0.19248749315738678, 0.49317479133605957, 0.3194786310195923, -0.025344541296362877, -0.30163073539733887, -0.454000324010849, 0.21042686700820923, -0.030571650713682175, -0.37521934509277344, -0.8126881122589111, 0.09572157263755798, 0.23111668229103088, 0.39328041672706604, -0.17688143253326416, 0.3117447793483734, -0.24799877405166626, 0.46957215666770935, -0.32794663310050964, 0.10130216926336288, -0.5734643340110779, 0.14312992990016937, -0.01917993649840355, -0.23492704331874847, -0.43480873107910156, -0.39950382709503174, 0.2800139784812927, -0.33327820897102356, 0.41830331087112427, -0.11187876760959625, 1.189215898513794, 0.08498140424489975, -0.20096586644649506, -0.33157646656036377, -0.47097083926200867, 1.058209776878357, -0.6792213320732117, 0.15442459285259247, 0.19554629921913147, 0.09443463385105133, 0.10866165161132812, -0.7327937483787537, -0.4826560318470001, -0.07157307863235474, 0.08747921139001846, 0.42734211683273315, -0.20564483106136322, 0.044685568660497665, 0.05388615280389786, 0.5537462830543518, -0.5385277271270752, -0.21474212408065796, -0.35381919145584106, -0.22270521521568298, 0.49372532963752747, 0.18125595152378082, -0.08720098435878754, -0.41526153683662415, -0.5009624361991882, -0.23328612744808197, -0.03423295170068741, -0.013418612070381641, 0.4631500244140625, 0.1182645633816719, -0.2502005398273468, 0.698469877243042, -0.3143593966960907, 0.4511023759841919, 0.2403608113527298, -0.09763939678668976, 0.7462071180343628, 0.08758991211652756, -0.3734912872314453, -0.191273033618927, 1.054643988609314, 0.24347278475761414, 0.39658188819885254, 0.1320229172706604, -0.33217331767082214, 0.32297539710998535, 0.025881357491016388, -0.9535185098648071, -0.816155195236206, 0.4605940580368042, -0.3548242151737213, -0.6124469041824341, 0.11042516678571701, -1.0443203449249268, -0.5258203148841858, -0.13246023654937744, 0.6699379086494446, -0.3870575726032257, -0.3378380537033081, 0.5077874064445496, -0.2106337696313858, 0.3382798135280609, 0.17656204104423523, -0.482479453086853, 0.19189724326133728, 0.484782338142395, 0.5857608914375305, 0.17843979597091675, 0.0020705664064735174, -0.4028267562389374, -0.5714027881622314, 0.039207037538290024, 0.6983281970024109, -0.29746299982070923, -0.3708815276622772, 0.12164901942014694, -0.14156778156757355, 0.07017223536968231, -0.18125545978546143, 0.8780375123023987, -0.4539867639541626, 0.735982358455658, 0.11549821496009827, -0.5253878831863403, -0.11820796877145767, 0.5066471695899963, -0.39351555705070496, 0.9269320964813232, 0.10184730589389801, -0.9342991709709167, 0.2771614193916321, -0.7669993042945862, -0.5612146258354187, -0.04195805639028549, 0.049793969839811325, -1.011820673942566, 0.04284539073705673, 0.06288696080446243, 0.8286393880844116, -0.11919184029102325, 0.4263293147087097, -0.4991629123687744, -0.030483989045023918, 0.8051126003265381, -0.29577648639678955, 0.929341733455658, 0.266875296831131, -0.4116523265838623, 0.20305532217025757, -0.7717761993408203, -0.011481564491987228, 0.001273087109439075, -0.3095037341117859, 0.06375752389431, -0.14916449785232544, 0.44319388270378113, 0.2000129073858261, 0.2994772791862488, -0.7699830532073975, 0.26683083176612854, -0.4080340266227722, 0.021820062771439552, 0.8724278807640076, -0.013564391061663628, 0.40290191769599915, 0.05526309087872505, 0.6365827322006226, 0.2642340362071991, 0.1864926517009735, 0.2153169810771942, -0.23028114438056946, -1.2523322105407715, -0.3557811677455902, 0.5008264780044556, 0.5820035338401794, -0.8659904599189758, 0.5171467661857605, -0.36355650424957275, -0.5204274654388428, -0.38725289702415466, -0.009593739174306393, 0.25283122062683105, 0.3639453947544098, 0.3964642286300659, -0.2610512673854828, -0.7133952379226685, -0.7543051242828369, -0.34349825978279114, 0.005914543755352497, 0.14768292009830475, 0.0431581512093544, 0.6344091296195984, -0.4440734386444092, 0.8196760416030884, -0.6509099006652832, -0.3766078054904938, -0.34117600321769714, 0.5364205241203308, 0.6341509819030762, 0.5594008564949036, 0.30296921730041504, -0.7617146372795105, -0.8581619262695312, -0.04430597648024559, -0.5264679789543152, -0.04785894975066185, -0.038321513682603836, -0.15941253304481506, 0.20875339210033417, -0.062339089810848236, -0.7476972937583923, 0.33917367458343506, 0.3973649740219116, -0.7078115344047546, 0.6450825333595276, 0.18201223015785217, 0.0031370650976896286, -1.2382091283798218, 0.09923495352268219, 0.39367058873176575, -0.18035680055618286, -0.8603869080543518, -0.425841748714447, -0.06974028795957565, 0.006640403065830469, -0.30560797452926636, 0.662477433681488, -0.3468114733695984, 0.26115044951438904, -0.14457756280899048, -0.009471354074776173, 0.0861496701836586, 0.4468424916267395, -0.017001470550894737, 0.4114205241203308, 0.7279963493347168, -0.29941079020500183, 0.49635741114616394, 0.3163648843765259, -0.25116661190986633, 0.5932303071022034, -0.6841228604316711, 0.10554563254117966, 0.007206692826002836, 0.08147206902503967, -0.9520981311798096, -0.20899182558059692, 0.5827367901802063, -1.0785170793533325, 0.4230484664440155, -0.1254274547100067, -0.39228135347366333, -0.20257343351840973, -0.5682370662689209, 0.28698790073394775, 0.563520610332489, -0.544910728931427, 0.6184782981872559, 0.26113858819007874, -0.04979916661977768, -0.9833576083183289, -0.6315917372703552, -0.05172359570860863, -0.3912963569164276, -0.5959738492965698, -0.07393264770507812, -0.11475930362939835, -0.23343677818775177, -0.18861205875873566, 0.048447705805301666, -0.14297665655612946, -0.11620716750621796, 0.10367193073034286, 0.3964494466781616, -0.05532515048980713, 0.20939457416534424, -0.1678575575351715, -0.18411029875278473, 0.2283506840467453, 0.03478426858782768, 0.8544477820396423, -0.4865556061267853, 0.09665145725011826, -0.31005629897117615, -0.10371800512075424, 0.46282511949539185, -0.03002224490046501, 0.6562243700027466, 1.143226146697998, -0.14874978363513947, -0.23327666521072388, -0.6224324703216553, -0.0891064703464508, -0.48666030168533325, 0.3935440480709076, -0.1643925905227661, -0.5967462658882141, 0.6389544606208801, 0.21960797905921936, -0.3080073893070221, 0.4752137362957001, 0.7032608985900879, -0.041090983897447586, 0.8998591899871826, 0.5763534307479858, -0.35080307722091675, 0.6253065466880798, -0.6334700584411621, 0.36859405040740967, -0.6700593829154968, -0.16189983487129211, -0.34372711181640625, -0.07266779243946075, -0.5468483567237854, -0.28236353397369385, 0.09601674973964691, -0.030947670340538025, -0.09546767175197601, 0.24423065781593323, -0.4963057041168213, 0.2111951857805252, 0.3287971019744873, 0.18873515725135803, -0.0029207468032836914, 0.20262444019317627, 0.1531870812177658, -0.0517907477915287, -0.5721410512924194, -0.4187461733818054, 1.023410677909851, 0.585212230682373, 1.1073086261749268, -0.18668439984321594, 0.6888042688369751, 0.307191401720047, 0.6175788640975952, -1.0779973268508911, 0.6443214416503906, -0.19042935967445374, -0.8110905289649963, 0.07625268399715424, -0.4460570216178894, -0.8765437602996826, 0.3067950904369354, -0.288474440574646, -0.4665301442146301, 0.17995543777942657, 0.10280977934598923, -0.10219920426607132, 0.061554741114377975, -0.5866898894309998, 0.8795294165611267, -0.06256168335676193, -0.3760499954223633, -0.12350889295339584, -0.5229227542877197, 0.25128257274627686, 0.3975854814052582, -0.013846175745129585, -0.23738248646259308, 0.2581901252269745, 0.9736395478248596, -0.023378539830446243, 1.0553438663482666, -0.4021480679512024, -0.029685651883482933, 0.32689517736434937, 0.04421813413500786, 0.2029593586921692, 0.15357095003128052, -0.15849943459033966, 0.06484120339155197, -0.2292129099369049, -0.5128967761993408, -0.15969814360141754, 0.5891487002372742, -0.8781791925430298, -0.30275624990463257, -0.7849509716033936, -0.2694515883922577, -0.082849882543087, 0.06017991527915001, 0.41326454281806946, 0.7013707160949707, -0.3795664310455322, 0.37107518315315247, 0.6311253309249878, -0.16576671600341797, 0.37945595383644104, 0.2394910752773285, -0.19748149812221527, -0.793755054473877, 1.1336669921875, -0.2503337562084198, -0.018011249601840973, 0.19399894773960114, 0.4890815317630768, -0.26397866010665894, -0.05117100849747658, -0.09277395159006119, 0.2776004672050476, -0.966465175151825, -0.5942402482032776, -0.5992752313613892, -0.16867969930171967, -0.585536777973175, -0.0097007742151618, -0.16416122019290924, -0.49732649326324463, -0.6532666087150574, -0.21419841051101685, 0.4854657053947449, 0.38974830508232117, -0.16749326884746552, 0.5320338606834412, -0.42773109674453735, 0.29764485359191895, 0.0848172977566719, 0.2402263879776001, -0.34982842206954956, -0.6397957801818848, -0.3160013258457184, -0.023478541523218155, -0.4627303183078766, -0.8861598372459412, 0.8544510006904602, 0.18037524819374084, 0.3423587679862976, 0.3809497058391571, 0.12782292068004608, 0.3708682954311371, -0.007150657009333372, 0.7171761989593506, 0.4857107102870941, -1.0689847469329834, 0.4408697783946991, -0.5008170008659363, 0.09998160600662231, 0.5455211997032166, 0.3570597171783447, -0.5771568417549133, -0.23572178184986115, -0.8770582675933838, -0.8501659631729126, 0.5842627882957458, 0.16751471161842346, 0.24807193875312805, -0.017949046567082405, 0.13976651430130005, 0.14733225107192993, 0.36006873846054077, -1.4837950468063354, -0.3727167546749115, -0.5224456191062927, -0.6597090363502502, -0.1806982457637787, -0.36656463146209717, -0.2381528913974762, -0.5133056044578552, 1.0356217622756958, -0.08847513049840927, 0.5426302552223206, 0.29591724276542664, -0.2537236511707306, -0.08694358170032501, 0.370463103055954, 0.5671438574790955, 0.3287144601345062, -0.29112017154693604, 0.14761221408843994, 0.20380498468875885, -0.571936845779419, -0.06876498460769653, 0.08036767691373825, 0.0991072952747345, 0.1243838295340538, 0.1026163175702095, 0.7734620571136475, -0.313856840133667, -0.23092670738697052, 0.7817662954330444, -0.20376423001289368, -0.29423457384109497, -0.7301154136657715, -0.22589729726314545, -0.1217581182718277, 0.2220681607723236, 0.2700025141239166, 0.19982032477855682, 0.24685411155223846, -0.25773224234580994, 0.06587211787700653, 0.6035435199737549, -0.7109603881835938, -0.5538329482078552, 0.20967267453670502, 0.37197428941726685, -0.23169182240962982, 0.3487287759780884, -0.26332443952560425, -0.9710862636566162, 0.49339035153388977, 0.24256333708763123, 1.2195831537246704, 0.02156323753297329, 0.373399555683136, 0.38988640904426575, 0.13646073639392853, 0.15339235961437225, 0.43313437700271606, 0.11158088594675064, -0.8772433996200562, -0.3649759292602539, -0.7412501573562622, -0.30040231347084045, 0.20090238749980927, -0.7755200266838074, 0.3877662718296051, -0.40227675437927246, -0.3379228115081787, -0.1976751685142517, 0.25838834047317505, -0.6700627207756042, 0.5008653402328491, -0.04106833413243294, 0.6701443195343018, -1.0668907165527344, 0.8751108646392822, 0.837719202041626, -0.2748046815395355, -0.4746781289577484, -0.06955395638942719, -0.3307235836982727, -0.5762483477592468, 0.6771330833435059, 0.36258143186569214, -0.14180289208889008, -0.042374707758426666, -0.8616990447044373, -0.4082840085029602, 0.9103846549987793, -0.13624140620231628, 0.024237215518951416, 0.6353153586387634, -0.023933110758662224, 0.7375472784042358, -0.2492373287677765, 0.2772911489009857, 0.4537602961063385, 0.33306363224983215, -0.10229945927858353, -0.38790372014045715, -0.17021630704402924, -0.5737563967704773, -0.3627385199069977, 0.1748059093952179, -0.600155770778656, 1.1159873008728027, 0.06468988209962845, 0.008705275133252144, 0.1923479437828064, 0.7623449563980103, 0.00661769974976778, 0.30250298976898193, 0.3311272859573364, 0.6259956955909729, 0.38626334071159363, -0.30105969309806824, 0.7597599625587463, -0.1610242873430252, 1.095107078552246, 0.8418658375740051, 0.11702827364206314, 0.6690994501113892, 0.5331859588623047, -0.09902522712945938, 0.8192898631095886, 0.4691483974456787, -0.2556123435497284, 0.6260287761688232, 0.18418502807617188, -0.44904038310050964, -0.17969609797000885, 0.24064518511295319, -0.3727516233921051, 0.31246218085289, 0.37278425693511963, -0.1874304562807083, 0.09710157662630081, -0.02620665542781353, 0.205480694770813, -0.14651118218898773, -0.1362941414117813, 0.6007590293884277, 0.042656831443309784, -0.40943047404289246, 0.3670373857021332, 0.0024359356611967087, 1.0586717128753662, -0.3018767237663269, 0.13184967637062073, -0.21502964198589325, 0.6207788586616516, -0.29286983609199524, -0.7397431135177612, -0.2381514608860016, -0.07937793433666229, -0.016612505540251732, -0.16698147356510162, 1.1113417148590088, -0.4720662832260132, -0.7804542779922485, 0.2503628432750702, 0.40325671434402466, 0.0413922443985939, 0.14224766194820404, -0.9244111776351929, -0.11884679645299911, 0.07248224318027496, -0.7312290668487549, 0.09152723103761673, 0.5049667954444885, 0.5381429195404053, 0.6541990637779236, 0.44139450788497925, -0.06394150853157043, -0.020558133721351624, 0.24779102206230164, 1.047073245048523, -0.6851831674575806, -0.3317442238330841, -0.9657056927680969, 0.8571369647979736, -0.30982688069343567, -0.6011949777603149, 0.905750572681427, 0.49518895149230957, 0.5586305856704712, -0.4127193093299866, 0.6588330864906311, -0.22451725602149963, 0.4199177622795105, -0.29481497406959534, 0.6360917091369629, -0.39568740129470825, -0.027161989361047745, -0.4648999273777008, -0.7812254428863525, -0.4169946610927582, 1.0022350549697876, -0.48143109679222107, 0.08417905122041702, 0.6257303357124329, 0.849324643611908, -0.1785711646080017, -0.18136046826839447, 0.20357385277748108, 0.3350631594657898, 0.29214856028556824, 0.156971737742424, 1.0032680034637451, -0.6277450323104858, 0.5008882880210876, -0.5094351768493652, -0.21619611978530884, -0.4644724130630493, -0.820254921913147, -1.1878736019134521, -0.40484076738357544, -0.5202133655548096, -0.8134103417396545, -0.2924683094024658, 0.8643272519111633, 0.5255854725837708, -0.8943833708763123, -0.4261552691459656, -0.015541927888989449, 0.015628352761268616, 0.3001451790332794, -0.3904106020927429, 0.07472231984138489, -0.46423956751823425, -0.5689152479171753, -0.08370039612054825, -0.11286155879497528, 0.015011251904070377, -0.2414892166852951, -0.11936070770025253, -0.2515418231487274, -0.01359117403626442, 0.5936583876609802, 0.12016706168651581, -0.5753563046455383, -0.28058111667633057, 0.14386646449565887, -0.2555933892726898, 0.3048244118690491, 0.5637384057044983, -0.5851513743400574, 0.29218119382858276, 0.5040866136550903, 0.17830534279346466, 0.6365506052970886, -0.0047700959257781506, 0.29634344577789307, -0.9605790972709656, 0.17026370763778687, 0.4600076675415039, 0.5203971266746521, 0.6019022464752197, -0.30281704664230347, 0.40989381074905396, 0.3288598656654358, -0.6626047492027283, -0.7339842319488525, 0.040864553302526474, -1.2233082056045532, -0.18119274079799652, 1.4187302589416504, 0.011535861529409885, -0.2184862196445465, 0.10507577657699585, -0.46317172050476074, 0.37620896100997925, -0.5923745632171631, 0.8175305128097534, 0.5934326648712158, -0.1657286137342453, 0.03217833489179611, -0.1422390639781952, 0.3867858946323395, 0.7150627970695496, -0.7242698073387146, -0.06628426164388657, 0.4005335867404938, 0.4673062264919281, 0.34813758730888367, 0.6090393662452698, 0.009008604101836681, 0.25730738043785095, 0.007121287751942873, 0.6015598177909851, 0.3413132131099701, -0.21427789330482483, -0.6340975761413574, 0.011794148944318295, -0.030792731791734695, -0.3515489995479584 ]
andreasmadsen/efficient_mlm_m0.40
andreasmadsen
"2022-11-15T23:25:11Z"
22,993
1
transformers
[ "transformers", "pytorch", "tf", "roberta-prelayernorm", "fill-mask", "arxiv:2202.08005", "autotrain_compatible", "region:us" ]
fill-mask
"2022-11-15T22:10:55Z"
--- inference: false --- This is a model checkpoint for ["Should You Mask 15% in Masked Language Modeling"](https://arxiv.org/abs/2202.08005) [(code)](https://github.com/princeton-nlp/DinkyTrain.git). The original checkpoint is avaliable at [princeton-nlp/efficient_mlm_m0.40](https://huggingface.co/princeton-nlp/efficient_mlm_m0.40). Unfortunately this checkpoint depends on code that isn't part of the official `transformers` library. Additionally, the checkpoints contains unused weights due to a bug. This checkpoint fixes the unused weights issue and uses the `RobertaPreLayerNorm` model from the `transformers` library.
[ -0.4274662435054779, -0.5110727548599243, 0.19734613597393036, 0.3428298830986023, 0.03512308746576309, 0.031319573521614075, 0.12117686122655869, -0.2970585227012634, 0.23444658517837524, 0.7984552383422852, -0.9259679317474365, -0.4718146026134491, -0.5304569005966187, -0.12224425375461578, -0.6588371992111206, 1.0791020393371582, 0.0010640326654538512, 0.33946990966796875, -0.03797214850783348, -0.1262936145067215, -0.4319760501384735, -0.3738490045070648, -0.794783353805542, -0.3834926187992096, 0.3403116464614868, 0.19774481654167175, 0.18933404982089996, 0.35459771752357483, 0.48373687267303467, 0.2182426005601883, -0.2967754602432251, -0.4317009747028351, -0.3011414706707001, -0.021397864446043968, -0.011143895797431469, -0.28536051511764526, -0.7213873863220215, 0.010808795690536499, 1.0016191005706787, 0.7404767870903015, -0.3012983798980713, 0.2101941555738449, -0.015647094696760178, 0.6754782795906067, -0.6212801933288574, 0.1776636689901352, -0.6634777188301086, 0.17635801434516907, -0.11215085536241531, 0.28643885254859924, -0.41765978932380676, 0.1721944659948349, -0.1466892510652542, -0.42374104261398315, 0.1767474114894867, -0.0430009588599205, 1.180778980255127, 0.476962149143219, -0.16477319598197937, 0.13222284615039825, -0.6372451186180115, 0.9316046237945557, -0.7926326990127563, 0.21659336984157562, 0.48931512236595154, 0.5723156332969666, 0.08610821515321732, -0.9028897881507874, -0.5031594634056091, 0.02618076652288437, -0.007321387063711882, -0.05287507548928261, -0.5883527398109436, 0.18738555908203125, 0.5562700629234314, 0.6491497159004211, -0.4791906177997589, 0.09217704832553864, -0.6083146333694458, -0.5065529346466064, 0.2084992229938507, 0.2639608085155487, 0.48583102226257324, -0.379717618227005, -0.5737931132316589, -0.04686439782381058, -0.5495367050170898, -0.15300588309764862, 0.4689434766769409, 0.13355542719364166, -0.3638901114463806, 0.4818207919597626, -0.3281473219394684, 0.9309197068214417, -0.2399766445159912, 0.09325003623962402, 0.40614524483680725, -0.2618112862110138, -0.2754603326320648, -0.18800011277198792, 0.5109490156173706, 0.2714201509952545, 0.16321410238742828, -0.03569907695055008, -0.5766076445579529, -0.15379250049591064, 0.5116528868675232, -0.967820942401886, -0.5725192427635193, 0.2724796533584595, -0.10152934491634369, -0.20851320028305054, 0.1943821907043457, -0.4402836263179779, 0.08406081795692444, -0.22127306461334229, 0.6243051886558533, -0.3852398097515106, -0.16747456789016724, 0.2484854757785797, -0.21956869959831238, 0.21233266592025757, 0.22097094357013702, -0.6801697611808777, 0.05197252333164215, 0.6515703797340393, 0.9089081287384033, 0.0002987063198816031, -0.11931412667036057, -0.4863976836204529, 0.03704435005784035, -0.18283578753471375, 0.544399619102478, -0.20933541655540466, -0.07397109270095825, 0.1238650530576706, 0.31630825996398926, -0.32654738426208496, -0.6321012377738953, 0.8274673223495483, -0.6379091739654541, 0.37158116698265076, -0.14302599430084229, -0.5319039225578308, -0.2993395924568176, 0.4034625291824341, -0.9777311086654663, 1.1628080606460571, 0.3546534478664398, -0.6136937737464905, 0.3519825041294098, -0.680774450302124, -0.15413343906402588, 0.37154293060302734, 0.09286369383335114, -0.8399163484573364, -0.23786161839962006, 0.09966539591550827, 0.08158640563488007, 0.23273146152496338, 0.3911711573600769, -0.18576988577842712, -0.5219689011573792, 0.3819172978401184, 0.06442832201719284, 1.4299770593643188, 0.4686521887779236, -0.5225768089294434, 0.037151433527469635, -1.0850223302841187, 0.013217668980360031, -0.12596410512924194, -0.4326813220977783, -0.2913099527359009, -0.2633720636367798, 0.00719549972563982, 0.18429051339626312, 0.15411266684532166, -0.6403552293777466, 0.08654043823480606, -0.1903563141822815, 0.3213534951210022, 0.8888633847236633, 0.08361759781837463, 0.46424946188926697, -0.5655434131622314, 0.7512916922569275, -0.12035097926855087, 0.2230999916791916, -0.1786041110754013, -0.7292178869247437, -1.3229219913482666, -0.7804424166679382, 0.3758101165294647, 0.4292522072792053, -0.7038453221321106, 0.7032566070556641, 0.1138000413775444, -0.4951387047767639, -0.29168859124183655, -0.10033434629440308, 0.44379502534866333, 0.33882036805152893, 0.4819861352443695, -0.6334930658340454, -0.9698078036308289, -1.0240529775619507, -0.2987789213657379, -0.22215110063552856, -0.3431718349456787, 0.03572376072406769, 0.7140346765518188, -0.3574769198894501, 0.7951758503913879, -0.482516348361969, -0.6121524572372437, -0.3829153776168823, 0.08644866943359375, 0.29373160004615784, 0.8929726481437683, 0.6329233646392822, -0.29193857312202454, -0.16796624660491943, -0.6705686450004578, -0.5509388446807861, -0.41468438506126404, -0.23851917684078217, -0.2391946166753769, -0.011855171993374825, 0.5779308080673218, -0.36296188831329346, 0.32520198822021484, 0.8242084383964539, -0.30459439754486084, 0.4880756735801697, 0.17230196297168732, 0.018264738842844963, -0.9949949383735657, 0.3489331901073456, -0.06126425415277481, -0.5011504292488098, -0.7346524000167847, 0.6015768051147461, 0.12276850640773773, -0.1662740856409073, -0.36452269554138184, 0.5305370092391968, -0.36560335755348206, -0.024225257337093353, -0.26090702414512634, -0.25425827503204346, 0.05864163115620613, 0.6266422867774963, -0.2451273500919342, 0.7896663546562195, 0.5714170932769775, -0.623431921005249, -0.0022026393562555313, 0.2583587169647217, -0.6726440787315369, 0.6265498995780945, -0.6645268797874451, 0.2580700218677521, 0.12098877876996994, 0.36620965600013733, -0.792391836643219, -0.26147961616516113, 0.5164551734924316, -0.45291590690612793, 0.3997984528541565, -0.406338632106781, -0.30992886424064636, -0.2314341962337494, -0.3628256618976593, 0.5686739087104797, 0.6318612098693848, -0.35408803820610046, 0.4891314208507538, 0.8855544328689575, 0.18520252406597137, -0.5403972864151001, -1.0748467445373535, 0.23264308273792267, -0.32733145356178284, -0.4552997350692749, 0.37067627906799316, -0.16033685207366943, -0.14502058923244476, -0.24357813596725464, 0.1632285863161087, -0.18954236805438995, 0.21014733612537384, 0.17026059329509735, 0.1691199690103531, -0.26956698298454285, -0.16945818066596985, -0.22453027963638306, -0.4135560095310211, 0.2579546570777893, -0.2362930178642273, 0.7273964881896973, -0.09271756559610367, -0.4246954321861267, -0.5560471415519714, 0.038136690855026245, 0.03418220952153206, 0.09607544541358948, 0.8966400623321533, 0.9604056477546692, -0.6815256476402283, -0.35047513246536255, -0.5062146186828613, -0.32342326641082764, -0.4850962460041046, 0.4000392556190491, -0.036140426993370056, -1.0872454643249512, 0.7826111316680908, 0.27296221256256104, -0.15608945488929749, 0.8758478164672852, 0.7244859933853149, 0.037536364048719406, 0.8807177543640137, 0.8370764255523682, -0.019027363508939743, 0.7260293960571289, -0.5416967868804932, 0.346327006816864, -1.2134032249450684, -0.3668076694011688, -0.9135093092918396, -0.4817187786102295, -0.29302865266799927, -0.6595355868339539, 0.3624221384525299, 0.25885921716690063, -0.4420439600944519, 0.8395862579345703, -0.5526641011238098, 0.5017771124839783, 0.6954560279846191, 0.0737207904458046, 0.4240089952945709, 0.10379581153392792, -0.23509931564331055, -0.2887706160545349, -0.8565207719802856, -0.36845192313194275, 0.7898101806640625, 0.3408781886100769, 0.5869502425193787, 0.09007689356803894, 0.6851227879524231, 0.28507646918296814, 0.15350937843322754, -0.41549643874168396, 0.7020589709281921, 0.02372410148382187, -1.2740305662155151, -0.08850674331188202, -0.6449581384658813, -0.9152129292488098, -0.08500402420759201, 0.03849116712808609, -0.8979473114013672, 0.12495292723178864, 0.11892666667699814, -0.13016784191131592, 0.5889209508895874, -0.49425622820854187, 1.1691656112670898, 0.43927597999572754, 0.26475879549980164, -0.19571077823638916, -0.4426722526550293, 0.7820740342140198, -0.214453786611557, 0.2470281422138214, -0.2672194242477417, 0.173166885972023, 1.131737232208252, -0.5490479469299316, 1.03638756275177, -0.23576697707176208, 0.1331121325492859, 0.3438911736011505, 0.16243596374988556, 0.5437654852867126, -0.042579252272844315, 0.08971049636602402, 0.4774256646633148, 0.0392795205116272, -0.5623921751976013, -0.16797319054603577, 0.5936737656593323, -0.6485978364944458, -0.24423998594284058, -0.6537749171257019, -0.4298171103000641, 0.18724770843982697, 0.18592114746570587, 0.19387170672416687, 0.34944504499435425, -0.0558631457388401, 0.3000659644603729, 0.6794991493225098, -0.4590834379196167, 0.2380961775779724, 0.6530092358589172, -0.4172714650630951, -0.31660449504852295, 0.9712979793548584, -0.13670942187309265, 0.5838800668716431, 0.4597011208534241, 0.007924634031951427, 0.19676652550697327, -0.6498992443084717, -0.46657711267471313, 0.06306638568639755, -1.0811898708343506, -0.44182029366493225, -1.0667357444763184, -0.7423112988471985, -0.3246093988418579, 0.15683923661708832, -0.3767848014831543, -0.9734944701194763, -0.14466476440429688, -0.04886665195226669, 0.42687636613845825, 0.3423997163772583, -0.4129228889942169, 0.4144045412540436, -0.7054725289344788, 0.3364921808242798, 0.26551878452301025, 0.2800488770008087, -0.12207560241222382, -0.9226256012916565, -0.6387935876846313, 0.023474309593439102, -0.4242117404937744, -0.4460044503211975, 0.20725378394126892, 0.13264134526252747, 0.826829731464386, 0.21511369943618774, 0.06664794683456421, 0.5355965495109558, -0.1655791699886322, 1.0217276811599731, 0.11504599452018738, -0.9732435345649719, 0.16042299568653107, -0.3098915219306946, 0.6708144545555115, 0.6888449192047119, 0.20552518963813782, -0.8098715543746948, -0.9070093631744385, -0.6327758431434631, -1.1963329315185547, 0.7068623900413513, 0.4512137174606323, 0.4109538197517395, -0.015541814267635345, 0.020414011552929878, -0.305215448141098, 0.18914060294628143, -1.143751859664917, -0.32314926385879517, -0.0871916189789772, -0.043328385800123215, 0.3553274869918823, -0.39747241139411926, -0.2842159867286682, -0.2911657691001892, 1.0122268199920654, 0.025104211643338203, 0.3638843595981598, 0.008969960734248161, -0.420332670211792, -0.22432062029838562, -0.06867803633213043, 0.6029128432273865, 0.658416748046875, -0.469218909740448, 0.11159095168113708, 0.25827521085739136, -0.6568488478660583, -0.30983561277389526, -0.05721917375922203, -0.45386630296707153, 0.019271576777100563, 0.532090961933136, 0.7002269625663757, 0.36674147844314575, -0.654948353767395, 0.61114501953125, -0.06050261855125427, -0.12904906272888184, -0.5846867561340332, 0.1395384520292282, -0.20240342617034912, 0.22582761943340302, 0.4296749532222748, 0.24132083356380463, 0.2193414866924286, -0.30774620175361633, 0.5854648351669312, 0.5079867243766785, -0.7829906344413757, -0.23794981837272644, 0.8526923656463623, 0.015411214902997017, -0.30295512080192566, 0.7361964583396912, -0.41859859228134155, -0.7643624544143677, 0.5118849277496338, 0.12113510817289352, 1.3601011037826538, -0.0769365131855011, 0.2807907462120056, 0.8298478126525879, 0.6183942556381226, 0.17154718935489655, -0.07532188296318054, 0.01797930896282196, -0.8252625465393066, -0.6879573464393616, -1.0466173887252808, -0.29143640398979187, 0.16099482774734497, -0.5479730367660522, 0.6737348437309265, -0.6010703444480896, -0.1060042530298233, -0.20277875661849976, -0.40841159224510193, -0.41412052512168884, 0.13237634301185608, 0.06624256074428558, 0.8225023746490479, -0.779277503490448, 0.8999858498573303, 0.29297298192977905, -0.35586950182914734, -0.8290125131607056, -0.19356057047843933, 0.14787660539150238, -1.1219236850738525, 0.4428303837776184, 0.16518646478652954, 0.14882874488830566, -0.09864088892936707, -0.384433776140213, -0.6004389524459839, 0.8393686413764954, 0.17945551872253418, -0.3279617726802826, -0.0462007038295269, 0.10051343590021133, 0.508262038230896, -0.36063385009765625, 0.19885927438735962, 0.38953614234924316, 0.42570048570632935, 0.1527578979730606, -0.7032852172851562, -0.0020421636290848255, -0.25958433747291565, -0.027410542592406273, 0.12475287169218063, -0.2624707818031311, 1.1215722560882568, 0.05378948152065277, -0.12799856066703796, 0.4692962169647217, 0.37935444712638855, 0.4108552932739258, 0.10323614627122879, 0.6397311687469482, 1.0289973020553589, 0.20498040318489075, -0.2031744122505188, 1.0732136964797974, -0.37916672229766846, 0.7631896138191223, 1.0504066944122314, 0.172631174325943, 0.4314359724521637, 0.36756211519241333, -0.36315402388572693, 0.6638619303703308, 0.580776572227478, -0.2886541485786438, 0.35423797369003296, 0.40157756209373474, -0.20697344839572906, -0.3377051055431366, -0.030034273862838745, -0.4622895419597626, 0.34660378098487854, 0.015527252107858658, -0.3508594036102295, -0.27240076661109924, -0.24814462661743164, 0.32125914096832275, -0.35512614250183105, -0.04630875959992409, 0.7694956064224243, 0.2375349998474121, -0.468436598777771, 0.7031556963920593, 0.34683355689048767, 0.4616510570049286, -0.6923732161521912, 0.051169611513614655, -0.3944437801837921, 0.3759421110153198, -0.09801843017339706, -0.4702587425708771, 0.6887649893760681, 0.07548230141401291, 0.004052888602018356, -0.5788492560386658, 0.5363306403160095, -0.35490813851356506, -0.7493171095848083, 0.19244332611560822, 0.15880708396434784, 0.388824462890625, -0.2276318520307541, -1.0846116542816162, 0.08312542736530304, 0.0686115175485611, -0.26230716705322266, 0.44638100266456604, 0.11369020491838455, 0.07727877795696259, 0.6385983228683472, 0.7834813594818115, -0.028087133541703224, 0.18724706768989563, 0.5118488073348999, 1.0309542417526245, -0.5280548930168152, -0.4676865041255951, -0.6694788336753845, 0.7972744703292847, -0.1996680498123169, -0.3273318111896515, 0.9714061617851257, 0.9231729507446289, 1.0955170392990112, -0.11199706792831421, 0.21814993023872375, -0.17462681233882904, 0.46992355585098267, -0.8449465036392212, 0.8847867250442505, -0.602632462978363, 0.5810494422912598, -0.6813880205154419, -1.2929506301879883, -0.44287344813346863, 0.8347491025924683, 0.14192762970924377, 0.37538644671440125, 0.9060870409011841, 1.155195951461792, -0.010828148573637009, -0.2036830186843872, 0.31988072395324707, 0.27902400493621826, 0.34366872906684875, 0.4615711569786072, 0.7478444576263428, -0.6652035713195801, 0.520584225654602, -0.3948279321193695, -0.20850984752178192, -0.14753849804401398, -1.000696063041687, -0.9344794750213623, -0.80654376745224, -0.7131174206733704, -0.8991853594779968, -0.38581162691116333, 0.4443257451057434, 0.7645297050476074, -0.96180260181427, -0.28924044966697693, -0.2752320468425751, 0.1489202380180359, -0.2106492519378662, -0.2785116136074066, -0.04128987714648247, -0.3903329372406006, -0.9481331706047058, 0.26142433285713196, 0.40490299463272095, 0.12059956789016724, -0.5584182143211365, -0.22959233820438385, -0.3443392813205719, -0.022443557158112526, -0.013904149644076824, 0.1668228805065155, -0.434034526348114, -0.3791682720184326, -0.018569372594356537, -0.19018568098545074, -0.02015279047191143, 1.0878593921661377, -0.5592888593673706, 0.52802973985672, 0.5533452033996582, 0.42014655470848083, 0.9237915873527527, -0.4062545895576477, 0.6259177327156067, -0.9888820052146912, 0.5225616097450256, 0.5226811766624451, 0.6067801713943481, 0.47187256813049316, 0.09770180284976959, 0.5552418828010559, 0.6188474297523499, -0.5606833696365356, -1.1234352588653564, 0.38319131731987, -1.1639456748962402, -0.26617419719696045, 1.0687613487243652, -0.2170509546995163, -0.2886902689933777, -0.1210770532488823, 0.007039810996502638, 0.15552888810634613, -0.13184839487075806, 0.9056139588356018, 0.8254591822624207, 0.5302325487136841, -0.43302351236343384, -0.698871374130249, 0.5431932806968689, 0.5338878035545349, -0.5276254415512085, -0.3339725732803345, 0.2151644378900528, 0.22734227776527405, 0.27147960662841797, 0.6162406802177429, -0.36041736602783203, 0.10660325735807419, -0.08364716172218323, 0.38430631160736084, -0.07884468138217926, -0.31750938296318054, -0.37182146310806274, -0.2931731045246124, 0.007947510108351707, -0.1466827392578125 ]
cross-encoder/nli-deberta-v3-base
cross-encoder
"2021-12-27T22:26:49Z"
22,957
12
transformers
[ "transformers", "pytorch", "deberta-v2", "text-classification", "microsoft/deberta-v3-base", "zero-shot-classification", "en", "dataset:multi_nli", "dataset:snli", "license:apache-2.0", "endpoints_compatible", "region:us" ]
zero-shot-classification
"2022-03-02T23:29:05Z"
--- language: en pipeline_tag: zero-shot-classification tags: - microsoft/deberta-v3-base datasets: - multi_nli - snli metrics: - accuracy license: apache-2.0 --- # Cross-Encoder for Natural Language Inference This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class. This model is based on [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) ## Training Data The model was trained on the [SNLI](https://nlp.stanford.edu/projects/snli/) and [MultiNLI](https://cims.nyu.edu/~sbowman/multinli/) datasets. For a given sentence pair, it will output three scores corresponding to the labels: contradiction, entailment, neutral. ## Performance - Accuracy on SNLI-test dataset: 92.38 - Accuracy on MNLI mismatched set: 90.04 For futher evaluation results, see [SBERT.net - Pretrained Cross-Encoder](https://www.sbert.net/docs/pretrained_cross-encoders.html#nli). ## Usage Pre-trained models can be used like this: ```python from sentence_transformers import CrossEncoder model = CrossEncoder('cross-encoder/nli-deberta-v3-base') scores = model.predict([('A man is eating pizza', 'A man eats something'), ('A black race car starts up in front of a crowd of people.', 'A man is driving down a lonely road.')]) #Convert scores to labels label_mapping = ['contradiction', 'entailment', 'neutral'] labels = [label_mapping[score_max] for score_max in scores.argmax(axis=1)] ``` ## Usage with Transformers AutoModel You can use the model also directly with Transformers library (without SentenceTransformers library): ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification import torch model = AutoModelForSequenceClassification.from_pretrained('cross-encoder/nli-deberta-v3-base') tokenizer = AutoTokenizer.from_pretrained('cross-encoder/nli-deberta-v3-base') features = tokenizer(['A man is eating pizza', 'A black race car starts up in front of a crowd of people.'], ['A man eats something', 'A man is driving down a lonely road.'], padding=True, truncation=True, return_tensors="pt") model.eval() with torch.no_grad(): scores = model(**features).logits label_mapping = ['contradiction', 'entailment', 'neutral'] labels = [label_mapping[score_max] for score_max in scores.argmax(dim=1)] print(labels) ``` ## Zero-Shot Classification This model can also be used for zero-shot-classification: ```python from transformers import pipeline classifier = pipeline("zero-shot-classification", model='cross-encoder/nli-deberta-v3-base') sent = "Apple just announced the newest iPhone X" candidate_labels = ["technology", "sports", "politics"] res = classifier(sent, candidate_labels) print(res) ```
[ -0.20190322399139404, -0.7696768641471863, 0.3188847303390503, 0.2886742055416107, -0.01583312824368477, -0.08448067307472229, -0.03908514976501465, -0.33465376496315, 0.1751794070005417, 0.4229516088962555, -0.5067077875137329, -0.5024941563606262, -0.592585563659668, 0.1691301465034485, -0.5155453085899353, 1.0341262817382812, -0.11159888654947281, 0.04698561877012253, -0.09041894227266312, -0.1294398009777069, -0.31206101179122925, -0.4659000337123871, -0.38003095984458923, -0.5552986860275269, 0.4081696569919586, 0.2047976553440094, 0.6070120930671692, 0.34135347604751587, 0.16394898295402527, 0.34367847442626953, 0.018955325707793236, -0.17118798196315765, -0.17005205154418945, -0.09431203454732895, 0.0020005437545478344, -0.5711415410041809, -0.12167538702487946, 0.23054435849189758, 0.2993830442428589, 0.38494840264320374, 0.032387688755989075, 0.25062769651412964, -0.10378661006689072, 0.24928902089595795, -0.6698485612869263, 0.06406804919242859, -0.5714609622955322, 0.21022655069828033, 0.0920027568936348, -0.06444908678531647, -0.4305967092514038, -0.3538739085197449, 0.07279487699270248, -0.43686461448669434, 0.24899733066558838, -0.05622174218297005, 1.2764356136322021, 0.4134942591190338, -0.30588197708129883, -0.3927040994167328, -0.5708171129226685, 0.8876251578330994, -0.9979467391967773, 0.26056888699531555, 0.24018019437789917, 0.03608781844377518, 0.08598390966653824, -0.6974099278450012, -0.9513036608695984, -0.15994365513324738, -0.2140759825706482, 0.3774697780609131, -0.43062201142311096, -0.129668191075325, 0.41434094309806824, 0.32953065633773804, -0.8029460310935974, 0.0739983543753624, -0.4501642882823944, -0.0693359449505806, 0.7068013548851013, 0.11403360962867737, 0.24554528295993805, -0.3917742967605591, -0.3683735728263855, -0.14566636085510254, -0.25931206345558167, 0.10576806962490082, 0.2742883265018463, 0.011355293914675713, -0.21993544697761536, 0.8074723482131958, -0.33099690079689026, 0.825884222984314, 0.2290153205394745, -0.023085299879312515, 0.7658815979957581, -0.2719833254814148, -0.4888668954372406, 0.3514753580093384, 1.0251307487487793, 0.4178556501865387, 0.3420737385749817, -0.10774208605289459, -0.050050318241119385, 0.42057591676712036, -0.11451952904462814, -0.7619603872299194, -0.24715934693813324, 0.3497695326805115, -0.3088829219341278, -0.3703410029411316, 0.013048564083874226, -0.7853443026542664, -0.014083359390497208, -0.18636395037174225, 0.7950516939163208, -0.5572576522827148, 0.15092061460018158, 0.3478129506111145, -0.2536720037460327, 0.3935661315917969, -0.16984650492668152, -0.8298007249832153, 0.0033937811385840178, 0.31465038657188416, 0.7899002432823181, 0.20242978632450104, -0.497482568025589, -0.4178439676761627, -0.003321537282317877, 0.045694246888160706, 0.39552369713783264, -0.41978874802589417, 0.010597451590001583, -0.14645975828170776, 0.07898013293743134, -0.3612945079803467, -0.3381660282611847, 0.6288231015205383, -0.3126157820224762, 0.5423701405525208, 0.2632313668727875, -0.7746016979217529, -0.37261125445365906, 0.2955954372882843, -0.4524138271808624, 1.1233232021331787, 0.0852498859167099, -0.883844792842865, 0.16462013125419617, -0.5774672031402588, -0.4013681709766388, -0.30500730872154236, -0.047840751707553864, -0.5340710282325745, 0.05511121451854706, 0.43642938137054443, 0.4497978389263153, -0.1889028549194336, 0.47663208842277527, -0.26644644141197205, -0.40094059705734253, 0.3275906443595886, -0.6017846465110779, 1.185110092163086, 0.14463011920452118, -0.6096665859222412, 0.12338214367628098, -0.813835859298706, 0.0844045951962471, 0.14463546872138977, -0.23352013528347015, -0.10187995433807373, -0.2907925844192505, 0.13715319335460663, 0.34790751338005066, 0.04447702690958977, -0.7705748081207275, 0.04019957408308983, -0.4909049868583679, 0.6241382956504822, 0.36915749311447144, -0.0819987952709198, 0.28744086623191833, -0.19895446300506592, 0.26867592334747314, 0.0899912640452385, 0.10090101510286331, -0.03991281986236572, -0.6307007074356079, -0.990156888961792, -0.029943153262138367, 0.4937346577644348, 0.9322187900543213, -0.8186528086662292, 0.9370369911193848, -0.23070526123046875, -0.6979549527168274, -0.6971765756607056, -0.22314374148845673, 0.18106889724731445, 0.535849928855896, 0.6480192542076111, -0.0056897541508078575, -0.7183076739311218, -0.7646536827087402, -0.3047378957271576, -0.03822512924671173, -0.12146952003240585, -0.05709868669509888, 0.8223893046379089, -0.44015923142433167, 1.081289291381836, -0.5292653441429138, -0.24094852805137634, -0.47985464334487915, 0.3336186110973358, 0.4843878746032715, 0.7075977921485901, 0.4850929081439972, -0.5924947261810303, -0.3862602412700653, -0.33267682790756226, -0.851344108581543, -0.12977029383182526, -0.3149566948413849, -0.00714337732642889, 0.14990369975566864, 0.29699450731277466, -0.5751974582672119, 0.641150951385498, 0.49929478764533997, -0.4531214237213135, 0.39456963539123535, -0.13235333561897278, 0.016922511160373688, -1.0931031703948975, -0.09464403986930847, 0.1591341644525528, -0.08492157608270645, -0.74866783618927, -0.2409072071313858, -0.14447912573814392, -0.0006948390509933233, -0.4389342665672302, 0.5050632953643799, -0.2306470274925232, 0.1414015293121338, -0.042241208255290985, 0.22900041937828064, 0.22582659125328064, 0.60539311170578, 0.24159620702266693, 0.4363584816455841, 0.7786548733711243, -0.5132771730422974, 0.4766707420349121, 0.3622993230819702, -0.41367271542549133, 0.27837997674942017, -0.862348198890686, -0.07533325254917145, -0.1742859184741974, 0.23655454814434052, -0.8721612095832825, -0.08430931717157364, 0.45311039686203003, -0.6151416301727295, 0.004145425278693438, 0.2067752331495285, -0.421548068523407, -0.4624788463115692, -0.08832062035799026, 0.34246018528938293, 0.5181423425674438, -0.5031295418739319, 0.7110442519187927, 0.1427583396434784, 0.3413724899291992, -0.6051294803619385, -1.1515533924102783, -0.0034272114280611277, -0.1762193739414215, -0.4676133096218109, 0.3234100043773651, 0.04316528141498566, 0.005167023744434118, 0.10683910548686981, 0.04984584078192711, -0.22840791940689087, -0.008150210604071617, 0.21629385650157928, 0.27795925736427307, -0.18784484267234802, -0.002978779375553131, -0.06803523004055023, -0.13330981135368347, 0.13333044946193695, -0.26515844464302063, 0.5661182999610901, -0.2501673996448517, -0.26122286915779114, -0.6347665190696716, 0.2517666816711426, 0.3369932472705841, -0.21997866034507751, 0.7150889039039612, 0.9664627909660339, -0.3917216360569, 0.06457952409982681, -0.4822269380092621, -0.19020311534404755, -0.39998698234558105, 0.4295080602169037, -0.33837011456489563, -0.647628903388977, 0.3642793595790863, 0.34537309408187866, -0.16262280941009521, 0.641211986541748, 0.4433302581310272, 0.058056510984897614, 0.9250214695930481, 0.3681184649467468, -0.2895105183124542, 0.31318503618240356, -0.6103613376617432, 0.27529942989349365, -0.6925806403160095, -0.24871399998664856, -0.5131821036338806, -0.32741308212280273, -0.6040655374526978, -0.3367166817188263, 0.06403568387031555, 0.1859227865934372, -0.3045763075351715, 0.564842164516449, -0.5431327223777771, 0.41916346549987793, 0.745805561542511, 0.09074552357196808, 0.13446097075939178, 0.023869594559073448, -0.05149046331644058, 0.02230808697640896, -0.828363835811615, -0.5005483031272888, 0.8337383270263672, 0.3382246196269989, 0.7939150333404541, -0.16266916692256927, 0.8627287745475769, -0.043055374175310135, 0.21240517497062683, -0.6790706515312195, 0.44785547256469727, -0.2630733251571655, -0.7267823219299316, -0.20272141695022583, -0.47854939103126526, -0.8890572190284729, 0.22695842385292053, -0.34280315041542053, -0.8168070316314697, 0.34313464164733887, -0.15166395902633667, -0.4923184812068939, 0.34021055698394775, -0.7107970714569092, 1.2291572093963623, -0.38953498005867004, -0.21971501410007477, 0.12279793620109558, -0.7278905510902405, 0.2889000177383423, 0.09386275708675385, -0.012278671376407146, -0.22297945618629456, 0.2966850697994232, 0.8055033683776855, -0.13175104558467865, 0.9655207395553589, -0.1346314698457718, 0.09150036424398422, 0.4350014626979828, -0.24767227470874786, 0.14109249413013458, 0.10821737349033356, -0.32435163855552673, 0.4270315170288086, -0.05122377350926399, -0.3021252453327179, -0.6186236143112183, 0.5324613451957703, -0.9146913886070251, -0.3180701434612274, -0.5856538414955139, -0.40137845277786255, 0.18677911162376404, 0.17920756340026855, 0.6891228556632996, 0.5179685354232788, -0.05169982090592384, 0.08449243009090424, 0.3549526035785675, -0.3401128649711609, 0.6583568453788757, 0.2027669996023178, -0.12153248488903046, -0.4628000259399414, 0.7890289425849915, 0.015581496059894562, 0.11228062957525253, 0.4720265567302704, 0.20448604226112366, -0.5046355724334717, -0.22765091061592102, -0.4332309365272522, 0.21826796233654022, -0.6207063794136047, -0.21710392832756042, -0.7605682611465454, -0.5473881959915161, -0.5782803893089294, -0.0688418447971344, -0.2025185525417328, -0.3852580487728119, -0.5487232804298401, -0.11909428238868713, 0.35492774844169617, 0.49043363332748413, -0.04951203987002373, 0.3261127173900604, -0.7819088101387024, 0.406387060880661, 0.1655004322528839, 0.09406394511461258, -0.13897325098514557, -0.7182418704032898, -0.12404124438762665, 0.08576146513223648, -0.4287921190261841, -0.9953427314758301, 0.6400352120399475, 0.24923886358737946, 0.6174834966659546, 0.11421822011470795, 0.18900315463542938, 0.6536499857902527, -0.32124748826026917, 0.7330209016799927, 0.2989315986633301, -1.2433454990386963, 0.6184631586074829, 0.1628781259059906, 0.43785861134529114, 0.5033559203147888, 0.5081606507301331, -0.6652047634124756, -0.464769184589386, -0.5605995059013367, -0.8815135359764099, 0.6914910078048706, 0.48233893513679504, 0.11704476922750473, -0.14629170298576355, 0.1775730699300766, 0.03805449232459068, 0.1569410264492035, -1.3002252578735352, -0.4557827413082123, -0.6290984749794006, -0.5713483691215515, -0.2790183126926422, 0.0014720387989655137, 0.10733727365732193, -0.5779190063476562, 0.8877925276756287, -0.007153739687055349, 0.3162359297275543, 0.6340681314468384, -0.27140018343925476, 0.3321380317211151, 0.3389202952384949, 0.5814548134803772, 0.2992073595523834, -0.2629668116569519, 0.06656021624803543, 0.3703056573867798, -0.2751641869544983, 0.2804853618144989, 0.3073008954524994, -0.3818185031414032, 0.2512021064758301, 0.48993876576423645, 1.3005650043487549, -0.05285769701004028, -0.47105664014816284, 0.5257071256637573, 0.03284245729446411, -0.24260792136192322, -0.46112510561943054, 0.039488568902015686, -0.06627494841814041, 0.3464697301387787, 0.2602636516094208, 0.18268419802188873, 0.09798035025596619, -0.5584217309951782, 0.30624157190322876, 0.1192534863948822, -0.5766639709472656, -0.20647303760051727, 0.7925774455070496, 0.07448627799749374, -0.37143540382385254, 0.6654861569404602, -0.2743610143661499, -0.6791678667068481, 0.6615100502967834, 0.5980842709541321, 1.0363632440567017, -0.0007401983602903783, 0.3399975895881653, 0.6680172681808472, 0.38666027784347534, -0.07136152684688568, 0.1669989824295044, 0.09090094268321991, -0.95144122838974, -0.35882067680358887, -0.6739416718482971, -0.050189658999443054, 0.15531519055366516, -0.6387391090393066, 0.17671045660972595, -0.13168756663799286, -0.057705532759428024, 0.07502109557390213, -0.24260090291500092, -0.6407966613769531, 0.2875067889690399, 0.26399070024490356, 0.8676042556762695, -1.0510882139205933, 0.9250713586807251, 0.484646201133728, -0.6841273307800293, -0.7957603335380554, 0.14246998727321625, -0.2631794810295105, -0.6464837193489075, 0.7936395406723022, 0.5431132912635803, 0.04370700940489769, 0.11211992055177689, -0.35010427236557007, -0.6945785880088806, 1.0001474618911743, 0.167516827583313, -0.5679065585136414, -0.11131209135055542, 0.3309594988822937, 0.6170534491539001, -0.42420846223831177, 0.7091614007949829, 0.7017813324928284, 0.4535692632198334, -0.05389001592993736, -0.6877912878990173, 0.10155650973320007, -0.13285696506500244, -0.055081095546483994, -0.13959725201129913, -0.38669517636299133, 0.9091300964355469, -0.22598101198673248, 0.04079962894320488, 0.13776510953903198, 0.6909534335136414, 0.26836028695106506, 0.45405736565589905, 0.5102417469024658, 0.8081425428390503, 0.6003209352493286, -0.23825183510780334, 0.8465175628662109, -0.22416000068187714, 0.7091413140296936, 1.0866219997406006, -0.2445186823606491, 0.8703669309616089, 0.44339480996131897, -0.07132979482412338, 0.7328550219535828, 0.6034061908721924, -0.42394769191741943, 0.4956651031970978, 0.30234870314598083, -0.052320826798677444, -0.22887074947357178, 0.18090632557868958, -0.34291309118270874, 0.8405399322509766, 0.0647345781326294, -0.5071535706520081, -0.21993772685527802, 0.19119130074977875, -0.16194303333759308, -0.028093665838241577, -0.09879809617996216, 0.5160710215568542, -0.11832164973020554, -0.6720401048660278, 0.8192595839500427, 0.012560526840388775, 0.9391388297080994, -0.3694998621940613, 0.04561961442232132, -0.006315230391919613, 0.3382159471511841, -0.2510715425014496, -0.8683760166168213, 0.33152392506599426, -0.023197803646326065, -0.12004868686199188, -0.0005599202704615891, 0.43390795588493347, -0.7216743230819702, -0.7992227077484131, 0.49971240758895874, 0.29546958208084106, 0.21730652451515198, 0.006103972904384136, -0.9750310182571411, -0.0213345717638731, 0.19810344278812408, -0.2310398370027542, -0.10855384171009064, 0.3759591281414032, 0.3038739562034607, 0.4759465456008911, 0.4127463400363922, -0.19961147010326385, 0.2825886607170105, 0.20773953199386597, 0.6131916642189026, -0.8142080307006836, -0.2845951318740845, -1.010376214981079, 0.5965654253959656, -0.1615796536207199, -0.5193946361541748, 0.8614740371704102, 0.7720708250999451, 0.9287556409835815, -0.30741363763809204, 0.6929292678833008, -0.2636721134185791, 0.25943171977996826, -0.6386246681213379, 0.6166909337043762, -0.5827528834342957, 0.03300740197300911, -0.16953639686107635, -0.7515841126441956, -0.4503682255744934, 0.8627092838287354, -0.34890973567962646, 0.09796351939439774, 0.6288964152336121, 0.9216139316558838, -0.03378797322511673, 0.06884098052978516, 0.12584270536899567, 0.29157185554504395, 0.11889301240444183, 0.758141815662384, 0.769586980342865, -0.9737860560417175, 0.6956402659416199, -0.5140953660011292, -0.05024377256631851, -0.063902348279953, -0.6995595693588257, -0.9416787028312683, -0.43772804737091064, -0.5587303638458252, -0.39498525857925415, -0.0965391993522644, 0.7912320494651794, 0.6771726012229919, -1.0346695184707642, -0.176934152841568, -0.26471954584121704, 0.1658468097448349, -0.2885624170303345, -0.3393024206161499, 0.23505818843841553, -0.2532123923301697, -0.906043529510498, 0.31473907828330994, -0.06307133287191391, 0.11159142106771469, -0.12056700885295868, -0.06395784765481949, -0.603775680065155, 0.021925868466496468, 0.47366392612457275, 0.15733370184898376, -0.8906142711639404, -0.3141419291496277, 0.016926955431699753, -0.22268451750278473, 0.18669216334819794, 0.39727622270584106, -0.8801119327545166, 0.1722748875617981, 0.5338466763496399, 0.5621217489242554, 0.6656999588012695, -0.17462396621704102, 0.3390205502510071, -0.6571214199066162, 0.15256841480731964, 0.16779755055904388, 0.4408303201198578, 0.3245653212070465, -0.20967695116996765, 0.5441115498542786, 0.3832160532474518, -0.5712481737136841, -0.6164425015449524, 0.07914233952760696, -0.9426038861274719, -0.3085024952888489, 1.0317976474761963, -0.12390735000371933, -0.4271400570869446, -0.08603918552398682, -0.18255212903022766, 0.5726838707923889, -0.26403480768203735, 0.5955426096916199, 0.419570654630661, -0.19830484688282013, -0.1594896912574768, -0.4756680428981781, 0.2919037938117981, 0.547728955745697, -0.7658573985099792, -0.20560519397258759, 0.1805887073278427, 0.4078761041164398, 0.42239391803741455, 0.40306589007377625, 0.12265744805335999, -0.02609502524137497, 0.16374216973781586, 0.2840343713760376, 0.0684216171503067, -0.13505831360816956, -0.4749268591403961, 0.11060044914484024, -0.5598921775817871, -0.5986881852149963 ]
facebook/dino-vits16
facebook
"2023-05-22T07:05:10Z"
22,950
10
transformers
[ "transformers", "pytorch", "vit", "feature-extraction", "dino", "vision", "dataset:imagenet-1k", "arxiv:2104.14294", "license:apache-2.0", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - dino - vision datasets: - imagenet-1k --- # Vision Transformer (small-sized model, patch size 16) trained using DINO Vision Transformer (ViT) model trained using the DINO method. It was introduced in the paper [Emerging Properties in Self-Supervised Vision Transformers](https://arxiv.org/abs/2104.14294) by Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin and first released in [this repository](https://github.com/facebookresearch/dino). Disclaimer: The team releasing DINO did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a self-supervised fashion, namely ImageNet-1k, at a resolution of 224x224 pixels. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder. Note that this model does not include any fine-tuned heads. By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=google/vit) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model: ```python from transformers import ViTImageProcessor, ViTModel from PIL import Image import requests url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw) processor = ViTImageProcessor.from_pretrained('facebook/dino-vits16') model = ViTModel.from_pretrained('facebook/dino-vits16') inputs = processor(images=image, return_tensors="pt") outputs = model(**inputs) last_hidden_states = outputs.last_hidden_state ``` ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2104-14294, author = {Mathilde Caron and Hugo Touvron and Ishan Misra and Herv{\'{e}} J{\'{e}}gou and Julien Mairal and Piotr Bojanowski and Armand Joulin}, title = {Emerging Properties in Self-Supervised Vision Transformers}, journal = {CoRR}, volume = {abs/2104.14294}, year = {2021}, url = {https://arxiv.org/abs/2104.14294}, archivePrefix = {arXiv}, eprint = {2104.14294}, timestamp = {Tue, 04 May 2021 15:12:43 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2104-14294.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.5127227306365967, -0.2612433135509491, 0.11774186789989471, -0.10245224833488464, -0.40505456924438477, -0.009972984902560711, 0.07353215664625168, -0.515021800994873, 0.33921805024147034, 0.4591467082500458, -0.44872546195983887, -0.223015695810318, -0.5753464698791504, -0.11748325079679489, -0.4735812544822693, 0.9409076571464539, -0.03462250158190727, -0.11895344406366348, -0.20568795502185822, -0.04676518589258194, -0.17934642732143402, -0.6405114531517029, -0.5482434630393982, -0.4099889397621155, 0.43698474764823914, -0.029237691313028336, 0.6797369718551636, 0.8602377772331238, 0.5059738159179688, 0.4598308205604553, -0.13029955327510834, -0.02827282063663006, -0.4251449406147003, -0.2850565016269684, -0.21808230876922607, -0.4214586615562439, -0.2900916635990143, 0.1857626885175705, 0.6136183738708496, 0.39201095700263977, 0.22183433175086975, 0.27230527997016907, 0.047769397497177124, 0.18675817549228668, -0.5575277805328369, 0.34316539764404297, -0.46873095631599426, 0.4250825345516205, -0.07627284526824951, -0.09044679254293442, -0.35648903250694275, -0.3070746064186096, 0.21304818987846375, -0.4883975386619568, 0.3666662573814392, -0.006732659414410591, 1.3782410621643066, 0.19485051929950714, -0.4340212643146515, 0.10800255089998245, -0.6974597573280334, 0.6661789417266846, -0.31316500902175903, 0.4510396718978882, 0.08182153850793839, 0.47082868218421936, 0.182035431265831, -1.1420811414718628, -0.6287298798561096, 0.03822958841919899, -0.15452024340629578, 0.02142219804227352, -0.24961766600608826, 0.10327532887458801, 0.3417879045009613, 0.5419950485229492, -0.15915293991565704, 0.061823442578315735, -0.6133334040641785, -0.48947644233703613, 0.45325371623039246, -0.05418337136507034, 0.11140010505914688, -0.2522472143173218, -0.7152062654495239, -0.3947911858558655, -0.34071362018585205, 0.26413506269454956, 0.2187252789735794, 0.15034154057502747, -0.13685844838619232, 0.5695813298225403, 0.0535416416823864, 0.5850846767425537, 0.4535594582557678, -0.010395054705440998, 0.5622340440750122, -0.33129408955574036, -0.27342239022254944, -0.04192366451025009, 0.8478038311004639, 0.3217781186103821, 0.2607642710208893, 0.00790070928633213, -0.33462685346603394, 0.07923229038715363, 0.4544878304004669, -0.8923425078392029, -0.1586235910654068, -0.19718635082244873, -0.594441294670105, -0.44689008593559265, 0.16381801664829254, -0.5603876113891602, -0.14759588241577148, -0.35193902254104614, 0.8089652061462402, -0.2718144953250885, -0.2944267988204956, -0.30202898383140564, 0.026530670002102852, 0.676275372505188, 0.2144378274679184, -0.8477240800857544, 0.37039482593536377, 0.3455544114112854, 0.9175735712051392, -0.020992157980799675, -0.22481948137283325, -0.048905983567237854, -0.1966620534658432, -0.4585433304309845, 0.7253130078315735, -0.2608265280723572, -0.2587304711341858, 0.12097882479429245, 0.45141685009002686, -0.08364185690879822, -0.4154311418533325, 0.46989861130714417, -0.4996735751628876, 0.16124728322029114, -0.21272386610507965, -0.29675617814064026, -0.27839601039886475, 0.19296535849571228, -0.6544089317321777, 1.1122320890426636, 0.31195545196533203, -0.7497543096542358, 0.5004703402519226, -0.5726293921470642, -0.08942102640867233, 0.0985105037689209, -0.07919479161500931, -0.6064758896827698, -0.010449645109474659, 0.31163957715034485, 0.5513748526573181, 0.15455865859985352, -0.08390700072050095, -0.2788470387458801, -0.45015954971313477, 0.32748648524284363, -0.23819591104984283, 0.8001198172569275, 0.2500026822090149, -0.169711172580719, 0.17897164821624756, -0.655794620513916, -0.0738166943192482, 0.19587285816669464, -0.2915950417518616, -0.1181759238243103, -0.31484749913215637, 0.135600745677948, 0.33990827202796936, 0.4696219861507416, -0.7946018576622009, 0.2399023175239563, -0.2581638693809509, 0.5459426641464233, 0.8719521164894104, -0.07686896622180939, 0.5378080606460571, -0.1696707159280777, 0.36565232276916504, 0.21583454310894012, 0.5731930732727051, -0.38253307342529297, -0.5214531421661377, -0.8455811142921448, -0.21416130661964417, 0.4111713171005249, 0.3411678969860077, -0.7257685661315918, 0.5075781345367432, -0.3502162992954254, -0.46077415347099304, -0.5878404974937439, 0.020764213055372238, 0.33229416608810425, 0.5338119268417358, 0.3595984876155853, -0.49111390113830566, -0.5824229717254639, -0.9533312320709229, 0.16184188425540924, 0.07528051733970642, 0.12290827929973602, 0.2595592737197876, 0.7598068118095398, -0.38535016775131226, 1.0501400232315063, -0.2442665845155716, -0.25201794505119324, 0.007299129851162434, 0.03047531098127365, 0.3988475799560547, 0.6616577506065369, 0.6673904061317444, -0.8646194934844971, -0.31015104055404663, -0.013745349831879139, -0.8196132183074951, 0.24214531481266022, 0.01132599264383316, -0.23300157487392426, 0.05422480031847954, 0.2791904807090759, -0.6801535487174988, 0.763936460018158, 0.29336845874786377, -0.2618754208087921, 0.31826692819595337, -0.18108350038528442, -0.006547808647155762, -1.106022834777832, -0.01789987087249756, 0.036503683775663376, -0.4413886070251465, -0.5284938812255859, 0.2393893450498581, 0.196590855717659, -0.1767052412033081, -0.5703157186508179, 0.3484424352645874, -0.46454137563705444, -0.36191850900650024, -0.22213314473628998, -0.3386233150959015, -0.04148188233375549, 0.5971816778182983, 0.07173056900501251, 0.48799893260002136, 0.6933879256248474, -0.5659877061843872, 0.6452726125717163, 0.37671443819999695, -0.41105708479881287, 0.4549586772918701, -0.6690224409103394, 0.323695570230484, -0.12290678173303604, 0.18611040711402893, -0.808285117149353, -0.2805232107639313, 0.265788733959198, -0.42243364453315735, 0.5953870415687561, -0.3393332362174988, -0.46974220871925354, -0.8409105539321899, -0.2471444308757782, 0.4874969720840454, 0.6512572169303894, -0.8448641300201416, 0.6910150051116943, 0.22874340415000916, 0.33346301317214966, -0.7870224714279175, -0.9352745413780212, -0.06800679117441177, -0.09181587398052216, -0.473371297121048, 0.5498151183128357, 0.08926166594028473, 0.28822827339172363, 0.3670000731945038, 0.005512870382517576, -0.22350528836250305, -0.2557600736618042, 0.48829910159111023, 0.2803492546081543, -0.273904949426651, 0.0371767096221447, -0.11065191775560379, -0.1847783327102661, 0.06531946361064911, -0.4702693819999695, 0.586767852306366, -0.4776279628276825, -0.3311079740524292, -0.6178742051124573, 0.00686330022290349, 0.6056762337684631, -0.25514087080955505, 0.6151776909828186, 0.7888028621673584, -0.6786785125732422, -0.014540649019181728, -0.3498729467391968, -0.14545020461082458, -0.5467489361763, 0.1890280693769455, -0.46833494305610657, -0.5720276236534119, 0.8981181979179382, 0.039487965404987335, -0.2517051696777344, 0.6074626445770264, 0.5278432369232178, -0.2346147745847702, 0.7864534258842468, 0.738243579864502, 0.03875019773840904, 0.7590984106063843, -0.8474759459495544, 0.15897288918495178, -0.8204787969589233, -0.5932652354240417, -0.08096104115247726, -0.44585707783699036, -0.476152628660202, -0.4182352125644684, 0.20141085982322693, 0.18797393143177032, -0.33785152435302734, 0.6295167207717896, -0.7027778625488281, 0.3939993381500244, 0.8442224860191345, 0.5943150520324707, -0.13894282281398773, 0.04670119658112526, -0.317955881357193, 0.036739010363817215, -0.5734539031982422, -0.1186496689915657, 1.0042445659637451, 0.5262971520423889, 0.8145613074302673, -0.25024792551994324, 0.6810907125473022, 0.1714254468679428, 0.08628907054662704, -0.8586735129356384, 0.5376889109611511, -0.03925788030028343, -0.6926162242889404, -0.10027839243412018, -0.14632344245910645, -0.9535831809043884, -0.009131968952715397, -0.37045586109161377, -0.6744607090950012, 0.6480122208595276, 0.23124638199806213, -0.36044204235076904, 0.45258134603500366, -0.5102568864822388, 0.9075747132301331, -0.2857288718223572, -0.30191975831985474, 0.054965946823358536, -0.5734513401985168, 0.1201922819018364, -0.11813027411699295, -0.14579547941684723, 0.2981674373149872, 0.34816959500312805, 0.7176102995872498, -0.6975806355476379, 1.0572021007537842, -0.41007789969444275, 0.2771141231060028, 0.5740749835968018, -0.23955275118350983, 0.24728335440158844, -0.2214454561471939, 0.364713579416275, 0.3910716474056244, 0.029741914942860603, -0.4472425580024719, -0.5019297003746033, 0.4556010663509369, -0.9906286001205444, -0.39245840907096863, -0.489834189414978, -0.2942917048931122, 0.2565757632255554, 0.37138861417770386, 0.7240586280822754, 0.6471565365791321, 0.15564115345478058, 0.4106190502643585, 0.6237597465515137, -0.2909263074398041, 0.5838622450828552, -0.06388361006975174, -0.363664835691452, -0.23444530367851257, 0.8146332502365112, 0.37033557891845703, 0.07777765393257141, 0.3499385416507721, 0.24621935188770294, -0.47356635332107544, -0.40922486782073975, -0.30361682176589966, 0.1099129393696785, -0.9260164499282837, -0.42071855068206787, -0.45644351840019226, -0.7754997611045837, -0.49774032831192017, -0.20680102705955505, -0.5248414278030396, -0.31272104382514954, -0.482397198677063, -0.3058147728443146, 0.3946269452571869, 0.7517228126525879, -0.31799155473709106, 0.5917854905128479, -0.5138610005378723, 0.19474872946739197, 0.7208393812179565, 0.3713228404521942, -0.061136744916439056, -0.7501418590545654, -0.3545537292957306, 0.04034426063299179, -0.22914281487464905, -0.6291581988334656, 0.4538002908229828, 0.32258811593055725, 0.8297492861747742, 0.7451010942459106, -0.2169177383184433, 0.7479809522628784, -0.33688753843307495, 0.7032738327980042, 0.35432514548301697, -0.8532167077064514, 0.5983009338378906, -0.18907541036605835, 0.12486625462770462, 0.18516944348812103, 0.43711429834365845, -0.12570248544216156, 0.14555269479751587, -0.6188467741012573, -0.6124135851860046, 0.6123611330986023, 0.08342908322811127, 0.3812582194805145, 0.16146016120910645, 0.5614847540855408, -0.017644118517637253, 0.03690135478973389, -0.9938055872917175, -0.13281099498271942, -0.8788638710975647, -0.17534290254116058, 0.18990953266620636, -0.2572239935398102, -0.029426079243421555, -0.6331415772438049, 0.24266785383224487, -0.1534743756055832, 0.8814499378204346, 0.24481618404388428, -0.2475811243057251, -0.08990398794412613, -0.33471137285232544, 0.20656923949718475, 0.4662497937679291, -0.4006512761116028, 0.14034363627433777, 0.07070339471101761, -0.5692932605743408, -0.07759332656860352, 0.019438710063695908, -0.14483854174613953, -0.12134041637182236, 0.43900471925735474, 0.9826078414916992, 0.21967430412769318, 0.010870052501559258, 0.8798164129257202, 0.14043773710727692, -0.31147250533103943, -0.5424424409866333, 0.06025976315140724, -0.2331646978855133, 0.43941399455070496, 0.4691856801509857, 0.38365277647972107, 0.024125954136252403, -0.5890741348266602, 0.3333348333835602, 0.2436705082654953, -0.5826351642608643, -0.5767759084701538, 0.7711625099182129, -0.07573822140693665, -0.12320670485496521, 0.6863355040550232, -0.1185443326830864, -0.7293276786804199, 0.7316250801086426, 0.6238865256309509, 0.7623298764228821, -0.30741122364997864, 0.20253171026706696, 0.47349223494529724, 0.2909107804298401, -0.002935119206085801, 0.23683340847492218, -0.1636817306280136, -1.1104358434677124, -0.37603864073753357, -0.692656934261322, -0.13098886609077454, 0.12215671688318253, -0.7877756357192993, 0.263743132352829, -0.6282383799552917, -0.3794011175632477, 0.1875583380460739, -0.14167414605617523, -1.1203562021255493, 0.35948190093040466, 0.4784175157546997, 0.7804818749427795, -0.8088586926460266, 1.006413459777832, 0.7020758390426636, -0.591015100479126, -0.7200444340705872, -0.46003323793411255, -0.22482888400554657, -1.0202288627624512, 0.8323354125022888, 0.32753074169158936, 0.026877693831920624, 0.05749133974313736, -0.921965479850769, -0.9851929545402527, 1.141588568687439, 0.29483285546302795, -0.28798800706863403, -0.09623537212610245, 0.0420178659260273, 0.529609203338623, -0.526734471321106, 0.3087061643600464, -0.01185167022049427, 0.19724524021148682, 0.35576918721199036, -0.7404716610908508, -0.061566371470689774, -0.4120691120624542, 0.23961122334003448, -0.10114208608865738, -0.7288457751274109, 1.052544355392456, -0.1918235719203949, -0.18789027631282806, 0.050504207611083984, 0.6533266305923462, -0.1890871226787567, 0.08774817734956741, 0.6302857398986816, 0.6836643218994141, 0.5513162016868591, -0.2811448276042938, 1.0049498081207275, -0.1377967745065689, 0.6131663918495178, 0.6263232231140137, 0.16789977252483368, 0.665928840637207, 0.2763454020023346, -0.1973744034767151, 0.6685168743133545, 0.9231129884719849, -0.5289543271064758, 0.8046168088912964, -0.0034205717965960503, 0.09398006647825241, -0.22657878696918488, 0.01940264366567135, -0.3812917470932007, 0.6337093710899353, 0.4615742862224579, -0.6407613754272461, 0.032885123044252396, 0.3427805006504059, -0.31575024127960205, -0.2591647505760193, -0.5862262845039368, 0.48657944798469543, 0.078910693526268, -0.2732870876789093, 0.5908504724502563, -0.29795458912849426, 0.5890714526176453, -0.37566718459129333, -0.041386622935533524, -0.1841457486152649, 0.3061922788619995, -0.350252240896225, -0.8520058393478394, 0.17512191832065582, -0.19999933242797852, -0.09840086102485657, -0.21533247828483582, 0.9099147915840149, -0.14922647178173065, -0.6153557300567627, 0.353019118309021, 0.08767494559288025, 0.2715747654438019, 0.06615157425403595, -0.7033579349517822, -0.23651854693889618, -0.22663386166095734, -0.37635836005210876, 0.14690853655338287, 0.3621557652950287, -0.07706230878829956, 0.6464478969573975, 0.666231632232666, -0.11338132619857788, 0.5455244779586792, -0.008464743383228779, 1.1559512615203857, -0.653931200504303, -0.5068153738975525, -0.542608916759491, 0.5120030045509338, -0.21811945736408234, -0.291970431804657, 0.5246886014938354, 0.4368862807750702, 1.0201746225357056, -0.22960251569747925, 0.4614603519439697, -0.09960302710533142, 0.2046939879655838, -0.36344143748283386, 0.599500298500061, -0.44080469012260437, -0.2175702154636383, -0.15963932871818542, -1.060646653175354, -0.21902458369731903, 0.9120827317237854, -0.048503655940294266, 0.15597324073314667, 0.4745696485042572, 0.680491030216217, -0.3010408282279968, -0.22403639554977417, 0.34604689478874207, 0.3813013732433319, 0.011616907082498074, 0.34507250785827637, 0.9238242506980896, -0.6130924224853516, 0.49050307273864746, -0.5453594326972961, -0.1978047788143158, -0.17422008514404297, -0.6819806098937988, -1.0700801610946655, -0.6593579649925232, -0.322399765253067, -0.43119004368782043, -0.12081564217805862, 0.7033912539482117, 1.1191151142120361, -0.905217707157135, 0.13756757974624634, -0.0240399781614542, -0.1813085675239563, -0.23206867277622223, -0.1888514757156372, 0.4486617147922516, 0.04161408916115761, -0.7196711301803589, 0.05980291962623596, 0.013005856424570084, 0.265085905790329, -0.3958480656147003, 0.003447141731157899, -0.05300526320934296, -0.15405972301959991, 0.5450531840324402, 0.33067527413368225, -0.6309913992881775, -0.5977593660354614, -0.004537292290478945, -0.04487881809473038, 0.3336693346500397, 0.4960252046585083, -0.9666391611099243, 0.5665900111198425, 0.4249502718448639, 0.48729363083839417, 1.0493820905685425, -0.029586773365736008, 0.25922131538391113, -0.8012006282806396, 0.249482661485672, 0.06965856999158859, 0.6645345091819763, 0.3058474063873291, -0.45139163732528687, 0.45910146832466125, 0.4651985764503479, -0.4662591218948364, -0.7230079174041748, 0.11736835539340973, -1.2794424295425415, -0.09629414975643158, 0.8082724809646606, -0.39983248710632324, -0.5274585485458374, 0.1673121303319931, -0.0732148289680481, 0.5227968692779541, -0.12144719064235687, 0.5124840140342712, 0.3572951555252075, 0.022086311131715775, -0.5965712070465088, -0.2664635181427002, 0.22805199027061462, -0.24945342540740967, -0.453133225440979, -0.6527824401855469, -0.016387857496738434, 0.29898521304130554, 0.5640313625335693, 0.3096502423286438, -0.4001443684101105, 0.07421492040157318, 0.2574308514595032, 0.3585636615753174, -0.19584862887859344, -0.3591708838939667, -0.3256577253341675, 0.03187001869082451, -0.31958186626434326, -0.7231340408325195 ]
nreimers/TinyBERT_L-4_H-312_v2
nreimers
"2021-05-28T11:02:32Z"
22,769
1
transformers
[ "transformers", "pytorch", "jax", "bert", "feature-extraction", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
This is the [General_TinyBERT_v2(4layer-312dim)](https://github.com/huawei-noah/Pretrained-Language-Model/tree/master/TinyBERT) ported to Huggingface transformers.
[ -0.6634377837181091, -0.47533753514289856, 0.09749145805835724, 0.4382714629173279, 0.07085932046175003, 0.046954113990068436, 0.14876717329025269, -0.45489251613616943, 0.5910438299179077, 0.5508148074150085, -0.8305081129074097, -0.0016787709901109338, -0.28529396653175354, -0.3479934632778168, -0.37450045347213745, 1.1117032766342163, 0.13750053942203522, -0.06424456834793091, -0.0691068097949028, -0.37045562267303467, 0.28826484084129333, -0.04714551195502281, -0.5518842339515686, -0.8869869709014893, 0.61390221118927, 0.8797274231910706, 1.2241806983947754, 0.3638988435268402, 0.18483993411064148, 0.20155027508735657, -0.247521311044693, -0.5409061312675476, -0.02909662202000618, -0.6011298894882202, -0.09713506698608398, -0.18671931326389313, -0.8858301043510437, 0.21092814207077026, 0.628078281879425, 0.3582070469856262, 0.03558306023478508, 0.767585813999176, 0.06330930441617966, 0.6628775596618652, -0.018846476450562477, 0.16521157324314117, -0.1498860865831375, 0.21201133728027344, -0.1418592780828476, 0.13962958753108978, -0.1377018690109253, -0.2053140550851822, 0.4858887195587158, -0.5248186588287354, 0.1940174698829651, -0.024831753224134445, 0.9693107008934021, 0.5169456601142883, -0.49465954303741455, -0.036914974451065063, -0.5802529454231262, 0.7515491843223572, -0.03767269104719162, 0.630294919013977, 0.3544282913208008, 0.7420976161956787, 0.2372356653213501, -1.404968023300171, -0.5206030011177063, -0.18982671201229095, -0.09992950409650803, 0.05802643671631813, -0.33392471075057983, 0.06942868232727051, 0.327009916305542, 0.5603991150856018, -0.4340731203556061, 0.05995722487568855, -0.7880005836486816, -0.6384981274604797, 0.5472298860549927, -0.1877889335155487, 0.5519506931304932, -0.40213558077812195, -0.47976818680763245, -0.11351574957370758, -0.7376492023468018, 0.13149787485599518, 0.5151801109313965, 0.030837709084153175, -0.8451106548309326, 0.6741212606430054, 0.03506896644830704, 0.6096430420875549, 0.028872106224298477, 0.1063576266169548, 0.6617627739906311, -0.09236154705286026, -0.2007719725370407, -0.0642617866396904, 0.48267948627471924, 0.23195543885231018, 0.551823079586029, 0.11492286622524261, -0.11667431145906448, -0.2774980068206787, 0.5381563305854797, -1.2531970739364624, -0.9584686756134033, 0.2782686948776245, -0.544233500957489, -0.279229998588562, -0.13615398108959198, -0.8566364645957947, -0.06172867491841316, -0.20870442688465118, 0.2761341333389282, -0.49091318249702454, -0.4042883813381195, -0.3444410562515259, 0.10089896619319916, 0.5912441611289978, 0.3234809637069702, -1.1170765161514282, 0.5175581574440002, 0.44765177369117737, 0.9875221848487854, 0.2783445417881012, -0.20219865441322327, -0.5703659653663635, -0.138863205909729, -0.11872784048318863, 0.582301914691925, -0.1335304230451584, -0.22375816106796265, 0.08487353473901749, 0.12773138284683228, 0.17020367085933685, -0.4625597596168518, 0.8321550488471985, -0.5397695302963257, 0.34871870279312134, 0.5928434133529663, 0.026141099631786346, -0.13508446514606476, 0.3870033323764801, -0.7824254035949707, 1.105139970779419, 0.9069595336914062, -0.8951262831687927, 0.0013391103129833937, -0.5621717572212219, -0.3490457236766815, 0.4152374863624573, -0.3049624264240265, -0.836077868938446, -0.04777603968977928, -0.10973604768514633, 0.185332253575325, -0.22454217076301575, -0.19281774759292603, -0.1842304915189743, -0.31751343607902527, -0.5005014538764954, 0.38740310072898865, 1.0751616954803467, 0.41755735874176025, -0.14954201877117157, 0.307685911655426, -0.7147402167320251, 0.4232597351074219, 0.2293590009212494, -0.10314156860113144, -0.11643817275762558, -0.31864193081855774, 0.18906541168689728, 0.4040851294994354, 0.5248597264289856, -0.6124032735824585, 0.4909975826740265, -0.39531898498535156, 0.4896889925003052, 0.3623577058315277, -0.24337345361709595, 1.001078724861145, -0.3527085483074188, 0.6675472855567932, -0.019555820152163506, 0.575616180896759, 0.07783924043178558, -0.9510500431060791, -0.8216671943664551, -0.34296807646751404, 0.45546838641166687, 0.5579157471656799, -1.0831053256988525, 0.3277248740196228, -0.2245481312274933, -0.9027543663978577, -0.4723784029483795, 0.4245930016040802, 0.2388521432876587, 0.004871024284511805, 0.5440713167190552, -0.3360382616519928, -0.488486647605896, -1.46284019947052, 0.23582236468791962, -0.48641979694366455, -0.42000535130500793, 0.4220978915691376, 0.40068212151527405, -0.9338580965995789, 1.1504534482955933, -0.28459006547927856, -0.5130132436752319, -0.3839024603366852, -0.16594387590885162, 0.23157837986946106, 0.6167004108428955, 1.2962452173233032, -0.4722958207130432, -0.5668638348579407, -0.06988810747861862, -0.21996386349201202, -0.3461644649505615, 0.22509005665779114, -0.20217590034008026, -0.13073042035102844, 0.24326150119304657, -0.8662009835243225, 0.17453497648239136, 1.1816905736923218, -0.39841771125793457, 0.6564475893974304, -0.1567545235157013, -0.38332563638687134, -1.0865445137023926, -0.04381008446216583, 0.032263707369565964, -0.5834178328514099, -0.5775274634361267, 0.03867339342832565, 0.5791704654693604, 0.08959886431694031, -0.6244313716888428, 0.8078895211219788, -0.4464263617992401, -0.19844891130924225, -0.170012965798378, 0.04322879761457443, -0.242300882935524, 0.3812856674194336, -0.34614402055740356, 0.8752699494361877, 0.8309153318405151, -0.36503562331199646, 0.7277197241783142, 0.7816925644874573, -0.20626544952392578, 0.3583125174045563, -1.0979193449020386, 0.02475893311202526, 0.05603763833642006, 0.27604806423187256, -0.4950641989707947, -0.4712730348110199, 0.5700944662094116, -0.5851510167121887, 0.1774897277355194, -0.7159826159477234, -0.6710746884346008, -0.951752245426178, -0.6083406209945679, 0.44301071763038635, 0.8130313158035278, -1.0999397039413452, 0.7718167304992676, 0.36798757314682007, -0.30486106872558594, -0.09567620605230331, -0.8340713381767273, -0.28053730726242065, -0.14560122787952423, -0.7351654171943665, 0.572246789932251, -0.17681658267974854, -0.1772056668996811, -0.27330711483955383, -0.09898727387189865, -0.135247141122818, -0.30712956190109253, 0.40151673555374146, 0.2042589634656906, -0.2590149939060211, -0.06841050833463669, 0.06547322869300842, -0.18940018117427826, 0.014663678593933582, 0.027579542249441147, 0.6599584221839905, -0.6893242597579956, 0.24488162994384766, -0.5323854088783264, -0.04827132448554039, 0.5104250907897949, -0.06387514621019363, 0.43802410364151, 0.9274922013282776, -0.4268735945224762, -0.37042954564094543, -0.23489820957183838, -0.2758074402809143, -0.6091116070747375, -0.16208939254283905, -0.5085885524749756, -1.216130018234253, 0.30150139331817627, -0.2598194181919098, 0.04765872284770012, 0.7363768219947815, 0.6786943674087524, 0.07143066823482513, 1.0378801822662354, 0.7867273688316345, -0.2947976291179657, 0.7424512505531311, -0.5710090398788452, -0.04308847710490227, -0.9068553447723389, -0.3362457752227783, -0.44332289695739746, -0.23981335759162903, -0.6870402693748474, -0.5622895359992981, 0.03301757946610451, 0.35922205448150635, -0.8614267706871033, 0.8421816825866699, -0.5208881497383118, 0.3270791471004486, 0.7915470600128174, -0.15038664638996124, 0.05357096344232559, 0.029026838019490242, -0.1778360903263092, -0.16443060338497162, -0.5334476828575134, -0.6686760187149048, 0.7813734412193298, 0.8659636378288269, 0.6284947991371155, 0.46141523122787476, 0.5928959250450134, 0.3145006000995636, 0.3766384422779083, -0.6575562953948975, 0.36916306614875793, 0.21288220584392548, -0.9397584795951843, 0.07073234766721725, -0.4167056977748871, -0.8630936741828918, 0.15867647528648376, -0.2733965516090393, -1.2006930112838745, -0.40897801518440247, 0.26662677526474, -0.5362611413002014, 0.24486270546913147, -1.0444762706756592, 1.2236909866333008, -0.20375126600265503, -0.05234313756227493, -0.07298102974891663, -0.8462404608726501, 0.606982409954071, -0.21720251441001892, -0.11944812536239624, -0.04397043585777283, 0.09424939751625061, 0.7444174289703369, -0.4049827754497528, 0.5990277528762817, -0.16628824174404144, -0.02511061541736126, 0.5959473848342896, 0.2840280532836914, 0.42326799035072327, 0.6770697236061096, 0.2269124686717987, 0.20043537020683289, 0.27656179666519165, -0.46241700649261475, -0.4165089428424835, 1.025331974029541, -1.2991091012954712, -0.31330594420433044, -0.3622726500034332, -0.08625968545675278, -0.14178761839866638, 0.3552306294441223, 0.1771736741065979, 0.33278247714042664, -0.2307908982038498, 0.21680940687656403, 0.29350703954696655, -0.27130135893821716, 0.2844697833061218, 0.3001324236392975, -0.6514538526535034, -0.3192155063152313, 0.7866165041923523, -0.43444278836250305, 0.029486244544386864, -0.174798384308815, 0.4472116231918335, -0.1512981355190277, -0.183180034160614, -0.8101592063903809, 0.2571888566017151, 0.029613129794597626, -0.34733253717422485, -0.6376779675483704, -0.802584171295166, -0.24023304879665375, -0.05179436504840851, -0.7821513414382935, -0.7791911363601685, -0.3448910415172577, 0.04185629263520241, 0.5753682851791382, 0.7516704201698303, -0.22948530316352844, 0.7408865690231323, -0.9653820395469666, 0.7708370685577393, 0.7863239049911499, 0.7474558353424072, -0.34888145327568054, -0.9873879551887512, -0.20898321270942688, -0.05565175414085388, -0.7029131650924683, -0.4219372868537903, 0.1545407474040985, 0.35535502433776855, 0.582552969455719, 0.39021798968315125, -0.21748873591423035, 0.024279814213514328, -0.7930700182914734, 0.8593686819076538, 0.6350461840629578, -0.7644412517547607, 0.4919125735759735, -0.36873963475227356, 0.45613086223602295, 0.4493620693683624, 0.3232559561729431, -0.29469552636146545, -0.17010995745658875, -1.1500096321105957, -0.725970983505249, 0.9769439697265625, 0.5050248503684998, 0.3401201069355011, 0.3599202632904053, 0.052822936326265335, -0.0025381981395184994, 0.16206814348697662, -0.6025719046592712, -0.6910197734832764, -0.5643123984336853, -0.3390209376811981, -0.07472570240497589, -0.6238471269607544, -0.0802091434597969, -0.6843499541282654, 0.47372686862945557, -0.2483396828174591, 0.5999459624290466, -0.07810564339160919, 0.010741448029875755, -0.06651151925325394, -0.08225129544734955, 0.6023027896881104, 0.0941876694560051, -0.3123697340488434, 0.16318511962890625, 0.1154470145702362, -0.6884244680404663, -0.0932469367980957, 0.3530857264995575, -0.17527414858341217, -0.038333144038915634, 0.21252048015594482, 0.5608530640602112, 0.16946697235107422, -0.3491894602775574, 0.9820139408111572, 0.05037684738636017, -0.305711030960083, -0.8703470826148987, 0.08366778492927551, 0.16557027399539948, 0.6705753803253174, 0.12193384021520615, 0.3425061106681824, 0.0980040580034256, -0.5093996524810791, 0.6734612584114075, 0.11897683888673782, -0.6729762554168701, -0.7877862453460693, 1.053713321685791, 0.4714483916759491, -0.8158819079399109, 0.7380636930465698, -0.29825934767723083, -0.7323670387268066, 0.40057381987571716, 0.5244980454444885, 0.6697061657905579, -0.1957399696111679, 0.6329135298728943, 0.6965561509132385, 0.5097429752349854, 0.16992996633052826, 0.22921915352344513, -0.262534499168396, -0.7310206890106201, -0.2447403520345688, -0.6840082406997681, -0.5751512050628662, -0.027620460838079453, -0.5226497650146484, 0.3550916016101837, -0.922357439994812, -0.2202201783657074, 0.006579538807272911, 0.10235955566167831, -0.916418194770813, 0.07545718550682068, 0.3258455991744995, 1.3148576021194458, -0.5337730646133423, 1.5705537796020508, 0.9280931353569031, -0.21785452961921692, -0.7232954502105713, -0.11366593092679977, 0.2958250939846039, -0.9939792156219482, 0.5669044852256775, 0.35303428769111633, -0.13801413774490356, 0.27213332056999207, -0.5508789420127869, -0.7303088903427124, 1.0795010328292847, 0.15585777163505554, -0.363843709230423, 0.13851019740104675, -0.11255139857530594, 0.7237301468849182, -0.29344794154167175, 0.397202730178833, 0.9447324275970459, 0.41606923937797546, 0.04959721118211746, -1.1496754884719849, -0.38577306270599365, -0.4648660719394684, 0.031958822160959244, 0.199263796210289, -1.0868964195251465, 0.7454043626785278, -0.3436375856399536, 0.18266934156417847, 0.5274245738983154, 0.8387708067893982, 0.3027254045009613, -0.008006801828742027, 0.7353180050849915, 0.5535426139831543, 0.2802424728870392, -0.3062305152416229, 0.944089412689209, -0.2632500231266022, 0.8350640535354614, 1.1109226942062378, 0.04633765667676926, 0.5091186165809631, 0.497376412153244, -0.09316173195838928, 0.7005943655967712, 0.5372132062911987, -0.1538824588060379, 0.5249881148338318, 0.2269396185874939, -0.29169344902038574, 0.009758892469108105, 0.008153341710567474, -0.489193320274353, 0.31644827127456665, 0.44946637749671936, -0.2773574888706207, -0.1279371976852417, -0.13416007161140442, -0.08327460289001465, -0.18382534384727478, -0.4726545512676239, 0.2950608730316162, 0.2750326693058014, -0.22141677141189575, 0.27268263697624207, 0.12345851957798004, 0.739528238773346, -0.5316427946090698, 0.18149212002754211, -0.11188793182373047, 0.261671245098114, -0.2016831785440445, -1.2760380506515503, 0.24666085839271545, -0.15156874060630798, 0.2529904842376709, -0.34563663601875305, 0.80808424949646, -0.4183630347251892, -0.27252888679504395, 0.6990827918052673, 0.469420850276947, 0.11255589127540588, 0.13674937188625336, -1.028965711593628, 0.10030920058488846, 0.026304282248020172, -0.5359523296356201, 0.037587907165288925, -0.08468543738126755, 0.0640643760561943, 0.763475239276886, 0.052029699087142944, -0.13756433129310608, 0.18994320929050446, 0.41094622015953064, 0.9171205759048462, -0.6283554434776306, -0.5100728273391724, -0.3509797751903534, 0.576744556427002, -0.25501748919487, -0.41996532678604126, 0.8048685193061829, 0.7925402522087097, 1.0147265195846558, -0.4958348572254181, 0.5545973181724548, -0.3575166165828705, 0.4548710584640503, -0.07190753519535065, 0.5603961944580078, -0.9004870653152466, -0.435379296541214, -0.3213968276977539, -1.3188663721084595, -0.3797605037689209, 0.8025122880935669, 0.14035020768642426, 0.26309484243392944, 0.4727541208267212, 0.6000928282737732, -0.43852517008781433, 0.02277303859591484, 0.4419935941696167, 0.269553005695343, 0.19199752807617188, 0.43259313702583313, 0.7841569185256958, -0.7341130971908569, 0.6323971748352051, -0.5968064069747925, -0.3393179774284363, -0.4244895875453949, -0.35829460620880127, -1.153161883354187, -0.5491016507148743, -0.4235419034957886, -0.35710611939430237, -0.5433602333068848, 0.8349910974502563, 1.0078554153442383, -0.6934294104576111, 0.2662299573421478, 0.15469814836978912, -0.12370048463344574, 0.32287049293518066, -0.16495320200920105, 0.24012067914009094, 0.2734644114971161, -0.89909428358078, 0.3893061578273773, 0.1693221777677536, 0.44703423976898193, -0.17607912421226501, -0.4300672709941864, 0.351868212223053, -0.09772713482379913, 0.8192362189292908, 0.636764407157898, -0.5533894896507263, -1.0606434345245361, -0.42438429594039917, -0.45063164830207825, -0.010577312670648098, 0.7881147265434265, -0.5792816281318665, 0.12949219346046448, 0.3235110640525818, 0.3951561748981476, 0.6845431923866272, 0.12036579847335815, 0.2166796624660492, -1.1043169498443604, 0.7711247801780701, -0.08958273380994797, 0.6309369802474976, 0.3273482024669647, 0.17295478284358978, 0.6402842998504639, 0.032027121633291245, -0.6276233196258545, -0.14691728353500366, 0.552131175994873, -1.5581806898117065, 0.3524380326271057, 1.0677752494812012, 0.42584285140037537, -0.23239752650260925, 0.14239367842674255, -0.5838436484336853, 0.19463445246219635, -0.10818614810705185, 0.4027053713798523, 0.22939449548721313, 0.20226219296455383, -0.5900407433509827, -0.8329921960830688, 0.4549068212509155, 0.06349093466997147, -0.5492373704910278, -0.5802381038665771, 0.2295859307050705, 0.4040708839893341, 0.49120599031448364, 0.5368643999099731, -0.30560335516929626, 0.38687461614608765, 0.0350787490606308, 0.45055487751960754, -0.02072373405098915, -0.7806840538978577, -0.09716862440109253, -0.18411509692668915, 0.36960700154304504, -0.35783833265304565 ]
Splend1dchan/canine-c-squad
Splend1dchan
"2023-03-22T07:09:39Z"
22,730
0
transformers
[ "transformers", "pytorch", "safetensors", "canine", "question-answering", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-04-08T14:16:41Z"
python run_squad.py \ --model_name_or_path google/canine-c \ --do_train \ --do_eval \ --per_gpu_train_batch_size 1 \ --per_gpu_eval_batch_size 1 \ --gradient_accumulation_steps 128 \ --learning_rate 3e-5 \ --num_train_epochs 3 \ --max_seq_length 1024 \ --doc_stride 128 \ --max_answer_length 240 \ --output_dir canine-c-squad \ --model_type bert { "_name_or_path": "google/canine-c", "architectures": [ "CanineForQuestionAnswering" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 57344, "downsampling_rate": 4, "eos_token_id": 57345, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "local_transformer_stride": 128, "max_position_embeddings": 16384, "model_type": "canine", "num_attention_heads": 12, "num_hash_buckets": 16384, "num_hash_functions": 8, "num_hidden_layers": 12, "pad_token_id": 0, "torch_dtype": "float32", "transformers_version": "4.19.0.dev0", "type_vocab_size": 16, "upsampling_kernel_size": 4, "use_cache": true } {'exact': 58.893093661305585, 'f1': 72.18823344945899}
[ -0.544647753238678, -0.9047579169273376, 0.05317401885986328, 0.3281211853027344, -0.016153981909155846, 0.27084627747535706, -0.24319985508918762, -0.027572935447096825, 0.18791013956069946, 0.028233731165528297, -1.079632043838501, -0.5251267552375793, -0.5594806671142578, -0.02007976360619068, -0.08563093841075897, 1.1583691835403442, 0.05845477804541588, 0.05814345180988312, -0.03891913965344429, 0.0426059253513813, -0.32898759841918945, -0.4048422574996948, -1.1772325038909912, -0.4449124038219452, 0.15668609738349915, 0.028108112514019012, 0.446559876203537, 0.7093347907066345, 0.5218765735626221, 0.4656071662902832, -0.05486077442765236, -0.034532301127910614, -0.549200713634491, -0.15937192738056183, 0.24684908986091614, -0.3934920132160187, -0.5776025056838989, 0.24388624727725983, 0.6615722179412842, 0.09800665825605392, -0.23145629465579987, 0.20560233294963837, -0.03291427344083786, 0.33045604825019836, -0.40534308552742004, 0.5024237036705017, -0.44243937730789185, 0.10857822746038437, 0.30525368452072144, -0.07818455994129181, 0.03491543233394623, -0.011253054253757, 0.21396256983280182, -0.7492023706436157, 0.740175187587738, -0.1770363599061966, 1.2464627027511597, 0.21706780791282654, 0.23159126937389374, -0.26579368114471436, -0.1269201636314392, 1.015913724899292, -1.0909746885299683, -0.04733452945947647, 0.40292948484420776, 0.1340780258178711, -0.19773826003074646, -0.7839497923851013, -0.5051047205924988, -0.13571901619434357, 0.1475934386253357, 0.2671675384044647, -0.11704666167497635, -0.1318713277578354, 0.37757211923599243, 0.3565254211425781, -0.5622627139091492, 0.07703432440757751, -0.5844835042953491, -0.4223460555076599, 0.7834904789924622, 0.47426456212997437, 0.37199071049690247, 0.08755790442228317, -0.49044984579086304, -0.39364081621170044, -0.20740385353565216, 0.6173474788665771, 0.3825363516807556, 0.3202439546585083, -0.4524367153644562, 0.5406256914138794, -0.5730354189872742, 0.5495742559432983, 0.4270983338356018, -0.0987318679690361, 0.6079572439193726, -0.30324968695640564, -0.5075988173484802, 0.22523632645606995, 1.1434727907180786, 0.5013881325721741, 0.03627669811248779, -0.07403139770030975, -0.17541565001010895, -0.09080303460359573, 0.3640240430831909, -1.0725986957550049, -0.4505368769168854, 0.6582547426223755, -0.3378533124923706, -0.6504924893379211, 0.11031224578619003, -0.8115227818489075, -0.006141997873783112, 0.2595679461956024, 0.441536009311676, -0.8232690095901489, -0.07904648035764694, 0.07306603342294693, -0.39538198709487915, 0.6412838101387024, 0.33024170994758606, -1.1031774282455444, 0.08600419014692307, 0.494039922952652, 1.0418787002563477, 0.17528663575649261, -0.764538049697876, -0.3988911211490631, 0.20375996828079224, -0.06273901462554932, 0.6037523746490479, -0.1519828736782074, -0.3814573585987091, -0.009145938791334629, 0.45762208104133606, -0.5813851952552795, -0.33166560530662537, 0.3503461182117462, -0.19336681067943573, 0.19150474667549133, -0.15693339705467224, -0.4480343461036682, -0.26406627893447876, 0.48185500502586365, -0.5794869661331177, 1.238608717918396, 0.21942313015460968, -0.6574342846870422, 0.46266093850135803, -0.5673055052757263, -0.5504239201545715, 0.2700616419315338, 0.00798801239579916, -0.6645162105560303, -0.18442854285240173, 0.4744560122489929, 0.7233160138130188, 0.007324866950511932, -0.12368129193782806, -0.35760053992271423, -0.504566490650177, 0.04416731372475624, -0.08198762685060501, 1.0796284675598145, -0.10524988174438477, -0.5985442996025085, 0.33780887722969055, -0.8531816601753235, 0.37634170055389404, 0.2908281683921814, -0.5987140536308289, 0.1907394528388977, -0.08606691658496857, 0.02139773778617382, 0.2862686812877655, 0.7211264371871948, -0.5835334658622742, 0.3307925760746002, -0.08276786655187607, 0.9573268294334412, 1.0284292697906494, -0.30137670040130615, 0.26875725388526917, -0.5464789271354675, 0.5771118402481079, -0.003297011135146022, 0.18149881064891815, 0.09714936465024948, -0.7854732275009155, -0.5828235149383545, -0.6755921244621277, -0.234161376953125, 0.5960189700126648, -0.32200154662132263, 0.9864934086799622, -0.06961031258106232, -0.8523450493812561, -0.6942993998527527, -0.09049783647060394, 0.31242257356643677, 0.5787212252616882, 0.5113599896430969, 0.0479532852768898, -0.528021514415741, -0.9003223776817322, -0.09600856900215149, -0.27533480525016785, 0.0378844290971756, 0.6430299282073975, 1.0422099828720093, -0.25949060916900635, 0.5801824927330017, -0.5092774033546448, -0.4252842664718628, -0.47569307684898376, 0.14066222310066223, 0.6256245374679565, 0.7402364015579224, 0.4438294768333435, -0.42179158329963684, -0.3297480642795563, -0.340578556060791, -0.8278014063835144, 0.4190651774406433, -0.22656239569187164, 0.00917645450681448, 0.03998030722141266, 0.08528640866279602, -0.9484317302703857, 0.39101889729499817, 0.37421098351478577, -0.33860957622528076, 0.6290302276611328, -0.6162875294685364, 0.24129775166511536, -1.027013897895813, 0.0431177020072937, 0.17698301374912262, 0.05720731243491173, -0.2367870956659317, 0.022592609748244286, 0.035728082060813904, 0.12402785569429398, -0.5664013028144836, 0.37623417377471924, -0.3045402467250824, 0.24019111692905426, 0.18742607533931732, -0.08559808880090714, -0.32525405287742615, 0.8122565150260925, 0.07153785228729248, 0.8684439063072205, 0.8985150456428528, -0.7376015186309814, 0.8932889103889465, 0.24059219658374786, -0.3411889970302582, 0.2959345579147339, -0.8430696129798889, 0.1514626443386078, 0.20923924446105957, 0.2875533401966095, -1.1731278896331787, -0.6585106253623962, 0.2589118778705597, -0.7263107299804688, 0.12663303315639496, -0.13731616735458374, -0.4171346127986908, -0.5683937072753906, -0.7398934960365295, 0.2916414141654968, 0.5163981318473816, -0.5457665324211121, 0.04423202574253082, 0.2820112109184265, 0.30685561895370483, -0.747228741645813, -0.549221932888031, -0.32651254534721375, -0.24236148595809937, -0.8242969512939453, 0.5123692154884338, -0.16072450578212738, 0.3198498487472534, -0.044695090502500534, -0.056956902146339417, -0.28468650579452515, 0.11821742355823517, 0.22129496932029724, 0.34189334511756897, -0.17929653823375702, -0.22761747241020203, -0.4534432590007782, 0.35306432843208313, 0.2526521384716034, 0.05909527838230133, 1.0137051343917847, -0.5896851420402527, 0.21800902485847473, -0.6257104277610779, 0.03770662099123001, 0.5820520520210266, -0.03711408004164696, 0.9852088689804077, 1.0495223999023438, -0.34673264622688293, -0.3047214448451996, -0.19335529208183289, -0.18451566994190216, -0.5432380437850952, 0.775210976600647, -0.34269389510154724, -0.5219718813896179, 0.8878986835479736, 0.2679715156555176, -0.06900937110185623, 0.8750975131988525, 0.6833325624465942, -0.34062257409095764, 1.2364119291305542, 0.2779797315597534, -0.3935115933418274, 0.4156346023082733, -0.9445517063140869, -0.14666663110256195, -1.0387041568756104, -0.6968254446983337, -0.32747653126716614, -0.4042309522628784, -0.5961612462997437, -0.055031489580869675, -0.02429397962987423, 0.21053801476955414, -0.7180225849151611, 0.5666086673736572, -0.8978409171104431, 0.2455032914876938, 0.7884517908096313, 0.5521609783172607, -0.423434853553772, 0.04607895389199257, -0.05202902853488922, 0.24847997725009918, -0.6488334536552429, -0.2943533658981323, 1.1350785493850708, 0.2155808061361313, 0.7552157044410706, -0.07494382560253143, 0.6926935911178589, 0.15983553230762482, -0.17945757508277893, -0.8610339760780334, 0.7010608911514282, 0.20940740406513214, -0.9692239165306091, -0.44286099076271057, -0.42816776037216187, -0.858368992805481, -0.02331322431564331, -0.0003806327877100557, -0.9956881403923035, -0.27583304047584534, -0.0422273688018322, -0.47283416986465454, 0.5653273463249207, -0.5462096929550171, 1.0985283851623535, -0.2036474496126175, -0.3857252895832062, 0.01902926154434681, -0.5968714952468872, 0.2876162528991699, 0.12387979030609131, -0.08217144757509232, -0.0620986707508564, -0.08951254934072495, 1.1937105655670166, -0.6603089570999146, 0.7356899976730347, -0.28959885239601135, 0.25304749608039856, 0.3400900661945343, -0.38596218824386597, 0.6284790635108948, 0.17495781183242798, 0.07160193473100662, 0.2500886619091034, 0.035970885306596756, -0.5329734683036804, -0.22249765694141388, 0.9112363457679749, -1.1863571405410767, -0.48322850465774536, -0.6830260157585144, -0.7178522348403931, 0.010666485875844955, 0.291599839925766, 0.7769939303398132, 0.3695147931575775, -0.05959504470229149, 0.36953556537628174, 0.5491412878036499, -0.2311418205499649, 0.9776578545570374, 0.22716465592384338, 0.42946311831474304, -0.5533891320228577, 0.8799869418144226, -0.05165126547217369, -0.05747004225850105, 0.018879851326346397, -0.031787194311618805, -0.5046268105506897, -0.5438455939292908, -0.6518436670303345, 0.24042722582817078, -0.3695323169231415, -0.2437593936920166, -0.5326521992683411, -0.4373529851436615, -0.7311222553253174, -0.11613170802593231, -0.5715351104736328, -0.15731723606586456, -0.7494977116584778, 0.0689120963215828, 0.6323675513267517, 0.546622633934021, 0.024060530588030815, 0.5776774287223816, -0.5966522693634033, 0.22009724378585815, 0.18241269886493683, 0.29947584867477417, -0.15775340795516968, -0.8285616040229797, -0.3442867398262024, 0.10603175312280655, -0.6043980121612549, -0.8197110295295715, 0.8263902068138123, 0.2233203500509262, 0.8614486455917358, 0.406069815158844, -0.021830575540661812, 1.0569846630096436, -0.2660849094390869, 0.9995340704917908, 0.3048535883426666, -0.7191101312637329, 0.7935197949409485, -0.4760688543319702, 0.11038734018802643, 0.35593992471694946, 0.19435876607894897, -0.031129011884331703, -0.23207129538059235, -1.0633307695388794, -1.0778813362121582, 1.24967622756958, 0.37219536304473877, 0.07525051385164261, 0.040035128593444824, 0.253952294588089, -0.47931498289108276, 0.11317997425794601, -0.6982444524765015, -0.46779510378837585, -0.2549721896648407, -0.22091954946517944, -0.03878708928823471, 0.22957588732242584, -0.05269928649067879, -0.5834406614303589, 1.2271039485931396, 0.015870047733187675, 0.6554528474807739, 0.37938734889030457, 0.0044298251159489155, -0.06541810184717178, -0.13545089960098267, 0.740795910358429, 0.47610726952552795, -0.814321756362915, -0.37097302079200745, 0.22108274698257446, -0.8150916695594788, 0.15007330477237701, 0.07443854957818985, 0.045206669718027115, -0.07751969993114471, 0.5442405939102173, 0.7592499852180481, -0.09835321456193924, -0.37158313393592834, 0.5843970775604248, -0.1672290712594986, -0.3184158205986023, -0.49841612577438354, 0.3751685321331024, -0.0697670429944992, 0.37728631496429443, 0.47319743037223816, 0.16610194742679596, -0.2822745740413666, -0.5789709687232971, 0.0631830021739006, 0.7452113032341003, -0.4255259335041046, -0.24190276861190796, 0.9119389653205872, -0.03171044960618019, -0.4845477044582367, 0.9493146538734436, -0.03206838667392731, -0.6288347840309143, 1.4905502796173096, 0.4696020781993866, 0.9992343783378601, -0.15104134380817413, 0.13320842385292053, 0.7980878353118896, 0.30813345313072205, -0.30484849214553833, 0.4872559905052185, -0.019362781196832657, -0.7151623964309692, -0.03146342560648918, -0.5869817137718201, -0.08308646082878113, 0.6636369228363037, -0.9451044201850891, 0.274871289730072, -0.735107421875, -0.3408500552177429, 0.16516996920108795, 0.44207435846328735, -0.8396322131156921, 0.4172538220882416, -0.07444171607494354, 0.8916788697242737, -0.601042628288269, 1.0241752862930298, 0.970312774181366, -0.6499667763710022, -0.9990136623382568, -0.34138455986976624, -0.35483318567276, -1.2030162811279297, 0.7819241881370544, 0.48079395294189453, 0.19401438534259796, 0.23293988406658173, -0.8283780813217163, -0.6074542999267578, 1.3613601922988892, 0.16139069199562073, -0.3981270492076874, -0.12389375269412994, -0.20505572855472565, 0.3182598054409027, -0.3842894732952118, 0.5172063708305359, 0.49709707498550415, 0.36157721281051636, -0.05773378163576126, -0.7543193101882935, 0.19427919387817383, -0.5278651118278503, -0.3596647381782532, -0.14250119030475616, -0.9893181324005127, 1.5267773866653442, -0.5562865138053894, 0.2727419435977936, 0.10687669366598129, 0.36622491478919983, 0.6052905917167664, 0.24988187849521637, 0.2064305692911148, 0.8743436336517334, 0.7207247018814087, -0.35954755544662476, 1.1196784973144531, -0.36235037446022034, 0.9684451818466187, 0.7244872450828552, 0.225924551486969, 0.6620165109634399, 0.410329669713974, -0.4539400637149811, 0.46821311116218567, 1.1115485429763794, -0.6201680898666382, 0.8935209512710571, 0.24825440347194672, -0.32669979333877563, -0.3713637590408325, 0.4595467150211334, -0.7188040614128113, 0.2919624149799347, 0.2117832750082016, -0.6199506521224976, -0.01779266446828842, -0.504371702671051, 0.0777357891201973, -0.6565454006195068, -0.46367475390434265, 0.5482431054115295, -0.46331843733787537, -0.7098639607429504, 0.9542977809906006, -0.1361902505159378, 0.9301202297210693, -0.6620868444442749, 0.006468048319220543, -0.2111731618642807, 0.5629826784133911, -0.2610158622264862, -0.7659856677055359, -0.2759421467781067, -0.22285273671150208, -0.29435089230537415, 0.1044965609908104, 0.43823426961898804, -0.1419968605041504, -0.5478247404098511, 0.20479291677474976, 0.2237953543663025, 0.415164053440094, -0.1436789482831955, -1.1217213869094849, -0.16778045892715454, 0.17793406546115875, -0.5009459257125854, 0.3990494906902313, 0.3093331456184387, 0.4390332102775574, 0.8534066677093506, 0.7444350123405457, 0.19592241942882538, 0.5564141869544983, -0.44110509753227234, 0.9470052719116211, -0.9187896847724915, -0.590641438961029, -1.0939754247665405, 0.37014156579971313, -0.2218588888645172, -0.7537365555763245, 0.7538934350013733, 0.9796786904335022, 0.917159914970398, -0.26840221881866455, 0.9890800714492798, -0.358237087726593, -0.1961880624294281, -0.2519081234931946, 0.954139769077301, -0.5518942475318909, 0.09973029792308807, -0.18997366726398468, -0.6349038481712341, 0.15330100059509277, 1.1486132144927979, 0.09885839372873306, 0.2385401725769043, 0.5647746920585632, 0.7932183742523193, -0.062179580330848694, 0.0140428701415658, -0.032387007027864456, 0.112465500831604, 0.4245474636554718, 0.9794102907180786, 0.7015901207923889, -0.7928142547607422, 0.7119721174240112, -0.7607272267341614, -0.21968607604503632, -0.020870178937911987, -0.6360303163528442, -1.1370675563812256, -0.33834603428840637, -0.5395022034645081, -0.6520089507102966, -0.0009244690299965441, 0.7978084683418274, 0.9826723337173462, -0.8400822877883911, -0.27654895186424255, -0.47667446732521057, -0.22819136083126068, -0.443708598613739, -0.2916342616081238, 0.6987462639808655, -0.6198835968971252, -0.9502841234207153, 0.24334430694580078, -0.3600996136665344, -0.03922604024410248, -0.06448936462402344, -0.3322378098964691, -0.38228484988212585, -0.2097848355770111, 0.1845983862876892, 0.34683674573898315, -0.7636709809303284, -0.28681355714797974, -0.17790228128433228, -0.28846117854118347, 0.22826938331127167, 0.16255909204483032, -0.8230912685394287, 0.2662568986415863, 0.504849374294281, 0.3232850134372711, 0.7373247742652893, -0.25776049494743347, 0.28280845284461975, -0.7512911558151245, 0.16833868622779846, 0.025647906586527824, 0.5462703704833984, 0.07376472651958466, -0.4615102708339691, 0.6103368997573853, 0.495607852935791, -0.5640713572502136, -0.8302022218704224, -0.5369755029678345, -1.269591212272644, -0.14355053007602692, 1.3239519596099854, -0.494637131690979, -0.6186485290527344, 0.2710709273815155, -0.1487986147403717, 0.6930902004241943, -0.8437351584434509, 0.8394718766212463, 0.7669441103935242, -0.342570424079895, 0.08499177545309067, -0.7504254579544067, 0.5356142520904541, 0.08766668289899826, -0.8635947108268738, -0.2968929409980774, 0.16607758402824402, 0.5768573880195618, 0.11986509710550308, 0.42252254486083984, 0.10605045408010483, 0.30908215045928955, 0.1540568321943283, 0.082585908472538, -0.33331674337387085, 0.057870302349328995, -0.21094255149364471, 0.17135867476463318, -0.6822745203971863, -0.8785638213157654 ]
albert-xxlarge-v2
null
"2023-04-06T13:40:06Z"
22,602
12
transformers
[ "transformers", "pytorch", "tf", "safetensors", "albert", "fill-mask", "exbert", "en", "dataset:bookcorpus", "dataset:wikipedia", "arxiv:1909.11942", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:04Z"
--- tags: - exbert language: en license: apache-2.0 datasets: - bookcorpus - wikipedia --- # ALBERT XXLarge v2 Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in [this paper](https://arxiv.org/abs/1909.11942) and first released in [this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference between english and English. Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with two objectives: - Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence. - Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text. This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the ALBERT model as inputs. ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers. This is the second version of the xxlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks. This model has the following configuration: - 12 repeating layers - 128 embedding dimension - 4096 hidden dimension - 64 attention heads - 223M parameters ## Intended uses & limitations You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for fine-tuned versions on a task that interests you. Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at model like GPT2. ### How to use You can use this model directly with a pipeline for masked language modeling: ```python >>> from transformers import pipeline >>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v2') >>> unmasker("Hello I'm a [MASK] model.") [ { "sequence":"[CLS] hello i'm a modeling model.[SEP]", "score":0.05816134437918663, "token":12807, "token_str":"▁modeling" }, { "sequence":"[CLS] hello i'm a modelling model.[SEP]", "score":0.03748830780386925, "token":23089, "token_str":"▁modelling" }, { "sequence":"[CLS] hello i'm a model model.[SEP]", "score":0.033725276589393616, "token":1061, "token_str":"▁model" }, { "sequence":"[CLS] hello i'm a runway model.[SEP]", "score":0.017313428223133087, "token":8014, "token_str":"▁runway" }, { "sequence":"[CLS] hello i'm a lingerie model.[SEP]", "score":0.014405295252799988, "token":29104, "token_str":"▁lingerie" } ] ``` Here is how to use this model to get the features of a given text in PyTorch: ```python from transformers import AlbertTokenizer, AlbertModel tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v2') model = AlbertModel.from_pretrained("albert-xxlarge-v2") text = "Replace me by any text you'd like." encoded_input = tokenizer(text, return_tensors='pt') output = model(**encoded_input) ``` and in TensorFlow: ```python from transformers import AlbertTokenizer, TFAlbertModel tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v2') model = TFAlbertModel.from_pretrained("albert-xxlarge-v2") text = "Replace me by any text you'd like." encoded_input = tokenizer(text, return_tensors='tf') output = model(encoded_input) ``` ### Limitations and bias Even if the training data used for this model could be characterized as fairly neutral, this model can have biased predictions: ```python >>> from transformers import pipeline >>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v2') >>> unmasker("The man worked as a [MASK].") [ { "sequence":"[CLS] the man worked as a chauffeur.[SEP]", "score":0.029577180743217468, "token":28744, "token_str":"▁chauffeur" }, { "sequence":"[CLS] the man worked as a janitor.[SEP]", "score":0.028865724802017212, "token":29477, "token_str":"▁janitor" }, { "sequence":"[CLS] the man worked as a shoemaker.[SEP]", "score":0.02581118606030941, "token":29024, "token_str":"▁shoemaker" }, { "sequence":"[CLS] the man worked as a blacksmith.[SEP]", "score":0.01849772222340107, "token":21238, "token_str":"▁blacksmith" }, { "sequence":"[CLS] the man worked as a lawyer.[SEP]", "score":0.01820771023631096, "token":3672, "token_str":"▁lawyer" } ] >>> unmasker("The woman worked as a [MASK].") [ { "sequence":"[CLS] the woman worked as a receptionist.[SEP]", "score":0.04604868218302727, "token":25331, "token_str":"▁receptionist" }, { "sequence":"[CLS] the woman worked as a janitor.[SEP]", "score":0.028220869600772858, "token":29477, "token_str":"▁janitor" }, { "sequence":"[CLS] the woman worked as a paramedic.[SEP]", "score":0.0261906236410141, "token":23386, "token_str":"▁paramedic" }, { "sequence":"[CLS] the woman worked as a chauffeur.[SEP]", "score":0.024797942489385605, "token":28744, "token_str":"▁chauffeur" }, { "sequence":"[CLS] the woman worked as a waitress.[SEP]", "score":0.024124596267938614, "token":13678, "token_str":"▁waitress" } ] ``` This bias will also affect all fine-tuned versions of this model. ## Training data The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers). ## Training procedure ### Preprocessing The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are then of the form: ``` [CLS] Sentence A [SEP] Sentence B [SEP] ``` ### Training The ALBERT procedure follows the BERT setup. The details of the masking procedure for each sentence are the following: - 15% of the tokens are masked. - In 80% of the cases, the masked tokens are replaced by `[MASK]`. - In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace. - In the 10% remaining cases, the masked tokens are left as is. ## Evaluation results When fine-tuned on downstream tasks, the ALBERT models achieve the following results: | | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE | |----------------|----------|----------|----------|----------|----------|----------| |V2 | |ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 | |ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 | |ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 | |ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 | |V1 | |ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 | |ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 | |ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 | |ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 | ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-1909-11942, author = {Zhenzhong Lan and Mingda Chen and Sebastian Goodman and Kevin Gimpel and Piyush Sharma and Radu Soricut}, title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language Representations}, journal = {CoRR}, volume = {abs/1909.11942}, year = {2019}, url = {http://arxiv.org/abs/1909.11942}, archivePrefix = {arXiv}, eprint = {1909.11942}, timestamp = {Fri, 27 Sep 2019 13:04:21 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ``` <a href="https://huggingface.co/exbert/?model=albert-xxlarge-v2"> <img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png"> </a>
[ -0.1094922348856926, -0.4925570785999298, 0.2439214587211609, 0.32090628147125244, -0.4234410226345062, 0.013810409232974052, 0.12612703442573547, -0.19081756472587585, 0.3541194498538971, 0.6162759065628052, -0.5717927813529968, -0.4400864541530609, -0.8279618620872498, 0.11891527473926544, -0.5885168313980103, 1.1309000253677368, 0.11057606339454651, 0.37432846426963806, -0.0654829740524292, 0.07013892382383347, -0.3660084903240204, -0.6455017328262329, -0.8385655879974365, -0.29733923077583313, 0.514228343963623, 0.3507184386253357, 0.6088790893554688, 0.7225138545036316, 0.527230441570282, 0.4105239510536194, 0.011804472655057907, -0.1896827667951584, -0.27664172649383545, 0.06154613569378853, -0.07052373141050339, -0.660243809223175, -0.44269710779190063, 0.09637264907360077, 0.6326691508293152, 0.8086438775062561, -0.06341268867254257, 0.36075082421302795, -0.1773184984922409, 0.5619268417358398, -0.3627707064151764, 0.3049449026584625, -0.3844367265701294, 0.08770039677619934, -0.25867095589637756, 0.10538355261087418, -0.31204161047935486, -0.10547740757465363, 0.13898199796676636, -0.6575015187263489, 0.22144508361816406, 0.4096510112285614, 1.113411545753479, 0.11140740662813187, -0.18529394268989563, -0.18047618865966797, -0.543214738368988, 0.8618626594543457, -0.6436776518821716, 0.2573944330215454, 0.5429196357727051, 0.29306870698928833, 0.034227702766656876, -1.0464040040969849, -0.3037361800670624, -0.06955292075872421, -0.27781179547309875, -0.06319250166416168, -0.0798407569527626, -0.12336117029190063, 0.4313374161720276, 0.3839969038963318, -0.45590177178382874, 0.03719043359160423, -0.7508970499038696, -0.3134964406490326, 0.7121714949607849, 0.2702499330043793, 0.2522706687450409, -0.19837431609630585, -0.30320796370506287, -0.28203630447387695, -0.3497393727302551, 0.07306849211454391, 0.578003466129303, 0.3025243282318115, -0.22310858964920044, 0.7105328440666199, -0.35223931074142456, 0.5308426022529602, -0.04844756796956062, 0.010726495645940304, 0.48335781693458557, -0.02517775446176529, -0.38373589515686035, 0.017049022018909454, 1.0772626399993896, 0.25637051463127136, 0.2962875962257385, -0.08256243169307709, -0.4479541480541229, -0.07013896852731705, 0.3246113657951355, -0.7125996947288513, -0.3694518804550171, 0.12531882524490356, -0.4452991187572479, -0.42184942960739136, 0.4652084410190582, -0.6819753646850586, -0.1096748411655426, -0.0885777398943901, 0.4926346242427826, -0.22996635735034943, -0.1606890857219696, 0.21559220552444458, -0.407223105430603, 0.13044901192188263, 0.12015196681022644, -0.8871812224388123, 0.24357274174690247, 0.5716993808746338, 0.8333083987236023, 0.33440881967544556, -0.18833892047405243, -0.43002399802207947, -0.13465042412281036, -0.3409188687801361, 0.5182812809944153, -0.33498015999794006, -0.5262081623077393, 0.10821561515331268, 0.2880357503890991, -0.0006527898367494345, -0.3407561779022217, 0.6325544118881226, -0.6316505670547485, 0.5454398393630981, -0.043397367000579834, -0.42245781421661377, -0.25453081727027893, 0.03506072983145714, -0.7333850860595703, 1.0725018978118896, 0.40609148144721985, -0.6906520128250122, 0.31199145317077637, -0.9127023220062256, -0.5340336561203003, 0.24897333979606628, 0.08813054114580154, -0.6035352945327759, 0.12889641523361206, 0.10460323840379715, 0.36259201169013977, -0.13708645105361938, 0.1630920171737671, -0.23962850868701935, -0.37772899866104126, 0.2862423360347748, -0.1646616905927658, 1.0541974306106567, 0.14692743122577667, -0.2273518294095993, 0.12003853172063828, -0.8873210549354553, -0.04984987527132034, 0.27211275696754456, -0.2540069818496704, -0.23451988399028778, -0.27300208806991577, 0.3326684832572937, 0.1438545137643814, 0.41282427310943604, -0.5470850467681885, 0.2553141713142395, -0.5939853191375732, 0.4812295138835907, 0.7334515452384949, -0.0691734030842781, 0.42825189232826233, -0.43275129795074463, 0.6302801966667175, 0.036989931017160416, -0.10567452013492584, -0.23608876764774323, -0.5946399569511414, -0.9217837452888489, -0.29733216762542725, 0.5379360914230347, 0.7477477192878723, -0.4447435140609741, 0.6194065809249878, -0.1226508766412735, -0.6245210766792297, -0.6766015291213989, -0.06534617394208908, 0.4382476806640625, 0.3843705654144287, 0.3253975808620453, -0.4423837959766388, -0.8979445695877075, -0.8805640935897827, -0.31673815846443176, -0.20382538437843323, -0.2899365723133087, 0.031570930033922195, 0.801358699798584, -0.31920120120048523, 0.7261403203010559, -0.7383829951286316, -0.40993520617485046, -0.11160919815301895, 0.32551339268684387, 0.4570547044277191, 0.7533597946166992, 0.385512113571167, -0.5848397016525269, -0.44668394327163696, -0.30864405632019043, -0.6995081901550293, -0.01830466277897358, -0.044959235936403275, -0.23160536587238312, 0.005058551672846079, 0.5394683480262756, -0.7367646098136902, 0.5721171498298645, 0.184271901845932, -0.5671036839485168, 0.6658236384391785, -0.30669480562210083, 0.0735369324684143, -1.1715724468231201, 0.16462083160877228, -0.07655757665634155, -0.35072043538093567, -0.717417299747467, -0.0292242132127285, -0.12261723726987839, -0.02801397629082203, -0.628570020198822, 0.6414805054664612, -0.5686348080635071, -0.0305912084877491, -0.05986457318067551, -0.13059251010417938, 0.15422219038009644, 0.3913074731826782, -0.016273386776447296, 0.5917308330535889, 0.7071744203567505, -0.5518098473548889, 0.615782618522644, 0.4913047254085541, -0.6211452484130859, 0.2777789533138275, -0.857022225856781, 0.27415207028388977, -0.07711811363697052, -0.08295980840921402, -1.063325047492981, -0.30988597869873047, 0.3216323256492615, -0.5208239555358887, 0.3596011698246002, -0.05544717609882355, -0.727266252040863, -0.5473020672798157, -0.16996222734451294, 0.553436279296875, 0.5211949348449707, -0.2619694471359253, 0.4461299180984497, 0.34865614771842957, -0.11921738088130951, -0.6099178791046143, -0.7442466020584106, 0.10010508447885513, -0.2849608063697815, -0.5238957405090332, 0.311598539352417, -0.00255187856964767, -0.2942298948764801, -0.24610689282417297, 0.06143272668123245, -0.10633085668087006, 0.047812603414058685, 0.2999466359615326, 0.4370819926261902, -0.2343605011701584, -0.2140159159898758, -0.10850777477025986, -0.1674564927816391, 0.3592374324798584, -0.051246415823698044, 0.7359333634376526, -0.023291463032364845, -0.10546451061964035, -0.45608749985694885, 0.4457813501358032, 0.6758956909179688, -0.122173011302948, 0.8765039443969727, 0.8460041284561157, -0.5235334038734436, 0.07592479884624481, -0.29466569423675537, -0.2277638465166092, -0.5243167281150818, 0.6137741804122925, -0.5078909397125244, -0.8336934447288513, 0.7544347047805786, 0.3023415505886078, -0.1452651172876358, 0.6961696147918701, 0.5960311889648438, -0.13195262849330902, 1.1987435817718506, 0.4780445098876953, -0.055058080703020096, 0.4937865138053894, -0.25590401887893677, 0.3670978546142578, -0.8445254564285278, -0.5101449489593506, -0.5190150737762451, -0.19017131626605988, -0.428905189037323, -0.08976513147354126, 0.23319149017333984, 0.34049665927886963, -0.5090495944023132, 0.6617064476013184, -0.5534467697143555, 0.3772125840187073, 0.9028573632240295, 0.15143512189388275, -0.1520005166530609, -0.2620810270309448, -0.04309602826833725, 0.0867108702659607, -0.43992623686790466, -0.4680705666542053, 1.0429086685180664, 0.5647517442703247, 0.6877191662788391, 0.0885259360074997, 0.6197360754013062, 0.27564018964767456, 0.13096754252910614, -0.6302767395973206, 0.6097748279571533, -0.0955563634634018, -0.9083800911903381, -0.3300320506095886, -0.10897839069366455, -1.0532652139663696, 0.14214618504047394, -0.31152352690696716, -0.9423819184303284, -0.06534671038389206, -0.10531817376613617, -0.41017210483551025, 0.11163315176963806, -0.6887559294700623, 1.072335124015808, -0.2566280663013458, -0.17248061299324036, 0.14027124643325806, -0.9122796654701233, 0.30185195803642273, 0.041866954416036606, 0.21363884210586548, -0.15554259717464447, 0.10528911650180817, 1.169813632965088, -0.49395012855529785, 0.8094918727874756, -0.11364356428384781, 0.21309421956539154, 0.059902019798755646, 0.0510999970138073, 0.33818796277046204, 0.160641610622406, 0.08341096341609955, 0.3794007897377014, 0.08105361461639404, -0.43861106038093567, -0.2651752233505249, 0.4547416567802429, -0.8607975840568542, -0.5739369988441467, -0.6370456218719482, -0.5739869475364685, 0.18633733689785004, 0.45776090025901794, 0.6024702787399292, 0.5771852135658264, -0.16693644225597382, 0.1956624537706375, 0.3892306983470917, -0.18574745953083038, 0.6688969135284424, 0.45469868183135986, -0.3602157235145569, -0.5414669513702393, 0.6246066093444824, 0.01876101642847061, -0.020677683874964714, 0.5548230409622192, 0.10358045995235443, -0.6264551877975464, -0.18927884101867676, -0.44457393884658813, 0.20345722138881683, -0.6279900074005127, -0.36298900842666626, -0.7188674211502075, -0.39571133255958557, -0.6988208889961243, -0.12149319052696228, -0.21336273849010468, -0.3937116861343384, -0.7268751859664917, -0.15042530000209808, 0.3621607720851898, 0.6877474784851074, -0.09007178992033005, 0.6788114905357361, -0.7882219552993774, 0.23600412905216217, 0.2823193073272705, 0.4035804271697998, -0.3307531177997589, -0.8087301254272461, -0.48650237917900085, -0.0369240827858448, -0.18419328331947327, -0.8249104022979736, 0.6917142868041992, 0.14782750606536865, 0.44247400760650635, 0.6211429238319397, -0.08367812633514404, 0.5769610404968262, -0.6135566830635071, 0.9446713328361511, 0.2949249744415283, -1.034485101699829, 0.5677921175956726, -0.31281521916389465, 0.28017619252204895, 0.4124700427055359, 0.28429436683654785, -0.4729679524898529, -0.38170790672302246, -0.8650583028793335, -1.0122565031051636, 0.9157376289367676, 0.22914235293865204, 0.24924138188362122, 0.0068161943927407265, 0.20376914739608765, 0.05982748419046402, 0.45757004618644714, -0.8826063275337219, -0.67421954870224, -0.38401076197624207, -0.24987846612930298, -0.17536844313144684, -0.30425792932510376, -0.10525140911340714, -0.4886247515678406, 0.8225240111351013, 0.26451316475868225, 0.5313801169395447, -0.02436746470630169, -0.09866927564144135, -0.0347110778093338, 0.18898369371891022, 0.8092678785324097, 0.49172505736351013, -0.4295511543750763, 0.06705985218286514, 0.016336962580680847, -0.5362277030944824, 0.12209325283765793, 0.14853721857070923, 0.0017799601191654801, 0.23519161343574524, 0.5922503471374512, 1.0042452812194824, 0.14089949429035187, -0.5003597736358643, 0.6035268902778625, 0.08787483721971512, -0.2790778875350952, -0.6512326002120972, 0.16546519100666046, -0.161428302526474, 0.13710395991802216, 0.3733944296836853, 0.22221779823303223, 0.2112702578306198, -0.4694598317146301, 0.3731289803981781, 0.38524702191352844, -0.5599297285079956, -0.25666552782058716, 1.020384430885315, -0.0029098805971443653, -0.8738461136817932, 0.7350479364395142, -0.28016555309295654, -0.6299061179161072, 0.6526899337768555, 0.6547799706459045, 0.9617503881454468, -0.30769890546798706, 0.12647303938865662, 0.5744681358337402, 0.3082999885082245, -0.3737531900405884, 0.21755345165729523, 0.3163624405860901, -0.7972545027732849, -0.2980257272720337, -0.80679851770401, -0.1811656802892685, 0.23055851459503174, -0.8974055051803589, 0.4400506615638733, -0.47978225350379944, -0.15435965359210968, 0.1339513510465622, -0.07136189192533493, -0.7883888483047485, 0.5258447527885437, 0.02888845093548298, 0.9751080870628357, -1.0743516683578491, 0.8635679483413696, 0.8629995584487915, -0.6571768522262573, -0.8576377034187317, -0.40528953075408936, -0.26934128999710083, -1.1392254829406738, 0.6718595623970032, 0.4102081060409546, 0.31013837456703186, 0.06576938927173615, -0.57469642162323, -0.7992075085639954, 0.8983372449874878, 0.13627701997756958, -0.5630186200141907, -0.21623927354812622, 0.14647114276885986, 0.4869975447654724, -0.5767102241516113, 0.611860990524292, 0.6072534918785095, 0.4186335802078247, -0.006189229432493448, -0.7761447429656982, -0.0235468577593565, -0.458524227142334, 0.061150919646024704, 0.14787577092647552, -0.4241859018802643, 1.009089708328247, -0.12987428903579712, 0.024025263264775276, 0.28693705797195435, 0.6702417731285095, 0.03677362576127052, 0.20915992558002472, 0.502726137638092, 0.7187088131904602, 0.6019293665885925, -0.2814074754714966, 0.8353044986724854, -0.24442994594573975, 0.5790902376174927, 0.8691331148147583, 0.07758381217718124, 0.6667645573616028, 0.42801716923713684, -0.303377240896225, 0.9413843154907227, 0.7585487365722656, -0.27848148345947266, 0.7726927399635315, 0.20191091299057007, -0.1359560489654541, -0.07740221917629242, 0.09289523214101791, -0.2500252425670624, 0.5425412654876709, 0.19792601466178894, -0.5903410315513611, 0.045731641352176666, 0.023827552795410156, 0.20666669309139252, -0.19519518315792084, -0.5467519164085388, 0.7265886664390564, 0.1977044939994812, -0.6782596707344055, 0.2826288342475891, 0.21777218580245972, 0.5213519930839539, -0.4964147210121155, -0.024383636191487312, -0.03065050207078457, 0.1824275702238083, -0.12731972336769104, -0.8111997842788696, 0.2564137279987335, -0.1896113157272339, -0.40904751420021057, -0.31891509890556335, 0.5753661394119263, -0.5225462317466736, -0.7700009942054749, -0.042961712926626205, 0.2775297462940216, 0.3092757761478424, -0.12967562675476074, -0.7857758402824402, -0.1570652574300766, -0.003285252256318927, -0.24669399857521057, 0.19544371962547302, 0.3247268497943878, 0.14998458325862885, 0.5686293840408325, 0.6629083752632141, -0.11726807057857513, 0.023045456036925316, 0.02688463218510151, 0.6798306703567505, -0.8528066873550415, -0.86309415102005, -1.0108833312988281, 0.7500566244125366, -0.10842426121234894, -0.5465304851531982, 0.6877694725990295, 0.8509092926979065, 0.8147978186607361, -0.40186992287635803, 0.5390052199363708, -0.12149303406476974, 0.573046088218689, -0.3383840322494507, 0.7753376364707947, -0.46870580315589905, 0.10351093858480453, -0.33554837107658386, -0.8549655675888062, -0.3750414252281189, 0.8489498496055603, -0.13698066771030426, 0.07518844306468964, 0.7137802243232727, 0.8247334957122803, 0.057214513421058655, -0.15730774402618408, 0.2899472415447235, 0.12963777780532837, 0.083053357899189, 0.3220638930797577, 0.63360595703125, -0.7777552604675293, 0.3469388782978058, -0.2238817811012268, -0.05715460330247879, -0.39051100611686707, -0.7687733173370361, -1.0480737686157227, -0.6369919776916504, -0.3799932599067688, -0.7252577543258667, -0.24152116477489471, 0.9016439914703369, 0.7793673872947693, -0.9511497020721436, -0.2569523751735687, -0.10625911504030228, 0.07898913323879242, -0.1521264612674713, -0.27334165573120117, 0.3937784731388092, -0.12117580324411392, -0.8282271027565002, 0.2150176763534546, 0.05487189069390297, 0.08188614994287491, -0.23235997557640076, -0.01860486902296543, -0.24547220766544342, 0.01880675181746483, 0.37422680854797363, 0.13783027231693268, -0.6675564646720886, -0.4661898910999298, 0.019611189141869545, -0.20600923895835876, 0.15139377117156982, 0.5188970565795898, -0.5212090015411377, 0.3350493013858795, 0.3802454471588135, 0.264706015586853, 0.6600793600082397, 0.06750126928091049, 0.6109206676483154, -1.0144637823104858, 0.2964558005332947, 0.252748042345047, 0.5565913319587708, 0.40577322244644165, -0.42216265201568604, 0.39308878779411316, 0.48416057229042053, -0.5790144801139832, -0.9088075160980225, 0.040097035467624664, -0.9787777066230774, -0.07708604633808136, 1.0299562215805054, -0.1351756900548935, -0.34203001856803894, -0.07922559976577759, -0.3544452488422394, 0.4386903941631317, -0.38890379667282104, 0.6739869117736816, 0.7441282272338867, 0.07317826896905899, -0.28983229398727417, -0.3700379729270935, 0.4286722242832184, 0.35917147994041443, -0.48100775480270386, -0.45719408988952637, 0.07074388861656189, 0.446369469165802, 0.30420589447021484, 0.6187291741371155, -0.02848123572766781, 0.15901817381381989, 0.2346915751695633, 0.24842701852321625, -0.06431540101766586, -0.2325752228498459, -0.2691580355167389, 0.17750440537929535, -0.08592237532138824, -0.6636418700218201 ]
waylandy/phosformer
waylandy
"2022-11-04T18:16:46Z"
22,522
0
transformers
[ "transformers", "pytorch", "roberta", "text-classification", "license:other", "endpoints_compatible", "region:us" ]
text-classification
"2022-11-01T20:35:43Z"
--- license: other ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
KoboldAI/GPT-J-6B-Janeway
KoboldAI
"2022-03-20T12:59:44Z"
22,520
11
transformers
[ "transformers", "pytorch", "gptj", "text-generation", "en", "arxiv:2101.00027", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2022-03-02T23:29:04Z"
--- language: en license: mit --- # GPT-J 6B - Janeway ## Model Description GPT-J 6B-Janeway is a finetune created using EleutherAI's GPT-J 6B model. ## Training data The training data contains around 2210 ebooks, mostly in the sci-fi and fantasy genres. The dataset is based on the same dataset used by GPT-Neo-2.7B-Picard, with 20% more data in various genres. Some parts of the dataset have been prepended using the following text: `[Genre: <genre1>,<genre2>]` ### How to use You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run: ```py >>> from transformers import pipeline >>> generator = pipeline('text-generation', model='KoboldAI/GPT-J-6B-Janeway') >>> generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50) [{'generated_text': 'Welcome Captain Janeway, I apologize for the delay."\nIt's all right," Janeway said. "I'm certain that you're doing your best to keep me informed of what\'s going on."'}] ``` ### Limitations and Biases The core functionality of GPT-J is taking a string of text and predicting the next token. While language models are widely used for tasks other than this, there are a lot of unknowns with this work. When prompting GPT-J it is important to remember that the statistically most likely next token is often not the token that produces the most "accurate" text. Never depend upon GPT-J to produce factually accurate output. GPT-J was trained on the Pile, a dataset known to contain profanity, lewd, and otherwise abrasive language. Depending upon use case GPT-J may produce socially unacceptable text. See [Sections 5 and 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a more detailed analysis of the biases in the Pile. As with all language models, it is hard to predict in advance how GPT-J will respond to particular prompts and offensive content may occur without warning. We recommend having a human curate or filter the outputs before releasing them, both to censor undesirable content and to improve the quality of the results. ### BibTeX entry and citation info The model uses the following model as base: ```bibtex @misc{gpt-j, author = {Wang, Ben and Komatsuzaki, Aran}, title = {{GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model}}, howpublished = {\url{https://github.com/kingoflolz/mesh-transformer-jax}}, year = 2021, month = May } ``` ## Acknowledgements This project would not have been possible without compute generously provided by Google through the [TPU Research Cloud](https://sites.research.google/trc/), as well as the Cloud TPU team for providing early access to the [Cloud TPU VM](https://cloud.google.com/blog/products/compute/introducing-cloud-tpu-vms) Alpha.
[ -0.26953044533729553, -0.7629867196083069, 0.42891448736190796, -0.05202413350343704, -0.28406110405921936, -0.24737301468849182, -0.09632740169763565, -0.2732991576194763, -0.12893064320087433, 0.52788907289505, -0.5185591578483582, -0.40309542417526245, -0.7815777063369751, 0.12132133543491364, -0.45456811785697937, 1.3482543230056763, 0.298026442527771, -0.24602320790290833, 0.19016264379024506, 0.17971530556678772, -0.3466220796108246, -0.41979026794433594, -0.6655135154724121, -0.20624172687530518, 0.5658650994300842, -0.08205676823854446, 0.8198298811912537, 0.7527047991752625, 0.3535686135292053, 0.27302607893943787, -0.13619408011436462, -0.1447649896144867, -0.5407941341400146, -0.10500792413949966, -0.22015492618083954, -0.19247348606586456, -0.23546718060970306, -0.05077490210533142, 0.6515939831733704, 0.5504065155982971, 0.12163528800010681, 0.15657226741313934, 0.0458858460187912, 0.49498143792152405, -0.3443371057510376, 0.28260713815689087, -0.5413793921470642, -0.15366728603839874, -0.4222015142440796, 0.08922279626131058, -0.490308940410614, -0.2680523693561554, 0.2098190188407898, -0.45230117440223694, 0.601652979850769, 0.04922592267394066, 1.1231180429458618, 0.2972508668899536, -0.512682318687439, -0.22502478957176208, -0.6783164143562317, 0.7146596312522888, -0.8209276795387268, 0.35048940777778625, 0.3660913407802582, 0.11939842998981476, -0.2245352864265442, -0.7753022313117981, -0.6835907101631165, -0.30051136016845703, -0.20434093475341797, 0.3040890693664551, 0.16441713273525238, -0.002680031582713127, 0.43703415989875793, 0.36193278431892395, -0.9404076337814331, -0.12326595187187195, -0.5526683330535889, -0.1685991734266281, 0.6486519575119019, 0.13884328305721283, 0.2848283648490906, -0.6637265086174011, -0.3490029275417328, -0.33076211810112, -0.4391135573387146, 0.03540102019906044, 0.6200240850448608, 0.3180105984210968, -0.2798987925052643, 0.5921854376792908, 0.05259885638952255, 0.5857658982276917, 0.14915817975997925, -0.11043228954076767, 0.37173840403556824, -0.3817472755908966, -0.2735002934932709, -0.2284151017665863, 1.1610591411590576, 0.21525359153747559, 0.19223397970199585, -0.14984473586082458, -0.05500644072890282, 0.1282629668712616, 0.3894850015640259, -0.8038880825042725, -0.5111287236213684, 0.3170483112335205, -0.3968128561973572, -0.316224068403244, 0.10735269635915756, -0.6511544585227966, -0.383474737405777, -0.14814844727516174, 0.3464425802230835, -0.5045821666717529, -0.4700002670288086, -0.07103843986988068, -0.27401015162467957, 0.22644352912902832, 0.11616165190935135, -1.002545952796936, 0.03667512908577919, 0.36235731840133667, 0.7063988447189331, -0.01203400082886219, -0.30472150444984436, -0.184010848402977, 0.28943419456481934, -0.17671233415603638, 0.6635285019874573, -0.3670763373374939, -0.5162790417671204, -0.07024893909692764, 0.2604907155036926, -0.19622555375099182, -0.19490163028240204, 0.6715251803398132, -0.36057835817337036, 0.7879406809806824, -0.16816362738609314, -0.5445452332496643, -0.24083925783634186, -0.01871228963136673, -0.6491540670394897, 0.9238892197608948, 0.3590240776538849, -0.9008740782737732, 0.4483910799026489, -0.7058960199356079, -0.2543865442276001, 0.09656458348035812, -0.10831937938928604, -0.6220332384109497, -0.0872201919555664, 0.26884520053863525, 0.3611501157283783, -0.24345090985298157, 0.45750299096107483, -0.24671241641044617, -0.35951998829841614, 0.021436015143990517, -0.5661404132843018, 1.035508155822754, 0.27854257822036743, -0.5553589463233948, -0.11368943750858307, -0.6667774319648743, -0.10406237840652466, 0.3583255112171173, -0.14707307517528534, -0.20725476741790771, -0.0940951555967331, 0.2799552381038666, 0.20479202270507812, 0.1284256875514984, -0.3256930708885193, 0.4237700402736664, -0.4472910165786743, 0.28320324420928955, 0.6866036653518677, -0.046723078936338425, 0.440061092376709, -0.4421416223049164, 0.48185235261917114, -0.09146424382925034, 0.161490336060524, -0.13258787989616394, -0.7413689494132996, -0.7057933807373047, -0.0416790209710598, 0.41634514927864075, 0.554273247718811, -0.7592324614524841, 0.4319677948951721, -0.26919639110565186, -0.6834460496902466, -0.46457231044769287, -0.17653807997703552, 0.4262571930885315, 0.38103073835372925, 0.4316103756427765, -0.24283385276794434, -0.3570566177368164, -0.7726973295211792, -0.33273401856422424, -0.45940101146698, -0.13338395953178406, 0.1932300478219986, 0.41250595450401306, -0.3065963387489319, 0.8230698108673096, -0.36710697412490845, -0.15212304890155792, -0.2092246115207672, 0.3392711877822876, 0.5124643445014954, 0.44873929023742676, 0.6097747683525085, -0.8356658220291138, -0.5984846949577332, -0.08074591308832169, -0.5953271389007568, -0.295395165681839, -0.28189027309417725, -0.12760324776172638, 0.3058794140815735, 0.1102556362748146, -0.7868747711181641, 0.2852590084075928, 0.5987753868103027, -0.6087435483932495, 0.6160399913787842, 0.06686485558748245, 0.1602817177772522, -1.2659356594085693, 0.09080523252487183, 0.013225911185145378, -0.15451368689537048, -0.6036623120307922, -0.15347936749458313, -0.04052138328552246, 0.14238087832927704, -0.3977801203727722, 0.6432574987411499, -0.44509047269821167, 0.11256277561187744, -0.19120030105113983, 0.02188565954566002, -0.009031938388943672, 0.5488296747207642, -0.047042787075042725, 0.791020393371582, 0.3100382089614868, -0.6281489729881287, 0.16251307725906372, 0.31827205419540405, -0.11506504565477371, 0.16491329669952393, -0.6482166051864624, 0.17513787746429443, -0.17748025059700012, 0.2521268129348755, -0.9217151999473572, -0.30326804518699646, 0.5240915417671204, -0.6287673115730286, 0.36760950088500977, -0.55201256275177, -0.5014021396636963, -0.4942415654659271, -0.011949128471314907, 0.25310343503952026, 0.730472981929779, -0.3190619945526123, 0.6115279197692871, 0.3305356204509735, -0.3479042947292328, -0.6138901114463806, -0.5158823728561401, -0.12852557003498077, -0.3626362383365631, -0.5442183613777161, 0.365543007850647, -0.1748223900794983, 0.04166416451334953, -0.08991826325654984, 0.16339319944381714, -0.010105879977345467, -0.16682827472686768, 0.14076530933380127, 0.27936556935310364, 0.08546970039606094, -0.03646416217088699, 0.11583557724952698, -0.18412519991397858, 0.2670813202857971, -0.40909215807914734, 0.5608307123184204, -0.08320076763629913, -0.12459089607000351, -0.2229529768228531, 0.20469577610492706, 0.5169118046760559, 0.1910904049873352, 0.7286434173583984, 1.113311529159546, -0.22477556765079498, 0.129716694355011, -0.4391184151172638, -0.0896911695599556, -0.4722680449485779, 0.524841845035553, -0.33614876866340637, -0.7302407026290894, 0.48257067799568176, 0.32439470291137695, 0.24399720132350922, 0.8592932224273682, 0.6930007338523865, -0.006095923949033022, 1.1310464143753052, 0.471659392118454, -0.08560255914926529, 0.48145657777786255, -0.3224354684352875, 0.08361367136240005, -0.6925435662269592, -0.08074760437011719, -0.6121407747268677, -0.025956885889172554, -1.0020321607589722, -0.21125444769859314, 0.24404647946357727, -0.06354472786188126, -0.5855839252471924, 0.4919288754463196, -0.6202001571655273, 0.34268665313720703, 0.6377754211425781, -0.16834411025047302, 0.2182031124830246, -0.07712473720312119, -0.14130747318267822, -0.08839719742536545, -0.6542558670043945, -0.5353089570999146, 1.159453272819519, 0.40808138251304626, 0.6719289422035217, 0.3435191512107849, 0.6268507838249207, 0.22715367376804352, 0.34702643752098083, -0.4483315944671631, 0.2994525730609894, -0.30884790420532227, -0.8562204241752625, -0.32945623993873596, -0.5113313794136047, -1.0335884094238281, 0.26112478971481323, -0.08816719055175781, -0.7596489787101746, 0.06266865879297256, 0.126498281955719, -0.180352121591568, 0.2762714624404907, -0.9913579821586609, 0.8814904689788818, -0.09462485462427139, -0.36446619033813477, 0.20773382484912872, -0.77689129114151, 0.39808791875839233, -0.0072585600428283215, 0.19736050069332123, 0.056715626269578934, 0.14923803508281708, 0.663731038570404, -0.3483087718486786, 0.8968752026557922, -0.2622353732585907, -0.10786345601081848, 0.35433465242385864, -0.11848591268062592, 0.6413697600364685, 0.12190812826156616, 0.13440807163715363, 0.3027079105377197, -0.11075495183467865, -0.4512477219104767, -0.30478906631469727, 0.5905408263206482, -1.0457085371017456, -0.5813114047050476, -0.6184973120689392, -0.5705022811889648, 0.04486493766307831, 0.41143977642059326, 0.669302225112915, 0.3870496153831482, 0.1029084250330925, 0.08610139042139053, 0.5240507125854492, -0.2620619535446167, 0.5119094252586365, 0.1948053538799286, -0.3845786154270172, -0.42623665928840637, 0.786381721496582, 0.1382516473531723, 0.2739170789718628, 0.26287707686424255, 0.32423409819602966, -0.6742537021636963, -0.5752483010292053, -0.702429473400116, 0.3802623152732849, -0.45435595512390137, -0.05929725617170334, -0.8559765815734863, -0.39676833152770996, -0.6078941822052002, 0.03257598355412483, -0.25973063707351685, -0.3313204050064087, -0.25131088495254517, 0.01969563588500023, 0.39394524693489075, 0.8396990895271301, 0.224826380610466, 0.48162469267845154, -0.846197783946991, 0.3058641254901886, 0.23228046298027039, 0.24300506711006165, -0.2186623215675354, -0.8994250297546387, -0.2891458570957184, 0.07772549986839294, -0.4448656439781189, -0.7743914723396301, 0.6026391983032227, -0.06471224129199982, 0.41241225600242615, 0.19295278191566467, 0.0799122154712677, 0.4599335491657257, -0.4972415566444397, 1.1374839544296265, 0.07442039996385574, -0.7089954614639282, 0.4247142970561981, -0.981948733329773, 0.578294038772583, 0.28561949729919434, 0.4082038104534149, -0.4894726574420929, -0.7385691404342651, -1.0463837385177612, -0.9889054298400879, 0.6029545068740845, 0.4921039342880249, 0.21685542166233063, -0.022055733948946, 0.09178285300731659, 0.2885220944881439, 0.19898928701877594, -1.157332181930542, -0.3808780312538147, -0.5489941835403442, -0.3020594120025635, -0.012132547795772552, -0.10932565480470657, 0.1232122927904129, -0.11735071241855621, 0.8688976764678955, -0.13516181707382202, 0.7197341918945312, 0.10747940838336945, -0.1790669858455658, 0.051673661917448044, 0.22609008848667145, 0.51991206407547, 0.573662519454956, -0.2815641462802887, -0.25037455558776855, -0.02410706877708435, -0.8610276579856873, -0.10506788641214371, 0.4088504910469055, -0.4325929284095764, 0.1820664405822754, 0.23372945189476013, 0.9887925982475281, -0.24461907148361206, -0.23451267182826996, 0.47381091117858887, -0.1446700543165207, -0.39384523034095764, -0.6004710793495178, 0.2374003380537033, 0.005160899367183447, 0.19131498038768768, 0.41180384159088135, -0.037263572216033936, 0.27615055441856384, -0.20306746661663055, 0.09133889526128769, 0.1829538494348526, -0.15770772099494934, -0.25078409910202026, 0.9191967844963074, 0.1626962125301361, -0.1426054835319519, 0.7203590273857117, -0.39266160130500793, -0.39657607674598694, 0.5653468370437622, 0.6086421608924866, 0.9931350350379944, -0.060419730842113495, 0.2001478672027588, 0.5981167554855347, 0.48920702934265137, 0.0629444271326065, 0.10033766180276871, 0.3865273594856262, -0.664898693561554, -0.6188479065895081, -0.6130243539810181, -0.27716946601867676, 0.5609570741653442, -0.3974885642528534, 0.38712078332901, -0.45311930775642395, -0.3014160394668579, -0.18980735540390015, 0.08219683170318604, -0.784092366695404, 0.352211058139801, 0.11695707589387894, 0.5057646632194519, -0.9394661784172058, 0.7737779021263123, 0.7274036407470703, -0.685807466506958, -0.991011381149292, 0.12882940471172333, 0.028118113055825233, -0.5158484578132629, 0.25575870275497437, 0.2097531110048294, 0.2969372570514679, 0.2648785710334778, -0.5481262803077698, -0.8996297717094421, 1.0924628973007202, 0.13822205364704132, -0.5236995816230774, -0.17016571760177612, 0.13165625929832458, 0.4989122748374939, -0.12756294012069702, 0.7009543776512146, 0.4481559693813324, 0.582831084728241, -0.15979008376598358, -0.8725070357322693, -0.0016568981809541583, -0.456962525844574, 0.2018437534570694, 0.30669960379600525, -0.7822887897491455, 0.9106991291046143, -0.03200433775782585, -0.19062596559524536, 0.053549833595752716, 0.662136435508728, 0.24905531108379364, 0.07836946099996567, 0.5755588412284851, 0.5178695917129517, 0.670846700668335, -0.35189250111579895, 1.2501063346862793, -0.11473781615495682, 0.6452065110206604, 0.9525894522666931, 0.18091243505477905, 0.3784191608428955, 0.23497596383094788, -0.3652738332748413, 0.6417679786682129, 0.7277739644050598, -0.23971505463123322, 0.5903424620628357, -0.033178169280290604, -0.11134986579418182, 0.05805359408259392, 0.009465302340686321, -0.571657657623291, 0.2194267213344574, 0.3664631247520447, -0.5331367254257202, 0.12245866656303406, -0.1629905104637146, 0.20451754331588745, -0.20224596560001373, -0.18201091885566711, 0.6502801179885864, -0.009185860864818096, -0.5993213057518005, 0.6736481189727783, -0.14059406518936157, 0.6873458623886108, -0.617110013961792, 0.08944767713546753, -0.1413588672876358, 0.011221596039831638, -0.08747938275337219, -0.682586133480072, 0.22537706792354584, 0.006439640652388334, -0.4431192874908447, -0.21719378232955933, 0.7209370732307434, -0.5812909603118896, -0.5012471079826355, 0.1088513433933258, 0.5061387419700623, 0.3132215738296509, 0.10667409747838974, -0.8295732736587524, -0.12519709765911102, 0.1905726194381714, -0.4936909079551697, 0.31151533126831055, 0.4629126787185669, 0.0068113734014332294, 0.4965236186981201, 0.7341098785400391, 0.023762136697769165, 0.062375713139772415, 0.3836427628993988, 0.7137569189071655, -0.7479655742645264, -0.5838063359260559, -0.6775399446487427, 0.9297172427177429, -0.10830673575401306, -0.44043511152267456, 0.6384385824203491, 0.35372045636177063, 1.0346606969833374, -0.3132312595844269, 1.1921226978302002, -0.4030064344406128, 0.6398389935493469, -0.49964115023612976, 0.7992035746574402, -0.37411630153656006, 0.08725576102733612, -0.6193486452102661, -1.1640218496322632, -0.0679173693060875, 0.7101461887359619, -0.28379005193710327, 0.5475587844848633, 0.9827807545661926, 0.739998996257782, 0.012829289771616459, 0.12210583686828613, 0.21400868892669678, 0.3788495659828186, 0.3958956003189087, 0.5359933972358704, 0.6016117930412292, -0.8099742531776428, 0.6563411355018616, -0.2732965052127838, -0.12779629230499268, -0.06632594764232635, -0.9036839604377747, -0.9749671220779419, -0.5662021636962891, -0.25246721506118774, -0.5931992530822754, 0.07291565835475922, 0.7668889164924622, 0.4373113214969635, -0.7335860729217529, -0.06644478440284729, -0.22517994046211243, -0.028754541650414467, -0.15486280620098114, -0.3255021870136261, 0.3716011345386505, -0.20961029827594757, -1.1196895837783813, 0.12288419902324677, -0.15970686078071594, 0.30359360575675964, -0.2900756001472473, -0.08179223537445068, -0.135112464427948, -0.25518926978111267, 0.3778303265571594, 0.11411449313163757, -0.623002827167511, -0.4316438138484955, -0.01332862302660942, -0.2219347059726715, -0.1540844887495041, 0.4320875406265259, -0.6753171682357788, 0.28291550278663635, 0.5111915469169617, 0.631698727607727, 0.5100808143615723, 0.019408153370022774, 0.706628680229187, -0.6192297339439392, 0.03897584229707718, 0.17760848999023438, 0.30888086557388306, 0.3619617223739624, -0.5763095617294312, 0.5971901416778564, 0.5537148118019104, -0.888660192489624, -0.44269317388534546, 0.1337873339653015, -0.9128335118293762, -0.11532964557409286, 1.3865211009979248, 0.01737499050796032, -0.19390176236629486, -0.362369179725647, -0.25145676732063293, 0.41767168045043945, -0.529342770576477, 0.7775754928588867, 0.811024010181427, 0.11095208674669266, -0.2724066972732544, -0.7123165726661682, 0.4935106635093689, 0.3277679979801178, -0.5797988772392273, -0.0153999337926507, 0.5183946490287781, 0.293084055185318, 0.19794267416000366, 0.6555895209312439, -0.14362144470214844, 0.14556175470352173, 0.07337652891874313, 0.0823255106806755, -0.008673539385199547, -0.24299265444278717, -0.10982605069875717, 0.061213500797748566, -0.07113349437713623, 0.09968400746583939 ]
apple/mobilevit-small
apple
"2022-08-29T07:57:51Z"
22,492
28
transformers
[ "transformers", "pytorch", "tf", "coreml", "mobilevit", "image-classification", "vision", "dataset:imagenet-1k", "arxiv:2110.02178", "license:other", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-05-30T12:43:23Z"
--- license: other tags: - vision - image-classification datasets: - imagenet-1k widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg example_title: Tiger - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg example_title: Teapot - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg example_title: Palace --- # MobileViT (small-sized model) MobileViT model pre-trained on ImageNet-1k at resolution 256x256. It was introduced in [MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer](https://arxiv.org/abs/2110.02178) by Sachin Mehta and Mohammad Rastegari, and first released in [this repository](https://github.com/apple/ml-cvnets). The license used is [Apple sample code license](https://github.com/apple/ml-cvnets/blob/main/LICENSE). Disclaimer: The team releasing MobileViT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description MobileViT is a light-weight, low latency convolutional neural network that combines MobileNetV2-style layers with a new block that replaces local processing in convolutions with global processing using transformers. As with ViT (Vision Transformer), the image data is converted into flattened patches before it is processed by the transformer layers. Afterwards, the patches are "unflattened" back into feature maps. This allows the MobileViT-block to be placed anywhere inside a CNN. MobileViT does not require any positional embeddings. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=mobilevit) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import MobileViTFeatureExtractor, MobileViTForImageClassification from PIL import Image import requests url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) feature_extractor = MobileViTFeatureExtractor.from_pretrained("apple/mobilevit-small") model = MobileViTForImageClassification.from_pretrained("apple/mobilevit-small") inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` Currently, both the feature extractor and model support PyTorch. ## Training data The MobileViT model was pretrained on [ImageNet-1k](https://huggingface.co/datasets/imagenet-1k), a dataset consisting of 1 million images and 1,000 classes. ## Training procedure ### Preprocessing Training requires only basic data augmentation, i.e. random resized cropping and horizontal flipping. To learn multi-scale representations without requiring fine-tuning, a multi-scale sampler was used during training, with image sizes randomly sampled from: (160, 160), (192, 192), (256, 256), (288, 288), (320, 320). At inference time, images are resized/rescaled to the same resolution (288x288), and center-cropped at 256x256. Pixels are normalized to the range [0, 1]. Images are expected to be in BGR pixel order, not RGB. ### Pretraining The MobileViT networks are trained from scratch for 300 epochs on ImageNet-1k on 8 NVIDIA GPUs with an effective batch size of 1024 and learning rate warmup for 3k steps, followed by cosine annealing. Also used were label smoothing cross-entropy loss and L2 weight decay. Training resolution varies from 160x160 to 320x320, using multi-scale sampling. ## Evaluation results | Model | ImageNet top-1 accuracy | ImageNet top-5 accuracy | # params | URL | |------------------|-------------------------|-------------------------|-----------|-------------------------------------------------| | MobileViT-XXS | 69.0 | 88.9 | 1.3 M | https://huggingface.co/apple/mobilevit-xx-small | | MobileViT-XS | 74.8 | 92.3 | 2.3 M | https://huggingface.co/apple/mobilevit-x-small | | **MobileViT-S** | **78.4** | **94.1** | **5.6 M** | https://huggingface.co/apple/mobilevit-small | ### BibTeX entry and citation info ```bibtex @inproceedings{vision-transformer, title = {MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer}, author = {Sachin Mehta and Mohammad Rastegari}, year = {2022}, URL = {https://arxiv.org/abs/2110.02178} } ```
[ -0.6638107299804688, -0.22850167751312256, -0.24491403996944427, -0.040103890001773834, -0.5376487970352173, -0.3951890170574188, 0.051143452525138855, -0.44421279430389404, 0.5932704210281372, 0.1448388546705246, -0.473877489566803, -0.3124217987060547, -0.5199660062789917, -0.3214660584926605, -0.13995853066444397, 0.7870739698410034, 0.13437408208847046, -0.015198783949017525, -0.2793920338153839, -0.4723457396030426, -0.4024670422077179, -0.3169988691806793, -0.558102011680603, -0.1720372587442398, 0.5387223958969116, 0.6735175848007202, 0.7762939929962158, 0.5183331966400146, 0.7628856897354126, 0.26870444416999817, 0.019877295941114426, 0.015559934079647064, -0.2516530752182007, -0.35767096281051636, 0.31602877378463745, -0.32416102290153503, -0.34431037306785583, 0.28644585609436035, 0.24008801579475403, 0.14537835121154785, -0.12804806232452393, 0.5544751286506653, 0.006089449860155582, 0.8009889721870422, -0.6269444823265076, -0.148125559091568, -0.5578046441078186, 0.11246597021818161, -0.09537164121866226, 0.10596439242362976, -0.14541077613830566, -0.1942475140094757, 0.11255338042974472, -0.46586838364601135, 0.22516286373138428, -0.011930062435567379, 1.2037670612335205, 0.36405912041664124, -0.4582678973674774, 0.12123403698205948, -0.37530258297920227, 0.5374073386192322, -0.349092960357666, 0.4100053012371063, 0.3255528211593628, 0.41678109765052795, 0.27954763174057007, -0.9755851030349731, -0.5662166476249695, -0.12887011468410492, 0.04359860345721245, 0.2878904640674591, -0.29358476400375366, -0.13544565439224243, 0.27618178725242615, 0.370776504278183, -0.6978929042816162, -0.11117352545261383, -0.6266802549362183, -0.25153106451034546, 0.752438485622406, -0.1164560541510582, 0.3428552448749542, -0.2863563299179077, -0.5696282386779785, -0.2204584926366806, -0.5530471205711365, 0.5525854229927063, -0.13933692872524261, -0.18668942153453827, -0.5487791299819946, 0.5448957681655884, -0.1496639996767044, 0.5871641635894775, 0.13374537229537964, -0.25508686900138855, 0.5926088094711304, -0.38391682505607605, -0.5843896269798279, 0.03222265839576721, 1.000806450843811, 0.6576082706451416, 0.21972493827342987, 0.18028515577316284, -0.05263180658221245, -0.08981390297412872, 0.2977182865142822, -1.2260864973068237, -0.13458074629306793, -0.05735933408141136, -0.9303168654441833, -0.5117848515510559, 0.10880530625581741, -0.5788840651512146, -0.13946005702018738, -0.14859074354171753, 0.4686090052127838, -0.31897562742233276, -0.23896187543869019, -0.11860599368810654, 0.05499245598912239, 0.6097865700721741, 0.24923717975616455, -0.8059806227684021, 0.17896951735019684, 0.020306000486016273, 1.145444393157959, -0.04112884774804115, -0.12975598871707916, -0.11205126345157623, -0.4349094331264496, -0.2169182002544403, 0.4347912669181824, -0.1295424848794937, -0.4097164273262024, -0.37768641114234924, 0.2660464942455292, -0.30446699261665344, -0.38780584931373596, 0.5992174744606018, -0.37760505080223083, -0.07596703618764877, -0.07045726478099823, 0.17152583599090576, -0.3501356840133667, 0.3101136386394501, -0.3949362635612488, 1.1260100603103638, 0.03234115242958069, -0.9464568495750427, 0.38966768980026245, -0.4609563946723938, -0.37305158376693726, -0.17691968381404877, 0.001940927468240261, -0.777134358882904, -0.04712173342704773, 0.25375887751579285, 0.6938179731369019, -0.2750551104545593, -0.11515253782272339, -0.2608942985534668, -0.39456456899642944, 0.06621867418289185, -0.2924126088619232, 0.9319525957107544, 0.33679264783859253, -0.4668237268924713, 0.04824036732316017, -0.8216404318809509, 0.15935595333576202, 0.3123874366283417, -0.0685248151421547, -0.17303356528282166, -0.23162545263767242, 0.016216617077589035, 0.48531749844551086, 0.07105107605457306, -0.5792530179023743, 0.3868470788002014, -0.0846572294831276, 0.6770757436752319, 0.2510923743247986, -0.059848155826330185, 0.540488600730896, -0.24758417904376984, 0.3913276195526123, 0.010850991122424603, 0.648163378238678, -0.2852248549461365, -0.6617168188095093, -0.8264665603637695, -0.30554819107055664, 0.2727034091949463, 0.727648913860321, -0.807723879814148, 0.18329964578151703, -0.5825154185295105, -0.9130547642707825, -0.20879803597927094, 0.002546093426644802, 0.37859079241752625, 0.4236691892147064, 0.3764369487762451, -0.5184547901153564, -0.5137574672698975, -1.0419195890426636, 0.02924206480383873, 0.027002988383173943, 0.1700046956539154, 0.5511950254440308, 0.7804506421089172, -0.3504670262336731, 0.9046615362167358, -0.32205814123153687, -0.2827723026275635, 0.05170438438653946, -0.025805052369832993, 0.05358758196234703, 0.6767178773880005, 0.7615693211555481, -1.1055034399032593, -0.47572919726371765, 0.02773488685488701, -0.8873439431190491, 0.3702564239501953, 0.022027242928743362, 0.0850011557340622, -0.16532711684703827, 0.4814739227294922, -0.8605660200119019, 0.8834788799285889, 0.4657217860221863, -0.13622243702411652, 0.45401570200920105, -0.02636326476931572, 0.11840574443340302, -1.240685224533081, 0.04869522154331207, 0.3392476737499237, -0.3315681517124176, -0.41021159291267395, -0.0679548978805542, 0.2400439828634262, -0.24884925782680511, -0.7925025820732117, 0.4624233543872833, -0.5268246531486511, -0.11960291862487793, -0.0937628448009491, -0.28985360264778137, -0.14945313334465027, 0.45835137367248535, -0.06746061146259308, 0.8370757699012756, 0.5500005483627319, -0.5348870158195496, 0.4527260661125183, 0.22948212921619415, -0.36562615633010864, 0.4390299916267395, -0.7136288285255432, 0.0011833644239231944, 0.03905313462018967, 0.3602443039417267, -0.7997620105743408, -0.30747097730636597, 0.40564262866973877, -0.7867874503135681, 0.23921002447605133, -0.5680611729621887, -0.1627815067768097, -0.7179548144340515, -0.36405304074287415, 0.5554779767990112, 0.6763361096382141, -0.5696282386779785, 0.594605028629303, 0.23864249885082245, 0.22066468000411987, -0.6363607048988342, -0.8672797083854675, -0.06571430712938309, -0.222333624958992, -0.8894557952880859, 0.4854345917701721, 0.22941946983337402, 0.06784231960773468, -0.11638227105140686, -0.1327931135892868, -0.1389775574207306, -0.1607062965631485, 0.8846960663795471, 0.3773694932460785, -0.29597702622413635, 0.007721221540123224, -0.24452103674411774, -0.03579840809106827, -0.15821152925491333, -0.430960088968277, 0.3404066562652588, -0.5482587814331055, -0.14608313143253326, -0.7585507035255432, -0.21957506239414215, 0.8385120034217834, -0.3790692389011383, 0.6804858446121216, 0.9545690417289734, -0.34905168414115906, 0.32035350799560547, -0.511695921421051, -0.12233404815196991, -0.5094708800315857, 0.05192787945270538, -0.5667745471000671, -0.586913526058197, 0.5920244455337524, 0.0658593699336052, -0.1617932915687561, 0.6368597745895386, 0.41472575068473816, -0.15284009277820587, 0.7981040477752686, 0.5269538164138794, 0.02963799610733986, 0.7389829754829407, -0.7553536891937256, -0.08932244777679443, -0.9107410907745361, -0.6097789406776428, -0.2581636607646942, -0.42115363478660583, -0.8433058857917786, -0.5476444959640503, 0.28192293643951416, 0.10285814106464386, -0.4354526996612549, 0.4578274190425873, -0.7784545421600342, 0.25139766931533813, 0.6531862616539001, 0.47255128622055054, -0.205619677901268, 0.42855510115623474, -0.4424630403518677, -0.024761386215686798, -0.7492724657058716, -0.26516544818878174, 0.9772982001304626, 0.3196498155593872, 0.715055525302887, -0.06313783675432205, 0.4621005654335022, 0.1314714401960373, 0.2738962173461914, -0.8108254075050354, 0.5036242008209229, -0.054113246500492096, -0.5747432112693787, 0.014143431559205055, -0.2560838758945465, -0.9155184030532837, 0.4068714380264282, -0.4859189987182617, -0.8077432513237, 0.6570877432823181, 0.285584032535553, -0.3148462772369385, 0.46180352568626404, -0.9996584057807922, 0.9930827617645264, -0.2911025583744049, -0.6668757200241089, 0.21577788889408112, -0.9995894432067871, 0.42283934354782104, 0.2510771155357361, 0.09613747894763947, 0.06277130544185638, 0.17534765601158142, 0.8041996955871582, -0.7832213044166565, 0.8728822469711304, -0.382267564535141, 0.5579257011413574, 0.7952393889427185, -0.14812318980693817, 0.5312409400939941, 0.12812387943267822, 0.10526959598064423, 0.29707416892051697, 0.02674894779920578, -0.5162373185157776, -0.39557093381881714, 0.601340651512146, -0.9485183954238892, -0.2758624255657196, -0.5058948397636414, -0.06510302424430847, 0.0908982902765274, 0.2684015929698944, 0.8419173359870911, 0.5419940948486328, -0.056609299033880234, 0.4963843524456024, 0.6554179787635803, -0.16185729205608368, 0.5721575021743774, -0.1837618201971054, -0.15503637492656708, -0.46717631816864014, 1.1667592525482178, 0.04076802730560303, 0.03709326311945915, 0.1445641815662384, 0.1639072149991989, -0.12756496667861938, -0.44823992252349854, -0.740237832069397, 0.02495349757373333, -0.4428403079509735, -0.403227299451828, -0.6094920635223389, -0.4160539209842682, -0.2959567904472351, -0.1562749594449997, -0.6918174624443054, -0.35701024532318115, -0.5177790522575378, 0.14691020548343658, 0.37303006649017334, 0.39999914169311523, -0.011080275289714336, 0.7535597085952759, -0.7176979780197144, 0.13870421051979065, 0.4761933982372284, 0.15452516078948975, -0.12353180348873138, -0.6732197403907776, -0.24888008832931519, 0.2276810109615326, -0.5464887619018555, -0.532645046710968, 0.42579057812690735, 0.18705224990844727, 0.2704438865184784, 0.554074227809906, -0.31927740573883057, 0.7122313976287842, -0.23981858789920807, 0.9277358055114746, 0.8816459774971008, -0.6379649043083191, 0.5750932693481445, -0.245289608836174, 0.2850268483161926, 0.5277982354164124, 0.4722727835178375, -0.3059239387512207, 0.5124297142028809, -0.7254350781440735, -0.6386803984642029, 0.4302949905395508, 0.23789457976818085, 0.09135621786117554, 0.4744596779346466, 0.6148731112480164, -0.19624167680740356, 0.09601651877164841, -0.9121894240379333, -0.34413301944732666, -0.7591217756271362, -0.18541213870048523, -0.13666826486587524, -0.19916006922721863, 0.25216159224510193, -0.8729358315467834, 0.42825281620025635, -0.025117237120866776, 0.6471936702728271, 0.37551841139793396, -0.26724302768707275, 0.25417089462280273, -0.21482273936271667, 0.8961451649665833, 0.444044828414917, -0.14557835459709167, 0.11156652867794037, 0.16670271754264832, -0.9624991416931152, 0.2763487994670868, -0.016749970614910126, -0.3529367744922638, -0.08154410123825073, 0.179115891456604, 1.1037143468856812, -0.0652683824300766, -0.10000168532133102, 1.0140845775604248, -0.28482571244239807, -0.5381632447242737, -0.3409965932369232, 0.035337671637535095, -0.021006328985095024, 0.213531494140625, 0.4055112302303314, 0.7183102369308472, 0.10709924250841141, -0.2617960274219513, 0.23859409987926483, 0.46318745613098145, -0.7669451236724854, -0.30844220519065857, 0.7861988544464111, 0.14654241502285004, -0.1729779690504074, 0.5859090685844421, -0.19860804080963135, -0.5858701467514038, 0.9171834588050842, 0.30911731719970703, 0.6760034561157227, -0.306227445602417, 0.2654368281364441, 0.7457139492034912, 0.5260598063468933, -0.08537600934505463, 0.17846690118312836, -0.032812077552080154, -0.662364661693573, -0.1861708164215088, -0.43844690918922424, 0.12206516414880753, 0.060277096927165985, -0.6528060436248779, 0.26328423619270325, -0.45893049240112305, -0.4114070236682892, 0.1605660617351532, 0.05717337504029274, -0.8661283254623413, 0.6496164798736572, 0.056647926568984985, 1.0914627313613892, -0.6128844022750854, 0.9695709943771362, 0.881626546382904, -0.5055144429206848, -1.0213483572006226, -0.16090646386146545, 0.0437299869954586, -0.9185059070587158, 0.7481760382652283, 0.5302485227584839, -0.17123326659202576, 0.14289028942584991, -0.8353291153907776, -0.717911422252655, 1.4038313627243042, 0.047218307852745056, -0.5492434501647949, 0.16063560545444489, -0.1277541220188141, 0.03623964637517929, -0.5304830074310303, 0.5309003591537476, 0.08850076794624329, 0.2126627117395401, 0.41241100430488586, -0.7347156405448914, -0.04893483966588974, -0.4402756094932556, 0.18975304067134857, 0.07797287404537201, -1.0430186986923218, 0.7334240078926086, -0.4910493493080139, 0.07403428852558136, -0.0909983292222023, 0.5027397274971008, -0.24695594608783722, 0.4873584806919098, 0.4817740321159363, 0.6863366961479187, 0.5223455429077148, -0.1300598680973053, 1.0247383117675781, 0.018887951970100403, 0.40118008852005005, 0.7010839581489563, 0.3617706596851349, 0.6832361221313477, 0.4873926043510437, 0.01423818338662386, 0.35479986667633057, 1.152464509010315, -0.21601596474647522, 0.5679707527160645, -0.02569415420293808, -0.09749846905469894, -0.1097102165222168, 0.056308723986148834, -0.6137651801109314, 0.6201244592666626, 0.24804116785526276, -0.5525091886520386, 0.21892860531806946, 0.5484725832939148, -0.23365724086761475, -0.6071624755859375, -0.5577608346939087, 0.42859184741973877, 0.15326903760433197, -0.5297563076019287, 0.8827643990516663, -0.0036804922856390476, 0.8095703125, -0.24530063569545746, 0.3105996549129486, -0.31667008996009827, 0.09494883567094803, -0.4415961503982544, -0.49489447474479675, 0.16139082610607147, -0.18021923303604126, -0.13065651059150696, -0.025927729904651642, 1.0822385549545288, 0.15680645406246185, -0.41610872745513916, 0.03317006304860115, 0.30747783184051514, 0.20347730815410614, -0.14881065487861633, -0.945493221282959, 0.14630332589149475, 0.22403931617736816, -0.5698290467262268, 0.2142464816570282, 0.08497659116983414, -0.14282259345054626, 0.8537300825119019, 0.6822819709777832, -0.14651501178741455, 0.379524290561676, -0.47416555881500244, 1.0110911130905151, -0.649501383304596, -0.29673752188682556, -0.7825484275817871, 0.6101998090744019, -0.28387880325317383, -0.4827544093132019, 0.5147690773010254, 0.7430495023727417, 0.7587201595306396, -0.08964329957962036, 0.6886965036392212, -0.35978439450263977, -0.08263001590967178, -0.3540725111961365, 0.602059006690979, -0.993922770023346, -0.11609449237585068, 0.03180355578660965, -0.7630878686904907, -0.29541653394699097, 1.0005639791488647, -0.39586353302001953, 0.22083185613155365, 0.5449994206428528, 0.8549094796180725, -0.570810079574585, -0.01844889111816883, 0.254652202129364, -0.06796958297491074, -0.12301605939865112, 0.2932248115539551, 0.585551381111145, -0.9777472615242004, 0.7328321933746338, -0.42772912979125977, -0.3233470022678375, -0.6347436904907227, -0.6227244138717651, -0.8521347045898438, -0.6007435321807861, -0.40219900012016296, -0.561836302280426, -0.00035319235757924616, 0.827781617641449, 1.2763346433639526, -0.4371125102043152, -0.034624695777893066, -0.11732035875320435, -0.029624655842781067, -0.10279588401317596, -0.17071497440338135, 0.4505096673965454, 0.29453474283218384, -0.2990454137325287, -0.08602212369441986, -0.010185313411056995, 0.3864699900150299, 0.1313054859638214, -0.2337842583656311, -0.16781553626060486, -0.23264312744140625, 0.7878167033195496, 0.5541725158691406, -0.415313720703125, -0.2100876271724701, 0.07540712505578995, -0.38390299677848816, 0.38299527764320374, 0.7486539483070374, -0.5719989538192749, 0.3031439483165741, 0.27299967408180237, 0.4748605787754059, 1.0498204231262207, 0.05605049058794975, -0.21923357248306274, -0.5965235829353333, 0.5901495814323425, -0.06770499795675278, 0.321323961019516, 0.21899916231632233, -0.14607061445713043, 0.5766676068305969, 0.5024960041046143, -0.5954809784889221, -0.6608574986457825, 0.014428352005779743, -1.414933681488037, -0.01777413673698902, 1.0262304544448853, -0.061870817095041275, -0.47334474325180054, 0.3510918617248535, -0.2202347218990326, 0.23227182030677795, -0.24250927567481995, 0.16059309244155884, 0.22326062619686127, 0.011664259247481823, -0.7140447497367859, -0.878933846950531, 0.43147140741348267, 0.023538094013929367, -0.6052237153053284, -0.7403867244720459, 0.12684723734855652, 0.5811024904251099, 0.32631605863571167, 0.5547865629196167, -0.05163570120930672, 0.3362204134464264, 0.2039804458618164, 0.4588944613933563, -0.2636662721633911, -0.14598925411701202, -0.11561670154333115, 0.003977843560278416, -0.19941358268260956, -0.8092484474182129 ]
cag/anything-v3-1
cag
"2023-02-18T09:57:07Z"
22,401
71
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "en", "dataset:cag/anything-v3-1-dataset", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-01-29T00:20:42Z"
--- license: creativeml-openrail-m thumbnail: "https://huggingface.co/cag/anything-v3-1/resolve/main/example-images/thumbnail.png" language: - en pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers inference: true widget: - text: >- masterpiece, best quality, 1girl, brown hair, green eyes, colorful, autumn, cumulonimbus clouds, lighting, blue sky, falling leaves, garden example_title: example 1girl - text: >- masterpiece, best quality, 1boy, medium hair, blonde hair, blue eyes, bishounen, colorful, autumn, cumulonimbus clouds, lighting, blue sky, falling leaves, garden example_title: example 1boy datasets: - cag/anything-v3-1-dataset library_name: diffusers --- # Anything V3.1 ![Anime Girl](https://huggingface.co/cag/anything-v3-1/resolve/main/example-images/thumbnail.png) Anything V3.1 is a third-party continuation of a latent diffusion model, Anything V3.0. This model is claimed to be a better version of Anything V3.0 with a fixed VAE model and a fixed CLIP position id key. The CLIP reference was taken from Stable Diffusion V1.5. The VAE was swapped using Kohya's merge-vae script and the CLIP was fixed using Arena's stable-diffusion-model-toolkit webui extensions. Anything V3.2 is supposed to be a resume training of Anything V3.1. The current model has been fine-tuned with a learning rate of 2.0e-6, 50 epochs, and 4 batch sizes on datasets collected from many sources, with 1/4 of them being synthetic datasets. The dataset has been preprocessed using the Aspect Ratio Bucketing Tool so that it can be converted to latents and trained at non-square resolutions. This model is supposed to be a test model to see how the clip fix affects training. Like other anime-style Stable Diffusion models, it also supports Danbooru tags to generate images. e.g. **_1girl, white hair, golden eyes, beautiful eyes, detail, flower meadow, cumulonimbus clouds, lighting, detailed sky, garden_** - Use it with the [`Automatic1111's Stable Diffusion Webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui) see: ['how-to-use'](#how-to-use) - Use it with 🧨 [`diffusers`](##🧨Diffusers) # Model Details - **Currently maintained by:** Cagliostro Research Lab - **Model type:** Diffusion-based text-to-image generation model - **Model Description:** This is a model that can be used to generate and modify anime-themed images based on text prompts. - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) - **Finetuned from model:** Anything V3.1 ## How-to-Use - Download `Anything V3.1` [here](https://huggingface.co/cag/anything-v3-1/resolve/main/anything-v3-1.safetensors), or `Anything V3.2` [here](https://huggingface.co/cag/anything-v3-1/resolve/main/anything-v3-2.safetensors), all model are in `.safetensors` format. - You need to adjust your prompt using aesthetic tags to get better result, you can use any generic negative prompt or use the following suggested negative prompt to guide the model towards high aesthetic generationse: ``` lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry ``` - And, the following should also be prepended to prompts to get high aesthetic results: ``` masterpiece, best quality, illustration, beautiful detailed, finely detailed, dramatic light, intricate details ``` ## 🧨Diffusers This model can be used just like any other Stable Diffusion model. For more information, please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](). Pretrained model currently based on Anything V3.1. You should install dependencies below in order to running the pipeline ```bash pip install diffusers transformers accelerate scipy safetensors ``` Running the pipeline (if you don't swap the scheduler it will run with the default DDIM, in this example we are swapping it to DPMSolverMultistepScheduler): ```python import torch from torch import autocast from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler model_id = "cag/anything-v3-1" # Use the DPMSolverMultistepScheduler (DPM-Solver++) scheduler here instead pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config) pipe = pipe.to("cuda") prompt = "masterpiece, best quality, high quality, 1girl, solo, sitting, confident expression, long blonde hair, blue eyes, formal dress" negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry" with autocast("cuda"): image = pipe(prompt, negative_prompt=negative_prompt, width=512, height=728, guidance_scale=12, num_inference_steps=50).images[0] image.save("anime_girl.png") ``` ## Limitation This model is overfitted and cannot follow prompts well, even after the text encoder has been fixed. This leads to laziness in prompting, as you will only get good results by typing 1girl. Additionally, this model is anime-based and biased towards anime female characters. It is difficult to generate masculine male characters without providing specific prompts. Furthermore, not much has changed compared to the Anything V3.0 base model, as it only involved swapping the VAE and CLIP models and then fine-tuning for 50 epochs with small scale datasets. ## Example Here is some cherrypicked samples and comparison between available models ![Anime Girl](https://huggingface.co/cag/anything-v3-1/resolve/main/example-images/1girl.png) ![Anime Boy](https://huggingface.co/cag/anything-v3-1/resolve/main/example-images/1boy.png) ![Aesthetic](https://huggingface.co/cag/anything-v3-1/resolve/main/example-images/aesthetic.png) ## License This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage. The CreativeML OpenRAIL License specifies: 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content 2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully) [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license) ## Credit Public domain.
[ -0.3662063777446747, -0.9443423748016357, 0.48189276456832886, 0.40429452061653137, -0.19997146725654602, -0.46179404854774475, 0.20427006483078003, -0.3232928514480591, 0.23544427752494812, 0.46002504229545593, -0.6571762561798096, -0.5972723364830017, -0.6527889370918274, 0.033028993755578995, -0.3202173709869385, 0.960480809211731, -0.26343637704849243, -0.06534180790185928, -0.046546611934900284, 0.11798661202192307, -0.5880958437919617, -0.06097831577062607, -0.924019455909729, -0.3196616470813751, 0.45693016052246094, 0.19001024961471558, 0.6599597334861755, 0.764132559299469, 0.20333634316921234, 0.2905465364456177, -0.24962419271469116, -0.06035415455698967, -0.602954089641571, -0.04559378698468208, 0.012070003896951675, -0.34568625688552856, -0.7885107398033142, 0.16793829202651978, 0.5299071669578552, 0.26977694034576416, -0.2881721556186676, -0.016571318730711937, -0.012485784478485584, 0.502829909324646, -0.4043982923030853, 0.0591803714632988, -0.28600987792015076, 0.0965576022863388, -0.20645378530025482, 0.09618744999170303, -0.22453679144382477, -0.3289703130722046, 0.15301541984081268, -0.8292111158370972, 0.20443348586559296, -0.016508933156728745, 1.2801952362060547, 0.31047943234443665, -0.22058673202991486, 0.008824174292385578, -0.4569711685180664, 0.6167425513267517, -0.7734327912330627, 0.22157034277915955, 0.26204898953437805, 0.24470877647399902, 0.03549357131123543, -0.9486191272735596, -0.5678994655609131, 0.0030757670756429434, -0.021583067253232002, 0.24578753113746643, -0.5614041686058044, -0.09226949512958527, 0.27714091539382935, 0.4291621148586273, -0.6066714525222778, 0.09432005882263184, -0.4254496991634369, -0.030461212620139122, 0.5911172032356262, 0.2616880238056183, 0.5214400291442871, -0.2770150899887085, -0.4322478473186493, -0.15700294077396393, -0.6610239744186401, 0.0105513921007514, 0.3844169080257416, -0.10637182742357254, -0.5963510870933533, 0.5360998511314392, 0.014141684398055077, 0.5772222876548767, 0.3718283772468567, -0.11938857287168503, 0.2774870693683624, -0.013190824538469315, -0.36944666504859924, -0.2796798646450043, 0.960180401802063, 0.48149019479751587, -0.0368434377014637, 0.11271511018276215, -0.038159050047397614, 0.051576223224401474, 0.13566376268863678, -1.2097678184509277, -0.3988427519798279, 0.3686451017856598, -0.583484411239624, -0.520305335521698, -0.36902764439582825, -0.7370546460151672, -0.18626029789447784, -0.10226799547672272, 0.4913789927959442, -0.6024927496910095, -0.48635953664779663, 0.1547989547252655, -0.38390204310417175, 0.0679100826382637, 0.47500157356262207, -0.7544428706169128, -0.02819141000509262, 0.27648869156837463, 0.9721419811248779, -0.060119420289993286, -0.1021033301949501, -0.052079252898693085, -0.10992980003356934, -0.22467006742954254, 0.6721436977386475, -0.2792048752307892, -0.5107537508010864, -0.315621018409729, 0.2744956910610199, -0.10037866979837418, -0.4141469895839691, 0.5996015071868896, -0.33345910906791687, 0.3557070791721344, -0.06892283260822296, -0.5778105854988098, -0.27046892046928406, -0.08500292897224426, -0.5272868275642395, 0.9317867755889893, 0.40754222869873047, -0.8787024617195129, 0.19648608565330505, -0.7661648988723755, -0.032007716596126556, -0.023028099909424782, 0.10741256177425385, -0.6825150847434998, -0.1379748433828354, 0.05861404165625572, 0.5084200501441956, -0.09495027363300323, 0.23036932945251465, -0.5542448163032532, -0.13802982866764069, 0.03753086179494858, -0.39272525906562805, 1.1654210090637207, 0.291668564081192, -0.3845978081226349, 0.15067730844020844, -0.6000028252601624, -0.28727269172668457, 0.4285704791545868, 0.11278615891933441, -0.06177395209670067, -0.19709700345993042, 0.25527364015579224, 0.24334858357906342, 0.24014490842819214, -0.5840447545051575, 0.3275688588619232, -0.3434985876083374, 0.5628270506858826, 0.8410394787788391, 0.08613696694374084, 0.5780752897262573, -0.5196954011917114, 0.619163990020752, 0.20913009345531464, 0.32985806465148926, -0.11988887190818787, -0.8145176768302917, -0.8481925129890442, -0.5274057388305664, 0.21204429864883423, 0.43374159932136536, -0.7189474701881409, 0.34141287207603455, -0.007031681947410107, -0.8942185044288635, -0.5339690446853638, -0.03046180121600628, 0.2881070375442505, 0.7541182041168213, 0.22281436622142792, -0.30611491203308105, -0.4425429105758667, -0.8834540247917175, 0.25411272048950195, -0.09427700191736221, -0.14790062606334686, 0.1880277842283249, 0.54258131980896, -0.2535583972930908, 0.7510169744491577, -0.676848828792572, -0.3122650980949402, -0.116022489964962, 0.15671366453170776, 0.2965361773967743, 0.7026176452636719, 0.8437040448188782, -0.8382124304771423, -0.5718046426773071, -0.23880048096179962, -0.8109065890312195, -0.2513224184513092, 0.1840907782316208, -0.42102643847465515, 0.17355483770370483, 0.16721144318580627, -0.7658983469009399, 0.531524121761322, 0.5982534289360046, -0.5973101258277893, 0.5676507353782654, -0.1619730144739151, 0.11355394870042801, -1.1316475868225098, 0.2872225046157837, 0.3068822920322418, -0.4169057607650757, -0.5199419260025024, 0.23803427815437317, -0.08439479768276215, -0.22956761717796326, -0.6810898780822754, 1.0166785717010498, -0.13188956677913666, 0.45995500683784485, -0.33913251757621765, 0.061750926077365875, 0.3363186717033386, 0.43390434980392456, 0.18680217862129211, 0.5359999537467957, 0.8394675254821777, -0.6601007580757141, 0.29217562079429626, 0.48980820178985596, -0.098385289311409, 0.753002941608429, -0.8633944392204285, 0.028871063143014908, -0.34295880794525146, 0.28604796528816223, -0.9468042254447937, -0.36927470564842224, 0.6769136190414429, -0.49271324276924133, 0.3398102819919586, -0.18237434327602386, -0.40714138746261597, -0.3004310131072998, -0.16936597228050232, 0.1790454387664795, 0.9145056009292603, -0.48034948110580444, 0.6867547035217285, 0.2838110029697418, -0.06130014359951019, -0.31348341703414917, -0.589039146900177, -0.2883221209049225, -0.5115709900856018, -0.8413017988204956, 0.5723617076873779, -0.25472578406333923, -0.060682374984025955, 0.08785981684923172, 0.12029211968183517, -0.19511829316616058, 0.00031880682217888534, 0.30286502838134766, 0.4662233591079712, -0.04349172115325928, -0.3517466187477112, 0.16662797331809998, -0.17659521102905273, -0.087495818734169, -0.08307216316461563, 0.46583572030067444, 0.05157768353819847, -0.055329713970422745, -0.7720587253570557, 0.23118439316749573, 0.40270373225212097, 0.07852941751480103, 0.6402591466903687, 0.9188888072967529, -0.4435969293117523, -0.015558562241494656, -0.444724977016449, -0.15346767008304596, -0.4987541437149048, 0.20624127984046936, -0.3242109715938568, -0.6531150341033936, 0.5433406233787537, 0.2693638503551483, 0.28458738327026367, 0.6218604445457458, 0.6224996447563171, -0.1861482858657837, 1.2766358852386475, 0.6625303030014038, 0.20098818838596344, 0.5626702308654785, -0.5671700239181519, -0.10069601982831955, -0.8628396391868591, -0.3234548568725586, -0.29971587657928467, -0.37676969170570374, -0.4645977318286896, -0.3818359375, 0.3712663948535919, 0.290598601102829, -0.4018231928348541, 0.568042516708374, -0.5879614949226379, 0.19447527825832367, 0.21564024686813354, 0.3131164312362671, 0.1874048262834549, -0.05557231605052948, 0.12967680394649506, -0.22068709135055542, -0.7283703684806824, -0.44154271483421326, 0.826589822769165, 0.47541385889053345, 0.6761640310287476, 0.10221802443265915, 0.5686531662940979, 0.13127540051937103, 0.5043715834617615, -0.5085732340812683, 0.46541813015937805, -0.13481277227401733, -0.8315470814704895, 0.10890627652406693, -0.47907108068466187, -0.9650317430496216, 0.1738581657409668, -0.22525744140148163, -0.7381158471107483, 0.3537212014198303, 0.2102942317724228, -0.26440101861953735, 0.36553406715393066, -0.7384774684906006, 0.9492354393005371, 0.0014246504288166761, -0.5892851948738098, 0.17042404413223267, -0.4697299301624298, 0.42020460963249207, 0.16205492615699768, 0.0017800935311242938, -0.22627875208854675, -0.11362981051206589, 0.6168466210365295, -0.39193788170814514, 0.816901683807373, -0.31038498878479004, -0.2513940930366516, 0.24084734916687012, 0.10352370887994766, 0.16763457655906677, 0.1661406010389328, -0.1411116123199463, 0.35914984345436096, 0.039554014801979065, -0.5064308047294617, -0.5213384032249451, 0.8549125790596008, -0.8524942398071289, -0.4321747422218323, -0.33685430884361267, -0.31534817814826965, 0.3084908127784729, 0.2549751102924347, 0.7537924647331238, 0.4441094398498535, -0.1183069497346878, -0.09034440666437149, 0.7761039137840271, -0.23044994473457336, 0.447893351316452, 0.358033686876297, -0.5269990563392639, -0.4532041847705841, 0.8356454372406006, -0.025252174586057663, 0.29321497678756714, 0.10802986472845078, 0.19103902578353882, -0.33923131227493286, -0.30484434962272644, -0.7459139227867126, 0.3029418885707855, -0.6215991377830505, -0.30750828981399536, -0.7874608635902405, -0.2277505248785019, -0.3802074193954468, -0.21386487782001495, -0.4665879011154175, -0.3615790605545044, -0.8286566734313965, 0.2010297328233719, 0.6373254656791687, 0.5556899905204773, -0.05766139551997185, 0.43639054894447327, -0.5012847781181335, 0.39802372455596924, 0.09498485177755356, 0.3988105058670044, -0.005146154668182135, -0.7347197532653809, 0.03770020604133606, 0.053886398673057556, -0.8520752787590027, -0.9072913527488708, 0.6534441113471985, 0.07287580519914627, 0.2669498324394226, 0.507246732711792, -0.2698252499103546, 0.7240397334098816, -0.4688582718372345, 0.841910183429718, 0.27663159370422363, -0.705992579460144, 0.47985154390335083, -0.6903749108314514, 0.18893565237522125, 0.2602714002132416, 0.6396323442459106, -0.2539001703262329, -0.28627288341522217, -0.9384477138519287, -0.7412421107292175, 0.6217241883277893, 0.5900247097015381, 0.11551976948976517, 0.07708864659070969, 0.6001468300819397, 0.10517733544111252, 0.16500207781791687, -0.8892102837562561, -0.5708025097846985, -0.3610107898712158, -0.050815559923648834, 0.14489877223968506, 0.17202550172805786, 0.05309930816292763, -0.3880680799484253, 0.9278467297554016, 0.15098746120929718, 0.4099319875240326, 0.29729244112968445, 0.2929569184780121, -0.20713098347187042, -0.08059917390346527, 0.22536912560462952, 0.46470820903778076, -0.32947349548339844, -0.3961248993873596, -0.09240647405385971, -0.29310500621795654, 0.23412136733531952, 0.24041947722434998, -0.4666964113712311, 0.16861136257648468, -0.13781514763832092, 1.0280144214630127, 0.056488022208213806, -0.3689824938774109, 0.5262442231178284, -0.1731981337070465, -0.3047438859939575, -0.2720054090023041, 0.2398560792207718, 0.15545937418937683, 0.21261870861053467, 0.07601950317621231, 0.38355687260627747, 0.30179667472839355, -0.3612661361694336, 0.009977755136787891, 0.31212320923805237, -0.2654706835746765, -0.3488711416721344, 1.0776312351226807, 0.12327621132135391, -0.19490885734558105, 0.4027896821498871, -0.35146263241767883, -0.2724543809890747, 0.5980353355407715, 0.5990039706230164, 0.8351598381996155, -0.20105387270450592, 0.40965017676353455, 0.6103571653366089, 0.03852929174900055, -0.22845378518104553, 0.19117215275764465, 0.2527877390384674, -0.5012410283088684, -0.34721121191978455, -0.6533420085906982, -0.19438810646533966, 0.2824603319168091, -0.49699586629867554, 0.8473604321479797, -0.6166696548461914, -0.30661168694496155, -0.04573396220803261, -0.15507639944553375, -0.6533941030502319, 0.32969751954078674, 0.07435742020606995, 0.9065697193145752, -0.8955523371696472, 0.5342941880226135, 0.5996315479278564, -0.6575010418891907, -0.8015849590301514, -0.199131578207016, 0.028878191486001015, -0.5633165240287781, 0.3395339548587799, 0.16939175128936768, 0.13356244564056396, 0.25460320711135864, -0.7533739805221558, -0.736531674861908, 1.1485636234283447, 0.4416024088859558, -0.2666565775871277, -0.3839791715145111, -0.3589951694011688, 0.5066984295845032, -0.4130510687828064, 0.5888221263885498, 0.38073283433914185, 0.3550819456577301, 0.2108679711818695, -0.7143439650535583, 0.14680945873260498, -0.4815082848072052, 0.3273222744464874, -0.007743693422526121, -0.8919174671173096, 1.0015170574188232, 0.02619907446205616, -0.3307802975177765, 0.5922144055366516, 0.6590909957885742, 0.4999079704284668, 0.2564012408256531, 0.37280988693237305, 0.9233686923980713, 0.4082763195037842, -0.2197480946779251, 1.2408051490783691, -0.017782187089323997, 0.38287416100502014, 0.6739341020584106, -0.04270767793059349, 0.6238530278205872, 0.15856193006038666, -0.16931474208831787, 0.7604507207870483, 0.7975863218307495, -0.14657233655452728, 0.46597257256507874, -0.023211924359202385, -0.08392594754695892, -0.13292233645915985, -0.10514800995588303, -0.5582697987556458, 0.2283540666103363, 0.1758156716823578, -0.37363284826278687, -0.19520024955272675, 0.1804664433002472, 0.288921982049942, -0.13322360813617706, -0.09623516350984573, 0.5689167976379395, 0.12874016165733337, -0.5141316056251526, 0.8192857503890991, 0.13640250265598297, 0.9147173762321472, -0.7093437314033508, -0.1857967972755432, -0.20389437675476074, -0.03427955135703087, -0.28013119101524353, -0.7113704085350037, 0.21812942624092102, 0.04494636133313179, -0.12492939084768295, -0.38202938437461853, 0.6970619559288025, -0.3061533570289612, -0.5703359842300415, 0.13589416444301605, 0.17886896431446075, 0.3135928511619568, 0.05373627692461014, -0.9811801910400391, 0.24906325340270996, -0.00009943873737938702, -0.23900337517261505, 0.2685244679450989, 0.3262505829334259, 0.3873196840286255, 0.7260910272598267, 0.4699709117412567, 0.12616345286369324, -0.08594821393489838, -0.10947844386100769, 0.8599307537078857, -0.28609347343444824, -0.3832666873931885, -0.7691230177879333, 0.8709725737571716, -0.11763530224561691, -0.4077238142490387, 0.9035392999649048, 0.4325157701969147, 0.7272738218307495, -0.21566469967365265, 0.6620739102363586, -0.4237184524536133, 0.3057525157928467, -0.485105961561203, 0.8759075999259949, -0.9734063148498535, 0.08471915870904922, -0.5732470750808716, -1.0055997371673584, 0.014091887511312962, 0.8831038475036621, -0.08711199462413788, 0.22663122415542603, 0.4255368709564209, 0.8064521551132202, -0.33642590045928955, 0.037098612636327744, 0.041081637144088745, 0.22578756511211395, 0.2053820788860321, 0.4779094457626343, 0.6471102237701416, -0.7880538105964661, 0.2971116602420807, -0.5744235515594482, -0.4232293963432312, -0.08028989285230637, -0.9552658796310425, -0.8141044974327087, -0.5957502722740173, -0.6230936646461487, -0.7383829355239868, -0.2256784588098526, 0.6636494398117065, 0.9814777970314026, -0.38515666127204895, -0.06841660290956497, -0.25995221734046936, -0.07226411253213882, 0.04790960252285004, -0.32655176520347595, 0.13816075026988983, 0.12386706471443176, -1.1157430410385132, 0.10785073041915894, 0.043411631137132645, 0.3790273666381836, -0.35422223806381226, -0.058382797986269, -0.19004127383232117, -0.12977255880832672, 0.39278677105903625, 0.3235117793083191, -0.5387876629829407, 0.02306608110666275, -0.005627240985631943, 0.10708744078874588, 0.2202082723379135, 0.3129080832004547, -0.4524500072002411, 0.38489165902137756, 0.47686827182769775, 0.218591570854187, 0.7371317744255066, -0.09227090328931808, 0.3820008635520935, -0.6235803365707397, 0.22581957280635834, 0.1669430285692215, 0.4657602906227112, 0.42772188782691956, -0.45792117714881897, 0.39036089181900024, 0.4290807545185089, -0.7210179567337036, -0.6924479603767395, 0.24058665335178375, -1.0505852699279785, -0.20477931201457977, 1.098320484161377, -0.23452697694301605, -0.4330850839614868, 0.14689670503139496, -0.48786213994026184, 0.33399060368537903, -0.4733685851097107, 0.6236547827720642, 0.565417468547821, -0.22855491936206818, -0.27527758479118347, -0.5187526941299438, 0.46289321780204773, 0.3546741008758545, -0.7670319676399231, -0.19842809438705444, 0.5945027470588684, 0.7405325770378113, 0.2543492615222931, 0.8176671266555786, -0.37296929955482483, 0.19827567040920258, -0.04738689959049225, -0.008445692248642445, 0.05964592099189758, -0.16402266919612885, -0.37341073155403137, -0.10694214701652527, -0.26412051916122437, 0.08080825209617615 ]
deepset/deberta-v3-base-squad2
deepset
"2023-09-26T08:17:16Z"
22,394
17
transformers
[ "transformers", "pytorch", "safetensors", "deberta-v2", "question-answering", "deberta", "deberta-v3", "en", "dataset:squad_v2", "base_model:microsoft/deberta-v3-base", "license:cc-by-4.0", "model-index", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-07-22T12:54:36Z"
--- language: en license: cc-by-4.0 tags: - deberta - deberta-v3 datasets: - squad_v2 base_model: microsoft/deberta-v3-base model-index: - name: deepset/deberta-v3-base-squad2 results: - task: type: question-answering name: Question Answering dataset: name: squad_v2 type: squad_v2 config: squad_v2 split: validation metrics: - type: exact_match value: 83.8248 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiY2IyZTEyYzNlOTAwZmFlNWRiZTdiNzQzMTUyM2FmZTQ3ZWQwNWZmMzc2ZDVhYWYyMzkxOTUyMGNlMWY0M2E5MiIsInZlcnNpb24iOjF9.y8KvfefMLI977BYun0X1rAq5qudmezW_UJe9mh6sYBoiWaBosDO5TRnEGR1BHzdxmv2EgPK_PSomtZvb043jBQ - type: f1 value: 87.41 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOWVhNjAwM2Q5N2Y3MGU4ZWY3N2Y0MmNjYWYwYmQzNTdiYWExODhkYmQ1YjIwM2I1ODEzNWIxZDI1ZWQ1YWRjNSIsInZlcnNpb24iOjF9.Jk0v1ZheLRFz6k9iNAgCMMZtPYj5eVwUCku4E76wRYc-jHPmiUuxvNiNkn6NW-jkBD8bJGMqDSjJyVpVMn9pBA - task: type: question-answering name: Question Answering dataset: name: squad type: squad config: plain_text split: validation metrics: - type: exact_match value: 84.9678 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOWUxYTg4MzU3YTdmMDRmMGM0NjFjMTcwNGM3YzljM2RkMTc1ZGNhMDQwMTgwNGI0ZDE4ZGMxZTE3YjY5YzQ0ZiIsInZlcnNpb24iOjF9.KKaJ1UtikNe2g6T8XhLoWNtL9X4dHHyl_O4VZ5LreBT9nXneGc21lI1AW3n8KXTFGemzRpRMvmCDyKVDHucdDQ - type: f1 value: 92.2777 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDU0ZTQwMzg4ZDY1ZWYxOGIxMzY2ODljZTBkMTNlYjA0ODBjNjcxNTg3ZDliYWU1YTdkYTM2NTIxOTg1MGM4OCIsInZlcnNpb24iOjF9.8VHg1BXx6gLw_K7MUK2QSE80Y9guiVR8n8K8nX4laGsLibxv5u_yDv9F3ahbUa1eZG_bbidl93TY2qFUiYHtAQ - task: type: question-answering name: Question Answering dataset: name: adversarial_qa type: adversarial_qa config: adversarialQA split: validation metrics: - type: exact_match value: 30.733 name: Exact Match - type: f1 value: 44.099 name: F1 - task: type: question-answering name: Question Answering dataset: name: squad_adversarial type: squad_adversarial config: AddOneSent split: validation metrics: - type: exact_match value: 79.295 name: Exact Match - type: f1 value: 86.609 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts amazon type: squadshifts config: amazon split: test metrics: - type: exact_match value: 68.680 name: Exact Match - type: f1 value: 83.832 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts new_wiki type: squadshifts config: new_wiki split: test metrics: - type: exact_match value: 80.171 name: Exact Match - type: f1 value: 90.452 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts nyt type: squadshifts config: nyt split: test metrics: - type: exact_match value: 81.570 name: Exact Match - type: f1 value: 90.644 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts reddit type: squadshifts config: reddit split: test metrics: - type: exact_match value: 66.990 name: Exact Match - type: f1 value: 80.231 name: F1 --- # deberta-v3-base for QA This is the [deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) model, fine-tuned using the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) dataset. It's been trained on question-answer pairs, including unanswerable questions, for the task of Question Answering. ## Overview **Language model:** deberta-v3-base **Language:** English **Downstream-task:** Extractive QA **Training data:** SQuAD 2.0 **Eval data:** SQuAD 2.0 **Code:** See [an example QA pipeline on Haystack](https://haystack.deepset.ai/tutorials/first-qa-system) **Infrastructure**: 1x NVIDIA A10G ## Hyperparameters ``` batch_size = 12 n_epochs = 4 base_LM_model = "deberta-v3-base" max_seq_len = 512 learning_rate = 2e-5 lr_schedule = LinearWarmup warmup_proportion = 0.2 doc_stride = 128 max_query_length = 64 ``` ## Usage ### In Haystack Haystack is an NLP framework by deepset. You can use this model in a Haystack pipeline to do question answering at scale (over many documents). To load the model in [Haystack](https://github.com/deepset-ai/haystack/): ```python reader = FARMReader(model_name_or_path="deepset/deberta-v3-base-squad2") # or reader = TransformersReader(model_name_or_path="deepset/deberta-v3-base-squad2",tokenizer="deepset/deberta-v3-base-squad2") ``` ### In Transformers ```python from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline model_name = "deepset/deberta-v3-base-squad2" # a) Get predictions nlp = pipeline('question-answering', model=model_name, tokenizer=model_name) QA_input = { 'question': 'Why is model conversion important?', 'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.' } res = nlp(QA_input) # b) Load model & tokenizer model = AutoModelForQuestionAnswering.from_pretrained(model_name) tokenizer = AutoTokenizer.from_pretrained(model_name) ``` ## Authors **Sebastian Lee:** sebastian.lee [at] deepset.ai **Timo Möller:** timo.moeller [at] deepset.ai **Malte Pietsch:** malte.pietsch [at] deepset.ai ## About us <div class="grid lg:grid-cols-2 gap-x-4 gap-y-3"> <div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center"> <img alt="" src="https://huggingface.co/spaces/deepset/README/resolve/main/haystack-logo-colored.svg" class="w-40"/> </div> <div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center"> <img alt="" src="https://huggingface.co/spaces/deepset/README/resolve/main/deepset-logo-colored.svg" class="w-40"/> </div> </div> [deepset](http://deepset.ai/) is the company behind the open-source NLP framework [Haystack](https://haystack.deepset.ai/) which is designed to help you build production ready NLP systems that use: Question answering, summarization, ranking etc. Some of our other work: - [Distilled roberta-base-squad2 (aka "tinyroberta-squad2")]([https://huggingface.co/deepset/tinyroberta-squad2) - [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert) - [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad) ## Get in touch and join the Haystack community <p>For more info on Haystack, visit our <strong><a href="https://github.com/deepset-ai/haystack">GitHub</a></strong> repo and <strong><a href="https://haystack.deepset.ai">Documentation</a></strong>. We also have a <strong><a class="h-7" href="https://haystack.deepset.ai/community/join">Discord community open to everyone!</a></strong></p> [Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Discord](https://haystack.deepset.ai/community/join) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai)
[ -0.39351069927215576, -0.6854820251464844, 0.4016888737678528, 0.1385440230369568, -0.020519502460956573, 0.0729486495256424, 0.04347968101501465, -0.4495526850223541, 0.39113208651542664, 0.31162571907043457, -0.8370859026908875, -0.6167779564857483, -0.30422595143318176, 0.0401444137096405, -0.40710940957069397, 0.863381564617157, 0.11732126027345657, -0.03888325393199921, -0.15143714845180511, -0.146305650472641, -0.5444912314414978, -0.4849189221858978, -0.7141234278678894, -0.2351832240819931, 0.3084166944026947, 0.3935321271419525, 0.7589422464370728, 0.3492089509963989, 0.47564366459846497, 0.30563774704933167, -0.09839703142642975, 0.15599562227725983, -0.41723379492759705, 0.2596176862716675, -0.08172157406806946, -0.32360541820526123, -0.4472949504852295, 0.0017060465179383755, 0.5035596489906311, 0.41872912645339966, -0.0987439900636673, 0.5023111701011658, -0.1146140992641449, 0.7073050737380981, -0.5610617995262146, 0.08428192883729935, -0.7191842198371887, -0.12933242321014404, 0.2458307445049286, 0.23175010085105896, -0.07950103282928467, -0.19465383887290955, 0.24216347932815552, -0.6445283889770508, 0.24561621248722076, -0.2706253230571747, 1.1559706926345825, 0.31699424982070923, -0.10994108766317368, -0.15369778871536255, -0.5113679766654968, 0.8053150177001953, -1.0174815654754639, 0.018456732854247093, 0.5297433733940125, 0.38371944427490234, 0.14420849084854126, -0.8701986074447632, -0.6879630088806152, 0.07570531964302063, -0.2678844928741455, 0.17771153151988983, -0.25987380743026733, -0.3412817716598511, 0.14171773195266724, 0.36958542466163635, -0.7295612692832947, 0.1735221892595291, -0.5362438559532166, 0.05765872448682785, 0.7960445880889893, 0.22371076047420502, 0.2034546136856079, -0.30009403824806213, -0.21405129134655, -0.28146204352378845, -0.5271813273429871, 0.1841638833284378, 0.09819307923316956, 0.30179184675216675, -0.15495114028453827, 0.47768592834472656, -0.4532359540462494, 0.5948196053504944, 0.31720489263534546, 0.48153209686279297, 0.5133060812950134, -0.5421438217163086, -0.2875960171222687, -0.2035718709230423, 0.9380102157592773, 0.4282725155353546, 0.016630306839942932, -0.02835359424352646, -0.2348644733428955, -0.14372782409191132, 0.1940750777721405, -0.9614186882972717, -0.19712494313716888, 0.5709612369537354, -0.2855931222438812, -0.476207971572876, -0.07624942064285278, -0.7256351113319397, -0.4111502468585968, 0.014530407264828682, 0.6194972395896912, -0.39199286699295044, -0.4052560031414032, 0.34001386165618896, -0.18952542543411255, 0.6966909170150757, 0.16973495483398438, -0.9193707704544067, 0.12411477416753769, 0.5879369378089905, 0.7406956553459167, 0.2528698742389679, -0.3041844964027405, -0.5226449370384216, -0.17935916781425476, -0.13351145386695862, 0.5344641804695129, -0.33184754848480225, -0.0112315583974123, -0.01473645307123661, 0.2362380176782608, -0.15038420259952545, -0.4054180383682251, 0.15471428632736206, -0.6574433445930481, 0.5279248356819153, -0.1707257777452469, -0.520538330078125, -0.3562733232975006, 0.4810120761394501, -0.7867321968078613, 1.0828913450241089, 0.3482345640659332, -0.6384407877922058, 0.09236723929643631, -0.7399177551269531, -0.20739629864692688, 0.11022491753101349, -0.017539160326123238, -0.2891421318054199, -0.28787118196487427, 0.46070191264152527, 0.5879791975021362, -0.24168778955936432, 0.13690616190433502, -0.26744022965431213, -0.4659292697906494, 0.1633371263742447, 0.025392668321728706, 1.2501262426376343, 0.05330323055386543, -0.5097471475601196, -0.059764157980680466, -0.6735185980796814, 0.2595062553882599, 0.21880953013896942, -0.12166036665439606, -0.05840431526303291, -0.07838572561740875, 0.03350082412362099, 0.35403233766555786, 0.5820956230163574, -0.48511311411857605, 0.20318284630775452, -0.6795464754104614, 0.6486265063285828, 0.5757618546485901, 0.02015306055545807, 0.3646601736545563, -0.32611513137817383, 0.6306318044662476, 0.00036595179699361324, 0.15982148051261902, 0.13584870100021362, -0.3710543215274811, -0.9627001285552979, -0.07575833797454834, 0.4371374547481537, 0.8101231455802917, -0.7952600717544556, 0.7616822719573975, -0.17067044973373413, -0.6189614534378052, -0.8398175239562988, 0.12201578915119171, 0.2524067759513855, 0.3615862727165222, 0.5379638075828552, -0.023412857204675674, -0.707125186920166, -1.0476371049880981, 0.004624273627996445, -0.23109105229377747, -0.245600163936615, 0.24753786623477936, 0.714540421962738, -0.43575164675712585, 0.8980464339256287, -0.6489283442497253, -0.3472145199775696, -0.20534121990203857, -0.17437422275543213, 0.5565443634986877, 0.7010867595672607, 0.7217060327529907, -0.7906264662742615, -0.4673585295677185, -0.3048340380191803, -0.8037234544754028, 0.3618183135986328, -0.07026694715023041, -0.31356412172317505, 0.09540146589279175, 0.38487157225608826, -0.6998664736747742, 0.25979745388031006, 0.5643748641014099, -0.550528347492218, 0.2543011009693146, 0.07911790907382965, 0.058310508728027344, -1.492416262626648, 0.3251422047615051, -0.09840967506170273, -0.19223779439926147, -0.47391077876091003, 0.23077495396137238, -0.24998576939105988, -0.0455951914191246, -0.5008589625358582, 0.6679738163948059, -0.20126177370548248, 0.16828671097755432, 0.13145604729652405, 0.23219414055347443, 0.3033718168735504, 0.5767892003059387, -0.10631008446216583, 0.8698856234550476, 0.7078348994255066, -0.49610280990600586, 0.65687495470047, 0.6962009072303772, -0.39733991026878357, 0.2629292607307434, -1.03427255153656, 0.20206902921199799, -0.024053502827882767, 0.1445537656545639, -0.9403373599052429, -0.18733790516853333, 0.26539212465286255, -0.7506188154220581, -0.0015235330210998654, -0.05925244465470314, -0.6807607412338257, -0.4236932098865509, -0.5154174566268921, 0.24053704738616943, 0.807916522026062, -0.4310508966445923, 0.3612234890460968, 0.4060668647289276, 0.00744358915835619, -0.6861936450004578, -0.8642063140869141, -0.02179032936692238, -0.1258033961057663, -0.7314246296882629, 0.23496629297733307, -0.16981658339500427, -0.09243899583816528, 0.1183544471859932, 0.07746706902980804, -0.5022379159927368, 0.3297787308692932, 0.15687566995620728, 0.3684200346469879, -0.3556634485721588, 0.3197331726551056, -0.11659973114728928, -0.035701267421245575, 0.021230963990092278, -0.27464771270751953, 0.584177553653717, -0.6554332971572876, 0.05668644979596138, -0.48088252544403076, 0.37932801246643066, 0.5088003873825073, -0.37886518239974976, 0.8920051455497742, 0.6907587647438049, -0.4637547731399536, -0.017399504780769348, -0.520455002784729, -0.34939390420913696, -0.48822590708732605, 0.3655652701854706, -0.253361314535141, -0.9056045413017273, 0.6757029891014099, 0.3749520480632782, 0.27082785964012146, 1.030847191810608, 0.46432656049728394, -0.40046408772468567, 0.9950695037841797, 0.5668849349021912, -0.023679815232753754, 0.37328988313674927, -0.8585278987884521, -0.036944154649972916, -0.9653221964836121, -0.15459516644477844, -0.5162892937660217, -0.5080262422561646, -0.6216451525688171, -0.37665125727653503, 0.16741828620433807, 0.22751019895076752, -0.5066186785697937, 0.6341456770896912, -0.7872450947761536, 0.4971439838409424, 0.7209857702255249, 0.16628150641918182, 0.08431139588356018, -0.05944187939167023, 0.1786871701478958, 0.2385798692703247, -0.7838025093078613, -0.48830845952033997, 1.032218337059021, 0.2273806929588318, 0.45551174879074097, 0.12172655016183853, 0.8597575426101685, 0.1528530865907669, -0.1395266205072403, -0.6484153270721436, 0.5531023740768433, -0.1805586814880371, -0.9876512885093689, -0.5593217015266418, -0.3337932527065277, -1.085721492767334, 0.0912686288356781, -0.235874205827713, -0.7051766514778137, 0.3789732754230499, 0.03705252334475517, -0.6989419460296631, 0.21974433958530426, -0.5696638822555542, 1.0059850215911865, -0.03508465737104416, -0.1552789807319641, -0.12245088815689087, -0.8376718759536743, 0.21150368452072144, 0.038112420588731766, -0.1031852513551712, -0.21746627986431122, 0.025705603882670403, 0.8343251347541809, -0.41595447063446045, 0.9649118781089783, -0.1370690017938614, -0.059956494718790054, 0.47403469681739807, 0.0348387286067009, 0.38217923045158386, 0.3073267638683319, -0.37490329146385193, 0.21654877066612244, 0.46287238597869873, -0.5081534385681152, -0.5417336225509644, 0.7214179635047913, -0.9668664336204529, -0.3884466588497162, -0.4324708878993988, -0.37476465106010437, -0.1509115993976593, 0.3071969151496887, 0.22638604044914246, 0.41314253211021423, -0.18199579417705536, 0.5453291535377502, 0.614098310470581, -0.13124005496501923, 0.4281865060329437, 0.5089192986488342, -0.15480609238147736, -0.3696810007095337, 0.742912769317627, -0.07527700066566467, 0.09466104209423065, 0.4487951695919037, 0.08091413229703903, -0.4240037798881531, -0.3784818947315216, -0.600596010684967, 0.19877490401268005, -0.6963744163513184, -0.37563666701316833, -0.6585716605186462, -0.5256977677345276, -0.6573551893234253, -0.025289610028266907, -0.36347949504852295, -0.6613208055496216, -0.5649087429046631, -0.09339393675327301, 0.7038672566413879, 0.5379088521003723, -0.06037508323788643, 0.20568545162677765, -0.7832621932029724, 0.37639230489730835, 0.5386161208152771, 0.33956798911094666, -0.11965951323509216, -0.5577999949455261, -0.20757676661014557, 0.4443248510360718, -0.10407665371894836, -0.6875662803649902, 0.24545100331306458, 0.13282562792301178, 0.32757166028022766, -0.17906944453716278, 0.14766401052474976, 0.46600350737571716, -0.3075014352798462, 0.8510012626647949, 0.06586989760398865, -0.8384206891059875, 0.6614952087402344, -0.37304070591926575, 0.4967018961906433, 1.1160556077957153, 0.3147590756416321, -0.6800580024719238, -0.24577122926712036, -0.7734652757644653, -0.9755947589874268, 0.6197365522384644, 0.39781516790390015, 0.2798174321651459, -0.042305488139390945, 0.3820573091506958, -0.07484392076730728, 0.26887276768684387, -0.6424832344055176, -0.22767102718353271, -0.24446818232536316, -0.32006552815437317, -0.018081042915582657, -0.08612033724784851, -0.18496842682361603, -0.4282192587852478, 0.9605314135551453, -0.14705735445022583, 0.09613244235515594, 0.3362003266811371, -0.2062840312719345, 0.18867245316505432, 0.10971413552761078, 0.38120803236961365, 0.8597586154937744, -0.3939550518989563, -0.24625150859355927, 0.2607255280017853, -0.33270958065986633, 0.041670430451631546, 0.31803029775619507, -0.5100741982460022, 0.04946072772145271, 0.39322152733802795, 0.8176811337471008, -0.03391921892762184, -0.6299628019332886, 0.6116110682487488, -0.13994091749191284, -0.432578444480896, -0.5617172718048096, 0.14531685411930084, 0.24758626520633698, 0.4809242784976959, 0.37220096588134766, -0.1942235231399536, 0.18237772583961487, -0.4103375971317291, 0.19839724898338318, 0.4493291676044464, -0.44581931829452515, -0.05684897303581238, 0.47593119740486145, 0.4247312843799591, -0.2983773648738861, 0.8677343726158142, -0.212721586227417, -0.5608404278755188, 0.9668861031532288, 0.17135412991046906, 1.0864471197128296, 0.16744884848594666, 0.4182646572589874, 0.6057288646697998, 0.4010661840438843, 0.11615850031375885, 0.3213632106781006, 0.11791245639324188, -0.6560013890266418, -0.37386617064476013, -0.7365180253982544, -0.2338566780090332, 0.3959863483905792, -0.6984990835189819, 0.1448187232017517, -0.43653735518455505, -0.06904858350753784, 0.01653994619846344, 0.3094358742237091, -0.9193766713142395, 0.2313813865184784, -0.055056337267160416, 0.8476475477218628, -0.578242838382721, 0.45841819047927856, 0.8478078246116638, -0.6981989741325378, -0.8604958057403564, -0.1335207223892212, -0.3330821692943573, -0.9745011925697327, 0.5195035338401794, 0.32049819827079773, -0.13863801956176758, 0.3057955503463745, -0.7870546579360962, -0.9413281679153442, 1.3307641744613647, 0.07690694183111191, -0.4589959681034088, -0.30720874667167664, -0.05696461349725723, 0.5434603095054626, -0.3478952646255493, 0.21546399593353271, 0.5843088030815125, 0.40837860107421875, 0.10971873998641968, -0.8322945237159729, 0.3129176199436188, -0.38657814264297485, -0.07659154385328293, -0.02127138338983059, -0.7875639200210571, 0.7975117564201355, -0.1277952343225479, -0.18899662792682648, 0.30139631032943726, 0.5503925681114197, 0.2101195901632309, 0.005590521264821291, 0.5748597979545593, 0.5709202885627747, 0.7152969837188721, 0.026617027819156647, 0.8137940168380737, -0.2068060040473938, 0.6816478967666626, 1.1815873384475708, -0.1655259132385254, 0.9769003391265869, 0.33112195134162903, -0.21817272901535034, 0.741489052772522, 0.7002885937690735, -0.37766703963279724, 0.37052661180496216, 0.2511093020439148, -0.04482089728116989, -0.40585747361183167, 0.10128835588693619, -0.6506121158599854, 0.5996049046516418, 0.10581721365451813, -0.2878003418445587, -0.25132283568382263, -0.31529971957206726, -0.13418246805667877, -0.07704991847276688, -0.0893317237496376, 0.8570114374160767, -0.11296018958091736, -0.5667244791984558, 0.9713962078094482, -0.144487664103508, 0.6706027388572693, -0.6150730848312378, -0.06727622449398041, -0.320539265871048, 0.23310434818267822, -0.13510873913764954, -0.8988434672355652, 0.1899896264076233, -0.07038259506225586, -0.4319867789745331, -0.08280954509973526, 0.5126811265945435, -0.465573251247406, -0.8071536421775818, 0.1311529129743576, 0.6364074349403381, 0.21949118375778198, -0.1465887427330017, -1.0291945934295654, -0.1791859269142151, -0.00929123256355524, -0.3554815948009491, 0.09009119868278503, 0.306567907333374, 0.2576175332069397, 0.6002606153488159, 0.5975486040115356, -0.18947909772396088, -0.0948171466588974, -0.0696132704615593, 0.977981686592102, -0.7648876905441284, -0.2770763337612152, -0.7706684470176697, 0.626175045967102, -0.28487521409988403, -0.45682796835899353, 0.6526038646697998, 0.6039590239524841, 0.8068666458129883, -0.13782420754432678, 0.6784839034080505, -0.29423123598098755, 0.5816860795021057, -0.44327595829963684, 0.9449827671051025, -0.8453651070594788, 0.02503027953207493, -0.015081312507390976, -0.7218819260597229, -0.12859924137592316, 0.7401368618011475, -0.03569558262825012, 0.0845346450805664, 0.6810111403465271, 0.8053950667381287, 0.05529845133423805, -0.2918532192707062, -0.014192113652825356, 0.265775591135025, 0.21176093816757202, 0.9411574602127075, 0.7240609526634216, -0.8442371487617493, 0.6699671149253845, -0.3697345554828644, -0.07355520129203796, -0.21770063042640686, -0.6784950494766235, -0.9202248454093933, -0.6493709087371826, -0.34790489077568054, -0.6677019596099854, -0.05824805423617363, 0.7881839275360107, 0.8024309873580933, -0.9094032049179077, -0.1068584993481636, -0.03513142094016075, 0.15614578127861023, -0.23939402401447296, -0.2972351312637329, 0.452213317155838, -0.22747066617012024, -0.6949467062950134, 0.3640933930873871, -0.11759544163942337, 0.06301026046276093, -0.3820406198501587, 0.08874592930078506, -0.723605751991272, -0.05033028498291969, 0.4886409044265747, 0.37414857745170593, -0.5718395709991455, -0.13064800202846527, 0.262702077627182, -0.2515988051891327, -0.019008930772542953, 0.3448183238506317, -1.0387089252471924, 0.19509631395339966, 0.6471032500267029, 0.7874957919120789, 0.5522322058677673, -0.05159899592399597, 0.5171632170677185, -0.6603078246116638, 0.11991091817617416, 0.5468505620956421, 0.15252836048603058, 0.34443360567092896, -0.5042397379875183, 0.7910841107368469, 0.029529763385653496, -0.47802120447158813, -0.7927693128585815, 0.05627591162919998, -0.8886577486991882, -0.37801995873451233, 1.179558277130127, -0.02242347039282322, -0.19400565326213837, 0.15874023735523224, -0.12254347652196884, 0.1518688201904297, -0.34292083978652954, 0.6384381651878357, 0.7096207737922668, 0.12169039249420166, 0.1079123318195343, -0.5887510776519775, 0.47375351190567017, 0.5493199229240417, -0.8653202056884766, -0.038390785455703735, 0.4705387055873871, 0.32161012291908264, 0.24949204921722412, 0.6338530778884888, 0.13571606576442719, 0.4063052237033844, -0.2202666848897934, 0.05566980317234993, -0.11331735551357269, -0.12465768307447433, -0.440466970205307, -0.04749324545264244, -0.2489781528711319, -0.47600895166397095 ]
1-800-BAD-CODE/punctuation_fullstop_truecase_english
1-800-BAD-CODE
"2023-03-19T21:35:48Z"
22,389
3
generic
[ "generic", "onnx", "text2text-generation", "punctuation", "true-casing", "sentence-boundary-detection", "nlp", "en", "license:apache-2.0", "region:us" ]
text2text-generation
"2023-03-11T22:21:22Z"
--- license: apache-2.0 language: - en tags: - text2text-generation - punctuation - true-casing - sentence-boundary-detection - nlp widget: - text: "hey man how's it going i haven't seen you in a while let's meet at 6 pm for drinks" - text: "hello user this is an example input this text should be split into several sentences including a final interrogative did it work" library_name: generic inference: true --- # Model Overview This model accepts as input lower-cased, unpunctuated English text and performs in one pass punctuation restoration, true-casing (capitalization), and sentence boundary detection (segmentation). In contast to many similar models, this model can predict punctuated acronyms (e.g., "U.S.") via a special "acronym" class, as well as arbitarily-capitalized words (NATO, McDonald's, etc.) via multi-label true-casing predictions. **Widget note**: The text generation widget doesn't seem to respect line breaks. Instead, the pipeline inserts a new line token `\n` in the text where the model has predicted sentence boundaries (line breaks). # Usage The easy way to use this model is to install [punctuators](https://github.com/1-800-BAD-CODE/punctuators): ```bash pip install punctuators ``` If this package is broken, please let me know in the community tab (I update it for each model and break it a lot!). Let's punctuate my weekend recap, as well as few interesting sentences with acronyms and abbreviations that I made up or found on Wikipedia: <details open> <summary>Example Usage</summary> ``` from typing import List from punctuators.models import PunctCapSegModelONNX # Instantiate this model # This will download the ONNX and SPE models. To clean up, delete this model from your HF cache directory. m = PunctCapSegModelONNX.from_pretrained("pcs_en") # Define some input texts to punctuate input_texts: List[str] = [ # Literally my weekend "i woke up at 6 am and took the dog for a hike in the metacomet mountains we like to take morning adventures on the weekends", "despite being mid march it snowed overnight and into the morning here in connecticut it was snowier up in the mountains than in the farmington valley where i live", "when i got home i trained this model on the lambda cloud on an a100 gpu with about 10 million lines of text the total budget was less than 5 dollars", # Real acronyms in sentences that I made up "george hw bush was the president of the us for 8 years", "i saw mr smith at the store he was shopping for a new lawn mower i suggested he get one of those new battery operated ones they're so much quieter", # See how the model performs on made-up acronyms "i went to the fgw store and bought a new tg optical scope", # First few sentences from today's featured article summary on wikipedia "it's that man again itma was a radio comedy programme that was broadcast by the bbc for twelve series from 1939 to 1949 featuring tommy handley in the central role itma was a character driven comedy whose satirical targets included officialdom and the proliferation of minor wartime regulations parts of the scripts were rewritten in the hours before the broadcast to ensure topicality" ] results: List[List[str]] = m.infer(input_texts) for input_text, output_texts in zip(input_texts, results): print(f"Input: {input_text}") print(f"Outputs:") for text in output_texts: print(f"\t{text}") print() ``` Exact output may vary based on the model version; here is the current output: </details> <details open> <summary>Expected Output</summary> ```text In: i woke up at 6 am and took the dog for a hike in the metacomet mountains we like to take morning adventures on the weekends Out: I woke up at 6 a.m. and took the dog for a hike in the Metacomet Mountains. Out: We like to take morning adventures on the weekends. In: despite being mid march it snowed overnight and into the morning here in connecticut it was snowier up in the mountains than in the farmington valley where i live Out: Despite being mid March, it snowed overnight and into the morning. Out: Here in Connecticut, it was snowier up in the mountains than in the Farmington Valley where I live. In: when i got home i trained this model on the lambda cloud on an a100 gpu with about 10 million lines of text the total budget was less than 5 dollars Out: When I got home, I trained this model on the Lambda Cloud. Out: On an A100 GPU with about 10 million lines of text, the total budget was less than 5 dollars. In: george hw bush was the president of the us for 8 years Out: George H.W. Bush was the president of the U.S. for 8 years. In: i saw mr smith at the store he was shopping for a new lawn mower i suggested he get one of those new battery operated ones they're so much quieter Out: I saw Mr. Smith at the store he was shopping for a new lawn mower. Out: I suggested he get one of those new battery operated ones. Out: They're so much quieter. In: i went to the fgw store and bought a new tg optical scope Out: I went to the FGW store and bought a new TG optical scope. In: it's that man again itma was a radio comedy programme that was broadcast by the bbc for twelve series from 1939 to 1949 featuring tommy handley in the central role itma was a character driven comedy whose satirical targets included officialdom and the proliferation of minor wartime regulations parts of the scripts were rewritten in the hours before the broadcast to ensure topicality Out: It's that man again. Out: ITMA was a radio comedy programme that was broadcast by the BBC for Twelve Series from 1939 to 1949, featuring Tommy Handley. Out: In the central role, ITMA was a character driven comedy whose satirical targets included officialdom and the proliferation of minor wartime regulations. Out: Parts of the scripts were rewritten in the hours before the broadcast to ensure topicality. ``` </details> # Model Details This model implements the graph shown below, with brief descriptions for each step following. ![graph.png](https://s3.amazonaws.com/moonup/production/uploads/1678575121699-62d34c813eebd640a4f97587.png) 1. **Encoding**: The model begins by tokenizing the text with a subword tokenizer. The tokenizer used here is a `SentencePiece` model with a vocabulary size of 32k. Next, the input sequence is encoded with a base-sized Transformer, consisting of 6 layers with a model dimension of 512. 2. **Punctuation**: The encoded sequence is then fed into a feed-forward classification network to predict punctuation tokens. Punctation is predicted once per subword, to allow acronyms to be properly punctuated. An indiret benefit of per-subword prediction is to allow the model to run in a graph generalized for continuous-script languages, e.g., Chinese. 5. **Sentence boundary detection** For sentence boundary detection, we condition the model on punctuation via embeddings. Each punctuation prediction is used to select an embedding for that token, which is concatenated to the encoded representation. The SBD head analyzes both the encoding of the un-punctuated sequence and the puncutation predictions, and predicts which tokens are sentence boundaries. 7. **Shift and concat sentence boundaries** In English, the first character of each sentence should be upper-cased. Thus, we should feed the sentence boundary information to the true-case classification network. Since the true-case classification network is feed-forward and has no temporal context, each time step must embed whether it is the first word of a sentence. Therefore, we shift the binary sentence boundary decisions to the right by one: if token `N-1` is a sentence boundary, token `N` is the first word of a sentence. Concatenating this with the encoded text, each time step contains whether it is the first word of a sentence as predicted by the SBD head. 8. **True-case prediction** Armed with the knowledge of punctation and sentence boundaries, a classification network predicts true-casing. Since true-casing should be done on a per-character basis, the classification network makes `N` predictions per token, where `N` is the length of the subtoken. (In practice, `N` is the longest possible subword, and the extra predictions are ignored). This scheme captures acronyms, e.g., "NATO", as well as bi-capitalized words, e.g., "MacDonald". The model's maximum length is 256 subtokens, due to the limit of the trained embeddings. However, the [punctuators](https://github.com/1-800-BAD-CODE/punctuators) package as described above will transparently predict on overlapping subgsegments of long inputs and fuse the results before returning output, allowing inputs to be arbitrarily long. ## Punctuation Tokens This model predicts the following set of punctuation tokens: | Token | Description | | ---: | :---------- | | NULL | Predict no punctuation | | ACRONYM | Every character in this subword ends with a period | | . | Latin full stop | | , | Latin comma | | ? | Latin question mark | # Training Details ## Training Framework This model was trained on a forked branch of the [NeMo](https://github.com/NVIDIA/NeMo) framework. ## Training Data This model was trained with News Crawl data from WMT. Approximately 10M lines were used from the years 2021 and 2012. The latter was used to attempt to reduce bias: annual news is typically dominated by a few topics, and 2021 is dominated by COVID discussions. # Limitations ## Domain This model was trained on news data, and may not perform well on conversational or informal data. ## Noisy Training Data The training data was noisy, and no manual cleaning was utilized. ### Acronyms and Abbreviations Acronyms and abbreviations are especially noisy; the table below shows how many variations of each token appear in the training data. | Token | Count | | -: | :- | | Mr | 115232 | | Mr. | 108212 | | Token | Count | | -: | :- | | U.S. | 85324 | | US | 37332 | | U.S | 354 | | U.s | 108 | | u.S. | 65 | Thus, the model's acronym and abbreviation predictions may be a bit unpredictable. ### Sentence Boundary Detection Targets An assumption for sentence boundary detection targets is that each line of the input data is exactly one sentence. However, a non-negligible portion of the training data contains multiple sentences per line. Thus, the SBD head may miss an obvious sentence boundary if it's similar to an error seen in the training data. # Evaluation In these metrics, keep in mind that 1. The data is noisy 2. Sentence boundaries and true-casing are conditioned on predicted punctuation, which is the most difficult task and sometimes incorrect. When conditioning on reference punctuation, true-casing and SBD metrics are much higher w.r.t. the reference targets. 4. Punctuation can be subjective. E.g., `Hello Frank, how's it going?` or `Hello Frank. How's it going?` When the sentences are longer and more practical, these ambiguities abound and affect all 3 analytics. ## Test Data and Example Generation Each test example was generated using the following procedure: 1. Concatenate 10 random sentences 2. Lower-case the concatenated sentence 3. Remove all punctuation The data is a held-out portion of News Crawl, which has been deduplicated. 3,000 lines of data was used, generating 3,000 unique examples of 10 sentences each. ## Results <details open> <summary>Punctuation Report</summary> ```text label precision recall f1 support <NULL> (label_id: 0) 98.83 98.49 98.66 446496 <ACRONYM> (label_id: 1) 74.15 94.26 83.01 697 . (label_id: 2) 90.64 92.99 91.80 30002 , (label_id: 3) 77.19 79.13 78.15 23321 ? (label_id: 4) 76.58 74.56 75.56 1022 ------------------- micro avg 97.21 97.21 97.21 501538 macro avg 83.48 87.89 85.44 501538 weighted avg 97.25 97.21 97.23 501538 ``` </details> <details open> <summary>True-casing Report</summary> ```text # With predicted punctuation (not aligned with targets) label precision recall f1 support LOWER (label_id: 0) 99.76 99.72 99.74 2020678 UPPER (label_id: 1) 93.32 94.20 93.76 83873 ------------------- micro avg 99.50 99.50 99.50 2104551 macro avg 96.54 96.96 96.75 2104551 weighted avg 99.50 99.50 99.50 2104551 # With reference punctuation (punctuation matches targets) label precision recall f1 support LOWER (label_id: 0) 99.83 99.81 99.82 2020678 UPPER (label_id: 1) 95.51 95.90 95.71 83873 ------------------- micro avg 99.66 99.66 99.66 2104551 macro avg 97.67 97.86 97.76 2104551 weighted avg 99.66 99.66 99.66 2104551 ``` </details> <details open> <summary>Sentence Boundary Detection report</summary> ```text # With predicted punctuation (not aligned with targets) label precision recall f1 support NOSTOP (label_id: 0) 99.59 99.45 99.52 471608 FULLSTOP (label_id: 1) 91.47 93.53 92.49 29930 ------------------- micro avg 99.09 99.09 99.09 501538 macro avg 95.53 96.49 96.00 501538 weighted avg 99.10 99.09 99.10 501538 # With reference punctuation (punctuation matches targets) label precision recall f1 support NOSTOP (label_id: 0) 100.00 99.97 99.98 471608 FULLSTOP (label_id: 1) 99.63 99.93 99.78 32923 ------------------- micro avg 99.97 99.97 99.97 504531 macro avg 99.81 99.95 99.88 504531 weighted avg 99.97 99.97 99.97 504531 ``` </details> # Fun Facts Some fun facts are examined in this section. ## Embeddings Let's examine the embeddings (see graph above) to see if the model meaningfully employed them. We show here the cosine similarity between the embeddings of each token: | | NULL | ACRONYM | . | , | ? | | - | - | - | - | - | - | | NULL | 1.00 | | | | | | ACRONYM | -0.49 | 1.00 | | || | . | -1.00 | 0.48 | 1.00 | | | | , | 1.00 | -0.48 | -1.00 | 1.00 | | | ? | -1.00 | 0.49 | 1.00 | -1.00 | 1.00 | Recall that these embeddings are used to predict sentence boundaries... thus we should expect full stops to cluster. Indeed, we see that `NULL` and "`,`" are exactly the same, because neither have an implication on sentence boundaries. Next, we see that "`.`" and "`?`" are exactly the same, because w.r.t. SBD these are exactly the same: strong full stop implications. (Though, we may expect some difference between these tokens, given that "`.`" is predicted after abbreviations, e.g., 'Mr.', that are not full stops.) Further, we see that "`.`" and "`?`" are exactly the opposite of `NULL`. This is expected since these tokens typically imply sentence boundaries, whereas `NULL` and "`,`" never do. Lastly, we see that `ACRONYM` is similar to, but not the same as, the full stops "`.`" and "`?`", and far from, but not the opposite of, `NULL` and "`,`". Intuition suggests this is because acronyms can be full stops ("I live in the northern U.S. It's cold here.") or not ("It's 5 a.m. and I'm tired.").
[ -0.3029002547264099, -0.5811884999275208, 0.520455539226532, 0.07687931507825851, -0.4383578300476074, -0.04345797002315521, -0.1118256151676178, -0.25393998622894287, 0.3092022240161896, 0.5304499864578247, -0.5529006123542786, -0.36919310688972473, -0.5131216645240784, 0.22083772718906403, -0.27598175406455994, 0.8809290528297424, 0.08058111369609833, -0.06859596818685532, -0.06526656448841095, 0.00513248099014163, -0.35615694522857666, -0.8064364194869995, -0.8107139468193054, -0.39237135648727417, 0.31608080863952637, 0.13055381178855896, 0.5207443833351135, 0.8141298890113831, 0.5157323479652405, 0.3158557713031769, -0.09951338171958923, 0.1075824722647667, -0.23548820614814758, -0.4597991108894348, 0.018780233338475227, -0.25029855966567993, -0.19745595753192902, 0.045397914946079254, 0.6754975318908691, 0.6893212199211121, -0.3593658208847046, -0.13253575563430786, -0.1570056825876236, 0.3099500238895416, -0.4180639386177063, 0.23817004263401031, -0.4085827171802521, -0.11567579954862595, -0.2658856511116028, -0.17780455946922302, -0.5120086073875427, -0.08387302607297897, 0.0922970399260521, -0.6048663258552551, -0.005936184898018837, 0.3009834587574005, 1.0913351774215698, 0.20096607506275177, -0.4315144717693329, -0.2704724669456482, -0.5145003795623779, 0.8687116503715515, -0.9700648784637451, 0.16292935609817505, 0.36949875950813293, 0.38164716958999634, -0.2004947066307068, -0.8273624777793884, -0.6617699861526489, -0.2548680007457733, -0.1831064671278, 0.31001442670822144, -0.23706763982772827, -0.1484517902135849, 0.09711308032274246, 0.43060022592544556, -0.3447889983654022, -0.20500098168849945, -0.7315079569816589, -0.13953764736652374, 0.6274141669273376, 0.2247169464826584, 0.30300450325012207, -0.4131794571876526, -0.5171575546264648, -0.009768691845238209, -0.4514978229999542, 0.1231740266084671, 0.18106205761432648, 0.32527294754981995, -0.19491341710090637, 0.5049378871917725, 0.11132542788982391, 0.597823977470398, -0.09889926016330719, -0.19958996772766113, 0.3534194529056549, -0.3227667808532715, -0.49533811211586, 0.014359908178448677, 0.9649316668510437, 0.25950151681900024, 0.3515525460243225, -0.004769083112478256, 0.08812490850687027, 0.022855514660477638, 0.36869943141937256, -0.6166657209396362, -0.31096187233924866, 0.052372127771377563, -0.3181045651435852, -0.291094034910202, 0.1763252466917038, -0.4004656970500946, -0.19275736808776855, -0.11227760463953018, 0.44364437460899353, -0.7020201086997986, -0.23437874019145966, 0.44374099373817444, -0.3473260700702667, -0.10453896224498749, -0.15899454057216644, -0.5683541297912598, 0.15355058014392853, 0.44960471987724304, 0.8570401072502136, 0.13928110897541046, -0.4458419680595398, -0.49217405915260315, 0.01087853405624628, -0.28987279534339905, 0.6082026362419128, -0.5114573836326599, -0.3066173791885376, -0.09852485358715057, 0.24705027043819427, -0.3285693824291229, -0.370953232049942, 0.6526111364364624, -0.3900158405303955, 0.6882699728012085, -0.2026449739933014, -0.7540113925933838, -0.27425864338874817, 0.14939230680465698, -0.4665422737598419, 0.9119275212287903, 0.3345559239387512, -0.8647832870483398, 0.3138442635536194, -0.6790315508842468, -0.42181095480918884, -0.25829869508743286, 0.020563336089253426, -0.6906945705413818, -0.04304453358054161, 0.09706190973520279, 0.16873690485954285, -0.3318040668964386, 0.48032620549201965, -0.11519164592027664, -0.22326047718524933, 0.2929930090904236, -0.21828749775886536, 1.291524052619934, 0.17085283994674683, -0.30243223905563354, -0.15345633029937744, -0.8328116536140442, -0.1352550983428955, 0.29987624287605286, -0.6600474715232849, -0.20598287880420685, -0.06035840883851051, -0.19077439606189728, 0.31373533606529236, 0.0176085177809, -0.6154575347900391, 0.23321282863616943, -0.5964043736457825, 0.7724475860595703, 0.5300876498222351, 0.04319146275520325, 0.20514100790023804, -0.5637646317481995, 0.48953309655189514, 0.1570858359336853, 0.11727229505777359, -0.5215974450111389, -0.6336855888366699, -0.9181507229804993, -0.45195090770721436, 0.12301807105541229, 0.5749785900115967, -0.6742614507675171, 0.6494414210319519, -0.04915234446525574, -0.368020236492157, -0.37026217579841614, -0.14670182764530182, 0.48639923334121704, 0.48427334427833557, 0.4195878803730011, -0.3137035071849823, -0.9689376950263977, -0.7665466070175171, -0.08006120473146439, -0.35671350359916687, -0.1438034474849701, 0.3260411322116852, 0.5906708836555481, -0.10176432132720947, 0.8196287155151367, -0.49943986535072327, -0.3916608989238739, -0.13670992851257324, 0.2146158665418625, 0.26022350788116455, 0.3378852605819702, 0.5007011294364929, -0.3397257328033447, -0.1618347018957138, -0.40200233459472656, -0.7269126772880554, -0.2695983052253723, -0.18461760878562927, -0.08068493753671646, 0.1718488484621048, 0.4936126470565796, -0.5731130242347717, 0.33351650834083557, 0.38972339034080505, -0.546721875667572, 0.6828968524932861, -0.29575416445732117, -0.18109288811683655, -1.2291754484176636, 0.23846058547496796, -0.20566152036190033, -0.2492416501045227, -0.5391248464584351, 0.05339156091213226, -0.1860830932855606, 0.06446371972560883, -0.34617260098457336, 0.5346285104751587, -0.44649118185043335, -0.2161504477262497, -0.16660712659358978, 0.10025779157876968, 0.2695947587490082, 0.4675298035144806, -0.045058172196149826, 0.6667936444282532, 0.45558059215545654, -0.6494702100753784, 0.1287018358707428, 0.34452855587005615, -0.38361692428588867, 0.42278411984443665, -0.4624844193458557, 0.06253324449062347, -0.1335126757621765, 0.2848052978515625, -1.0291825532913208, 0.05730952322483063, 0.26141080260276794, -0.4053727686405182, 0.1528240591287613, 0.3089176416397095, -0.3783012628555298, -0.5540894269943237, -0.1765953004360199, 0.1395854502916336, 0.38602158427238464, -0.5295189023017883, 0.6406399607658386, 0.2584061324596405, 0.2358546257019043, -0.38879016041755676, -0.6592748165130615, 0.41740134358406067, -0.1505783349275589, -0.5778680443763733, 0.374347984790802, -0.2562520205974579, -0.4717496931552887, -0.1518292874097824, 0.07914584875106812, -0.13511793315410614, 0.2056552618741989, 0.20736287534236908, 0.2723618447780609, -0.2141830027103424, 0.06628187000751495, -0.2222416251897812, -0.08139228820800781, 0.020292779430747032, -0.30560171604156494, 0.7646945118904114, 0.029842905700206757, 0.01006352063268423, -0.5153828859329224, 0.34360843896865845, 0.4130031168460846, -0.03653622791171074, 0.5961878895759583, 0.520891010761261, -0.3680064082145691, 0.16896818578243256, -0.30714449286460876, -0.3011205792427063, -0.4811089336872101, 0.16088439524173737, -0.5114932656288147, -0.476947546005249, 0.2330380231142044, 0.2676444351673126, 0.2772272825241089, 0.6079967021942139, 0.32772940397262573, -0.2716774642467499, 0.8515204787254333, 0.8214969038963318, -0.08700967580080032, 0.5067418217658997, -0.3921835422515869, 0.1240730732679367, -0.7018131613731384, -0.2293298989534378, -0.3244161903858185, -0.22872285544872284, -0.32981422543525696, -0.17580881714820862, 0.23562616109848022, 0.1655462235212326, -0.5016531944274902, 0.5155701041221619, -0.39616623520851135, 0.13004247844219208, 0.5034618973731995, 0.06594002991914749, 0.27446696162223816, 0.08461502194404602, -0.3687513768672943, -0.15563149750232697, -0.7478563189506531, -0.4474341571331024, 0.8777950406074524, 0.32611823081970215, 0.314919114112854, 0.15822921693325043, 0.5118646621704102, 0.19516634941101074, 0.3408859372138977, -0.7006292343139648, 0.4958952069282532, -0.531245768070221, -0.6146627068519592, 0.0015322129474952817, -0.23074831068515778, -0.9357629418373108, 0.040712565183639526, -0.01547175645828247, -0.7706650495529175, 0.14926064014434814, -0.05522536113858223, -0.4773001968860626, 0.3678233325481415, -0.5068168044090271, 0.6250537633895874, -0.07284475117921829, -0.02602636255323887, 0.07476645708084106, -0.6493449211120605, 0.47057974338531494, 0.15001879632472992, 0.27663394808769226, 0.061680909246206284, -0.058658335357904434, 0.9057771563529968, -0.6451575756072998, 0.8886961936950684, 0.07669971883296967, -0.014302636496722698, 0.2817099094390869, 0.10234393179416656, 0.26502978801727295, -0.18607434630393982, -0.088180311024189, 0.4324692487716675, 0.013944700360298157, -0.2650836408138275, -0.20167949795722961, 0.35576149821281433, -0.896869421005249, -0.5311095118522644, -0.48061758279800415, -0.4459952712059021, 0.2390882670879364, 0.21709482371807098, 0.6183646321296692, 0.5894033312797546, 0.08305873721837997, 0.12735436856746674, 0.21004900336265564, -0.22880423069000244, 0.7181333899497986, 0.6220930814743042, -0.38611119985580444, -0.5956044793128967, 0.5784220099449158, 0.05401674658060074, 0.262747198343277, 0.37932491302490234, 0.4329564571380615, -0.14353147149085999, -0.014628151431679726, -0.4425664246082306, 0.4430302679538727, -0.6410032510757446, -0.059358369559049606, -0.9425129294395447, -0.32522255182266235, -0.29207390546798706, -0.16586892306804657, -0.2670844495296478, -0.3681856393814087, -0.5800046324729919, 0.06960733234882355, 0.3236607611179352, 0.5396114587783813, 0.07552614063024521, 0.6805109977722168, -0.299396276473999, 0.040859371423721313, 0.086977019906044, 0.12281390279531479, -0.3773547410964966, -1.001454472541809, -0.08767588436603546, -0.1479722261428833, -0.3389066457748413, -0.8165273070335388, 0.6658440232276917, 0.43929344415664673, 0.2672055959701538, 0.4958101511001587, -0.039474006742239, 0.5566840171813965, -0.5422119498252869, 0.9517800211906433, 0.20154429972171783, -0.8235816359519958, 0.1465354859828949, -0.17641910910606384, 0.42783138155937195, 0.12688221037387848, 0.20933011174201965, -0.6290633678436279, -0.40654462575912476, -0.7755134701728821, -0.7422412633895874, 0.764653205871582, 0.3057504892349243, 0.038194797933101654, -0.16348549723625183, 0.41428545117378235, 0.1929803192615509, 0.4296739995479584, -0.5849652290344238, -0.42354875802993774, -0.560562789440155, -0.07869656383991241, -0.3271283507347107, -0.2981974184513092, -0.21746258437633514, -0.36981675028800964, 0.7371417284011841, -0.10077905654907227, 0.6808360815048218, 0.21803820133209229, 0.009542340412735939, 0.008889816701412201, 0.2171015441417694, 0.7228963971138, 0.8799228668212891, -0.3944509029388428, 0.26537182927131653, 0.05104554817080498, -0.28797975182533264, -0.07137656211853027, 0.05391262099146843, -0.12440137565135956, 0.41499781608581543, 0.40912291407585144, 1.1481237411499023, 0.2573486864566803, -0.5496392846107483, 0.4642525613307953, 0.005560601130127907, -0.30237287282943726, -0.773007869720459, 0.0028464021161198616, 0.14089751243591309, 0.1690039336681366, 0.40502092242240906, -0.025714317336678505, 0.005762606393545866, -0.928760290145874, 0.34846943616867065, 0.36019012331962585, -0.08742447197437286, -0.3140690326690674, 0.8346587419509888, -0.04354238137602806, -0.6558946967124939, 0.3624376654624939, -0.26357394456863403, -0.7907374501228333, 0.8125829100608826, 0.8199902176856995, 0.7930591106414795, -0.1882449835538864, 0.18803393840789795, 0.6355554461479187, 0.527343213558197, -0.042210426181554794, 0.47546762228012085, 0.10244075208902359, -0.6986039280891418, -0.18485209345817566, -0.4678565263748169, -0.1897372007369995, 0.3416149914264679, -0.3836415708065033, 0.44839829206466675, -0.803265392780304, -0.19844725728034973, 0.17872245609760284, 0.077975332736969, -0.7103224992752075, 0.40759530663490295, 0.09355950355529785, 0.9578115940093994, -0.8727979063987732, 0.7970502972602844, 0.633643388748169, -0.6636394262313843, -0.624405026435852, -0.06939544528722763, -0.06654632836580276, -0.9076744914054871, 0.5631453394889832, 0.4240267276763916, 0.119601309299469, 0.08853916078805923, -0.4989131987094879, -0.926515519618988, 1.1057816743850708, 0.25090327858924866, -0.6475083827972412, -0.1608455628156662, 0.03245529159903526, 0.48997679352760315, -0.6040439605712891, 0.5353702306747437, 0.8201578855514526, 0.43814441561698914, -0.019021550193428993, -0.9598010182380676, 0.11926005780696869, -0.11857752501964569, 0.00965481624007225, -0.023360099643468857, -0.7613976001739502, 1.3030062913894653, -0.2541901469230652, -0.3924465775489807, 0.2343147248029709, 0.26466959714889526, 0.25172820687294006, 0.29916173219680786, 0.6638501286506653, 0.5481413006782532, 0.7406570911407471, -0.09298234432935715, 1.1742690801620483, -0.2774105668067932, 0.33442065119743347, 1.0138192176818848, -0.07402969151735306, 0.7370367050170898, 0.449115127325058, -0.34451377391815186, 0.7158904075622559, 0.6039477586746216, 0.003371854778379202, 0.45502009987831116, 0.11580978333950043, -0.08808638155460358, -0.1934855878353119, -0.06020916625857353, -0.2668503224849701, 0.5190420150756836, 0.09606943279504776, -0.6214728951454163, -0.12968124449253082, 0.1501261293888092, 0.3932478427886963, -0.04812483862042427, -0.04534989967942238, 0.7230839133262634, 0.24402444064617157, -0.4921974539756775, 0.9209773540496826, 0.17957647144794464, 0.8077315092086792, -0.5030965805053711, 0.34724435210227966, -0.32028043270111084, 0.1848987340927124, -0.0235732551664114, -0.610660195350647, 0.40320131182670593, -0.26677247881889343, -0.24620647728443146, 0.08186120539903641, 0.41228917241096497, -0.4152512550354004, -0.5257499814033508, 0.3153500556945801, 0.17045052349567413, 0.442024827003479, -0.12147346138954163, -0.7449467778205872, -0.011355729773640633, 0.04949605464935303, -0.3633328974246979, -0.05747213587164879, 0.2025451362133026, 0.09913913160562515, 0.8291869759559631, 0.44426026940345764, 0.020626991987228394, 0.023320242762565613, -0.02800433337688446, 0.7016010880470276, -0.8227935433387756, -0.7054122090339661, -0.9278295040130615, 0.49132320284843445, -0.20253242552280426, -0.4855501651763916, 0.500312089920044, 0.48831257224082947, 0.6365914940834045, 0.06102278456091881, 0.8373521566390991, -0.18915186822414398, 0.45173782110214233, -0.5519907474517822, 0.46609213948249817, -0.7679548859596252, 0.3084832429885864, 0.022598136216402054, -0.6474234461784363, -0.18085937201976776, 0.46687135100364685, -0.32795068621635437, 0.08907011896371841, 1.0092936754226685, 0.5746774077415466, 0.001401923131197691, -0.019437555223703384, 0.3576067388057709, 0.2710060179233551, 0.38178443908691406, 0.5882236957550049, 0.44741737842559814, -0.7130370736122131, 0.784557580947876, -0.4061739444732666, -0.0027082739397883415, -0.36922237277030945, -0.8695690035820007, -0.9267996549606323, -0.7665618658065796, -0.3346361815929413, -0.5073249340057373, 0.12405624985694885, 1.0017229318618774, 0.6009230613708496, -0.7046452164649963, -0.22136454284191132, -0.03276435658335686, -0.2000526338815689, -0.3828962743282318, -0.31745997071266174, 0.4325457811355591, -0.1104917973279953, -0.5439514517784119, 0.4612448513507843, 0.14516253769397736, -0.15233568847179413, -0.3305923640727997, 0.07612629234790802, -0.5483483672142029, 0.30610713362693787, 0.6509791016578674, 0.31596624851226807, -0.7045651078224182, -0.37406980991363525, 0.0603451207280159, -0.1865157186985016, 0.3739210069179535, 0.7236873507499695, -0.8215824961662292, 0.5267370939254761, 0.2679859697818756, 0.48370790481567383, 0.4057718515396118, -0.04913470149040222, 0.5261772871017456, -0.991445004940033, 0.003356344299390912, -0.13462594151496887, 0.7037314772605896, 0.5631725192070007, -0.42601945996284485, 0.4807022511959076, 0.6172692179679871, -0.569274365901947, -0.7533511519432068, 0.04013269022107124, -0.8195053339004517, -0.5067371129989624, 1.1942919492721558, -0.1704653799533844, -0.33112093806266785, -0.20218588411808014, -0.5621046423912048, 0.4515675902366638, -0.4988425374031067, 1.0716303586959839, 0.7010606527328491, 0.11723341792821884, -0.47850939631462097, -0.718909502029419, 0.4261038303375244, 0.4738517105579376, -0.6802624464035034, -0.10571692138910294, 0.36813727021217346, 0.6275004148483276, 0.3495997488498688, 0.7426140904426575, 0.1630300134420395, 0.24538089334964752, -0.10089939832687378, 0.2917267084121704, -0.20397095382213593, -0.16305413842201233, -0.2703028619289398, 0.04501194879412651, -0.2487950474023819, -0.4595318138599396 ]
mrm8488/t5-base-finetuned-question-generation-ap
mrm8488
"2023-05-31T10:57:57Z"
22,348
93
transformers
[ "transformers", "pytorch", "tf", "safetensors", "t5", "text2text-generation", "en", "dataset:squad", "arxiv:1910.10683", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: en datasets: - squad widget: - text: >- answer: Manuel context: Manuel has created RuPERTa-base with the support of HF-Transformers and Google license: apache-2.0 --- # T5-base fine-tuned on SQuAD for **Question Generation** [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) fine-tuned on [SQuAD v1.1](https://rajpurkar.github.io/SQuAD-explorer/) for **Question Generation** by just prepending the *answer* to the *context*. ## Details of T5 The **T5** model was presented in [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://arxiv.org/pdf/1910.10683.pdf) by *Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu* in Here the abstract: Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new “Colossal Clean Crawled Corpus”, we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our dataset, pre-trained models, and code. ![model image](https://i.imgur.com/jVFMMWR.png) ## Details of the downstream task (Q&A) - Dataset 📚 🧐 ❓ Dataset ID: ```squad``` from [Huggingface/NLP](https://github.com/huggingface/nlp) | Dataset | Split | # samples | | -------- | ----- | --------- | | squad | train | 87599 | | squad | valid | 10570 | How to load it from [nlp](https://github.com/huggingface/nlp) ```python train_dataset = nlp.load_dataset('squad', split=nlp.Split.TRAIN) valid_dataset = nlp.load_dataset('squad', split=nlp.Split.VALIDATION) ``` Check out more about this dataset and others in [NLP Viewer](https://huggingface.co/nlp/viewer/) ## Model fine-tuning 🏋️‍ The training script is a slightly modified version of [this awesome one](https://colab.research.google.com/github/patil-suraj/exploring-T5/blob/master/T5_on_TPU.ipynb) by [Suraj Patil](https://twitter.com/psuraj28) He also made a great research on [**Question Generation**](https://github.com/patil-suraj/question_generation) ## Model in Action 🚀 ```python # Tip: By now, install transformers from source from transformers import AutoModelWithLMHead, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("mrm8488/t5-base-finetuned-question-generation-ap") model = AutoModelWithLMHead.from_pretrained("mrm8488/t5-base-finetuned-question-generation-ap") def get_question(answer, context, max_length=64): input_text = "answer: %s context: %s </s>" % (answer, context) features = tokenizer([input_text], return_tensors='pt') output = model.generate(input_ids=features['input_ids'], attention_mask=features['attention_mask'], max_length=max_length) return tokenizer.decode(output[0]) context = "Manuel has created RuPERTa-base with the support of HF-Transformers and Google" answer = "Manuel" get_question(answer, context) # output: question: Who created the RuPERTa-base? ``` ## Citation If you want to cite this model you can use this: ```bibtex @misc{mromero2021t5-base-finetuned-question-generation-ap, title={T5 (base) fine-tuned on SQUAD for QG via AP}, author={Romero, Manuel}, publisher={Hugging Face}, journal={Hugging Face Hub}, howpublished={\url{https://huggingface.co/mrm8488/t5-base-finetuned-question-generation-ap}}, year={2021} } ``` > Created by [Manuel Romero/@mrm8488](https://twitter.com/mrm8488) | [LinkedIn](https://www.linkedin.com/in/manuel-romero-cs/) > Made with <span style="color: #e25555;">&hearts;</span> in Spain
[ -0.5431523323059082, -0.5797573328018188, 0.15360131859779358, 0.3432707190513611, 0.03943045809864998, 0.053318142890930176, -0.21937857568264008, -0.47135987877845764, 0.01984933391213417, 0.2763865888118744, -0.8386515378952026, -0.425821989774704, -0.4983764886856079, 0.29847437143325806, -0.32339295744895935, 1.1304908990859985, -0.028669070452451706, -0.17196613550186157, -0.06432247161865234, -0.22433316707611084, -0.3538094758987427, -0.3723888397216797, -0.6627338528633118, -0.28688308596611023, 0.34273815155029297, 0.212297260761261, 0.29917240142822266, 0.4114283323287964, 0.4602642059326172, 0.2672599256038666, -0.09472603350877762, 0.2955334782600403, -0.43513908982276917, -0.06901288777589798, -0.2478378415107727, -0.3293643295764923, -0.49673011898994446, 0.0259080957621336, 0.47142693400382996, 0.6944961547851562, 0.09546105563640594, 0.43006661534309387, 0.08797677606344223, 0.43831369280815125, -0.4723728895187378, 0.1303194761276245, -0.6594064235687256, 0.02142999693751335, 0.18479400873184204, -0.2318323254585266, -0.4657350778579712, -0.23203498125076294, 0.35467085242271423, -0.5367018580436707, 0.46419432759284973, -0.04340483993291855, 1.197417974472046, 0.31148970127105713, -0.27311888337135315, -0.20678596198558807, -0.5895522832870483, 0.8830434679985046, -0.6462668180465698, 0.19028930366039276, 0.35321280360221863, 0.15142501890659332, 0.050690509378910065, -0.7795853018760681, -0.5761674046516418, -0.032273128628730774, -0.22342194616794586, 0.06624403595924377, -0.25123482942581177, -0.26755374670028687, 0.19780613481998444, 0.2406637966632843, -0.6647533178329468, -0.18256914615631104, -0.6284497380256653, -0.2258320450782776, 0.6999988555908203, -0.1036243885755539, 0.39699140191078186, -0.3821275234222412, -0.5322034955024719, -0.2726172208786011, -0.567380964756012, 0.13229908049106598, 0.038842178881168365, 0.3441532254219055, -0.3361850380897522, 0.33504509925842285, -0.1486704796552658, 0.6021945476531982, 0.3942422866821289, 0.1443696767091751, 0.4156021475791931, -0.5909730792045593, -0.11426032334566116, -0.23465850949287415, 1.0660635232925415, 0.23212265968322754, 0.44613608717918396, -0.33337581157684326, 0.05865218862891197, -0.3247205913066864, 0.28322935104370117, -0.8548438549041748, -0.22476105391979218, 0.2273937165737152, -0.2060522437095642, -0.40451040863990784, 0.05418995022773743, -0.6065672636032104, 0.07673945277929306, -0.1053098514676094, 0.48189273476600647, -0.5419930219650269, -0.39612913131713867, 0.14071319997310638, -0.039211854338645935, 0.47938504815101624, 0.0633809044957161, -1.0359277725219727, 0.022181617096066475, 0.2869412302970886, 0.5577219128608704, -0.21569958329200745, -0.42560043931007385, -0.26635614037513733, 0.0034258351661264896, -0.11173614114522934, 0.8067073822021484, -0.12712571024894714, -0.12241130322217941, -0.06254660338163376, 0.26678159832954407, -0.34818893671035767, -0.4567660689353943, 0.3714646100997925, -0.4144853353500366, 0.6171335577964783, -0.29935377836227417, -0.3353002965450287, -0.2173585742712021, 0.3663509786128998, -0.4737284779548645, 1.0651437044143677, 0.29689428210258484, -0.6387959718704224, 0.2938315272331238, -0.8007272481918335, -0.3056652545928955, -0.09188038855791092, 0.29067572951316833, -0.37562862038612366, -0.36341241002082825, 0.4197157025337219, 0.527093231678009, -0.19111818075180054, 0.2553912401199341, -0.226037859916687, -0.030703965574502945, 0.20535945892333984, -0.04567192122340202, 1.1899625062942505, 0.1808292120695114, -0.24495460093021393, 0.05818048492074013, -0.7151950001716614, 0.21950191259384155, 0.18849042057991028, -0.26761743426322937, -0.04108746349811554, -0.2947534918785095, -0.099492147564888, 0.4059445261955261, 0.2694088816642761, -0.3572368025779724, 0.07879334688186646, -0.45036694407463074, 0.5857289433479309, 0.4653220772743225, 0.09985674172639847, 0.561208963394165, -0.44773411750793457, 0.5102187395095825, -0.049831029027700424, 0.07308785617351532, -0.12029389292001724, -0.40369632840156555, -0.8030489087104797, 0.008267570286989212, 0.48417574167251587, 0.5932438969612122, -0.6110947132110596, 0.7140389680862427, -0.16585606336593628, -0.5227458477020264, -0.7211735844612122, 0.12052047252655029, 0.25129133462905884, 0.7128530144691467, 0.848612368106842, -0.0006038406281732023, -0.8200144171714783, -0.6699622273445129, -0.15640698373317719, -0.2620536983013153, -0.07768338918685913, 0.2089659571647644, 0.6330839991569519, -0.1883445829153061, 1.0160528421401978, -0.4291648268699646, -0.21519127488136292, -0.6431539058685303, 0.11890538036823273, 0.028773263096809387, 0.8071259260177612, 0.6784451007843018, -0.6357508301734924, -0.48202192783355713, -0.24469318985939026, -0.8722367882728577, -0.2312173694372177, -0.14434780180454254, -0.38646751642227173, 0.1538461595773697, 0.44892147183418274, -0.7021342515945435, 0.07040856778621674, 0.39661914110183716, -0.401528000831604, 0.4577641487121582, 0.0025674004573374987, -0.05867083743214607, -1.474566102027893, 0.3942111134529114, 0.01777360774576664, -0.23726795613765717, -0.6549354195594788, 0.1085369884967804, 0.04879775643348694, 0.09020961076021194, -0.5371509194374084, 0.6402779817581177, -0.3545880913734436, 0.22431735694408417, -0.03747324272990227, 0.028491757810115814, 0.12666229903697968, 0.6963163018226624, -0.16200998425483704, 0.6825878620147705, 0.3867640793323517, -0.7264117002487183, 0.21043501794338226, 0.697614848613739, -0.06775294244289398, 0.38206878304481506, -0.7962175011634827, 0.2288540005683899, -0.035627175122499466, 0.25541436672210693, -0.9976575374603271, 0.009566332213580608, 0.3911542594432831, -0.712557852268219, 0.37435463070869446, -0.12203630059957504, -0.3553691804409027, -0.3273656964302063, -0.31066659092903137, 0.3170824944972992, 0.5781151056289673, -0.4662153720855713, 0.390473335981369, 0.29762348532676697, -0.02124250866472721, -0.7001930475234985, -0.7274094223976135, -0.13148899376392365, -0.3009759783744812, -0.7094623446464539, 0.5696203708648682, -0.27242305874824524, 0.07263138890266418, 0.034525807946920395, -0.10691096633672714, -0.23221318423748016, 0.17190930247306824, -0.13525645434856415, 0.3548928499221802, -0.31831100583076477, 0.1759532392024994, 0.01812438666820526, -0.08980213850736618, 0.13467121124267578, -0.13424831628799438, 0.7109737396240234, -0.23331080377101898, 0.1637541949748993, -0.4018295407295227, 0.217264786362648, 0.2811940014362335, -0.35940712690353394, 0.7008467316627502, 0.8567013144493103, -0.22051337361335754, -0.3382173776626587, -0.445392370223999, -0.2437628209590912, -0.45999303460121155, 0.38705068826675415, -0.3133045434951782, -0.7500251531600952, 0.545308530330658, 0.10206466168165207, 0.18033982813358307, 0.9110249280929565, 0.5127891898155212, -0.18102456629276276, 0.9215900897979736, 0.7484994530677795, 0.021136006340384483, 0.5003532767295837, -0.7114517688751221, -0.016929825767874718, -0.9442895650863647, -0.33965960144996643, -0.5904580950737, -0.30316591262817383, -0.603251576423645, -0.26241710782051086, 0.07371276617050171, 0.14618441462516785, -0.44857779145240784, 0.6862560510635376, -0.5515048503875732, 0.2745455205440521, 0.36549288034439087, 0.0639604777097702, 0.22187618911266327, -0.08912862837314606, -0.02342861518263817, 0.10807483643293381, -0.8043805956840515, -0.37823885679244995, 1.1911647319793701, 0.2722557485103607, 0.39785563945770264, -0.03228273242712021, 0.7068651914596558, 0.06073930114507675, 0.2573396563529968, -0.6473339200019836, 0.6367108225822449, 0.00882801879197359, -0.701820969581604, -0.20167142152786255, -0.48563650250434875, -1.1600253582000732, 0.20219868421554565, -0.3682774603366852, -0.5778104662895203, 0.21197670698165894, -0.09792417287826538, -0.48669883608818054, 0.14104925096035004, -0.8332666754722595, 0.9490728378295898, 0.05092267319560051, -0.24496808648109436, 0.15108630061149597, -0.7881624698638916, 0.28625810146331787, 0.06789285689592361, -0.1371443271636963, -0.04642689228057861, 0.09632045030593872, 0.8732089400291443, -0.33702579140663147, 0.6911228895187378, -0.11253676563501358, 0.03383156284689903, 0.28150394558906555, -0.11443520337343216, 0.13662920892238617, -0.016365328803658485, -0.006792688276618719, 0.05940362438559532, 0.06472651660442352, -0.4437548518180847, -0.4720584452152252, 0.5175380110740662, -0.8356683850288391, -0.3570801913738251, -0.26917338371276855, -0.6499483585357666, -0.20517544448375702, 0.29916617274284363, 0.4264318645000458, 0.19309672713279724, -0.10946326702833176, 0.2122061550617218, 0.7111424207687378, -0.2735150456428528, 0.6259512901306152, 0.4227962791919708, -0.07553321868181229, -0.13865171372890472, 0.6317500472068787, 0.03891535475850105, 0.32809069752693176, 0.4164586067199707, 0.1903846114873886, -0.3855219781398773, -0.47131291031837463, -0.5966173410415649, 0.4645604193210602, -0.5185908675193787, -0.3309211730957031, -0.865780234336853, -0.4876004755496979, -0.5726494193077087, 0.07268381863832474, -0.38498610258102417, -0.44805973768234253, -0.44563451409339905, -0.18962302803993225, 0.3480399250984192, 0.40528544783592224, 0.02185557782649994, 0.21954934298992157, -0.6992852091789246, 0.3847239017486572, 0.3249931335449219, 0.12586459517478943, -0.13420100510120392, -0.7366462349891663, -0.15449939668178558, 0.14656198024749756, -0.5190450549125671, -0.8004119992256165, 0.49689939618110657, 0.17360836267471313, 0.486866295337677, 0.024191299453377724, 0.15696799755096436, 0.5850391387939453, -0.2227756828069687, 0.7408444285392761, -0.03658660501241684, -0.8299204707145691, 0.600284993648529, -0.29488006234169006, 0.3570683002471924, 0.7132353782653809, 0.4551231861114502, -0.23716042935848236, -0.29835063219070435, -0.909159779548645, -0.847488284111023, 0.8535545468330383, 0.2525445818901062, 0.18655383586883545, 0.15436384081840515, 0.25321710109710693, 0.02239425852894783, 0.17140410840511322, -0.8055418729782104, -0.35855308175086975, -0.1878519356250763, -0.2890886962413788, 0.1136290431022644, 0.06494121253490448, -0.030997028574347496, -0.4872809052467346, 0.7009520530700684, -0.16016602516174316, 0.48052069544792175, 0.4107394218444824, -0.3821864426136017, -0.06564802676439285, 0.15095767378807068, 0.5461027026176453, 0.6215603351593018, -0.38363194465637207, -0.1620730459690094, 0.3795678913593292, -0.4260405898094177, -0.043324269354343414, 0.28133735060691833, -0.3016439378261566, 0.013867121189832687, 0.40571853518486023, 0.8135524988174438, 0.03101140819489956, -0.38334837555885315, 0.49827486276626587, 0.06696590036153793, -0.486352801322937, -0.26347196102142334, 0.115779347717762, 0.05664116144180298, 0.17298458516597748, 0.38549119234085083, 0.23501820862293243, -0.03189137578010559, -0.5954096913337708, 0.26568174362182617, 0.3051028847694397, -0.2648290693759918, -0.505893349647522, 0.6924101710319519, 0.11584043502807617, -0.266634076833725, 0.4414430856704712, -0.26925668120384216, -0.6010161638259888, 0.6336020231246948, 0.5871062874794006, 0.8834906816482544, -0.18559537827968597, 0.3891952633857727, 0.6888449788093567, 0.2860775589942932, -0.08366969227790833, 0.22830088436603546, -0.14669018983840942, -0.8897197842597961, -0.5892648696899414, -0.526085376739502, -0.256925493478775, 0.2923252582550049, -0.5424999594688416, 0.3575730621814728, -0.37334421277046204, 0.015857284888625145, 0.055232539772987366, 0.14841099083423615, -0.7978134751319885, 0.2427096962928772, 0.034321077167987823, 0.7954286336898804, -0.6684576869010925, 0.6434593200683594, 0.7110835909843445, -0.6032322645187378, -0.9484134316444397, 0.0478326678276062, -0.4157164692878723, -0.9286481738090515, 0.5436887741088867, 0.18574932217597961, 0.020708337426185608, 0.2428808957338333, -0.771843671798706, -0.8223419785499573, 1.1086411476135254, 0.3339811861515045, -0.017767509445548058, -0.3718443512916565, 0.1356334388256073, 0.6760214567184448, -0.40306180715560913, 0.3710826635360718, 0.6043502688407898, 0.4055718183517456, 0.20198386907577515, -0.8731531500816345, 0.2841022312641144, -0.4359722435474396, -0.3033297657966614, -0.06854398548603058, -0.6934136748313904, 0.8083671927452087, -0.35838407278060913, -0.0900060385465622, 0.01777360774576664, 0.6567161083221436, 0.25512972474098206, 0.2528885006904602, 0.4967450499534607, 0.47072485089302063, 0.6400038003921509, -0.1327996402978897, 0.978654146194458, -0.21660931408405304, 0.6354572176933289, 0.8517995476722717, 0.1377294361591339, 0.7296627759933472, 0.4388371706008911, -0.25415074825286865, 0.5815087556838989, 0.47017350792884827, -0.24250203371047974, 0.5219656825065613, 0.1383170336484909, 0.1495811939239502, -0.10886288434267044, 0.02553192339837551, -0.4933376908302307, 0.4387339651584625, 0.14823117852210999, -0.3954836428165436, -0.30932292342185974, -0.10917507112026215, 0.16406387090682983, -0.14229872822761536, -0.06736988574266434, 0.84101402759552, 0.06035275757312775, -0.7883227467536926, 0.9603287577629089, -0.13895221054553986, 0.8520660996437073, -0.6187964081764221, 0.11032511293888092, -0.266324907541275, 0.05499180778861046, -0.29387006163597107, -0.6672381162643433, 0.4842154383659363, 0.04262140393257141, -0.15409763157367706, -0.510696291923523, 0.7005150318145752, -0.500455379486084, -0.3827665448188782, 0.18956488370895386, 0.7216721177101135, 0.12483397126197815, 0.03760835900902748, -0.8989488482475281, -0.32696613669395447, 0.22959330677986145, -0.41012415289878845, 0.3187677264213562, 0.3589930534362793, 0.22059094905853271, 0.6584102511405945, 0.7019861936569214, -0.004787018988281488, 0.0806937888264656, -0.08525130897760391, 0.7187727689743042, -0.7176297307014465, -0.3557615578174591, -0.8013931512832642, 0.7160474061965942, -0.08214064687490463, -0.6855324506759644, 0.5793688297271729, 0.4417349100112915, 0.9387446045875549, -0.16479730606079102, 0.7668156623840332, -0.2916525602340698, 0.6196094155311584, -0.3386123776435852, 0.8117245435714722, -0.5957301259040833, 0.2039569616317749, -0.30106356739997864, -0.8228163719177246, -0.27846136689186096, 0.740841269493103, -0.22364701330661774, 0.20131418108940125, 0.8004231452941895, 0.7439079880714417, -0.033344704657793045, -0.04700952023267746, -0.07774906605482101, 0.19925402104854584, 0.3158431649208069, 0.7561406493186951, 0.6527519822120667, -0.8148446083068848, 0.8166972398757935, -0.44316956400871277, 0.05774686485528946, -0.040261272341012955, -0.6968021392822266, -1.0029515027999878, -0.7519999146461487, -0.40077224373817444, -0.5325783491134644, -0.16611385345458984, 0.9939860105514526, 0.7545968890190125, -0.8026679754257202, -0.1196843832731247, -0.27399563789367676, 0.12078744173049927, -0.19720759987831116, -0.28289809823036194, 0.5070899128913879, -0.5037559866905212, -0.8712787628173828, 0.2243373543024063, -0.24362660944461823, 0.144342303276062, -0.10560712963342667, 0.1184859424829483, -0.47405603528022766, -0.1444501429796219, 0.5120260119438171, 0.38570350408554077, -0.3517153859138489, -0.19345919787883759, 0.3548769950866699, -0.13180766999721527, 0.2027195245027542, 0.4002399146556854, -0.8412266373634338, 0.09264060854911804, 0.6308107376098633, 0.7370302677154541, 0.6111287474632263, -0.000059633792261593044, 0.5955872535705566, -0.7048877477645874, -0.05133535712957382, 0.27229398488998413, 0.20389920473098755, 0.46123531460762024, -0.18508033454418182, 0.6748384833335876, 0.3436196744441986, -0.5008935928344727, -0.8568367958068848, -0.041597068309783936, -1.2568608522415161, -0.1198483556509018, 1.242323875427246, -0.03224828094244003, -0.18704037368297577, -0.020557520911097527, -0.2287817895412445, 0.5238538384437561, -0.3080577850341797, 0.8358272910118103, 0.6663818359375, -0.06251982599496841, -0.18676447868347168, -0.58379065990448, 0.6158690452575684, 0.6430370807647705, -0.9227113127708435, -0.20912782847881317, -0.02009596861898899, 0.46403995156288147, 0.2581759989261627, 0.5268287062644958, -0.026979269459843636, 0.20130853354930878, -0.41247251629829407, 0.1554839164018631, -0.16283254325389862, -0.10351347178220749, -0.1942618191242218, 0.2507299482822418, -0.3793985843658447, -0.34897860884666443 ]
Habana/bert-large-uncased-whole-word-masking
Habana
"2023-09-08T16:18:32Z"
22,290
0
null
[ "optimum_habana", "license:apache-2.0", "region:us" ]
null
"2022-04-22T18:04:29Z"
--- license: apache-2.0 --- [Optimum Habana](https://github.com/huggingface/optimum-habana) is the interface between the Hugging Face Transformers and Diffusers libraries and Habana's Gaudi processor (HPU). It provides a set of tools enabling easy and fast model loading, training and inference on single- and multi-HPU settings for different downstream tasks. Learn more about how to take advantage of the power of Habana HPUs to train and deploy Transformers and Diffusers models at [hf.co/hardware/habana](https://huggingface.co/hardware/habana). ## BERT Large model HPU configuration This model only contains the `GaudiConfig` file for running the [bert-large-uncased-whole-word-masking](https://huggingface.co/bert-large-uncased-whole-word-masking) model on Habana's Gaudi processors (HPU). **This model contains no model weights, only a GaudiConfig.** This enables to specify: - `use_fused_adam`: whether to use Habana's custom AdamW implementation - `use_fused_clip_norm`: whether to use Habana's fused gradient norm clipping operator - `use_torch_autocast`: whether to use Torch Autocast for managing mixed precision ## Usage The model is instantiated the same way as in the Transformers library. The only difference is that there are a few new training arguments specific to HPUs.\ It is strongly recommended to train this model doing bf16 mixed-precision training for optimal performance and accuracy. [Here](https://github.com/huggingface/optimum-habana/blob/main/examples/question-answering/run_qa.py) is a question-answering example script to fine-tune a model on SQuAD. You can run it with BERT Large with the following command: ```bash python run_qa.py \ --model_name_or_path bert-large-uncased-whole-word-masking \ --gaudi_config_name gaudi_config_name_or_path \ --dataset_name squad \ --do_train \ --do_eval \ --per_device_train_batch_size 24 \ --per_device_eval_batch_size 8 \ --learning_rate 3e-5 \ --num_train_epochs 2 \ --max_seq_length 384 \ --doc_stride 128 \ --output_dir /tmp/squad/ \ --use_habana \ --use_lazy_mode \ --throughput_warmup_steps 3 \ --bf16 ``` Check the [documentation](https://huggingface.co/docs/optimum/habana/index) out for more advanced usage and examples.
[ -0.7892171740531921, -0.9956452250480652, 0.2778295874595642, 0.2341073602437973, -0.15447396039962769, 0.004283830989152193, -0.1192491427063942, -0.5085077881813049, 0.3383197486400604, 0.27985259890556335, -0.6066029667854309, -0.19652298092842102, -0.41310596466064453, -0.1967417299747467, -0.3235376179218292, 1.1274983882904053, -0.032091788947582245, -0.2361660748720169, -0.22153371572494507, -0.1635083556175232, -0.38395601511001587, -0.5403940081596375, -1.0411934852600098, -0.4356200695037842, 0.2950100004673004, 0.14022982120513916, 0.9235783815383911, 0.46894124150276184, 0.48913130164146423, 0.4180069863796234, -0.24161356687545776, 0.1210622489452362, -0.52186518907547, -0.0675244852900505, 0.10461753606796265, -0.3338634669780731, -0.5020129680633545, 0.12346678227186203, 0.651996374130249, 0.09835198521614075, -0.2060706913471222, 0.30478668212890625, -0.031874578446149826, 0.4949377775192261, -0.5626659989356995, -0.11799857765436172, -0.27760985493659973, 0.10550263524055481, -0.15506981313228607, -0.14860433340072632, -0.1339171677827835, -0.22272826731204987, 0.15325599908828735, -0.5986746549606323, 0.2672290802001953, 0.1987198144197464, 1.469259262084961, 0.6967335343360901, -0.33446717262268066, 0.11405319720506668, -0.6766654253005981, 0.8392984867095947, -0.4982263147830963, 0.25441282987594604, 0.3686456084251404, 0.6225144267082214, -0.1674576997756958, -0.722981333732605, -0.46138861775398254, 0.020043157041072845, -0.035702191293239594, 0.25251689553260803, -0.46726351976394653, 0.3593209385871887, 0.35868752002716064, 0.6681970953941345, -0.41098734736442566, 0.025819269940257072, -0.4600816071033478, -0.29679927229881287, 0.551356315612793, 0.02154257893562317, 0.1396765112876892, -0.38969430327415466, -0.46808141469955444, -0.20960970222949982, -0.33340010046958923, 0.03540463745594025, 0.44704174995422363, -0.15016387403011322, -0.3292424976825714, 0.2733335793018341, -0.08800110965967178, 0.8818145990371704, 0.1350843459367752, -0.06990403681993484, 0.4515219032764435, 0.05456986278295517, -0.5665509104728699, -0.229701966047287, 0.7753079533576965, 0.03454934433102608, 0.12703843414783478, -0.016462670639157295, -0.2980966866016388, 0.11241880059242249, 0.7916532158851624, -0.7322957515716553, -0.42187756299972534, 0.4125062823295593, -0.5123177766799927, -0.5950948596000671, -0.4172094166278839, -0.8545563817024231, 0.07710136473178864, -0.2164750099182129, 0.8720701932907104, -0.4447576701641083, -0.02642374113202095, -0.1034364402294159, -0.32348960638046265, 0.3985607922077179, 0.2931269109249115, -0.8469489812850952, 0.3360709547996521, 0.3600195348262787, 0.8459650278091431, -0.1700855791568756, -0.21902018785476685, -0.3691592216491699, -0.0821579322218895, -0.03685540333390236, 0.6038874387741089, -0.14779938757419586, -0.23010039329528809, 0.0026472273748368025, 0.12195447832345963, -0.2028162181377411, -0.5023196339607239, 0.8583179116249084, -0.45637914538383484, 0.4125610589981079, 0.22709950804710388, -0.5489155650138855, -0.3689954876899719, -0.02894887514412403, -0.6265643239021301, 1.456573247909546, 0.44137564301490784, -0.5451989769935608, 0.14709407091140747, -0.694831907749176, -0.49021944403648376, -0.0388655886054039, 0.025276998057961464, -0.7037674784660339, 0.08547504991292953, 0.12744222581386566, 0.4710769057273865, -0.171504408121109, 0.1509263515472412, -0.203965425491333, -0.4005248546600342, -0.013678625226020813, -0.1976989358663559, 1.1882836818695068, 0.30847036838531494, -0.40564948320388794, 0.44730719923973083, -0.7335869669914246, -0.10045991092920303, 0.222463920712471, -0.4681817293167114, -0.11041036248207092, -0.30422019958496094, 0.19489288330078125, 0.12585289776325226, 0.34260135889053345, -0.46024197340011597, -0.0016501607606187463, 0.016194814816117287, 0.6679701209068298, 0.8440669775009155, -0.1330014020204544, 0.3150898218154907, -0.6125091314315796, 0.6141133904457092, -0.3679344654083252, 0.7238001227378845, 0.21212133765220642, -0.8306908011436462, -1.0113693475723267, -0.6318926811218262, -0.0032601989805698395, 0.45454463362693787, -0.39735865592956543, 0.6390464901924133, 0.23772090673446655, -0.6794019937515259, -0.9440486431121826, 0.11021515727043152, 0.24449275434017181, 0.6667642593383789, 0.5000589489936829, -0.19215090572834015, -0.7724612951278687, -1.0693856477737427, 0.1402786374092102, -0.1323629915714264, -0.00808972679078579, 0.5347903370857239, 0.5157824158668518, -0.33594760298728943, 0.8014795184135437, -0.4684169888496399, -0.5201078653335571, -0.06786227971315384, 0.012499578297138214, 0.5565971732139587, 0.4470864534378052, 0.7151535749435425, -0.7952954769134521, -0.33158397674560547, -0.28168240189552307, -0.7838444113731384, -0.014013056643307209, -0.051545266062021255, -0.695514440536499, 0.2882035970687866, 0.28277742862701416, -0.7625595927238464, 0.40375643968582153, 0.774306058883667, -0.15697140991687775, 0.6343288421630859, -0.3831545114517212, -0.07580523192882538, -1.0123881101608276, 0.24904197454452515, -0.030328873544931412, -0.5194289088249207, -0.5797230005264282, 0.3033990263938904, 0.013904115185141563, -0.004316230304539204, -0.4094116687774658, 0.6035065650939941, -0.24713701009750366, 0.09341530501842499, -0.2070460468530655, -0.2130770981311798, 0.15782849490642548, 0.7528885006904602, -0.06384729593992233, 0.8249000310897827, 0.47780361771583557, -0.6210657358169556, 0.482677161693573, 0.48424863815307617, -0.3760022521018982, 0.39461183547973633, -0.9537171721458435, 0.18101869523525238, 0.0017537936801090837, 0.20305588841438293, -0.8893563747406006, -0.4320046901702881, 0.09193146228790283, -0.5799123644828796, 0.3718731999397278, -0.0866815522313118, -0.2780781686306, -0.6522102355957031, -0.2333080768585205, 0.22029425203800201, 1.1105833053588867, -0.9099763035774231, 0.6850360631942749, 0.8384286165237427, 0.2606287896633148, -0.5473954677581787, -0.4980682134628296, -0.15362568199634552, -0.5512698888778687, -0.7772793173789978, 0.696179986000061, -0.14177091419696808, 0.05118298530578613, -0.1712121069431305, 0.09479428827762604, -0.25961264967918396, 0.1980157345533371, 0.31500160694122314, 0.5166604518890381, 0.1743149608373642, -0.030582008883357048, 0.021683961153030396, 0.017846740782260895, 0.14248763024806976, -0.10693705826997757, 0.6956482529640198, -0.3177797794342041, 0.19015908241271973, -0.3404857814311981, 0.13951042294502258, 0.44611644744873047, -0.06690909713506699, 0.7421254515647888, 1.1001780033111572, -0.41445595026016235, -0.16851618885993958, -0.7792423963546753, -0.13103078305721283, -0.5710713267326355, 0.048680368810892105, -0.2758367359638214, -0.6850525736808777, 0.5849319100379944, 0.185243159532547, 0.13381686806678772, 0.5897504091262817, 0.7489606738090515, -0.3931027352809906, 0.9827500581741333, 0.7994534373283386, -0.3131859302520752, 0.6487830877304077, -0.4753522276878357, -0.00029696826823055744, -1.0444172620773315, -0.12277834862470627, -0.6032330989837646, -0.2565954923629761, -0.296707421541214, -0.3055917024612427, 0.6175132989883423, 0.042484086006879807, -0.4132368266582489, 0.4653193950653076, -0.8616864085197449, 0.18170107901096344, 0.8656307458877563, 0.27182498574256897, -0.03388410806655884, 0.0338921882212162, -0.01593877375125885, 0.32933947443962097, -0.82246333360672, -0.2094530463218689, 0.8600375652313232, 0.4750533699989319, 0.7415774464607239, 0.00861256942152977, 0.7162173390388489, 0.15437161922454834, -0.006056307815015316, -0.8958290815353394, 0.41666102409362793, 0.09109707921743393, -0.8940398097038269, -0.24049414694309235, -0.3295675218105316, -0.8741528391838074, 0.15010249614715576, -0.28812965750694275, -0.5153058171272278, 0.2299441248178482, 0.21706119179725647, -0.3958207666873932, 0.21644604206085205, -0.615526020526886, 0.873116135597229, -0.015314420685172081, -0.4071418344974518, -0.1975909322500229, -0.6487563252449036, 0.270490825176239, -0.1055876836180687, 0.02081754244863987, -0.05248183384537697, 0.16548851132392883, 0.9809175133705139, -0.4980340898036957, 0.6859439611434937, -0.28700020909309387, 0.036227867007255554, 0.33762550354003906, -0.2206384688615799, 0.32686591148376465, -0.09883246570825577, -0.08349808305501938, 0.3402754068374634, -0.08919716626405716, -0.4860444664955139, -0.2284691482782364, 0.5228003859519958, -1.1844362020492554, -0.4033624827861786, -0.3222043216228485, -0.608692467212677, 0.014829948544502258, 0.18236877024173737, 0.5639945268630981, 0.3108583390712738, -0.24482816457748413, 0.02109735645353794, 0.734017550945282, -0.2622244954109192, 0.3056074380874634, -0.005653487518429756, -0.2529072165489197, -0.3509650230407715, 0.6439857482910156, -0.2561928629875183, 0.21284428238868713, 0.1634882092475891, 0.3070068657398224, -0.21748104691505432, -0.42547738552093506, -0.5838172435760498, 0.22415447235107422, -0.5261791944503784, -0.31741833686828613, -0.6567894220352173, -0.3299313485622406, -0.37136703729629517, -0.25852781534194946, -0.2581048905849457, -0.394733726978302, -0.1534166783094406, 0.18127048015594482, 0.7042859792709351, 0.2347135990858078, -0.16120164096355438, 0.6459174752235413, -0.5712398290634155, 0.530640721321106, 0.29488614201545715, 0.014322565868496895, -0.13371233642101288, -0.7891288995742798, -0.3586285710334778, -0.08221597224473953, -0.33249592781066895, -0.8311197757720947, 0.4649035632610321, 0.4565211534500122, 0.6763808131217957, 0.30098217725753784, -0.04083556309342384, 0.6191434264183044, -0.3801877498626709, 0.5370458364486694, -0.07237942516803741, -0.795792281627655, 0.6029810905456543, -0.47966185212135315, 0.2856576144695282, 0.6217915415763855, 0.613754391670227, -0.3006400167942047, -0.24808892607688904, -0.7514587640762329, -0.8702554702758789, 0.6562960743904114, 0.27143624424934387, 0.08740333467721939, 0.13071618974208832, 0.2711794674396515, -0.1573503464460373, 0.21065054833889008, -0.40676888823509216, -0.23086173832416534, -0.17348803579807281, -0.03938920050859451, -0.011692092753946781, -0.07709527760744095, -0.3850010633468628, -0.5900855660438538, 1.1132159233093262, -0.06119299679994583, 0.7039773464202881, 0.26829397678375244, -0.11774973571300507, -0.21516770124435425, -0.2985835075378418, 0.02310849167406559, 0.30436450242996216, -0.6150485277175903, -0.2815484404563904, 0.13089635968208313, -0.4922642707824707, -0.08534391969442368, 0.11666591465473175, -0.27650269865989685, 0.13685627281665802, 0.11587141454219818, 1.072062373161316, 0.0585053376853466, -0.3851291537284851, 0.41327935457229614, -0.1490999162197113, -0.1906692385673523, -0.6024643182754517, 0.2276591658592224, -0.015015140175819397, 0.15900355577468872, 0.08687949925661087, 0.11390161514282227, 0.19108180701732635, -0.4785299599170685, 0.06033448129892349, 0.5133466720581055, -0.10147562623023987, 0.03398081287741661, 0.8090082406997681, 0.2204253077507019, -0.2429945319890976, 0.9391443729400635, 0.01768563874065876, -0.653561532497406, 0.7401044368743896, 0.37719765305519104, 0.8982452154159546, -0.39114564657211304, 0.25292477011680603, 0.43032723665237427, 0.1979798674583435, 0.21754221618175507, 0.3438475430011749, -0.2054120898246765, -0.7299001216888428, -0.3555915355682373, -1.0215438604354858, -0.5351613759994507, 0.041463080793619156, -0.8814630508422852, 0.4854961037635803, -0.5165831446647644, -0.3568864166736603, 0.23951473832130432, 0.007654278539121151, -0.8464422821998596, 0.19775928556919098, 0.011063601821660995, 1.048331618309021, -0.7361940741539001, 1.052572250366211, 0.8806467056274414, -0.3445412218570709, -0.7499022483825684, -0.4983130097389221, 0.005659508518874645, -1.0036767721176147, 0.14768511056900024, 0.14189983904361725, 0.03421942517161369, -0.003814061637967825, -0.4459628164768219, -0.6552602648735046, 0.9693213105201721, 0.19900068640708923, -0.1961958408355713, -0.19118578732013702, -0.1871987134218216, 0.5093693733215332, -0.1584891974925995, 0.3924841284751892, 0.8769619464874268, 0.5488978624343872, 0.08177001029253006, -0.9337640404701233, 0.07720383256673813, -0.4040195345878601, -0.20403175055980682, 0.25133371353149414, -0.8834545612335205, 0.9319986701011658, -0.06681724637746811, 0.14907486736774445, 0.18434634804725647, 0.5850991010665894, 0.16467970609664917, 0.06864437460899353, 0.5996679663658142, 0.8015617728233337, 0.9382522702217102, -0.1696368306875229, 1.1949553489685059, -0.2912786304950714, 0.543173611164093, 0.7069104909896851, 0.14114949107170105, 0.6593553423881531, 0.40742868185043335, -0.34678900241851807, 0.4725058078765869, 0.7987726926803589, -0.24144187569618225, 0.5084425806999207, 0.09883201122283936, -0.2878892421722412, -0.20681710541248322, 0.009719797410070896, -0.2538716197013855, 0.5396038889884949, 0.2941160202026367, -0.3282815217971802, 0.005041981115937233, 0.05285017937421799, 0.28116628527641296, -0.44795939326286316, -0.10460496693849564, 0.6731418967247009, 0.02562410570681095, -0.7700843214988708, 1.139220118522644, -0.09119214117527008, 0.949448823928833, -0.7723180055618286, 0.20287108421325684, -0.21037662029266357, 0.2977600693702698, -0.3246665894985199, -0.4487653374671936, 0.44273656606674194, -0.12049362808465958, -0.0812864899635315, 0.04479534551501274, 0.8699262142181396, -0.21947015821933746, -0.22885820269584656, 0.3613140285015106, 0.25893425941467285, 0.4345966577529907, -0.05598396062850952, -0.8670572638511658, 0.2174285650253296, 0.06200520694255829, -0.35173648595809937, 0.3092496395111084, -0.1166369765996933, 0.1444859802722931, 0.5732889175415039, 0.5987077355384827, 0.02396269142627716, 0.15933987498283386, -0.03779963031411171, 0.8343640565872192, -0.4024975597858429, -0.5771167874336243, -0.45815375447273254, 0.31011390686035156, -0.2956748902797699, -0.5025641918182373, 0.760265588760376, 0.4725833237171173, 0.7447153329849243, -0.11926604062318802, 0.7362053990364075, -0.2896265685558319, 0.19499655067920685, -0.3653453588485718, 0.7210156321525574, -0.7111576795578003, -0.2239580750465393, -0.30950263142585754, -1.1771351099014282, -0.05265253409743309, 1.0734306573867798, 0.07255255430936813, 0.09437578916549683, 0.5417040586471558, 0.7916281223297119, -0.17228402197360992, 0.16507881879806519, 0.10474119335412979, 0.21578651666641235, 0.3771328330039978, 0.6035791039466858, 0.5818895101547241, -0.46807336807250977, 0.3954565227031708, -0.6630442142486572, -0.6203573942184448, -0.288894385099411, -0.7262967228889465, -0.9240115880966187, -0.4968707859516144, -0.2887948453426361, -0.4640941917896271, 0.1700998991727829, 0.7065332531929016, 0.9896976947784424, -0.4292493462562561, -0.3240501880645752, -0.013637548312544823, -0.22024545073509216, -0.2640753388404846, -0.2550973892211914, 0.4889105260372162, -0.43282613158226013, -0.969763457775116, 0.48620539903640747, -0.13067488372325897, -0.04008955880999565, -0.35047972202301025, -0.09377168118953705, -0.30684638023376465, 0.10586102306842804, 0.4992399513721466, 0.4021184742450714, -0.2027243822813034, -0.3191434144973755, -0.144662007689476, 0.06383499503135681, 0.0665118470788002, 0.30777260661125183, -0.9719206690788269, 0.28195956349372864, 0.6693375110626221, 0.6088312268257141, 0.8750399947166443, -0.15385651588439941, 0.4941974878311157, -0.6538379788398743, 0.15896020829677582, 0.09135323762893677, 0.56708163022995, 0.18079258501529694, -0.518928587436676, 0.7507767677307129, 0.013259295374155045, -1.0211820602416992, -0.7015625238418579, -0.025170117616653442, -1.1905356645584106, -0.19450414180755615, 1.0388718843460083, -0.019825339317321777, -0.5764286518096924, 0.03267660737037659, -0.3545466661453247, 0.47581344842910767, -0.4502963125705719, 0.8375417590141296, 0.5328563451766968, -0.3001912534236908, 0.1927599459886551, -0.7617462873458862, 0.6597747802734375, 0.6749891638755798, -0.8115139007568359, -0.2862546741962433, 0.4740086793899536, 0.14440147578716278, 0.2726871073246002, 0.5720563530921936, -0.1956166923046112, 0.27242571115493774, -0.1807042509317398, 0.2202911376953125, -0.20650362968444824, -0.45177680253982544, -0.4737721085548401, -0.060732752084732056, -0.2271885722875595, -0.34282830357551575 ]
uer/roberta-base-chinese-extractive-qa
uer
"2023-10-17T15:23:53Z"
22,287
70
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "question-answering", "zh", "arxiv:1909.05658", "arxiv:2212.06385", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: zh widget: - text: "著名诗歌《假如生活欺骗了你》的作者是" context: "普希金从那里学习人民的语言,吸取了许多有益的养料,这一切对普希金后来的创作产生了很大的影响。这两年里,普希金创作了不少优秀的作品,如《囚徒》、《致大海》、《致凯恩》和《假如生活欺骗了你》等几十首抒情诗,叙事诗《努林伯爵》,历史剧《鲍里斯·戈都诺夫》,以及《叶甫盖尼·奥涅金》前六章。" --- # Chinese RoBERTa-Base Model for QA ## Model description The model is used for extractive question answering. It is fine-tuned by [UER-py](https://github.com/dbiir/UER-py/), which is introduced in [this paper](https://arxiv.org/abs/1909.05658). Besides, the model could also be fine-tuned by [TencentPretrain](https://github.com/Tencent/TencentPretrain) introduced in [this paper](https://arxiv.org/abs/2212.06385), which inherits UER-py to support models with parameters above one billion, and extends it to a multimodal pre-training framework. You can download the model either from the [UER-py Modelzoo page](https://github.com/dbiir/UER-py/wiki/Modelzoo), or via HuggingFace from the link [roberta-base-chinese-extractive-qa](https://huggingface.co/uer/roberta-base-chinese-extractive-qa). ## How to use You can use the model directly with a pipeline for extractive question answering: ```python >>> from transformers import AutoModelForQuestionAnswering,AutoTokenizer,pipeline >>> model = AutoModelForQuestionAnswering.from_pretrained('uer/roberta-base-chinese-extractive-qa') >>> tokenizer = AutoTokenizer.from_pretrained('uer/roberta-base-chinese-extractive-qa') >>> QA = pipeline('question-answering', model=model, tokenizer=tokenizer) >>> QA_input = {'question': "著名诗歌《假如生活欺骗了你》的作者是",'context': "普希金从那里学习人民的语言,吸取了许多有益的养料,这一切对普希金后来的创作产生了很大的影响。这两年里,普希金创作了不少优秀的作品,如《囚徒》、《致大海》、《致凯恩》和《假如生活欺骗了你》等几十首抒情诗,叙事诗《努林伯爵》,历史剧《鲍里斯·戈都诺夫》,以及《叶甫盖尼·奥涅金》前六章。"} >>> QA(QA_input) {'score': 0.9766426682472229, 'start': 0, 'end': 3, 'answer': '普希金'} ``` ## Training data Training data comes from three sources: [cmrc2018](https://github.com/ymcui/cmrc2018), [webqa](https://spaces.ac.cn/archives/4338), and [laisi](https://www.kesci.com/home/competition/5d142d8cbb14e6002c04e14a/content/0). We only use the train set of three datasets. ## Training procedure The model is fine-tuned by [UER-py](https://github.com/dbiir/UER-py/) on [Tencent Cloud](https://cloud.tencent.com/). We fine-tune three epochs with a sequence length of 512 on the basis of the pre-trained model [chinese_roberta_L-12_H-768](https://huggingface.co/uer/chinese_roberta_L-12_H-768). At the end of each epoch, the model is saved when the best performance on development set is achieved. ``` python3 finetune/run_cmrc.py --pretrained_model_path models/cluecorpussmall_roberta_base_seq512_model.bin-250000 \ --vocab_path models/google_zh_vocab.txt \ --train_path datasets/extractive_qa.json \ --dev_path datasets/cmrc2018/dev.json \ --output_model_path models/extractive_qa_model.bin \ --learning_rate 3e-5 --epochs_num 3 --batch_size 32 --seq_length 512 ``` Finally, we convert the fine-tuned model into Huggingface's format: ``` python3 scripts/convert_bert_extractive_qa_from_uer_to_huggingface.py --input_model_path models/extractive_qa_model.bin \ --output_model_path pytorch_model.bin \ --layers_num 12 ``` ### BibTeX entry and citation info ``` @article{liu2019roberta, title={Roberta: A robustly optimized bert pretraining approach}, author={Liu, Yinhan and Ott, Myle and Goyal, Naman and Du, Jingfei and Joshi, Mandar and Chen, Danqi and Levy, Omer and Lewis, Mike and Zettlemoyer, Luke and Stoyanov, Veselin}, journal={arXiv preprint arXiv:1907.11692}, year={2019} } @article{zhao2019uer, title={UER: An Open-Source Toolkit for Pre-training Models}, author={Zhao, Zhe and Chen, Hui and Zhang, Jinbin and Zhao, Xin and Liu, Tao and Lu, Wei and Chen, Xi and Deng, Haotang and Ju, Qi and Du, Xiaoyong}, journal={EMNLP-IJCNLP 2019}, pages={241}, year={2019} } @article{zhao2023tencentpretrain, title={TencentPretrain: A Scalable and Flexible Toolkit for Pre-training Models of Different Modalities}, author={Zhao, Zhe and Li, Yudong and Hou, Cheng and Zhao, Jing and others}, journal={ACL 2023}, pages={217}, year={2023} ```
[ -0.35193443298339844, -0.7326931953430176, 0.2937015891075134, 0.23043575882911682, -0.18320786952972412, -0.36909565329551697, -0.2264423668384552, -0.30644121766090393, 0.049528442323207855, 0.27866441011428833, -0.7061610817909241, -0.38960781693458557, -0.2759414613246918, -0.003949897829443216, 0.010410742834210396, 1.180587649345398, -0.019243912771344185, 0.40479859709739685, -0.20170451700687408, -0.13691335916519165, -0.2658810019493103, -0.6833354234695435, -0.6214465498924255, -0.3356499671936035, 0.275004118680954, 0.08758696168661118, 0.3453182280063629, 0.4721018373966217, 0.4138283133506775, 0.3379336893558502, -0.13575905561447144, -0.024161553010344505, -0.2637293040752411, -0.1147756353020668, 0.20972730219364166, -0.49381905794143677, -0.6050391793251038, 0.17459045350551605, 0.5323702692985535, 0.47801846265792847, -0.1915246546268463, 0.4846571087837219, 0.03646539896726608, 0.4476773738861084, -0.4276455342769623, 0.08673027902841568, -0.38519319891929626, -0.1867372691631317, -0.0843927413225174, 0.02460002712905407, -0.17537906765937805, -0.3428484797477722, 0.2645324766635895, -0.6589632034301758, 0.21104782819747925, -0.2536855936050415, 1.4746284484863281, 0.15083006024360657, -0.17142176628112793, 0.07485291361808777, -0.5013763904571533, 0.9786104559898376, -1.035149335861206, 0.30229222774505615, 0.3089780807495117, 0.30715227127075195, 0.07974353432655334, -0.8915572762489319, -0.7406923174858093, -0.10960517078638077, -0.15563659369945526, 0.2635715901851654, 0.09619852155447006, 0.03024415485560894, 0.3729400932788849, 0.43789568543434143, -0.6951897144317627, 0.040473572909832, -0.40208396315574646, -0.33465489745140076, 0.6560299396514893, 0.11900650709867477, 0.35888081789016724, -0.40140247344970703, -0.39632102847099304, -0.5374009013175964, -0.5166146755218506, 0.5631301403045654, 0.22425881028175354, 0.287152498960495, -0.3084680140018463, 0.34654486179351807, -0.3365153670310974, 0.7526142001152039, 0.21170635521411896, -0.17353633046150208, 0.5477920770645142, -0.45472779870033264, -0.21879969537258148, -0.43059560656547546, 1.146086573600769, 0.0714542344212532, 0.2763949930667877, -0.0002731530403252691, -0.28699180483818054, -0.18262730538845062, 0.06274696439504623, -1.0495996475219727, -0.545720636844635, 0.4713813066482544, -0.4473155438899994, -0.2901317775249481, 0.20686134696006775, -0.5791571736335754, 0.17865657806396484, -0.19091978669166565, 0.724311888217926, -0.5201150178909302, -0.390777051448822, 0.030001359060406685, -0.06736987084150314, 0.6062899231910706, 0.12944205105304718, -0.8029312491416931, 0.06992673128843307, 0.2642955780029297, 0.5817697048187256, 0.04488402605056763, -0.4682477116584778, -0.3992438018321991, -0.3000659644603729, -0.06464898586273193, 0.6103700399398804, -0.1512935906648636, -0.14133939146995544, -0.23706874251365662, 0.30913013219833374, -0.4387595057487488, -0.42171716690063477, 0.2863765358924866, -0.5954769253730774, 0.7818926572799683, -0.19685833156108856, -0.4508931338787079, -0.275727778673172, 0.3733714818954468, -0.5172925591468811, 1.241407871246338, 0.42895108461380005, -0.8093405961990356, 0.19645139575004578, -0.6543594598770142, -0.24242344498634338, -0.07967396080493927, 0.012154201976954937, -0.7771493792533875, -0.2699481248855591, 0.5570425987243652, 0.4158599376678467, -0.23951146006584167, 0.21148690581321716, -0.34309646487236023, -0.37396734952926636, 0.23621989786624908, -0.2158285230398178, 1.450866460800171, 0.24428468942642212, -0.4219842255115509, 0.34991151094436646, -0.8852185010910034, 0.4974253177642822, 0.3886588215827942, -0.34895017743110657, -0.06143846735358238, -0.4295428693294525, 0.21596448123455048, 0.39220812916755676, 0.4658130705356598, -0.5369415879249573, 0.11230652034282684, -0.5410603284835815, 0.6071347594261169, 0.6936771273612976, -0.041029125452041626, 0.3548448979854584, -0.40591150522232056, 0.6929247379302979, 0.08865265548229218, 0.357170969247818, -0.19890455901622772, -0.35359683632850647, -0.8338402509689331, -0.0934167355298996, 0.7258346080780029, 0.731107771396637, -0.6954770684242249, 0.5982189178466797, -0.14736567437648773, -0.6922419667243958, -0.8222303986549377, 0.04390086606144905, 0.556747317314148, 0.5116764307022095, 0.542989194393158, -0.24331249296665192, -0.48277074098587036, -0.5201638340950012, -0.08485393226146698, -0.257717490196228, -0.15468017756938934, 0.37573251128196716, 0.46805524826049805, -0.03802025690674782, 0.8030043840408325, -0.425216406583786, -0.23810839653015137, -0.34119340777397156, 0.1187095046043396, 0.3959636390209198, 0.88735431432724, 0.6912739872932434, -0.7894723415374756, -0.5091831684112549, -0.3152417540550232, -0.8510000705718994, 0.12211602926254272, -0.23360440135002136, -0.3385595977306366, 0.17496180534362793, 0.28090548515319824, -0.6398096084594727, 0.21541337668895721, 0.42985251545906067, -0.22986918687820435, 0.751806914806366, -0.19861453771591187, 0.03657102584838867, -1.3189356327056885, 0.30880534648895264, -0.019147807732224464, 0.03179396316409111, -0.4670335054397583, 0.3515010476112366, 0.15788553655147552, -0.02160652168095112, -0.5482627749443054, 0.612606942653656, -0.5737221240997314, 0.16974738240242004, 0.10583298653364182, 0.03643377870321274, 0.13508674502372742, 0.7820812463760376, 0.12632907927036285, 0.8073456883430481, 0.5452524423599243, -0.6859210133552551, 0.25437530875205994, 0.4577280879020691, -0.19669543206691742, 0.21339508891105652, -1.0850359201431274, 0.23030932247638702, 0.16931761801242828, 0.09052518755197525, -0.8664631247520447, -0.12006817758083344, 0.2972499132156372, -0.8557349443435669, 0.33556240797042847, -0.26337552070617676, -0.3813929557800293, -0.598417341709137, -0.33066704869270325, 0.3786764442920685, 0.6047308444976807, -0.5253662467002869, 0.6314020752906799, 0.17442810535430908, -0.006057649850845337, -0.6229507327079773, -0.527393102645874, -0.5310060977935791, -0.31966426968574524, -0.7649208903312683, 0.2930541932582855, -0.3833830952644348, 0.24935482442378998, -0.10813934355974197, 0.0645039901137352, -0.343328595161438, 0.22085599601268768, 0.09501971304416656, 0.5882086753845215, -0.3960980772972107, 0.005851386580616236, -0.149464949965477, -0.09919291734695435, 0.20500284433364868, -0.2676779329776764, 0.712424635887146, -0.24919146299362183, -0.03990559279918671, -0.6757524013519287, 0.017393767833709717, 0.3481956720352173, -0.6041269302368164, 0.8606647849082947, 0.9738622903823853, -0.24121908843517303, 0.09327072650194168, -0.4907565116882324, -0.3360806107521057, -0.4913426339626312, 0.3796406388282776, -0.44380462169647217, -0.6377061605453491, 0.6340557336807251, 0.1282089799642563, 0.09773833304643631, 0.7192786335945129, 0.34331241250038147, -0.20561084151268005, 1.0544471740722656, 0.652508556842804, -0.11674804240465164, 0.6664924621582031, -0.7254844307899475, -0.15452277660369873, -0.9527767300605774, -0.21597471833229065, -0.5406087040901184, 0.0377841554582119, -0.5570642352104187, -0.10703108459711075, 0.3951488137245178, 0.3158721923828125, -0.5561329126358032, 0.3575999438762665, -0.6042392253875732, 0.1784169226884842, 0.8112260699272156, 0.25341957807540894, -0.09355402737855911, -0.12557151913642883, -0.13113392889499664, 0.05308977887034416, -0.7694300413131714, -0.29912519454956055, 1.3871185779571533, 0.31420427560806274, 0.5876768231391907, -0.07209327071905136, 0.8310769200325012, -0.265708863735199, 0.1223575547337532, -0.593887984752655, 0.3498544692993164, -0.06961867958307266, -0.7666739821434021, -0.48005831241607666, -0.6071902513504028, -0.9681331515312195, 0.2123102992773056, -0.34448230266571045, -0.6363351345062256, 0.02447972260415554, 0.13837981224060059, -0.7134026885032654, 0.21909648180007935, -0.6121171116828918, 1.2444877624511719, -0.4815865457057953, -0.22762171924114227, 0.24325017631053925, -0.8309388756752014, 0.3522874116897583, 0.11435801535844803, -0.08164272457361221, 0.10976266860961914, 0.46877336502075195, 1.050049066543579, -0.5898932814598083, 0.6653040647506714, -0.4421990215778351, 0.16299952566623688, 0.43675369024276733, -0.20290733873844147, 0.3512568175792694, 0.04397876560688019, -0.006911702454090118, 0.26222705841064453, 0.4505939483642578, -0.5552249550819397, -0.38610634207725525, 0.372860312461853, -1.2271637916564941, -0.44669926166534424, -0.4292924106121063, -0.5086425542831421, -0.13225117325782776, 0.49978819489479065, 0.5658372640609741, 0.4482367932796478, -0.03260735794901848, 0.115831159055233, 0.6718767285346985, -0.3534376919269562, 0.39503926038742065, 0.4781666398048401, -0.11630269885063171, -0.45413392782211304, 0.9173913598060608, 0.0704764723777771, 0.2517211437225342, 0.30809640884399414, 0.2009425163269043, -0.4617057144641876, -0.5580329298973083, -0.648317277431488, 0.5064066648483276, -0.48197853565216064, -0.23453401029109955, -0.7778452634811401, -0.5413837432861328, -0.7540327906608582, 0.3152586817741394, -0.4035221040248871, -0.35072949528694153, -0.4731711447238922, 0.07588976621627808, 0.3184647262096405, 0.3848741352558136, -0.05430275574326515, 0.4988519549369812, -0.9297794103622437, 0.3267858028411865, 0.3748117983341217, 0.20039750635623932, 0.004914499819278717, -0.8400786519050598, -0.322089284658432, 0.28790047764778137, -0.365783154964447, -0.6715707182884216, 0.49629828333854675, 0.16042698919773102, 0.6869077086448669, 0.36829257011413574, 0.17017777264118195, 0.7742154002189636, -0.10688161849975586, 0.9654427170753479, 0.10461927950382233, -0.8062353730201721, 0.6656011343002319, -0.262553334236145, 0.252205491065979, 0.6171525120735168, 0.5380635261535645, -0.3392907381057739, -0.022788697853684425, -0.7716389894485474, -0.9246112704277039, 0.8432815670967102, -0.014063859358429909, 0.08285091817378998, 0.24314182996749878, 0.46224331855773926, -0.06942484527826309, 0.0965089350938797, -1.0409752130508423, -0.299225777387619, -0.4116150736808777, -0.25033748149871826, 0.030847426503896713, -0.14732328057289124, -0.0805358961224556, -0.5558000802993774, 0.9097986221313477, -0.1559063345193863, 0.37709784507751465, 0.2938087284564972, -0.3270891010761261, -0.03182582929730415, 0.05866221338510513, 0.172847718000412, 0.5918945074081421, -0.4617266058921814, -0.4645732045173645, 0.058839816600084305, -0.48858359456062317, -0.036208659410476685, 0.4699239134788513, -0.46547630429267883, -0.16202926635742188, 0.3455125689506531, 0.7823179960250854, -0.054546453058719635, -0.534551739692688, 0.6662884950637817, -0.2087533175945282, -0.26506704092025757, -0.6236907243728638, 0.12069875001907349, 0.009364811703562737, 0.2385193109512329, 0.2237939089536667, -0.24489718675613403, -0.05224229395389557, -0.3914368152618408, 0.168025940656662, 0.40325409173965454, -0.3898657262325287, -0.4033593535423279, 0.914860725402832, 0.09683338552713394, 0.0050228312611579895, 1.0844863653182983, -0.16715046763420105, -0.6632139086723328, 0.6872159242630005, 0.43691393733024597, 0.7777783274650574, -0.22243858873844147, 0.2595349848270416, 0.8013703227043152, 0.12178662419319153, -0.015816394239664078, 0.5062465071678162, -0.017124848440289497, -0.8488050699234009, -0.27981433272361755, -0.7370776534080505, -0.060041096061468124, 0.35693424940109253, -0.9884320497512817, 0.10422129929065704, -0.46098190546035767, -0.17058825492858887, -0.028096655383706093, 0.4705551862716675, -0.8546401262283325, 0.4627584218978882, -0.003469252958893776, 0.8985632061958313, -0.78141850233078, 0.9012596011161804, 0.950031042098999, -0.929611325263977, -1.3125903606414795, -0.09371363371610641, -0.20831063389778137, -0.8927463293075562, 0.5467593669891357, 0.22170308232307434, 0.31299442052841187, 0.16257348656654358, -0.7106321454048157, -0.9356210231781006, 1.3329589366912842, 0.12989167869091034, -0.2103198766708374, -0.242372065782547, -0.03992772102355957, 0.5160761475563049, -0.25385990738868713, 0.6063128113746643, 0.4207460582256317, 0.3295251727104187, 0.07198726385831833, -0.9562021493911743, 0.15094628930091858, -0.583619236946106, -0.06292843818664551, -0.11573244631290436, -0.8856740593910217, 1.3568313121795654, -0.4389805793762207, -0.1759880930185318, 0.4167450964450836, 0.7230967283248901, 0.4604785442352295, 0.15027926862239838, 0.5561261177062988, 0.6328855752944946, 0.7298365831375122, -0.20874175429344177, 0.941762387752533, -0.42967545986175537, 0.49048519134521484, 0.9886431097984314, 0.17262527346611023, 0.8338956832885742, 0.16129817068576813, -0.42596253752708435, 0.7346836924552917, 0.9635801911354065, -0.22593654692173004, 0.4574681222438812, 0.032382477074861526, 0.13861165940761566, -0.5089964866638184, 0.20031015574932098, -0.6310582160949707, 0.5012038350105286, 0.013190996833145618, -0.14783601462841034, 0.011887977831065655, -0.18556921184062958, 0.06957723945379257, -0.1189146339893341, -0.04145141318440437, 0.7895870208740234, -0.06305865198373795, -0.7228115797042847, 0.9079217314720154, -0.0591178834438324, 0.7838981747627258, -0.810404896736145, 0.026030700653791428, -0.3264407515525818, 0.19182518124580383, -0.09402862191200256, -0.49058374762535095, -0.1921464502811432, -0.17073018848896027, -0.15760943293571472, 0.05807902291417122, 0.4506966769695282, -0.48126891255378723, -0.5187397003173828, 0.21161547303199768, 0.6839832663536072, 0.2884935736656189, -0.2388850897550583, -1.1352041959762573, -0.2760058641433716, 0.13979370892047882, -0.5722212195396423, 0.39546480774879456, 0.5124485492706299, 0.059302255511283875, 0.622226893901825, 0.8595214486122131, 0.03842146322131157, 0.02766699530184269, 0.03791091963648796, 1.049823522567749, -0.8020405769348145, -0.6608062386512756, -0.46350225806236267, 0.7631528973579407, 0.0032924660481512547, -0.6469303369522095, 0.7352403402328491, 0.38547730445861816, 1.1041147708892822, 0.024795424193143845, 0.703320324420929, -0.1987210363149643, 0.5763348340988159, -0.5385237336158752, 0.9007984399795532, -0.7333030700683594, 0.16356441378593445, -0.313991904258728, -0.820742130279541, 0.025065796449780464, 0.8245813250541687, -0.19458207488059998, 0.41839510202407837, 0.4650854468345642, 0.71555095911026, 0.07592359185218811, -0.18609510362148285, 0.008248097263276577, 0.27935999631881714, 0.2830648422241211, 0.7578177452087402, 0.5664798617362976, -0.8451593518257141, 0.6816604137420654, -0.6698851585388184, -0.2929273545742035, -0.03355887532234192, -0.5637984871864319, -0.9865537285804749, -0.6463559865951538, -0.2303929477930069, -0.5640416741371155, -0.16832686960697174, 0.8500262498855591, 0.8430472016334534, -0.9447243809700012, -0.21159431338310242, 0.11842408031225204, -0.09216637909412384, -0.4874846637248993, -0.3040996193885803, 0.7011114358901978, -0.3978461027145386, -0.7215399742126465, 0.07085732370615005, -0.4547671973705292, 0.22622409462928772, -0.2036866545677185, -0.17560870945453644, -0.35841524600982666, -0.1950950026512146, 0.3393007218837738, 0.4244164824485779, -0.5778369307518005, -0.07511065900325775, 0.3500773012638092, -0.06012888625264168, 0.058057039976119995, 0.33393681049346924, -0.8357328176498413, 0.3711850643157959, 0.32464373111724854, 0.542617917060852, 0.5934486985206604, 0.15277644991874695, 0.5473955869674683, -0.5032259821891785, 0.1099780797958374, 0.10417642444372177, 0.331368088722229, 0.33878153562545776, -0.3354469835758209, 0.56928950548172, 0.34199783205986023, -0.6329054236412048, -0.7869778871536255, -0.12600471079349518, -1.093941330909729, -0.3014785349369049, 1.019780158996582, -0.6147946715354919, -0.4568736255168915, 0.18535326421260834, -0.07499624788761139, 0.4911642074584961, -0.176296666264534, 0.8100292682647705, 0.5145624279975891, -0.003137600375339389, -0.24853427708148956, -0.32669079303741455, 0.4887685477733612, 0.5471767783164978, -0.7823024392127991, -0.10242348164319992, 0.3239462077617645, 0.5983807444572449, 0.139967679977417, 0.7252169251441956, -0.24256503582000732, 0.43454593420028687, -0.07798517495393753, 0.35428932309150696, -0.2971433103084564, -0.12900957465171814, -0.3373725712299347, -0.11180006712675095, -0.06405811756849289, -0.37796682119369507 ]
timm/maxvit_nano_rw_256.sw_in1k
timm
"2023-05-11T00:14:58Z"
22,282
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2204.01697", "license:apache-2.0", "region:us" ]
image-classification
"2023-01-20T21:31:48Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for maxvit_nano_rw_256.sw_in1k A timm specific MaxViT image classification model. Trained in `timm` on ImageNet-1k by Ross Wightman. ImageNet-1k training done on TPUs thanks to support of the [TRC](https://sites.research.google/trc/about/) program. ### Model Variants in [maxxvit.py](https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/maxxvit.py) MaxxViT covers a number of related model architectures that share a common structure including: - CoAtNet - Combining MBConv (depthwise-separable) convolutional blocks in early stages with self-attention transformer blocks in later stages. - MaxViT - Uniform blocks across all stages, each containing a MBConv (depthwise-separable) convolution block followed by two self-attention blocks with different partitioning schemes (window followed by grid). - CoAtNeXt - A timm specific arch that uses ConvNeXt blocks in place of MBConv blocks in CoAtNet. All normalization layers are LayerNorm (no BatchNorm). - MaxxViT - A timm specific arch that uses ConvNeXt blocks in place of MBConv blocks in MaxViT. All normalization layers are LayerNorm (no BatchNorm). - MaxxViT-V2 - A MaxxViT variation that removes the window block attention leaving only ConvNeXt blocks and grid attention w/ more width to compensate. Aside from the major variants listed above, there are more subtle changes from model to model. Any model name with the string `rw` are `timm` specific configs w/ modelling adjustments made to favour PyTorch eager use. These were created while training initial reproductions of the models so there are variations. All models with the string `tf` are models exactly matching Tensorflow based models by the original paper authors with weights ported to PyTorch. This covers a number of MaxViT models. The official CoAtNet models were never released. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 15.5 - GMACs: 4.5 - Activations (M): 30.3 - Image size: 256 x 256 - **Papers:** - MaxViT: Multi-Axis Vision Transformer: https://arxiv.org/abs/2204.01697 - **Dataset:** ImageNet-1k ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('maxvit_nano_rw_256.sw_in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Feature Map Extraction ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'maxvit_nano_rw_256.sw_in1k', pretrained=True, features_only=True, ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 for o in output: # print shape of each feature map in output # e.g.: # torch.Size([1, 64, 128, 128]) # torch.Size([1, 64, 64, 64]) # torch.Size([1, 128, 32, 32]) # torch.Size([1, 256, 16, 16]) # torch.Size([1, 512, 8, 8]) print(o.shape) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'maxvit_nano_rw_256.sw_in1k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 512, 8, 8) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison ### By Top-1 |model |top1 |top5 |samples / sec |Params (M) |GMAC |Act (M)| |------------------------------------------------------------------------------------------------------------------------|----:|----:|--------------:|--------------:|-----:|------:| |[maxvit_xlarge_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_512.in21k_ft_in1k) |88.53|98.64| 21.76| 475.77|534.14|1413.22| |[maxvit_xlarge_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_384.in21k_ft_in1k) |88.32|98.54| 42.53| 475.32|292.78| 668.76| |[maxvit_base_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_512.in21k_ft_in1k) |88.20|98.53| 50.87| 119.88|138.02| 703.99| |[maxvit_large_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_512.in21k_ft_in1k) |88.04|98.40| 36.42| 212.33|244.75| 942.15| |[maxvit_large_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_384.in21k_ft_in1k) |87.98|98.56| 71.75| 212.03|132.55| 445.84| |[maxvit_base_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_384.in21k_ft_in1k) |87.92|98.54| 104.71| 119.65| 73.80| 332.90| |[maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.81|98.37| 106.55| 116.14| 70.97| 318.95| |[maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.47|98.37| 149.49| 116.09| 72.98| 213.74| |[coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k) |87.39|98.31| 160.80| 73.88| 47.69| 209.43| |[maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.89|98.02| 375.86| 116.14| 23.15| 92.64| |[maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.64|98.02| 501.03| 116.09| 24.20| 62.77| |[maxvit_base_tf_512.in1k](https://huggingface.co/timm/maxvit_base_tf_512.in1k) |86.60|97.92| 50.75| 119.88|138.02| 703.99| |[coatnet_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_2_rw_224.sw_in12k_ft_in1k) |86.57|97.89| 631.88| 73.87| 15.09| 49.22| |[maxvit_large_tf_512.in1k](https://huggingface.co/timm/maxvit_large_tf_512.in1k) |86.52|97.88| 36.04| 212.33|244.75| 942.15| |[coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k) |86.49|97.90| 620.58| 73.88| 15.18| 54.78| |[maxvit_base_tf_384.in1k](https://huggingface.co/timm/maxvit_base_tf_384.in1k) |86.29|97.80| 101.09| 119.65| 73.80| 332.90| |[maxvit_large_tf_384.in1k](https://huggingface.co/timm/maxvit_large_tf_384.in1k) |86.23|97.69| 70.56| 212.03|132.55| 445.84| |[maxvit_small_tf_512.in1k](https://huggingface.co/timm/maxvit_small_tf_512.in1k) |86.10|97.76| 88.63| 69.13| 67.26| 383.77| |[maxvit_tiny_tf_512.in1k](https://huggingface.co/timm/maxvit_tiny_tf_512.in1k) |85.67|97.58| 144.25| 31.05| 33.49| 257.59| |[maxvit_small_tf_384.in1k](https://huggingface.co/timm/maxvit_small_tf_384.in1k) |85.54|97.46| 188.35| 69.02| 35.87| 183.65| |[maxvit_tiny_tf_384.in1k](https://huggingface.co/timm/maxvit_tiny_tf_384.in1k) |85.11|97.38| 293.46| 30.98| 17.53| 123.42| |[maxvit_large_tf_224.in1k](https://huggingface.co/timm/maxvit_large_tf_224.in1k) |84.93|96.97| 247.71| 211.79| 43.68| 127.35| |[coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k) |84.90|96.96| 1025.45| 41.72| 8.11| 40.13| |[maxvit_base_tf_224.in1k](https://huggingface.co/timm/maxvit_base_tf_224.in1k) |84.85|96.99| 358.25| 119.47| 24.04| 95.01| |[maxxvit_rmlp_small_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_small_rw_256.sw_in1k) |84.63|97.06| 575.53| 66.01| 14.67| 58.38| |[coatnet_rmlp_2_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in1k) |84.61|96.74| 625.81| 73.88| 15.18| 54.78| |[maxvit_rmlp_small_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_small_rw_224.sw_in1k) |84.49|96.76| 693.82| 64.90| 10.75| 49.30| |[maxvit_small_tf_224.in1k](https://huggingface.co/timm/maxvit_small_tf_224.in1k) |84.43|96.83| 647.96| 68.93| 11.66| 53.17| |[maxvit_rmlp_tiny_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_tiny_rw_256.sw_in1k) |84.23|96.78| 807.21| 29.15| 6.77| 46.92| |[coatnet_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_1_rw_224.sw_in1k) |83.62|96.38| 989.59| 41.72| 8.04| 34.60| |[maxvit_tiny_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_tiny_rw_224.sw_in1k) |83.50|96.50| 1100.53| 29.06| 5.11| 33.11| |[maxvit_tiny_tf_224.in1k](https://huggingface.co/timm/maxvit_tiny_tf_224.in1k) |83.41|96.59| 1004.94| 30.92| 5.60| 35.78| |[coatnet_rmlp_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw_224.sw_in1k) |83.36|96.45| 1093.03| 41.69| 7.85| 35.47| |[maxxvitv2_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvitv2_nano_rw_256.sw_in1k) |83.11|96.33| 1276.88| 23.70| 6.26| 23.05| |[maxxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_nano_rw_256.sw_in1k) |83.03|96.34| 1341.24| 16.78| 4.37| 26.05| |[maxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_nano_rw_256.sw_in1k) |82.96|96.26| 1283.24| 15.50| 4.47| 31.92| |[maxvit_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_nano_rw_256.sw_in1k) |82.93|96.23| 1218.17| 15.45| 4.46| 30.28| |[coatnet_bn_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_bn_0_rw_224.sw_in1k) |82.39|96.19| 1600.14| 27.44| 4.67| 22.04| |[coatnet_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_0_rw_224.sw_in1k) |82.39|95.84| 1831.21| 27.44| 4.43| 18.73| |[coatnet_rmlp_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_nano_rw_224.sw_in1k) |82.05|95.87| 2109.09| 15.15| 2.62| 20.34| |[coatnext_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnext_nano_rw_224.sw_in1k) |81.95|95.92| 2525.52| 14.70| 2.47| 12.80| |[coatnet_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_nano_rw_224.sw_in1k) |81.70|95.64| 2344.52| 15.14| 2.41| 15.41| |[maxvit_rmlp_pico_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_pico_rw_256.sw_in1k) |80.53|95.21| 1594.71| 7.52| 1.85| 24.86| ### By Throughput (samples / sec) |model |top1 |top5 |samples / sec |Params (M) |GMAC |Act (M)| |------------------------------------------------------------------------------------------------------------------------|----:|----:|--------------:|--------------:|-----:|------:| |[coatnext_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnext_nano_rw_224.sw_in1k) |81.95|95.92| 2525.52| 14.70| 2.47| 12.80| |[coatnet_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_nano_rw_224.sw_in1k) |81.70|95.64| 2344.52| 15.14| 2.41| 15.41| |[coatnet_rmlp_nano_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_nano_rw_224.sw_in1k) |82.05|95.87| 2109.09| 15.15| 2.62| 20.34| |[coatnet_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_0_rw_224.sw_in1k) |82.39|95.84| 1831.21| 27.44| 4.43| 18.73| |[coatnet_bn_0_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_bn_0_rw_224.sw_in1k) |82.39|96.19| 1600.14| 27.44| 4.67| 22.04| |[maxvit_rmlp_pico_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_pico_rw_256.sw_in1k) |80.53|95.21| 1594.71| 7.52| 1.85| 24.86| |[maxxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_nano_rw_256.sw_in1k) |83.03|96.34| 1341.24| 16.78| 4.37| 26.05| |[maxvit_rmlp_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_nano_rw_256.sw_in1k) |82.96|96.26| 1283.24| 15.50| 4.47| 31.92| |[maxxvitv2_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxxvitv2_nano_rw_256.sw_in1k) |83.11|96.33| 1276.88| 23.70| 6.26| 23.05| |[maxvit_nano_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_nano_rw_256.sw_in1k) |82.93|96.23| 1218.17| 15.45| 4.46| 30.28| |[maxvit_tiny_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_tiny_rw_224.sw_in1k) |83.50|96.50| 1100.53| 29.06| 5.11| 33.11| |[coatnet_rmlp_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw_224.sw_in1k) |83.36|96.45| 1093.03| 41.69| 7.85| 35.47| |[coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_1_rw2_224.sw_in12k_ft_in1k) |84.90|96.96| 1025.45| 41.72| 8.11| 40.13| |[maxvit_tiny_tf_224.in1k](https://huggingface.co/timm/maxvit_tiny_tf_224.in1k) |83.41|96.59| 1004.94| 30.92| 5.60| 35.78| |[coatnet_1_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_1_rw_224.sw_in1k) |83.62|96.38| 989.59| 41.72| 8.04| 34.60| |[maxvit_rmlp_tiny_rw_256.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_tiny_rw_256.sw_in1k) |84.23|96.78| 807.21| 29.15| 6.77| 46.92| |[maxvit_rmlp_small_rw_224.sw_in1k](https://huggingface.co/timm/maxvit_rmlp_small_rw_224.sw_in1k) |84.49|96.76| 693.82| 64.90| 10.75| 49.30| |[maxvit_small_tf_224.in1k](https://huggingface.co/timm/maxvit_small_tf_224.in1k) |84.43|96.83| 647.96| 68.93| 11.66| 53.17| |[coatnet_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_2_rw_224.sw_in12k_ft_in1k) |86.57|97.89| 631.88| 73.87| 15.09| 49.22| |[coatnet_rmlp_2_rw_224.sw_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in1k) |84.61|96.74| 625.81| 73.88| 15.18| 54.78| |[coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_224.sw_in12k_ft_in1k) |86.49|97.90| 620.58| 73.88| 15.18| 54.78| |[maxxvit_rmlp_small_rw_256.sw_in1k](https://huggingface.co/timm/maxxvit_rmlp_small_rw_256.sw_in1k) |84.63|97.06| 575.53| 66.01| 14.67| 58.38| |[maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.64|98.02| 501.03| 116.09| 24.20| 62.77| |[maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_224.sw_in12k_ft_in1k) |86.89|98.02| 375.86| 116.14| 23.15| 92.64| |[maxvit_base_tf_224.in1k](https://huggingface.co/timm/maxvit_base_tf_224.in1k) |84.85|96.99| 358.25| 119.47| 24.04| 95.01| |[maxvit_tiny_tf_384.in1k](https://huggingface.co/timm/maxvit_tiny_tf_384.in1k) |85.11|97.38| 293.46| 30.98| 17.53| 123.42| |[maxvit_large_tf_224.in1k](https://huggingface.co/timm/maxvit_large_tf_224.in1k) |84.93|96.97| 247.71| 211.79| 43.68| 127.35| |[maxvit_small_tf_384.in1k](https://huggingface.co/timm/maxvit_small_tf_384.in1k) |85.54|97.46| 188.35| 69.02| 35.87| 183.65| |[coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/coatnet_rmlp_2_rw_384.sw_in12k_ft_in1k) |87.39|98.31| 160.80| 73.88| 47.69| 209.43| |[maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxxvitv2_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.47|98.37| 149.49| 116.09| 72.98| 213.74| |[maxvit_tiny_tf_512.in1k](https://huggingface.co/timm/maxvit_tiny_tf_512.in1k) |85.67|97.58| 144.25| 31.05| 33.49| 257.59| |[maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k](https://huggingface.co/timm/maxvit_rmlp_base_rw_384.sw_in12k_ft_in1k) |87.81|98.37| 106.55| 116.14| 70.97| 318.95| |[maxvit_base_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_384.in21k_ft_in1k) |87.92|98.54| 104.71| 119.65| 73.80| 332.90| |[maxvit_base_tf_384.in1k](https://huggingface.co/timm/maxvit_base_tf_384.in1k) |86.29|97.80| 101.09| 119.65| 73.80| 332.90| |[maxvit_small_tf_512.in1k](https://huggingface.co/timm/maxvit_small_tf_512.in1k) |86.10|97.76| 88.63| 69.13| 67.26| 383.77| |[maxvit_large_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_384.in21k_ft_in1k) |87.98|98.56| 71.75| 212.03|132.55| 445.84| |[maxvit_large_tf_384.in1k](https://huggingface.co/timm/maxvit_large_tf_384.in1k) |86.23|97.69| 70.56| 212.03|132.55| 445.84| |[maxvit_base_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_base_tf_512.in21k_ft_in1k) |88.20|98.53| 50.87| 119.88|138.02| 703.99| |[maxvit_base_tf_512.in1k](https://huggingface.co/timm/maxvit_base_tf_512.in1k) |86.60|97.92| 50.75| 119.88|138.02| 703.99| |[maxvit_xlarge_tf_384.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_384.in21k_ft_in1k) |88.32|98.54| 42.53| 475.32|292.78| 668.76| |[maxvit_large_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_large_tf_512.in21k_ft_in1k) |88.04|98.40| 36.42| 212.33|244.75| 942.15| |[maxvit_large_tf_512.in1k](https://huggingface.co/timm/maxvit_large_tf_512.in1k) |86.52|97.88| 36.04| 212.33|244.75| 942.15| |[maxvit_xlarge_tf_512.in21k_ft_in1k](https://huggingface.co/timm/maxvit_xlarge_tf_512.in21k_ft_in1k) |88.53|98.64| 21.76| 475.77|534.14|1413.22| ## Citation ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ``` ```bibtex @article{tu2022maxvit, title={MaxViT: Multi-Axis Vision Transformer}, author={Tu, Zhengzhong and Talebi, Hossein and Zhang, Han and Yang, Feng and Milanfar, Peyman and Bovik, Alan and Li, Yinxiao}, journal={ECCV}, year={2022}, } ``` ```bibtex @article{dai2021coatnet, title={CoAtNet: Marrying Convolution and Attention for All Data Sizes}, author={Dai, Zihang and Liu, Hanxiao and Le, Quoc V and Tan, Mingxing}, journal={arXiv preprint arXiv:2106.04803}, year={2021} } ```
[ -0.7495056986808777, -0.4351741075515747, 0.020815880969166756, 0.40323111414909363, -0.3428782522678375, -0.22931799292564392, -0.14455777406692505, -0.3236342966556549, 0.7438307404518127, 0.2166236788034439, -0.5898168087005615, -0.6274815797805786, -0.627046525478363, -0.027937529608607292, 0.267076700925827, 0.8546200394630432, -0.07796923816204071, -0.2272983193397522, 0.17038331925868988, -0.4238154888153076, -0.35654670000076294, -0.4665941894054413, -0.802907407283783, -0.2575383484363556, 0.39866510033607483, 0.2504059076309204, 0.8051510453224182, 0.7521889805793762, 0.4249807298183441, 0.5243116617202759, -0.22676989436149597, 0.17112486064434052, -0.31446683406829834, -0.2607099413871765, 0.5711770057678223, -0.45103925466537476, -0.7980449199676514, 0.08864185959100723, 0.7561802864074707, 0.39219215512275696, -0.030541690066456795, 0.285666286945343, 0.20453715324401855, 0.46801143884658813, -0.11988980323076248, 0.09599386155605316, -0.1009313240647316, 0.34026384353637695, -0.1823265552520752, 0.036592308431863785, -0.09199206531047821, -0.518774151802063, 0.15684854984283447, -0.7153695821762085, 0.020038386806845665, -0.008216261863708496, 1.5257259607315063, -0.13706429302692413, -0.19423018395900726, 0.2588525414466858, 0.022553423419594765, 0.845900297164917, -0.7749806642532349, 0.3057917654514313, 0.3663453161716461, -0.000015265966794686392, -0.06851371377706528, -0.5859780311584473, -0.5794999599456787, -0.06472884118556976, -0.33101165294647217, 0.31766462326049805, -0.2847215235233307, -0.08212680369615555, 0.4510393440723419, 0.3243696391582489, -0.5728827118873596, -0.1110142320394516, -0.2523438036441803, -0.17082332074642181, 0.6956115961074829, 0.1811370849609375, 0.6243441700935364, -0.2254021316766739, -0.7438461780548096, -0.2812020778656006, -0.2731744647026062, 0.34281647205352783, 0.07874692231416702, 0.042815499007701874, -0.8971203565597534, 0.49321699142456055, 0.05135251581668854, 0.4649061858654022, 0.25087976455688477, -0.20605337619781494, 0.8714632391929626, -0.21236591041088104, -0.686333954334259, -0.43919140100479126, 1.1181528568267822, 0.6758538484573364, 0.3458290994167328, 0.171518012881279, -0.17766278982162476, -0.3572171926498413, -0.38427454233169556, -0.9681220650672913, -0.10339658707380295, 0.162937730550766, -0.5736101269721985, -0.3899262249469757, 0.18465867638587952, -0.7506453394889832, -0.04813069850206375, -0.28063514828681946, 0.44935470819473267, -0.646440863609314, -0.5462833642959595, -0.057432834059000015, -0.298030287027359, 0.6409680843353271, 0.3203759491443634, -0.3353106379508972, 0.2778184115886688, 0.1886557936668396, 1.0572137832641602, 0.06329456716775894, -0.2518056035041809, -0.25491011142730713, -0.009528758935630322, -0.47080162167549133, 0.38185474276542664, -0.09037572890520096, -0.2583274841308594, -0.23732128739356995, 0.367879182100296, -0.33225470781326294, -0.3689824342727661, 0.43837788701057434, 0.185524582862854, 0.10518594086170197, -0.3906540870666504, -0.08267607539892197, -0.2627810835838318, 0.4140067398548126, -0.4096296727657318, 1.122756838798523, 0.4629402458667755, -1.0599620342254639, 0.31198981404304504, -0.6021935939788818, -0.07085728645324707, -0.20932534337043762, 0.09191984683275223, -0.8216031193733215, -0.010895537212491035, 0.2762218415737152, 0.8159470558166504, -0.2192240208387375, -0.18065506219863892, -0.36487647891044617, -0.02512957714498043, 0.271837055683136, 0.028711922466754913, 1.0627765655517578, 0.19444186985492706, -0.4992434084415436, 0.1322624683380127, -0.669330894947052, 0.2525124251842499, 0.549838662147522, -0.11439245194196701, -0.07432149350643158, -0.9017512798309326, 0.180674746632576, 0.5231426358222961, 0.2080255150794983, -0.6618465185165405, 0.3775099515914917, -0.0680089145898819, 0.4829848110675812, 0.8534252643585205, -0.056890878826379776, 0.0769442692399025, -0.7016540765762329, 0.5448206663131714, 0.12527881562709808, 0.5383538603782654, 0.011332711204886436, -0.5107858180999756, -0.8576287031173706, -0.7387552857398987, 0.12165676802396774, 0.5743336081504822, -0.45602309703826904, 0.6356329917907715, 0.016273682937026024, -0.5767385959625244, -0.38086432218551636, 0.14193664491176605, 0.612622082233429, 0.2719525694847107, 0.1098218560218811, -0.39717206358909607, -0.6143982410430908, -1.002007246017456, -0.05670205131173134, -0.00552392890676856, 0.19824717938899994, 0.572931706905365, 0.5276857614517212, -0.2581508159637451, 0.5330575704574585, -0.5236040949821472, -0.3124847710132599, -0.20258870720863342, -0.11131203919649124, 0.4532785415649414, 0.7393090724945068, 0.9168357849121094, -0.8093851208686829, -0.9175636172294617, 0.10285776108503342, -1.0460771322250366, 0.08580054342746735, -0.13052472472190857, -0.5344501733779907, 0.18623417615890503, 0.21591050922870636, -1.006509780883789, 0.7063215970993042, 0.25663453340530396, -0.584837019443512, 0.5831340551376343, -0.3415440320968628, 0.30906665325164795, -1.1473710536956787, 0.1708494871854782, 0.4201350510120392, -0.25847142934799194, -0.642276406288147, 0.11024527251720428, 0.027402130886912346, 0.20095038414001465, -0.4586443305015564, 0.7919741868972778, -0.6339741945266724, 0.10930714756250381, 0.12047577649354935, -0.0859636440873146, -0.06891622394323349, 0.558589518070221, -0.07181966304779053, 0.6297828555107117, 0.9103716015815735, -0.3020879626274109, 0.6087252497673035, 0.47967979311943054, 0.04263342544436455, 0.7268943786621094, -0.6392666697502136, 0.08733893930912018, 0.006364491768181324, 0.19887986779212952, -1.0591453313827515, -0.4772803485393524, 0.38433000445365906, -0.8218876123428345, 0.7863283157348633, -0.26928001642227173, -0.3542749583721161, -0.7387925386428833, -0.7939963340759277, 0.16648507118225098, 0.6717904806137085, -0.6149407625198364, 0.370441734790802, 0.3220146894454956, -0.020970504730939865, -0.6715238690376282, -0.8134040236473083, 0.12454042583703995, -0.3839825391769409, -0.9188474416732788, 0.3163131773471832, -0.05662162974476814, -0.06766390800476074, -0.04115422070026398, -0.034609269350767136, -0.1788991093635559, -0.23146340250968933, 0.5885413289070129, 0.5211411118507385, -0.4275556206703186, -0.34891241788864136, -0.43478137254714966, -0.160341277718544, -0.1060100570321083, -0.1883721500635147, 0.5737487077713013, -0.43389108777046204, 0.10677701234817505, -1.1003423929214478, 0.0037742475979030132, 0.8194417953491211, -0.07172176986932755, 0.9447427988052368, 1.03298020362854, -0.359855055809021, 0.11995691806077957, -0.619649350643158, -0.023278802633285522, -0.5176756978034973, -0.040771037340164185, -0.7413756847381592, -0.5890101194381714, 0.810034453868866, 0.2442847639322281, -0.001183748128823936, 0.7988135814666748, 0.3777499496936798, -0.017812399193644524, 1.0737007856369019, 0.677564799785614, -0.16209791600704193, 0.7293776869773865, -0.8097320199012756, -0.07365965843200684, -0.9452184438705444, -0.6865156292915344, -0.12432939559221268, -0.37226060032844543, -0.5019684433937073, -0.3414420187473297, 0.2998380959033966, 0.21884165704250336, -0.4036904275417328, 0.6479415893554688, -0.8101954460144043, 0.00849661324173212, 0.5486088395118713, 0.3097216486930847, -0.223910391330719, 0.09437651187181473, -0.39016497135162354, -0.10315708070993423, -0.6101166605949402, -0.10249882191419601, 0.8892749547958374, 0.5163730382919312, 0.5200556516647339, -0.007428308017551899, 0.6014227867126465, -0.03366236016154289, 0.28728681802749634, -0.4703347682952881, 0.703636109828949, 0.2451159954071045, -0.529401421546936, -0.24118389189243317, -0.46430912613868713, -0.9854199290275574, 0.39120692014694214, -0.4207463264465332, -0.8180660009384155, -0.01522731315344572, -0.008457964286208153, -0.30449196696281433, 0.687004029750824, -0.7989070415496826, 0.7000606060028076, -0.08658280968666077, -0.5329413414001465, 0.18729668855667114, -0.7844374775886536, 0.3305310606956482, 0.3207758665084839, 0.017864199355244637, -0.02614826150238514, 0.06627501547336578, 0.7530417442321777, -0.6905412077903748, 0.5379934906959534, -0.38938480615615845, 0.2131507247686386, 0.382205992937088, -0.004528959281742573, 0.4288419485092163, 0.09138979762792587, -0.06071401387453079, -0.08176817744970322, 0.04862777516245842, -0.7058048844337463, -0.2233925610780716, 0.6858412027359009, -0.8975744843482971, -0.5043835639953613, -0.6817511916160583, -0.37469282746315, 0.08691194653511047, 0.130662202835083, 0.457308292388916, 0.6715635657310486, -0.017234399914741516, 0.19889667630195618, 0.7426391839981079, -0.4363582134246826, 0.4364774227142334, -0.065285325050354, 0.03772900253534317, -0.5462548732757568, 0.897692859172821, -0.07990611344575882, 0.06160755082964897, 0.17505483329296112, 0.1457020491361618, -0.26915451884269714, -0.4097953140735626, -0.3504864275455475, 0.6415475010871887, -0.3683824837207794, -0.3481680154800415, -0.7164304256439209, -0.42641323804855347, -0.6816933751106262, -0.25285807251930237, -0.3059828579425812, -0.2556058168411255, -0.2569175660610199, -0.03486311808228493, 0.6915022730827332, 0.8439537286758423, -0.4044208526611328, 0.3253050744533539, -0.6354780197143555, 0.22068782150745392, 0.21235309541225433, 0.3246800899505615, -0.3871799409389496, -0.6694493293762207, 0.03966552019119263, -0.09848975390195847, -0.20464588701725006, -0.7441491484642029, 0.6548131704330444, 0.039031632244586945, 0.4895409345626831, 0.5084188580513, -0.31378987431526184, 0.8676722049713135, -0.08206333965063095, 0.561442494392395, 0.6648855805397034, -0.75621098279953, 0.35862070322036743, -0.36859315633773804, 0.14499260485172272, 0.11318910121917725, 0.2704782783985138, -0.46202877163887024, -0.2718663215637207, -0.8095862865447998, -0.6339561343193054, 0.7480794787406921, 0.22433020174503326, 0.04559843987226486, 0.24459952116012573, 0.5873605012893677, -0.10801377892494202, 0.07209332287311554, -0.680750846862793, -0.6974700689315796, -0.2389366328716278, -0.2129252552986145, -0.021086573600769043, -0.07383552193641663, -0.13701799511909485, -0.7449629306793213, 0.6428068280220032, 0.05448441207408905, 0.7401012778282166, 0.28436902165412903, -0.19044463336467743, 0.01455248985439539, -0.4114983379840851, 0.7158665657043457, 0.5380344390869141, -0.18882250785827637, -0.26897168159484863, 0.4171527922153473, -0.5788028836250305, 0.03345988318324089, 0.148463636636734, -0.021529681980609894, 0.12057939171791077, 0.3587336242198944, 0.7834508419036865, 0.000616733799688518, -0.044974252581596375, 0.7582939863204956, -0.19975116848945618, -0.5889908075332642, -0.30573979020118713, -0.023204656317830086, 0.1520216166973114, 0.47313717007637024, 0.2001892775297165, 0.21190069615840912, -0.29743266105651855, -0.4190334975719452, 0.33555442094802856, 0.7961403131484985, -0.4645558297634125, -0.40802496671676636, 0.6684500575065613, -0.17332589626312256, -0.01145966723561287, 0.43242424726486206, -0.026841217651963234, -0.770534098148346, 1.0369905233383179, 0.28778502345085144, 0.6291705965995789, -0.48007732629776, 0.19455112516880035, 0.8476295471191406, 0.20105469226837158, 0.13731881976127625, 0.2646183371543884, 0.23211348056793213, -0.3499232530593872, -0.08292828500270844, -0.5853232145309448, 0.19758805632591248, 0.48545974493026733, -0.48800012469291687, 0.2501707673072815, -0.7782257795333862, -0.45677995681762695, 0.0670805498957634, 0.3287680149078369, -0.9118042588233948, 0.3690830171108246, 0.11766120046377182, 1.0459699630737305, -0.8196929693222046, 0.8790189623832703, 0.8844686150550842, -0.5158416032791138, -0.9735300540924072, -0.1701909452676773, 0.26707231998443604, -1.0992928743362427, 0.5890362858772278, 0.19494497776031494, 0.10931035876274109, -0.16379064321517944, -0.6935593485832214, -0.7327837944030762, 1.365747094154358, 0.2578120529651642, -0.1039641797542572, 0.008858151733875275, -0.2699732482433319, 0.2501741051673889, -0.26653292775154114, 0.6314058303833008, 0.3208828866481781, 0.6050719022750854, 0.23603616654872894, -0.9075927734375, 0.36823761463165283, -0.48397931456565857, 0.06847558170557022, 0.28164881467819214, -1.3291383981704712, 1.10037100315094, -0.33738836646080017, 0.06169053912162781, 0.17716439068317413, 0.6087287664413452, 0.24127066135406494, -0.038498494774103165, 0.39885348081588745, 0.8227553963661194, 0.47559815645217896, -0.24569055438041687, 1.0190927982330322, -0.024605950340628624, 0.5654357671737671, 0.21458055078983307, 0.4702388048171997, 0.354721337556839, 0.2640048861503601, -0.3519366979598999, 0.11552740633487701, 0.8412768244743347, -0.31974560022354126, 0.1099315881729126, 0.34333473443984985, -0.2651064097881317, -0.252328097820282, 0.007239469792693853, -0.6401984095573425, 0.23591509461402893, 0.24142703413963318, -0.2660244405269623, 0.031045783311128616, 0.13171930611133575, 0.2587726414203644, -0.2221338152885437, -0.24134790897369385, 0.5908956527709961, 0.08633502572774887, -0.4103640913963318, 0.7272936701774597, -0.052184708416461945, 1.0693992376327515, -0.45293307304382324, 0.1084144189953804, -0.3646085262298584, 0.28708332777023315, -0.2679675817489624, -0.9647177457809448, 0.01837492734193802, -0.0749252587556839, 0.15202975273132324, -0.1838218718767166, 0.6877801418304443, -0.25987300276756287, -0.3188726007938385, 0.38582611083984375, 0.3328036367893219, 0.4295182228088379, 0.09792865812778473, -1.2383642196655273, 0.25099843740463257, 0.16813728213310242, -0.8404891490936279, 0.41038230061531067, 0.48885807394981384, 0.32533854246139526, 0.7756096720695496, 0.4882337152957916, 0.2293754667043686, 0.3395492434501648, -0.3839540183544159, 0.8771055340766907, -0.7040933966636658, -0.26227033138275146, -0.8359317183494568, 0.5224303603172302, -0.38204923272132874, -0.6643081903457642, 0.6934943199157715, 0.5495826601982117, 0.6340958476066589, 0.020939402282238007, 0.7397815585136414, -0.3812345862388611, 0.23570698499679565, -0.3344211280345917, 0.7325392961502075, -0.8466944694519043, -0.34703487157821655, -0.2381294071674347, -0.8314800262451172, -0.3982025980949402, 0.8152547478675842, 0.05427264794707298, 0.26392269134521484, 0.4244298040866852, 0.8230628967285156, -0.1167638897895813, -0.2834358215332031, 0.19140589237213135, 0.3748362958431244, 0.03140731528401375, 0.9074661731719971, 0.5959563851356506, -0.5832956433296204, 0.3111173212528229, -0.5080386996269226, -0.37721091508865356, -0.427590012550354, -0.5994129180908203, -1.2175618410110474, -0.7156384587287903, -0.5930376648902893, -0.6696292161941528, -0.1436377763748169, 1.127010464668274, 1.0834382772445679, -0.5990457534790039, -0.18739594519138336, 0.1567670702934265, 0.008934739977121353, -0.096013642847538, -0.26228752732276917, 0.5344899892807007, 0.06279849261045456, -0.8419011235237122, -0.23766383528709412, 0.18801799416542053, 0.48643580079078674, 0.39671310782432556, -0.33144816756248474, -0.17879392206668854, -0.029897477477788925, 0.5116598010063171, 0.6608334183692932, -0.5984110236167908, -0.30731895565986633, -0.04478456452488899, -0.4243299067020416, 0.42270874977111816, 0.3635713756084442, -0.31186607480049133, 0.0368475615978241, 0.5831335783004761, 0.24156947433948517, 0.8587738275527954, -0.07880710810422897, 0.16424579918384552, -0.40545654296875, 0.4132896661758423, -0.09419386088848114, 0.4253498613834381, 0.2557627856731415, -0.32151249051094055, 0.6651953458786011, 0.5254743695259094, -0.4493961036205292, -1.0361096858978271, -0.0926213189959526, -1.3556172847747803, -0.05235110595822334, 0.9670752286911011, -0.22159390151500702, -0.5419580936431885, 0.4223872125148773, -0.3639794886112213, 0.5214583277702332, -0.29367467761039734, 0.12065502256155014, 0.40666893124580383, -0.18128551542758942, -0.42257654666900635, -0.8200078010559082, 0.47327396273612976, 0.3709021806716919, -0.6134078502655029, -0.38495463132858276, 0.019093601033091545, 0.5551518797874451, 0.21649444103240967, 0.6104546189308167, -0.304892361164093, 0.11236457526683807, -0.02595445141196251, 0.272700697183609, -0.31055036187171936, -0.0024189164396375418, -0.25933945178985596, -0.033723071217536926, -0.19590307772159576, -0.558795690536499 ]
facebook/deit-base-distilled-patch16-224
facebook
"2022-07-13T11:39:38Z"
22,243
21
transformers
[ "transformers", "pytorch", "tf", "deit", "image-classification", "vision", "dataset:imagenet", "arxiv:2012.12877", "arxiv:2006.03677", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - image-classification - vision datasets: - imagenet --- # Distilled Data-efficient Image Transformer (base-sized model) Distilled data-efficient Image Transformer (DeiT) model pre-trained and fine-tuned on ImageNet-1k (1 million images, 1,000 classes) at resolution 224x224. It was first introduced in the paper [Training data-efficient image transformers & distillation through attention](https://arxiv.org/abs/2012.12877) by Touvron et al. and first released in [this repository](https://github.com/facebookresearch/deit). However, the weights were converted from the [timm repository](https://github.com/rwightman/pytorch-image-models) by Ross Wightman. Disclaimer: The team releasing DeiT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description This model is a distilled Vision Transformer (ViT). It uses a distillation token, besides the class token, to effectively learn from a teacher (CNN) during both pre-training and fine-tuning. The distillation token is learned through backpropagation, by interacting with the class ([CLS]) and patch tokens through the self-attention layers. Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=facebook/deit) to look for fine-tuned versions on a task that interests you. ### How to use Since this model is a distilled ViT model, you can plug it into DeiTModel, DeiTForImageClassification or DeiTForImageClassificationWithTeacher. Note that the model expects the data to be prepared using DeiTFeatureExtractor. Here we use AutoFeatureExtractor, which will automatically use the appropriate feature extractor given the model name. Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import AutoFeatureExtractor, DeiTForImageClassificationWithTeacher from PIL import Image import requests url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw) feature_extractor = AutoFeatureExtractor.from_pretrained('facebook/deit-base-distilled-patch16-224') model = DeiTForImageClassificationWithTeacher.from_pretrained('facebook/deit-base-distilled-patch16-224') inputs = feature_extractor(images=image, return_tensors="pt") # forward pass outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` Currently, both the feature extractor and model support PyTorch. Tensorflow and JAX/FLAX are coming soon. ## Training data This model was pretrained and fine-tuned with distillation on [ImageNet-1k](http://www.image-net.org/challenges/LSVRC/2012/), a dataset consisting of 1 million images and 1k classes. ## Training procedure ### Preprocessing The exact details of preprocessing of images during training/validation can be found [here](https://github.com/facebookresearch/deit/blob/ab5715372db8c6cad5740714b2216d55aeae052e/datasets.py#L78). At inference time, images are resized/rescaled to the same resolution (256x256), center-cropped at 224x224 and normalized across the RGB channels with the ImageNet mean and standard deviation. ### Pretraining The model was trained on a single 8-GPU node for 3 days. Training resolution is 224. For all hyperparameters (such as batch size and learning rate) we refer to table 9 of the original paper. ## Evaluation results | Model | ImageNet top-1 accuracy | ImageNet top-5 accuracy | # params | URL | |---------------------------------------|-------------------------|-------------------------|----------|------------------------------------------------------------------| | DeiT-tiny | 72.2 | 91.1 | 5M | https://huggingface.co/facebook/deit-tiny-patch16-224 | | DeiT-small | 79.9 | 95.0 | 22M | https://huggingface.co/facebook/deit-small-patch16-224 | | DeiT-base | 81.8 | 95.6 | 86M | https://huggingface.co/facebook/deit-base-patch16-224 | | DeiT-tiny distilled | 74.5 | 91.9 | 6M | https://huggingface.co/facebook/deit-tiny-distilled-patch16-224 | | DeiT-small distilled | 81.2 | 95.4 | 22M | https://huggingface.co/facebook/deit-small-distilled-patch16-224 | | **DeiT-base distilled** | **83.4** | **96.5** | **87M** | **https://huggingface.co/facebook/deit-base-distilled-patch16-224** | | DeiT-base 384 | 82.9 | 96.2 | 87M | https://huggingface.co/facebook/deit-base-patch16-384 | | DeiT-base distilled 384 (1000 epochs) | 85.2 | 97.2 | 88M | https://huggingface.co/facebook/deit-base-distilled-patch16-384 | Note that for fine-tuning, the best results are obtained with a higher resolution (384x384). Of course, increasing the model size will result in better performance. ### BibTeX entry and citation info ```bibtex @misc{touvron2021training, title={Training data-efficient image transformers & distillation through attention}, author={Hugo Touvron and Matthieu Cord and Matthijs Douze and Francisco Massa and Alexandre Sablayrolles and Hervé Jégou}, year={2021}, eprint={2012.12877}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```bibtex @misc{wu2020visual, title={Visual Transformers: Token-based Image Representation and Processing for Computer Vision}, author={Bichen Wu and Chenfeng Xu and Xiaoliang Dai and Alvin Wan and Peizhao Zhang and Zhicheng Yan and Masayoshi Tomizuka and Joseph Gonzalez and Kurt Keutzer and Peter Vajda}, year={2020}, eprint={2006.03677}, archivePrefix={arXiv}, primaryClass={cs.CV} } ``` ```bibtex @inproceedings{deng2009imagenet, title={Imagenet: A large-scale hierarchical image database}, author={Deng, Jia and Dong, Wei and Socher, Richard and Li, Li-Jia and Li, Kai and Fei-Fei, Li}, booktitle={2009 IEEE conference on computer vision and pattern recognition}, pages={248--255}, year={2009}, organization={Ieee} } ```
[ -0.7808541655540466, -0.511250376701355, 0.059390123933553696, 0.1406564861536026, -0.3979629576206207, -0.20267105102539062, -0.16376718878746033, -0.4477379024028778, 0.27593955397605896, 0.1928309053182602, -0.3959817588329315, -0.37050774693489075, -0.8715671300888062, 0.08428072929382324, -0.369484007358551, 0.951079785823822, 0.035067640244960785, -0.15352001786231995, -0.06912477314472198, -0.13558854162693024, -0.4497831165790558, -0.3630165457725525, -0.6782634854316711, -0.16973111033439636, 0.472411572933197, 0.24462129175662994, 0.557392954826355, 0.7515867948532104, 0.8232939839363098, 0.471317321062088, -0.15254665911197662, 0.10019266605377197, -0.504995584487915, -0.27153605222702026, 0.03030593879520893, -0.2627270221710205, -0.42847326397895813, 0.2803654372692108, 0.4390857517719269, 0.4081960618495941, 0.1321338564157486, 0.3322584629058838, 0.34851327538490295, 0.8809425830841064, -0.5037133097648621, 0.22717630863189697, -0.5359086990356445, 0.14530932903289795, 0.011122028343379498, -0.023746589198708534, -0.2410535365343094, -0.12693648040294647, 0.18398751318454742, -0.496425598859787, 0.4454415440559387, -0.16670279204845428, 1.2598910331726074, 0.5162156224250793, -0.30455800890922546, 0.14859944581985474, -0.5763720870018005, 0.7132697701454163, -0.5217313766479492, 0.2330729365348816, 0.42698177695274353, 0.33789393305778503, -0.043843112885951996, -1.0140573978424072, -0.5348195433616638, -0.06071767583489418, -0.3120993375778198, 0.20215612649917603, -0.3568308353424072, 0.011163922026753426, 0.49965858459472656, 0.7307749390602112, -0.4609386920928955, -0.054155848920345306, -0.5503849387168884, -0.1410144418478012, 0.7072604894638062, -0.1358596682548523, 0.014186715707182884, -0.07192976027727127, -0.6349910497665405, -0.2953324317932129, -0.09398485720157623, 0.045224472880363464, 0.08395508676767349, 0.03667002171278, -0.2313290685415268, 0.41326409578323364, -0.22471605241298676, 0.651579737663269, 0.522290050983429, -0.08946000039577484, 0.5395755171775818, -0.27703675627708435, -0.42341288924217224, -0.05283546820282936, 0.9596875905990601, 0.5015769600868225, 0.274250864982605, 0.2554304301738739, -0.16776147484779358, 0.06845692545175552, 0.14895565807819366, -1.124959945678711, -0.42873841524124146, 0.04097971320152283, -0.6983466148376465, -0.5562698841094971, 0.15028570592403412, -0.7073968648910522, -0.08469639718532562, -0.32097476720809937, 0.46420133113861084, -0.3872590661048889, -0.3881179988384247, -0.08724825084209442, -0.13773639500141144, 0.18404485285282135, 0.3314676582813263, -0.6520180702209473, 0.14035220444202423, 0.2037888914346695, 0.983717143535614, -0.10559532791376114, -0.2015441507101059, -0.02480284497141838, -0.3892907202243805, -0.3811134696006775, 0.5889042615890503, 0.021659735590219498, -0.05902721360325813, -0.3100860118865967, 0.36189642548561096, -0.03889996185898781, -0.5181494355201721, 0.2404015064239502, -0.38656729459762573, -0.04264642298221588, -0.18862657248973846, -0.2958109378814697, -0.2506653368473053, 0.3466903865337372, -0.824900209903717, 1.19092857837677, 0.2873780429363251, -0.9397652745246887, 0.4018234312534332, -0.44911566376686096, -0.07578703761100769, -0.12504196166992188, 0.08552372455596924, -0.6524256467819214, -0.06890060752630234, 0.3087385296821594, 0.6359065771102905, -0.21631021797657013, 0.09209347516298294, -0.32506078481674194, -0.4390588104724884, 0.20900753140449524, -0.5124695301055908, 0.9800954461097717, 0.3855340778827667, -0.5581859350204468, -0.17146345973014832, -0.8892398476600647, 0.010313131846487522, 0.37296995520591736, -0.23653644323349, -0.11915720254182816, -0.5005866289138794, 0.05625182017683983, 0.4149349331855774, 0.2059454321861267, -0.48413190245628357, 0.16319656372070312, -0.05308045074343681, 0.5498682260513306, 0.803509533405304, -0.09387229382991791, 0.2810298502445221, -0.2671123445034027, 0.22156625986099243, 0.3974706530570984, 0.42047956585884094, -0.26359421014785767, -0.4292638897895813, -0.8845260143280029, -0.48263052105903625, 0.36295294761657715, 0.3213963806629181, -0.7101156115531921, 0.6138539910316467, -0.36039191484451294, -0.7190119624137878, -0.3233961760997772, 0.11486955732107162, 0.331835001707077, 0.6029551029205322, 0.47733625769615173, -0.4551064670085907, -0.45144855976104736, -1.0393823385238647, 0.1172303557395935, -0.06956499814987183, 0.197548970580101, 0.1343189775943756, 0.6707133054733276, -0.19338400661945343, 0.9063546657562256, -0.543064534664154, -0.40358784794807434, 0.0004256906686350703, -0.0310758538544178, 0.34823909401893616, 0.6791827082633972, 0.8990963101387024, -0.9870773553848267, -0.7658799886703491, -0.052027273923158646, -0.8001842498779297, 0.21169143915176392, 0.11303072422742844, -0.3042526841163635, 0.15980806946754456, 0.4454732835292816, -0.5166282057762146, 0.8189886212348938, 0.42184239625930786, -0.18140557408332825, 0.3230058550834656, -0.09265945851802826, 0.3539216220378876, -1.151943564414978, 0.08298931270837784, 0.4167778193950653, -0.34003686904907227, -0.4183712303638458, -0.16738158464431763, 0.03375644609332085, 0.03056236170232296, -0.5803629755973816, 0.31143298745155334, -0.5875784754753113, 0.01005767472088337, -0.22043506801128387, -0.3314201235771179, 0.11378560960292816, 0.6821011304855347, 0.05315980315208435, 0.5409320592880249, 0.6417295336723328, -0.5001969933509827, 0.6151876449584961, 0.2580997347831726, -0.33407312631607056, 0.6833638548851013, -0.8216453194618225, 0.19500072300434113, -0.10604154318571091, 0.32827553153038025, -1.144080400466919, -0.211669459939003, 0.20914195477962494, -0.4993792176246643, 0.6082316040992737, -0.354816198348999, -0.3031936287879944, -0.7625594139099121, -0.30269551277160645, 0.463471919298172, 0.6437367796897888, -0.7052203416824341, 0.3345099985599518, 0.10683251172304153, 0.39776283502578735, -0.718786895275116, -1.009500503540039, -0.10276332497596741, -0.3469574749469757, -0.5750998854637146, 0.4715282917022705, 0.03284137323498726, 0.1144285723567009, 0.18928447365760803, -0.005712043959647417, -0.25671398639678955, -0.09186670929193497, 0.4348696768283844, 0.42998206615448, -0.1948847770690918, -0.08304374665021896, -0.2691178619861603, -0.20563989877700806, -0.14023682475090027, -0.40885600447654724, 0.3863621950149536, -0.37547969818115234, -0.18097993731498718, -0.8398666381835938, 0.007431373465806246, 0.6649672389030457, -0.042859937995672226, 0.6509155631065369, 0.8200709819793701, -0.43538475036621094, 0.10010012239217758, -0.6541905999183655, -0.30846846103668213, -0.5218170881271362, 0.3931301236152649, -0.3925369679927826, -0.5767497420310974, 0.6403663754463196, 0.024481508880853653, 0.013174455612897873, 0.8294254541397095, 0.47194623947143555, -0.23152253031730652, 0.8678455948829651, 0.4760424494743347, -0.08951400965452194, 0.7281087636947632, -0.8713002800941467, -0.04807337373495102, -0.6787312030792236, -0.15739621222019196, -0.23194220662117004, -0.7479727268218994, -0.7320826649665833, -0.37413594126701355, 0.2858313322067261, 0.07982657104730606, -0.4172734022140503, 0.5848470330238342, -0.908393383026123, 0.2937350869178772, 0.7601702809333801, 0.47444894909858704, 0.018318718299269676, 0.3297337293624878, 0.009568046778440475, -0.04749045521020889, -0.5798074007034302, -0.12549644708633423, 0.8718218803405762, 0.4102967083454132, 0.7092428803443909, -0.31862369179725647, 0.640692412853241, 0.12523266673088074, 0.17431233823299408, -0.6645085215568542, 0.5010278224945068, -0.2220674455165863, -0.752392590045929, -0.11692087352275848, -0.374494731426239, -0.8915209174156189, 0.14427484571933746, -0.19801779091358185, -0.5823152661323547, 0.5515751838684082, 0.40158000588417053, -0.19105006754398346, 0.48499754071235657, -0.7585535049438477, 0.8718922138214111, -0.21663770079612732, -0.5092460513114929, 0.09599103033542633, -0.79595547914505, 0.23050670325756073, -0.0011653890833258629, -0.09518461674451828, 0.056289710104465485, 0.3374578654766083, 0.6459813117980957, -0.7460258603096008, 0.9333199262619019, -0.3128020167350769, 0.24589534103870392, 0.7363807559013367, -0.2420470118522644, 0.3120187222957611, -0.2009461224079132, 0.1296226531267166, 0.538735568523407, 0.06605403125286102, -0.48916032910346985, -0.4741556644439697, 0.6772931218147278, -0.8717994689941406, -0.35928767919540405, -0.5706580877304077, -0.22878168523311615, 0.16324560344219208, 0.17059189081192017, 0.7190106511116028, 0.4043548107147217, 0.09601830691099167, 0.46992385387420654, 0.633198082447052, -0.22833028435707092, 0.46936172246932983, -0.15871486067771912, -0.010118617676198483, -0.42429912090301514, 0.8818816542625427, 0.36768093705177307, 0.2971950173377991, 0.17096851766109467, 0.27392610907554626, -0.24035115540027618, -0.38137689232826233, -0.41444385051727295, 0.13800768554210663, -0.7323181629180908, -0.5246257185935974, -0.5961549282073975, -0.5410594344139099, -0.4425838589668274, -0.0009813075885176659, -0.657240092754364, -0.36878448724746704, -0.49550509452819824, -0.07680943608283997, 0.692517876625061, 0.5438870191574097, -0.2900156080722809, 0.39828160405158997, -0.5882269144058228, 0.21248574554920197, 0.3937183916568756, 0.4170243442058563, -0.07832958549261093, -0.7009212374687195, -0.29580050706863403, 0.19470959901809692, -0.42699524760246277, -0.6984686255455017, 0.3542736768722534, 0.2970057725906372, 0.45050668716430664, 0.418511301279068, -0.05249509960412979, 0.9728363752365112, -0.2250942885875702, 0.690039336681366, 0.4766007959842682, -0.5411857962608337, 0.7092474102973938, -0.15658949315547943, 0.12816479802131653, 0.6183569431304932, 0.45793572068214417, -0.23243217170238495, -0.03020428866147995, -0.761727511882782, -0.8074371218681335, 0.680585503578186, 0.1302332580089569, 0.07256416231393814, 0.07150105386972427, 0.5883780121803284, -0.17104031145572662, 0.06512036919593811, -0.7484944462776184, -0.5228898525238037, -0.5216093063354492, -0.2060515582561493, -0.029517056420445442, -0.18736101686954498, 0.09177364408969879, -0.7433345317840576, 0.671638011932373, -0.09130198508501053, 0.4581512212753296, 0.30636441707611084, -0.12064287066459656, 0.08151034265756607, -0.43408745527267456, 0.20268695056438446, 0.37598922848701477, -0.17543569207191467, 0.10976798087358475, 0.07241927832365036, -0.8217595815658569, 0.18202784657478333, 0.12402082234621048, -0.09170554578304291, -0.03795073181390762, 0.3327164947986603, 0.9729951024055481, -0.1074116975069046, 0.01797044835984707, 0.6717128753662109, -0.21489672362804413, -0.4984354078769684, -0.3448677062988281, 0.07559910416603088, -0.10553796589374542, 0.4114944040775299, 0.38678649067878723, 0.23555557429790497, 0.17813102900981903, -0.32251524925231934, 0.29706576466560364, 0.26581329107284546, -0.5322311520576477, -0.2626747488975525, 0.6260985732078552, -0.09286752343177795, 0.17819148302078247, 0.7951574921607971, -0.11641988903284073, -0.47757965326309204, 0.9980798363685608, 0.3146989941596985, 0.8217087984085083, -0.2785603702068329, 0.13751083612442017, 0.8670067191123962, 0.15524834394454956, -0.1994287222623825, 0.004822729621082544, 0.06696758419275284, -0.569450318813324, -0.18770727515220642, -0.7028749585151672, 0.30478575825691223, 0.34522947669029236, -0.6959595084190369, 0.3740348219871521, -0.42181196808815, -0.5446332097053528, 0.27158409357070923, 0.10730200260877609, -0.9760460257530212, 0.4116910696029663, 0.08833150565624237, 0.7995097637176514, -0.865786612033844, 0.755206286907196, 0.7248957753181458, -0.6154261231422424, -1.0472370386123657, -0.28892049193382263, -0.03693293407559395, -0.6599228382110596, 0.853309690952301, 0.3361082971096039, 0.1805696189403534, 0.19903691112995148, -0.696953535079956, -0.8732796907424927, 1.3690848350524902, 0.33243098855018616, -0.5562750101089478, 0.09405878931283951, 0.1173945963382721, 0.47466909885406494, -0.20863915979862213, 0.44812214374542236, 0.4439381957054138, 0.35940390825271606, 0.5612083077430725, -0.8120338320732117, 0.03741387650370598, -0.41762930154800415, 0.3179512917995453, -0.07456962019205093, -0.9259240627288818, 0.9685302972793579, -0.10960754007101059, -0.07571159303188324, -0.13632231950759888, 0.6723088026046753, -0.021334022283554077, 0.12610456347465515, 0.7375429272651672, 0.8455588817596436, 0.3393552899360657, -0.28560152649879456, 0.9233329892158508, -0.10255301743745804, 0.6210408806800842, 0.7578214406967163, 0.35479140281677246, 0.35801586508750916, 0.49433159828186035, -0.3453499376773834, 0.30472058057785034, 1.1061393022537231, -0.3480585813522339, 0.6053098440170288, 0.05192945525050163, 0.0715237632393837, -0.09174948930740356, 0.02688181959092617, -0.4896101951599121, 0.5013956427574158, 0.1031876653432846, -0.6667863130569458, -0.08377605676651001, 0.22851978242397308, -0.14475451409816742, -0.28966590762138367, -0.285530149936676, 0.7508202195167542, 0.1106911152601242, -0.562153697013855, 0.9440025687217712, -0.23587286472320557, 0.7570320963859558, -0.21456412971019745, -0.11735305190086365, -0.30025747418403625, 0.4428040087223053, -0.36163821816444397, -0.7101196646690369, 0.29620569944381714, -0.08973363786935806, -0.08805891126394272, -0.05353514850139618, 0.86423259973526, -0.25460851192474365, -0.655211329460144, 0.21910139918327332, 0.18358831107616425, 0.3035503029823303, -0.15191638469696045, -0.9623585343360901, 0.06828239560127258, 0.026464706286787987, -0.7343810200691223, 0.2899217903614044, 0.5137067437171936, 0.005336873698979616, 0.41849178075790405, 0.6252524256706238, -0.03856487199664116, 0.21104702353477478, -0.2331162542104721, 1.1436073780059814, -0.3363068997859955, -0.33402490615844727, -0.8838417530059814, 0.6301540732383728, -0.3068174123764038, -0.31109437346458435, 0.583794116973877, 0.48833414912223816, 0.9107377529144287, -0.0715637356042862, 0.6867755651473999, -0.3228645920753479, 0.07620849460363388, -0.18059808015823364, 0.5578817129135132, -0.7354890704154968, -0.1903032511472702, -0.4231294095516205, -1.0037897825241089, -0.15297171473503113, 0.9525416493415833, -0.14611394703388214, 0.41860413551330566, 0.48308995366096497, 0.7453250288963318, -0.3246746361255646, -0.26160624623298645, 0.22124791145324707, 0.16487716138362885, 0.19848842918872833, 0.44909432530403137, 0.6245290637016296, -0.8303332328796387, 0.4467226266860962, -0.8681919574737549, -0.44092318415641785, -0.30715250968933105, -0.8386708498001099, -0.9646526575088501, -0.8929118514060974, -0.6180945038795471, -0.5188524127006531, -0.14763598144054413, 0.7377009987831116, 1.019115686416626, -0.6255025267601013, 0.09761703759431839, -0.17591725289821625, -0.23608773946762085, -0.3814370632171631, -0.22466687858104706, 0.5578202605247498, -0.040454450994729996, -0.9546889662742615, -0.36002907156944275, 0.021229026839137077, 0.43285977840423584, -0.1994406133890152, -0.024329466745257378, -0.2891903817653656, -0.3455791771411896, 0.5258657336235046, 0.16757822036743164, -0.36243143677711487, -0.2717217803001404, 0.0604410320520401, -0.2157718986272812, 0.27994659543037415, 0.4748693108558655, -0.5604255795478821, 0.363683819770813, 0.5394487977027893, 0.46990686655044556, 0.86421138048172, 0.06638643145561218, -0.046432383358478546, -0.673458456993103, 0.5249147415161133, 0.04115229472517967, 0.4175565540790558, 0.3089043200016022, -0.5309605002403259, 0.713914155960083, 0.5184662342071533, -0.6352362036705017, -0.743280291557312, -0.11706377565860748, -1.16032075881958, -0.20377019047737122, 1.0452522039413452, -0.39360687136650085, -0.5709283947944641, 0.3242398202419281, -0.18969663977622986, 0.5480722188949585, -0.15179796516895294, 0.570026159286499, 0.5269323587417603, 0.09741832315921783, -0.32163146138191223, -0.623990535736084, 0.3830599784851074, 0.008243325166404247, -0.5368660688400269, -0.23360392451286316, 0.4393671751022339, 0.46291160583496094, 0.3852909207344055, 0.6074039340019226, -0.3082047998905182, 0.055156052112579346, 0.0634690597653389, 0.18405337631702423, -0.2367999106645584, -0.24162764847278595, -0.15460392832756042, -0.24330033361911774, -0.2389775961637497, -0.628209114074707 ]
Palak/microsoft_deberta-large_squad
Palak
"2021-12-24T18:12:42Z"
22,239
0
transformers
[ "transformers", "pytorch", "deberta", "question-answering", "generated_from_trainer", "dataset:squad", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-03-02T23:29:04Z"
--- tags: - generated_from_trainer datasets: - squad model-index: - name: microsoft-deberta-large results: [] --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # microsoft-deberta-large This model is a fine-tuned version of [microsoft_deberta-large](https://huggingface.co/microsoft/deberta-large) on the **squadV1** dataset. - "eval_exact_match": 87.89025543992432 - "eval_f1": 93.8755152147345 - "eval_samples": 10788 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 3e-05 - train_batch_size: 12 - eval_batch_size: 32 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 3 ### Framework versions - Transformers 4.14.1 - Pytorch 1.9.0 - Datasets 1.16.1 - Tokenizers 0.10.3
[ -0.38444191217422485, -0.6591894030570984, 0.19898265600204468, 0.4499979019165039, -0.3821035623550415, -0.08244839310646057, -0.02295919880270958, -0.2916807234287262, 0.15988902747631073, 0.24461665749549866, -0.8928481340408325, -0.5420713424682617, -0.688730001449585, -0.057036880403757095, -0.19164924323558807, 1.029030442237854, -0.05114290118217468, 0.3618870973587036, -0.10925115644931793, -0.09317921847105026, -0.5347690582275391, -0.7412068843841553, -0.8891786336898804, -0.6304583549499512, 0.44423651695251465, 0.2474217563867569, 0.8506839275360107, 0.7826780080795288, 0.6866368055343628, 0.34818971157073975, -0.34711766242980957, -0.10187188535928726, -0.797382652759552, -0.21201205253601074, -0.06963054835796356, -0.37724238634109497, -1.019228219985962, 0.22312410175800323, 0.7275909781455994, 0.0812569409608841, -0.08687572181224823, 0.4616924822330475, 0.09977708756923676, 0.6342644691467285, -0.6326858401298523, 0.4151909053325653, -0.7353661060333252, 0.25836634635925293, 0.16795819997787476, -0.202020525932312, -0.26455560326576233, 0.02072829380631447, 0.041457876563072205, -0.5070080161094666, 0.3852574825286865, -0.26060420274734497, 1.119023323059082, 0.4255502223968506, -0.13690683245658875, 0.22561466693878174, -0.8789276480674744, 0.7192367911338806, -0.5516272187232971, 0.0968819260597229, 0.36496269702911377, 0.6867045760154724, -0.03305831551551819, -0.4376470148563385, -0.2755582928657532, -0.2882575988769531, 0.2985241711139679, 0.18985964357852936, -0.5260971784591675, 0.027005620300769806, 0.6426519751548767, -0.008948362432420254, -0.6531086564064026, 0.36314788460731506, -0.8620164394378662, -0.08874894678592682, 0.8991803526878357, 0.4260410964488983, -0.15725690126419067, 0.20171710848808289, -0.6342077851295471, 0.021755438297986984, -0.6795653104782104, 0.0015368749154731631, 0.5191965699195862, 0.30592942237854004, -0.36910927295684814, 0.5850889682769775, -0.3361341059207916, 0.851549506187439, 0.037401359528303146, 0.08018199354410172, 0.6893715858459473, 0.2027546912431717, -0.5823411345481873, 0.16280607879161835, 0.7886127233505249, 0.6416835784912109, 0.41008254885673523, -0.06059253215789795, -0.28095462918281555, 0.000380542449420318, 0.3578391671180725, -1.083762288093567, -0.4283469021320343, 0.22275729477405548, -0.49687835574150085, -0.6054575443267822, 0.09182614088058472, -0.5241839289665222, 0.17374835908412933, -0.5728631019592285, 0.4640581011772156, -0.42760857939720154, -0.054304152727127075, 0.02198212221264839, -0.04273805022239685, 0.1719658225774765, 0.4174192249774933, -0.6091612577438354, 0.09379155188798904, 0.39984646439552307, 0.6097434163093567, 0.012806780636310577, -0.5079016089439392, -0.5083363056182861, 0.12229069322347641, -0.23997065424919128, 0.4557918608188629, -0.25818097591400146, -0.2645289897918701, 0.04409317299723625, 0.34778255224227905, -0.14934541285037994, -0.5373644232749939, 0.5853613615036011, -0.5254471898078918, -0.12342190742492676, -0.2590453326702118, -0.5842160582542419, -0.11486443877220154, 0.5510707497596741, -0.6729064583778381, 0.9133946895599365, 0.3030748665332794, -0.5266546607017517, 0.5784908533096313, -0.629850447177887, 0.032796576619148254, 0.25012513995170593, -0.033157844096422195, -0.5932559967041016, -0.06111522763967514, -0.08999045938253403, 0.5886093378067017, -0.1742173135280609, 0.23489773273468018, -0.5678678750991821, -0.56354820728302, 0.05909758061170578, -0.48269811272621155, 0.856087863445282, 0.2853781580924988, -0.27787503600120544, 0.23022237420082092, -1.3131948709487915, 0.3035453259944916, 0.294616162776947, -0.41417327523231506, 0.14908692240715027, -0.24564015865325928, 0.3914053738117218, 0.5349814891815186, 0.5172756314277649, -0.6946702003479004, 0.46175044775009155, -0.1916307508945465, 0.4165741801261902, 0.6243400573730469, -0.18161432445049286, 0.034968193620443344, -0.2365962266921997, 0.5377730131149292, 0.2779451608657837, 0.5184768438339233, 0.4860021770000458, -0.4694576561450958, -0.5157501697540283, -0.5627961158752441, 0.1559608280658722, 0.5178950428962708, -0.32219892740249634, 0.9272273182868958, -0.0034279869869351387, -0.9190057516098022, -0.18821008503437042, 0.20227381587028503, 0.3966791033744812, 0.29511013627052307, 0.6196154356002808, 0.1100531592965126, -0.5957855582237244, -1.3556679487228394, 0.1531902700662613, -0.12500189244747162, 0.10199129581451416, -0.049210041761398315, 0.9264667630195618, -0.2814747989177704, 0.8863704204559326, -0.658896267414093, -0.2613549828529358, -0.3423997163772583, -0.1368846297264099, 0.2550998628139496, 1.057684063911438, 0.988511860370636, -0.3766452670097351, -0.25251248478889465, -0.5767078995704651, -0.7095664143562317, 0.32945528626441956, -0.024670809507369995, -0.2885759770870209, -0.05122469738125801, 0.3390074372291565, -0.558967113494873, 0.7548937201499939, 0.407489150762558, -0.3823465406894684, 0.42698410153388977, -0.6448273658752441, -0.056645918637514114, -1.0811970233917236, 0.05010238289833069, 0.2693762183189392, -0.0803307369351387, -0.23929688334465027, -0.060811858624219894, 0.12172656506299973, -0.07247870415449142, -0.559489905834198, 0.4720306992530823, -0.12709535658359528, 0.3457008898258209, -0.36593449115753174, -0.07317208498716354, -0.028755126520991325, 0.5357010960578918, -0.021202683448791504, 0.5185837149620056, 0.7315725684165955, -0.5067588686943054, 0.588801383972168, 0.621006190776825, -0.17712284624576569, 0.5552054047584534, -1.1298283338546753, 0.03679937869310379, -0.22551611065864563, 0.17678597569465637, -0.9335935711860657, -0.040886346250772476, 0.38180819153785706, -0.2789250910282135, 0.36753150820732117, -0.2529304325580597, -0.559996485710144, -0.5618501305580139, -0.0449017770588398, 0.4016507565975189, 0.6252398490905762, -0.6832111477851868, 0.09230009466409683, 0.13596504926681519, 0.5090637803077698, -0.42284324765205383, -0.81398606300354, -0.2919434905052185, -0.12175501883029938, -0.5375350117683411, 0.2785433232784271, -0.15477541089057922, 0.02224281243979931, -0.28357788920402527, 0.030281424522399902, -0.4626299738883972, 0.04472381994128227, 0.4723556935787201, 0.5410200953483582, -0.14346714317798615, 0.13733021914958954, -0.0764484852552414, -0.14572051167488098, 0.26569637656211853, 0.17231746017932892, 0.5070720314979553, -0.12443289160728455, -0.0601452998816967, -0.6749505996704102, 0.06794901192188263, 0.6287897229194641, -0.22736287117004395, 1.0819783210754395, 0.8254580497741699, -0.3935497999191284, -0.1691415160894394, -0.4075027406215668, -0.10555212944746017, -0.44957292079925537, 0.6375715732574463, -0.4889315068721771, -0.25283506512641907, 0.5499146580696106, 0.19841691851615906, -0.07467761635780334, 0.9867309331893921, 0.5237834453582764, 0.20714305341243744, 1.3668617010116577, 0.3983314335346222, -0.23819565773010254, 0.40907731652259827, -0.9105013608932495, -0.2662910223007202, -0.8111445307731628, -0.4315614104270935, -0.6509715914726257, -0.5541118383407593, -0.6608068346977234, -0.014748318120837212, -0.019552363082766533, 0.30691826343536377, -0.8598343729972839, 0.6845698356628418, -0.6951929926872253, 0.47052985429763794, 0.5857323408126831, 0.5701496005058289, -0.11949364095926285, 0.1001695767045021, 0.09771689772605896, 0.007813715375959873, -0.8934065699577332, -0.5465929508209229, 1.1352729797363281, 0.4788636565208435, 0.8042759895324707, -0.10339582711458206, 0.7479323148727417, -0.07143571972846985, 0.0867394432425499, -0.4563600718975067, 0.5849796533584595, 0.11989438533782959, -0.9587708711624146, -0.11022857576608658, -0.39822277426719666, -1.0070534944534302, 0.020651957020163536, -0.48473867774009705, -0.9681905508041382, 0.11108149588108063, 0.3868793845176697, -0.33563917875289917, 0.29743263125419617, -0.5798130035400391, 1.3221098184585571, -0.18217255175113678, -0.55634605884552, -0.31682804226875305, -0.46882688999176025, 0.04712272062897682, 0.13146334886550903, -0.45219457149505615, -0.2215549647808075, 0.022683274000883102, 0.8724601864814758, -0.5868135690689087, 0.640483558177948, -0.4835318326950073, 0.19603900611400604, 0.5128462910652161, -0.07965157181024551, 0.6820539832115173, 0.15354081988334656, -0.22101016342639923, 0.20589813590049744, 0.23351876437664032, -0.7624289393424988, -0.43610289692878723, 0.8969500064849854, -1.2304083108901978, -0.16871249675750732, -0.5691959857940674, -0.5603588223457336, -0.24166612327098846, -0.10665005445480347, 0.5338298678398132, 0.7015267610549927, -0.41213783621788025, 0.41427093744277954, 0.3034466505050659, -0.008605492301285267, 0.3957958519458771, 0.5107911825180054, 0.023285998031497, -0.26426494121551514, 0.7952451705932617, 0.1441369503736496, 0.1312856823205948, 0.09124425798654556, 0.04686683043837547, -0.28428950905799866, -0.6280350089073181, -0.4663920998573303, 0.12327266484498978, -0.6362240314483643, -0.33464688062667847, -0.3649418354034424, -0.40708813071250916, -0.17438510060310364, -0.051677901297807693, -0.5079396963119507, -0.34336739778518677, -0.7368792295455933, -0.17300020158290863, 0.5123964548110962, 0.6640809178352356, 0.11494223028421402, 0.7259954810142517, -0.9232692718505859, -0.12712149322032928, 0.05044136941432953, 0.36714059114456177, -0.05919575318694115, -0.8276472687721252, -0.3581796884536743, 0.19174253940582275, -0.6124333143234253, -0.7769804000854492, 0.5181698799133301, -0.14218857884407043, 0.7133889198303223, 0.34805864095687866, -0.1507437825202942, 0.7224920392036438, -0.48352956771850586, 0.8209250569343567, 0.3202038109302521, -0.4855850636959076, 0.5254366397857666, -0.30080223083496094, 0.41824227571487427, 0.8382568359375, 0.6406794190406799, 0.44444578886032104, -0.1162533089518547, -1.2865549325942993, -0.7163328528404236, 0.7947255373001099, 0.47487902641296387, 0.12077081948518753, -0.02000950090587139, 0.4076346158981323, -0.23908494412899017, 0.3773309588432312, -0.5051326155662537, -0.49076375365257263, -0.12130675464868546, -0.16130545735359192, -0.32732269167900085, -0.33766359090805054, -0.12153296172618866, -0.7764787077903748, 1.2021422386169434, 0.06812486797571182, 0.2163565754890442, 0.13060499727725983, 0.022966202348470688, -0.11920832097530365, -0.14007888734340668, 0.8225141167640686, 0.9973922967910767, -0.723589301109314, -0.41603296995162964, 0.23528918623924255, -0.4634692668914795, 0.07551372796297073, 0.2496945708990097, -0.06654909998178482, 0.17985807359218597, 0.1816093921661377, 0.9721248149871826, 0.036927755922079086, -0.3156980276107788, 0.5665333867073059, 0.03706568479537964, -0.44985195994377136, -0.4281204640865326, 0.23943547904491425, -0.24895159900188446, 0.49338704347610474, 0.04244796931743622, 0.41886791586875916, -0.04040610045194626, -0.3528591990470886, 0.1229061633348465, 0.5433435440063477, -0.7473130822181702, -0.30185872316360474, 0.776667594909668, 0.16673828661441803, -0.346619576215744, 0.6136298775672913, -0.15271396934986115, -0.3897447884082794, 1.0401722192764282, 0.5935711860656738, 1.0231448411941528, -0.1474134624004364, 0.11066814512014389, 0.9387819170951843, 0.18487894535064697, -0.19274407625198364, 0.599918007850647, 0.2586803734302521, -0.42829814553260803, -0.14090056717395782, -0.5558827519416809, -0.10845990478992462, 0.5243382453918457, -0.949238657951355, 0.43802744150161743, -0.42949384450912476, -0.3635975420475006, 0.21661268174648285, 0.11732490360736847, -1.1786675453186035, 0.504297137260437, 0.06162801384925842, 1.263887643814087, -0.85157310962677, 0.9943366646766663, 0.6009201407432556, -0.634588360786438, -0.9270434975624084, -0.38197195529937744, -0.1852572113275528, -1.0260570049285889, 1.1126554012298584, 0.03911717236042023, 0.3337942063808441, 0.005467055831104517, -0.7245182394981384, -0.6691306829452515, 0.9614302515983582, 0.3705090284347534, -0.9913387894630432, 0.015827687457203865, 0.09887007623910904, 0.68637615442276, -0.5102851390838623, 0.5537661910057068, 0.32077857851982117, 0.2731783092021942, 0.32403817772865295, -0.7901965975761414, -0.059765804558992386, -0.09923231601715088, 0.08313736319541931, 0.025036681443452835, -0.8123012781143188, 1.0412249565124512, -0.00020544692233670503, 0.6955260038375854, 0.3475186228752136, 0.47751903533935547, 0.17215390503406525, 0.005482526961714029, 0.35063961148262024, 0.600009560585022, 0.4864189922809601, -0.015465996228158474, 0.8812092542648315, -0.6519405841827393, 0.7673527598381042, 1.3454300165176392, -0.17112582921981812, 0.812041699886322, 0.4082956314086914, -0.2420426607131958, 0.2243206948041916, 0.587640106678009, -0.6757597923278809, 0.2636795938014984, 0.6037718653678894, 0.023208456113934517, -0.5156648755073547, 0.5287778973579407, -0.6545772552490234, 0.5999117493629456, -0.18717321753501892, -1.0296621322631836, -0.46794411540031433, -0.22001808881759644, -0.12021823227405548, -0.19473262131214142, -0.6219112873077393, 0.5702083706855774, -0.38561415672302246, -0.5449510216712952, 0.9262516498565674, -0.12054582685232162, 0.3143388032913208, -0.7078437805175781, -0.17149639129638672, 0.12058655917644501, 0.6707795262336731, -0.21212336421012878, -0.53065425157547, 0.03317331522703171, -0.013873505406081676, -0.2871856689453125, 0.07882905751466751, 0.4728046655654907, -0.4129765033721924, -0.9424837827682495, 0.18965089321136475, 0.533868134021759, 0.32363972067832947, -0.30865612626075745, -1.1899899244308472, 0.17205993831157684, -0.15280941128730774, -0.31974467635154724, 0.4558587670326233, 0.16266877949237823, 0.25658273696899414, 0.5780084729194641, 0.26678773760795593, -0.029977208003401756, -0.10032739490270615, 0.007420992478728294, 0.9053893685340881, -0.47800272703170776, -0.4063817262649536, -1.0765312910079956, 0.4625398814678192, -0.23349645733833313, -0.9464972019195557, 0.7401929497718811, 1.2100975513458252, 0.7261531352996826, -0.461693674325943, 0.4861277639865875, 0.20529818534851074, 0.1989797055721283, -0.3134259879589081, 0.7643684148788452, -0.5483642816543579, -0.13845747709274292, -0.41965973377227783, -1.1720573902130127, 0.05053818225860596, 0.8557373285293579, -0.22003483772277832, 0.04744391143321991, 0.37873950600624084, 0.8207922577857971, -0.16018478572368622, 0.13074269890785217, 0.387221097946167, 0.09886278212070465, 0.2880348563194275, 0.5841700434684753, 0.567137598991394, -0.8990009427070618, 0.5131740570068359, -0.4414377212524414, -0.2970317006111145, -0.148854061961174, -0.8185518383979797, -1.270353078842163, -0.39173614978790283, -0.7607702016830444, -0.7541120052337646, 0.10810289531946182, 1.3833749294281006, 0.9141910076141357, -0.7334928512573242, -0.1961025595664978, -0.15378686785697937, -0.3545897901058197, -0.2786692678928375, -0.17984607815742493, 0.38552385568618774, -0.2628636062145233, -0.818456768989563, 0.08387831598520279, -0.3653797507286072, 0.4363166093826294, -0.2457611858844757, -0.1107354536652565, -0.31029099225997925, -0.27167338132858276, 0.5402777194976807, 0.1489240676164627, -0.2956227958202362, -0.40875908732414246, -0.2125038355588913, -0.15142230689525604, 0.305589497089386, 0.2660808861255646, -0.7877476811408997, 0.2102348804473877, 0.36714959144592285, 0.14754217863082886, 0.7069457173347473, -0.1393451690673828, 0.4220888316631317, -0.6170638203620911, 0.556125819683075, 0.2715763747692108, 0.5251467823982239, -0.10056425631046295, -0.28050029277801514, 0.5540145635604858, 0.20219239592552185, -0.6993921995162964, -0.7877380847930908, -0.15090012550354004, -1.275773286819458, -0.051296062767505646, 1.317431926727295, -0.006425836589187384, -0.5181081295013428, 0.3915545642375946, -0.5465134978294373, 0.2834649980068207, -0.435494601726532, 0.514954686164856, 0.4969729483127594, 0.06306301802396774, 0.4330116808414459, -0.6379704475402832, 0.5107786059379578, 0.026109728962183, -0.6545860171318054, -0.15002280473709106, 0.45239028334617615, 0.4818929433822632, 0.026511890813708305, 0.23397628962993622, 0.09252927452325821, 0.3215610384941101, 0.0089031420648098, 0.1769258677959442, -0.5251895189285278, -0.45342689752578735, -0.2780190408229828, 0.15844905376434326, -0.10589783638715744, -0.6615461707115173 ]
cerebras/btlm-3b-8k-base
cerebras
"2023-10-23T14:45:35Z"
22,213
238
transformers
[ "transformers", "pytorch", "btlm", "text-generation", "causal-lm", "Cerebras", "BTLM", "custom_code", "en", "dataset:cerebras/SlimPajama-627B", "arxiv:2304.03208", "arxiv:2002.05202", "arxiv:2108.12409", "arxiv:2203.03466", "arxiv:2309.11568", "arxiv:2310.13017", "license:apache-2.0", "has_space", "region:us" ]
text-generation
"2023-07-14T19:01:11Z"
--- language: - en inference: false tags: - pytorch - causal-lm - Cerebras - BTLM datasets: - cerebras/SlimPajama-627B pipeline_tag: text-generation license: apache-2.0 --- # BTLM-3B-8k-base [Bittensor Language Model (BTLM-3B-8k-base)](https://www.cerebras.net/blog/btlm-3b-8k-7b-performance-in-a-3-billion-parameter-model/) is a 3 billion parameter language model with an 8k context length trained on 627B tokens of [SlimPajama](https://huggingface.co/datasets/cerebras/SlimPajama-627B). BTLM-3B-8k-base sets a new standard for 3B parameter models, outperforming models trained on hundreds of billions more tokens and achieving comparable performance to open 7B parameter models. BTLM-3B-8k-base can also be quantized to 4-bit to fit in devices with as little as 3GB of memory. The model is made available with an Apache 2.0 license for commercial use. BTLM was trained by [Cerebras](https://www.cerebras.net/) in partnership with [Opentensor](https://opentensor.ai/) on the newly unveiled [Condor Galaxy 1 (CG-1) supercomputer](https://www.cerebras.net/blog/introducing-condor-galaxy-1-a-4-exaflop-supercomputer-for-generative-ai/), the first public deliverable of the G42-Cerebras strategic partnership. BTLM-3B-8k was trained with a similar architecture to [CerebrasGPT](https://arxiv.org/abs/2304.03208) with the addition of [SwiGLU](https://arxiv.org/abs/2002.05202) nonlinearity, [ALiBi](https://arxiv.org/abs/2108.12409) position embeddings, and [maximal update parameterization (muP)](https://arxiv.org/abs/2203.03466). The model was trained for 1 epoch of SlimPajama-627B. 75% of training was performed with 2k sequence length. The final 25% of training was performed at 8k sequence length to enable long sequence applications Read [our paper](https://arxiv.org/abs/2309.11568) for more details! ## BTLM-3B-8k Highlights BTLM-3B-8k-base: - **Licensed for commercial use** (Apache 2.0). - **[State of the art 3B parameter model](#performance-vs-3b-models)**. - **Provides 7B model performance in a 3B model** via performance enhancements from [ALiBi](https://arxiv.org/abs/2108.12409), [SwiGLU](https://arxiv.org/abs/2002.05202), [maximal update parameterization (muP)](https://arxiv.org/abs/2203.03466) and the the extensively deduplicated and cleaned [SlimPajama-627B dataset](https://huggingface.co/datasets/cerebras/SlimPajama-627B). - **[Fits in devices with as little as 3GB of memory](#memory-requirements) when quantized to 4-bit**. - **One of few 3B models that supports 8k sequence length** thanks to ALiBi. - **Requires 71% fewer training FLOPs, has 58% smaller memory footprint** for inference than comparable 7B models. ## Usage *Note: Transformers does not support muP for all models, so BTLM-3B-8k-base requires a custom model class. This causes a situation where users must either (1) enable `trust_remote_code=True` when loading the model or (2) acknowledge the warning about code execution upon loading the model.* #### With generate(): ```python from transformers import AutoTokenizer, AutoModelForCausalLM # Load the tokenizer and model tokenizer = AutoTokenizer.from_pretrained("cerebras/btlm-3b-8k-base") model = AutoModelForCausalLM.from_pretrained("cerebras/btlm-3b-8k-base", trust_remote_code=True, torch_dtype="auto") # Set the prompt for generating text prompt = "Albert Einstein was known for " # Tokenize the prompt and convert to PyTorch tensors inputs = tokenizer(prompt, return_tensors="pt") # Generate text using the model outputs = model.generate( **inputs, num_beams=5, max_new_tokens=50, early_stopping=True, no_repeat_ngram_size=2 ) # Convert the generated token IDs back to text generated_text = tokenizer.batch_decode(outputs, skip_special_tokens=True) # Print the generated text print(generated_text[0]) ``` #### With pipeline: ```python from transformers import AutoTokenizer, AutoModelForCausalLM from transformers import pipeline # Load the tokenizer and model tokenizer = AutoTokenizer.from_pretrained("cerebras/btlm-3b-8k-base") model = AutoModelForCausalLM.from_pretrained("cerebras/btlm-3b-8k-base", trust_remote_code=True, torch_dtype="auto") # Set the prompt for text generation prompt = """Isaac Newton was a """ # Create a text generation pipeline pipe = pipeline("text-generation", model=model, tokenizer=tokenizer) # Generate text using the pipeline generated_text = pipe( prompt, max_length=50, do_sample=False, no_repeat_ngram_size=2)[0] # Print the generated text print(generated_text['generated_text']) ``` ## Evaluations and Comparisons to Other Models ### Memory Requirements ![figure_1_image](./figure_1_memory_footprint.png) Figure 1. Memory requirements of different model sizes and quantization schemes ### Quality, Training Cost, Memory Footprint, Inference Speed ![figure_2_image](./figure_2_half_the_size_twice_the_speed.png) Figure 2: Comparisons of quality, memory footprint & inference cost between BTLM-3B-8K and 7B model families. ### Performance vs 3B models ![table_1_image](./table_1_downstream_performance_3b.png) Table 1: Performance at 3B model size. Detailed down-stream tasks comparisons. MMLU task performance is reported using 5-shot, other tasks are 0-shot. ![figure_3_image](./figure_3_performance_vs_3b_models.png) Figure 3: Performance at 3B model size ### Performance vs 7B models ![table_2_image](./table_2_downstream_performance_7b.png) Table 2: Performance at 7B model size. Detailed down-stream tasks comparisons. MMLU task performance is reported using 5-shot, everything else is 0-shot. ![figure_4_image](./figure_4_performance_vs_7b_models.jpg) Figure 4: Performance at 7B model size ## Long Sequence Lengths To enable long sequence applications, we use ALiBi position embeddings and trained on 470B tokens at the context length of 2,048 followed by 157B of tokens trained at 8,192 context length. To assess BTLM’s long sequence capability, we evaluate it on SlimPajama test set with 32,768 context length and plot loss at each token position. Although ALiBi allows extrapolation in theory, 2,048 context length training alone does not extrapolate well in practice. Thankfully variable sequence length training allows for substantially improved extrapolation. BTLM-3B extrapolates well up to 10k context length but the performance degrades slightly beyond this. ![figure_5_image](./figure_5_xentropy_with_sequence_lengths.svg) Figure 5: BTLM-3B model's cross-entropy evaluation on the SlimPajama’s test set. Inference performed on the extrapolated sequence length of 32,768 tokens. ## Model Details - Developed by: [Cerebras Systems](https://www.cerebras.net/) and [Opentensor](https://opentensor.ai/) with generous support from [G42 Cloud](https://www.g42cloud.com/) and [IIAI](https://www.inceptioniai.org/en/) - License: Apache 2.0 - Model type: Decoder-only Language Model - Architecture: GPT-2 style architecture with SwiGLU, ALiBi, and muP - Data set: SlimPajama-627B - Tokenizer: Byte Pair Encoding - Vocabulary Size: 50257 - Sequence Length: 8192 - Optimizer: AdamW - Positional Encoding: ALiBi - Language: English - Learn more: [BTLM-3B-8k blog](https://www.cerebras.net/blog/btlm-3b-8k-7b-performance-in-a-3-billion-parameter-model/) - Paper: [BTLM-3B-8K: 7B Parameter Performance in a 3B Parameter Model](https://arxiv.org/abs/2309.11568) ## To continue training with PyTorch and Maximal Update Parameterization ```python from transformers import AutoModelForCausalLM import torch model = AutoModelForCausalLM.from_pretrained("cerebras/btlm-3b-8k-base", trust_remote_code=True) # Get the parameter groups for the muP optimizer param_groups = model.get_mup_param_groups(lr=1e-3, weight_decay=0.1) # Set up the optimizer using AdamW with muP parameters optimizer = torch.optim.AdamW( param_groups, betas=(0.9, 0.95), eps=1e-8 ) ``` Ensure the following muP parameters are passed in your config, otherwise your model will default to standard parameterization - `mup_width_scale: <float>` - `mup_embeddings_scale: <float>` - `mup_output_alpha: <float>` - `mup_scale_qk_dot_by_d: true` ## To extend the context length with Position Interpolation ### During inference (without fine-tuning): It's possible to extend the context length to 2x the training context length without degradation in performance using dynamic linear scaling. Dynamic linear scaling adjusts the slopes of ALiBi with a factor of `input_seq_len/train_seq_len` when `input_seq_len` is larger than `train_seq_len`. Check the details in our paper [Position Interpolation Improves ALiBi Extrapolation](https://arxiv.org/abs/2310.13017). To enable dynamic linear scaling, update `config.json` as follows: ```json # update `n_positions` with the maximum context length will be # encountered during inference (e.g. 16384 tokens) "n_positions": 16384, # specify `train_seq_len` in `alibi_scaling` parameter "alibi_scaling": { "type": "linear", "train_seq_len": 8192 } ``` ### Using fine-tuning + position interpolation: Performing fine-tuning with position interpolation can help achieve greater extrapolation lengths. The scaling factor should be fixed to `finetuning_seq_len/train_seq_len`. To enable fixed linear scaling, update `config.json` as follows: ```json # update `n_positions` with the fine-tuning context length (e.g. 32768 tokens) "n_positions": 32768, # specify the scaling `factor` in `alibi_scaling` parameter "alibi_scaling": { "type": "linear", "factor": 4.0 } ``` ## Uses and Limitations ### Intended Use The primary intended use is to further research into large language models. BTLM-3B-8k-base can be used as a foundation model for NLP, applications, ethics, and alignment research. We release these models with a fully permissive Apache license for the community to use freely. You may fine-tune and adapt BTLM-3B-8k-base model via either Cerebras [Model Studio](https://www.cerebras.net/product-cloud/) or third-party libraries. Further safety-related testing and mitigations should be applied before using the BTLM-3B-8k-base in production downstream applications. ### Out of Scope Use BTLM-3B-8k-base was trained on SlimPajama, with primarily English language, and is not recommended for machine translation tasks. BTLM-3B-8k-base has not been tuned for instruction-following or chat-based use cases. ### Generation Samples ``` Prompt: What is a manometer?" Generation: "A manometric device is an instrument that measures the pressure of a fluid." ``` ``` Prompt: "What Robert Oppenheimer is famous for?" Generation: “Robert Opperman was a physicist who was the director of the Manhattan Project, which was responsible for the development of nuclear weapons.” ``` ``` Prompt: "What was Albert Einstein known for?" Generation: “Albert Einstein was a German-born theoretical physicist who developed the theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics).” ``` ``` Prompt: “Who is Isaac Newton?” Generation: “Isaac Newton was an English physicist, mathematician, astronomer, alchemist, and theologian. He is widely recognized as one of the most influential scientists of all time and as a key figure in the scientific revolution.” ``` ``` Prompt: "Where does the blood get pumped to after it leaves the right ventricle?" Generation: “The right atrium receives the deoxygenated blood from the pulmonary artery. The right side of the heart is the only side that receives de-oxygened...” ``` ``` Prompt: "Peter lost his wallet after attending a local concert. To help him, Bob gave David 10 dollars. David then passed it on to Peter. Now what is the total amount of money Peter has?" Generation: “A. $10” ``` ## Risk, Bias, Ethical Considerations - **Human life:** The outputs from this model may or may not align with human values. The risk needs to be thoroughly investigated before deploying this model in a production environment where it can directly impact human life. - **Risks and harms:** There may be distributional bias in the [RedPajama dataset](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) that can manifest in various forms in the downstream model deployment. There are other risks associated with large language models such as amplifying stereotypes, memorizing training data, or revealing private or secure information. ## Acknowledgements We are thankful to all Cerebras engineers that made this work possible. We would like to acknowledge the generous support of G42 Cloud and the Inception Institute of Artificial Intelligence for providing compute time on Condor Galaxy 1.
[ -0.39415377378463745, -0.6432992815971375, 0.20485323667526245, 0.2529422640800476, -0.3464573621749878, -0.06914762407541275, -0.19717207551002502, -0.5328967571258545, -0.18015402555465698, 0.30068454146385193, -0.3083166480064392, -0.4323727488517761, -0.5129150152206421, -0.07737205922603607, -0.2856082320213318, 0.962272584438324, 0.20333176851272583, 0.07607663422822952, 0.23140355944633484, -0.15603582561016083, -0.4157855808734894, -0.6357835531234741, -0.7552302479743958, -0.20946694910526276, 0.5667914748191833, 0.06379732489585876, 0.6072741150856018, 0.6436182856559753, 0.3205249309539795, 0.25266948342323303, -0.34346163272857666, 0.22705362737178802, -0.38095003366470337, -0.09099765866994858, 0.04879580810666084, -0.24450558423995972, -0.45680907368659973, -0.2640194594860077, 0.7521318793296814, 0.5254384279251099, -0.05430997908115387, 0.39360854029655457, 0.11893108487129211, 0.7742871046066284, -0.5613059401512146, 0.10696925222873688, -0.43875738978385925, -0.18805870413780212, -0.29869571328163147, 0.10869594663381577, -0.5386511087417603, -0.34646469354629517, 0.00427160132676363, -0.11805867403745651, 0.2973848581314087, 0.17701074481010437, 1.0818917751312256, 0.17998549342155457, -0.44224128127098083, -0.1834755688905716, -0.5774925351142883, 0.7429417967796326, -1.0276113748550415, 0.7765762805938721, 0.24286754429340363, 0.09147338569164276, -0.011557583697140217, -0.8591649532318115, -0.4370668828487396, -0.1937253773212433, -0.09229934215545654, 0.0918484479188919, -0.2596302628517151, 0.10580641776323318, 0.5463066101074219, 0.20740656554698944, -0.7806392908096313, 0.09501777589321136, -0.7568326592445374, -0.32839372754096985, 0.647966742515564, 0.1619601994752884, -0.17551039159297943, -0.433784544467926, -0.2013992816209793, -0.1483462154865265, -0.5214848518371582, 0.16168195009231567, 0.3746494948863983, 0.2058684229850769, -0.3128840923309326, 0.33618924021720886, -0.10392238944768906, 0.9732043147087097, 0.06928341090679169, -0.15834996104240417, 0.3627121150493622, -0.2842308580875397, -0.4444047808647156, 0.0347442701458931, 0.9010438323020935, 0.07650742679834366, -0.15887415409088135, 0.0967792272567749, 0.006048042327165604, -0.27750134468078613, -0.0288067739456892, -1.1611865758895874, -0.2990471422672272, 0.3748016059398651, -0.6552245616912842, 0.07452746480703354, -0.0920560210943222, -0.6935325860977173, -0.08012841641902924, -0.1381092220544815, 0.45908766984939575, -0.857221245765686, -0.046236976981163025, 0.015215199440717697, -0.1059974730014801, 0.2756754457950592, 0.04735523834824562, -1.008941411972046, 0.07869100570678711, 0.2895972728729248, 0.9091450572013855, 0.12987294793128967, -0.2884284257888794, -0.20442955195903778, 0.16725488007068634, -0.18483416736125946, 0.18942393362522125, -0.040045712143182755, -0.4129374027252197, -0.3407612442970276, -0.1834658980369568, -0.14619168639183044, -0.2846145033836365, 0.3468124568462372, -0.5297290086746216, 0.35358813405036926, -0.054317377507686615, -0.6961517930030823, -0.5145423412322998, -0.0216227900236845, -0.5277572274208069, 1.0431761741638184, 0.22687508165836334, -0.7079401016235352, 0.2799499034881592, -0.7716505527496338, -0.17875143885612488, 0.03488202020525932, 0.06889226287603378, -0.47578272223472595, 0.01967000961303711, 0.24277229607105255, 0.6929655075073242, -0.24031837284564972, 0.2837448716163635, -0.41902831196784973, -0.45509621500968933, 0.21180720627307892, -0.6524354815483093, 1.125796914100647, 0.4605039060115814, -0.47779735922813416, -0.017226899042725563, -0.7311460971832275, 0.15159666538238525, 0.08327307552099228, -0.40229448676109314, 0.18593522906303406, -0.3608253002166748, 0.03818734362721443, 0.28080812096595764, 0.4597527086734772, -0.36466214060783386, 0.0735810175538063, -0.6293070316314697, 0.4682840406894684, 0.6032055616378784, -0.07635938376188278, 0.12959346175193787, -0.1738826036453247, 0.3314715325832367, -0.05972461402416229, 0.3645261526107788, -0.23704548180103302, -0.6532882452011108, -0.8287777900695801, -0.5217152237892151, 0.5696796178817749, 0.2618173360824585, -0.3515430986881256, 0.5752089023590088, -0.25593382120132446, -0.739416778087616, -0.5785115361213684, 0.13062599301338196, 0.5514277219772339, 0.5679060220718384, 0.5527873039245605, -0.05367191135883331, -0.7033735513687134, -0.9487000703811646, 0.04789040610194206, -0.30026957392692566, -0.061326541006565094, 0.2390507310628891, 0.5649223327636719, -0.28281399607658386, 0.73621666431427, -0.4666855037212372, 0.058996520936489105, -0.20145638287067413, 0.07958652079105377, 0.43008190393447876, 0.6007348299026489, 0.5292356610298157, -0.6382387280464172, -0.2871871590614319, -0.0333133190870285, -0.653584361076355, 0.1676090806722641, 0.04368400573730469, -0.10802442580461502, 0.6664900183677673, 0.2717745006084442, -0.6646807193756104, 0.402177095413208, 0.7094432711601257, -0.487248033285141, 0.5645939707756042, -0.24914522469043732, 0.006171479821205139, -1.171624779701233, 0.45274415612220764, -0.14010648429393768, -0.2152826488018036, -0.46627750992774963, 0.11331941932439804, 0.293628454208374, -0.03354087844491005, -0.707272469997406, 0.7434448003768921, -0.4184540808200836, -0.023376040160655975, -0.14108538627624512, -0.17705492675304413, 0.10473696887493134, 0.7589603066444397, -0.10268241167068481, 0.5058506727218628, 0.4637279212474823, -0.6540753841400146, 0.3436621427536011, 0.19367049634456635, -0.17896373569965363, 0.1808653622865677, -0.5769612193107605, 0.15351201593875885, 0.1919230818748474, 0.3622215986251831, -0.8625167012214661, -0.24290576577186584, 0.21432273089885712, -0.6504181623458862, 0.47654449939727783, -0.1561015099287033, -0.6564534902572632, -0.8043354153633118, -0.14744094014167786, 0.40610799193382263, 0.908584475517273, -0.45785465836524963, 0.5809252858161926, -0.07240462303161621, 0.16712415218353271, -0.6775712370872498, -0.7321382761001587, -0.07662185281515121, -0.34150317311286926, -0.6586920619010925, 0.35319098830223083, -0.21142390370368958, 0.20417393743991852, -0.20601294934749603, -0.120022714138031, 0.12908194959163666, 0.0887523889541626, 0.3731493055820465, 0.3950231671333313, -0.05587300285696983, -0.01927541382610798, 0.018028423190116882, 0.11283618211746216, -0.006453808397054672, -0.3831854462623596, 0.7830093502998352, -0.4291112422943115, -0.12994404137134552, -0.502800703048706, 0.020233402028679848, 0.37267282605171204, -0.006596179213374853, 0.7980731129646301, 0.8394728899002075, -0.40063488483428955, 0.10145003348588943, -0.5936879515647888, -0.16312271356582642, -0.5065406560897827, 0.37937796115875244, -0.26114559173583984, -0.7286350727081299, 0.48217537999153137, 0.3249875009059906, 0.06837749481201172, 0.5043821930885315, 0.7996851205825806, -0.03197338804602623, 1.0677402019500732, 0.42562100291252136, 0.013811812736093998, 0.39156997203826904, -0.7233777046203613, 0.016611387953162193, -0.8289793133735657, -0.343432754278183, -0.3277207314968109, -0.27719593048095703, -0.5494743585586548, -0.38764065504074097, 0.20056672394275665, 0.3499892055988312, -0.712131917476654, 0.47083938121795654, -0.5160824060440063, 0.0724719911813736, 0.6976376175880432, 0.23405009508132935, -0.05616701766848564, -0.21837694942951202, -0.2728082239627838, 0.18271790444850922, -0.8224602937698364, -0.4459950625896454, 1.2927912473678589, 0.42048776149749756, 0.3610277771949768, 0.00916394405066967, 0.7363126277923584, -0.004885072819888592, 0.31563299894332886, -0.46538296341896057, 0.609359085559845, 0.08055422455072403, -0.9548568725585938, -0.21215346455574036, -0.5230497121810913, -1.0533411502838135, 0.27133801579475403, 0.07526829838752747, -0.9784276485443115, 0.22378958761692047, 0.3568096458911896, -0.5320326685905457, 0.3365604281425476, -0.7766335010528564, 0.9766703248023987, -0.2549484372138977, -0.36266428232192993, -0.1014491394162178, -0.9591068029403687, 0.45433780550956726, -0.17378516495227814, 0.031722456216812134, 0.015542915090918541, -0.023898383602499962, 0.9569634795188904, -0.4038114845752716, 0.5391143560409546, -0.27610909938812256, 0.08945056796073914, 0.26069217920303345, -0.07820741832256317, 0.31946060061454773, -0.036542560905218124, -0.31838977336883545, 0.5377698540687561, 0.00032381905475631356, -0.6119658946990967, -0.402892529964447, 0.6691792607307434, -0.8099261522293091, -0.47758904099464417, -0.314843088388443, -0.6659989953041077, -0.17519792914390564, 0.2732708156108856, 0.5333203673362732, 0.4823237359523773, 0.1412791758775711, 0.4086468815803528, 0.473581463098526, -0.16226498782634735, 0.9055823683738708, 0.3380424976348877, -0.33779531717300415, -0.607227623462677, 0.8116320371627808, 0.19433538615703583, 0.1984509527683258, 0.19929687678813934, 0.09496190398931503, -0.6135667562484741, -0.7534849047660828, -0.5668401718139648, 0.2973611652851105, -0.6631929278373718, -0.4128227233886719, -0.7874755859375, -0.3779463768005371, -0.4749821424484253, -0.07423148304224014, -0.339506059885025, -0.3348730504512787, -0.4588150978088379, -0.04886296018958092, 0.4240531027317047, 0.24098557233810425, -0.10748255252838135, 0.47100964188575745, -0.8829489946365356, 0.14276643097400665, 0.11579868197441101, 0.168390154838562, 0.21725691854953766, -0.9940509796142578, -0.5999677181243896, 0.14256195724010468, -0.621539294719696, -0.8171278834342957, 0.5985192060470581, 0.007396025583148003, 0.2899438738822937, 0.4283270239830017, -0.263581246137619, 0.8895163536071777, -0.3248095214366913, 0.9970685839653015, 0.22486865520477295, -1.0465660095214844, 0.4552292823791504, -0.32179751992225647, 0.456182062625885, 0.25892218947410583, 0.41739267110824585, -0.2698948085308075, -0.34822818636894226, -0.9365646243095398, -0.8538374304771423, 0.8715269565582275, 0.45830366015434265, 0.08203555643558502, 0.08894743025302887, 0.288703978061676, 0.062221430242061615, 0.298915833234787, -0.847024142742157, -0.48071983456611633, -0.3303382396697998, -0.27853915095329285, -0.11439938098192215, -0.07658959925174713, 0.016173234209418297, -0.4843858778476715, 0.8620286583900452, -0.03766174986958504, 0.5041608810424805, 0.11432847380638123, -0.053396157920360565, 0.09520488232374191, -0.06956702470779419, 0.5360428690910339, 0.8332593441009521, -0.42532530426979065, -0.19106502830982208, 0.35980403423309326, -0.4650646448135376, 0.05983468145132065, 0.5474555492401123, -0.14494284987449646, 0.009745251387357712, 0.3704874813556671, 1.1201872825622559, 0.009415386244654655, -0.5077983736991882, 0.2151149958372116, 0.1385727971792221, -0.22504715621471405, -0.08479135483503342, 0.175201877951622, 0.28242260217666626, 0.3547426462173462, 0.4464893639087677, 0.06310414522886276, 0.18051140010356903, -0.34671521186828613, 0.08581557124853134, 0.2766304016113281, -0.20263589918613434, -0.28777647018432617, 0.9715791940689087, 0.04998317360877991, -0.24894604086875916, 0.5568684935569763, -0.1755509078502655, -0.352173388004303, 0.6935969591140747, 0.49032852053642273, 0.7451162338256836, -0.21894952654838562, 0.01158925425261259, 0.42762085795402527, 0.1518411487340927, -0.07201950252056122, 0.3081030547618866, 0.0017064651474356651, -0.36682307720184326, -0.3592706620693207, -0.7784252762794495, -0.18335089087486267, 0.2601754367351532, -0.4954456686973572, 0.4423511326313019, -0.45781391859054565, -0.20746272802352905, 0.02933644875884056, 0.2769509255886078, -0.8743009567260742, 0.4008519947528839, 0.4213864207267761, 0.8865487575531006, -0.43391260504722595, 0.9872565269470215, 0.43920591473579407, -0.4181825518608093, -1.0520063638687134, -0.139046311378479, -0.2254612147808075, -0.7518435716629028, 0.7477527856826782, 0.4235890507698059, 0.2231922596693039, 0.2734229862689972, -0.48330405354499817, -1.0055804252624512, 1.3223904371261597, 0.4885428547859192, -0.6059777736663818, -0.18473874032497406, -0.07555224001407623, 0.5949588418006897, -0.06365931034088135, 0.44158676266670227, 0.546890139579773, 0.3797362744808197, 0.0031468214001506567, -0.8549419641494751, 0.24714982509613037, -0.05445832386612892, 0.11945360153913498, 0.32564887404441833, -0.9464731216430664, 0.8943830132484436, -0.2712521255016327, 0.03700409457087517, 0.24708284437656403, 0.8587369918823242, 0.6298784613609314, 0.35761767625808716, 0.21468526124954224, 0.5988661646842957, 0.8244744539260864, 0.018229832872748375, 1.096940040588379, -0.5288187265396118, 0.5533398985862732, 0.8906636834144592, 0.023388715460896492, 0.6979389190673828, 0.3921840488910675, -0.23164434731006622, 0.6064185500144958, 0.8400237560272217, -0.21758294105529785, 0.37034544348716736, 0.11900871247053146, -0.020156938582658768, 0.014611889608204365, 0.29405856132507324, -0.556186318397522, 0.37416309118270874, 0.37036705017089844, -0.5544572472572327, 0.01556808315217495, 0.10868816077709198, 0.12244714051485062, -0.4557599127292633, -0.3385980427265167, 0.36881816387176514, 0.12283103913068771, -0.5751007795333862, 1.010934591293335, 0.16187888383865356, 0.6305817365646362, -0.7140474319458008, 0.19431738555431366, -0.25457170605659485, 0.1034185141324997, -0.1313277781009674, -0.4528188705444336, 0.1394173800945282, -0.04646608605980873, -0.05210869386792183, -0.05507545545697212, 0.4476091265678406, -0.18178069591522217, -0.5531532168388367, 0.32070693373680115, 0.3038652539253235, 0.309197336435318, -0.027924763038754463, -0.9345296621322632, 0.09103365987539291, 0.0848940908908844, -0.5726624727249146, 0.1597520262002945, 0.2816784083843231, 0.06723669916391373, 0.7378538846969604, 0.7120320200920105, 0.011974355205893517, 0.2763858735561371, -0.19757437705993652, 0.7432960867881775, -0.8867694139480591, -0.37037378549575806, -1.099269151687622, 0.5596211552619934, -0.08126439899206161, -0.44503578543663025, 0.8817885518074036, 0.8343492150306702, 0.8387811183929443, 0.01425284892320633, 0.5442915558815002, -0.3046240508556366, 0.18364399671554565, -0.4787936508655548, 0.5494157671928406, -0.5683358907699585, 0.1788940727710724, -0.23494048416614532, -0.9353612661361694, -0.2277476042509079, 0.3143112361431122, -0.23430559039115906, 0.37585747241973877, 0.6849650740623474, 0.7143123149871826, -0.04588456079363823, 0.021361298859119415, 0.4042476415634155, 0.3257213532924652, 0.2614603340625763, 0.7477375864982605, 0.4999813139438629, -0.7059209942817688, 0.8195509314537048, -0.3733517527580261, 0.03248031064867973, -0.403514564037323, -0.7229384183883667, -0.881707489490509, -0.5207971334457397, -0.24698016047477722, -0.5524532794952393, 0.0946081206202507, 0.9093500971794128, 0.9028946161270142, -0.6506905555725098, -0.27201464772224426, -0.08232972025871277, -0.01739804819226265, -0.256102979183197, -0.22690340876579285, 0.5976245403289795, -0.14370368421077728, -0.8165950179100037, 0.21500329673290253, 0.024082956835627556, 0.22541166841983795, -0.24364478886127472, -0.2823541462421417, -0.2707524001598358, 0.1385321468114853, 0.5384037494659424, 0.2932935655117035, -0.7662910223007202, -0.16810667514801025, -0.07673486322164536, -0.14715905487537384, -0.000678913842421025, 0.339133620262146, -0.8044266104698181, 0.27244919538497925, 0.27948421239852905, 0.4691588580608368, 0.8041087985038757, -0.09978393465280533, 0.3572380244731903, -0.6811811327934265, 0.1931048333644867, 0.3106536567211151, 0.5349986553192139, 0.3626541197299957, -0.3887440860271454, 0.532603919506073, 0.28340160846710205, -0.7524877786636353, -0.9803183674812317, -0.03725644573569298, -1.0305947065353394, -0.42662206292152405, 1.1722967624664307, -0.11216696351766586, -0.23557183146476746, 0.09040874242782593, -0.34351885318756104, 0.5547578930854797, -0.3747280240058899, 0.5989571809768677, 0.6166393160820007, -0.23039081692695618, -0.0783410519361496, -0.5357191562652588, 0.43068090081214905, 0.496077299118042, -0.5458212494850159, -0.0869808942079544, 0.45655322074890137, 0.2851569652557373, 0.0916782021522522, 0.5069136023521423, -0.014353351667523384, 0.33867835998535156, -0.062291406095027924, 0.22669564187526703, -0.2314407229423523, -0.12965139746665955, -0.3738943934440613, 0.262685626745224, -0.19343169033527374, -0.25962045788764954 ]
bert-large-cased-whole-word-masking-finetuned-squad
null
"2023-04-06T13:42:06Z"
22,175
1
transformers
[ "transformers", "pytorch", "tf", "jax", "rust", "safetensors", "bert", "question-answering", "en", "dataset:bookcorpus", "dataset:wikipedia", "arxiv:1810.04805", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:04Z"
--- language: en license: apache-2.0 datasets: - bookcorpus - wikipedia --- # BERT large model (cased) whole word masking finetuned on SQuAD Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in [this paper](https://arxiv.org/abs/1810.04805) and first released in [this repository](https://github.com/google-research/bert). This model is cased: it makes a difference between english and English. Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same. The training is identical -- each masked WordPiece token is predicted independently. After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning. Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with two objectives: - Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence. - Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to predict if the two sentences were following each other or not. This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the BERT model as inputs. This model has the following configuration: - 24-layer - 1024 hidden dimension - 16 attention heads - 336M parameters. ## Intended uses & limitations This model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the [task summary](https://huggingface.co/transformers/task_summary.html#extractive-question-answering) of the transformers documentation.## Training data The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers). ## Training procedure ### Preprocessing The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form: ``` [CLS] Sentence A [SEP] Sentence B [SEP] ``` With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two "sentences" has a combined length of less than 512 tokens. The details of the masking procedure for each sentence are the following: - 15% of the tokens are masked. - In 80% of the cases, the masked tokens are replaced by `[MASK]`. - In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace. - In the 10% remaining cases, the masked tokens are left as is. ### Pretraining The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01, learning rate warmup for 10,000 steps and linear decay of the learning rate after. ### Fine-tuning After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command: ``` python -m torch.distributed.launch --nproc_per_node=8 ./examples/question-answering/run_qa.py \ --model_name_or_path bert-large-cased-whole-word-masking \ --dataset_name squad \ --do_train \ --do_eval \ --learning_rate 3e-5 \ --num_train_epochs 2 \ --max_seq_length 384 \ --doc_stride 128 \ --output_dir ./examples/models/wwm_cased_finetuned_squad/ \ --per_device_eval_batch_size=3 \ --per_device_train_batch_size=3 \ ``` ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-1810-04805, author = {Jacob Devlin and Ming{-}Wei Chang and Kenton Lee and Kristina Toutanova}, title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language Understanding}, journal = {CoRR}, volume = {abs/1810.04805}, year = {2018}, url = {http://arxiv.org/abs/1810.04805}, archivePrefix = {arXiv}, eprint = {1810.04805}, timestamp = {Tue, 30 Oct 2018 20:39:56 +0100}, biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.5021754503250122, -0.7871637344360352, 0.22481927275657654, 0.3270970582962036, -0.3539772629737854, -0.022998344153165817, -0.2886521518230438, -0.5043693780899048, 0.25028616189956665, 0.514923632144928, -0.8313471674919128, -0.3420679569244385, -0.5691412091255188, 0.11300861090421677, -0.3433735966682434, 1.1484901905059814, 0.10272438824176788, 0.14384573698043823, -0.05264778807759285, 0.10429409146308899, -0.4765527546405792, -0.7080047130584717, -0.6938819289207458, -0.30620434880256653, 0.46304312348365784, 0.23926958441734314, 0.399910032749176, 0.41666093468666077, 0.4851769506931305, 0.32332277297973633, -0.028766851872205734, -0.002944451291114092, -0.47281938791275024, -0.07193875312805176, 0.12127331644296646, -0.4042975902557373, -0.2531229853630066, 0.25791284441947937, 0.6060648560523987, 0.6560462713241577, -0.008471585810184479, 0.09129089117050171, -0.013167464174330235, 0.5190314650535583, -0.29054826498031616, 0.1718435138463974, -0.7421159744262695, 0.05297692120075226, -0.12400256842374802, 0.019163375720381737, -0.4533452093601227, -0.14389510452747345, 0.37927350401878357, -0.4630673825740814, 0.4397396743297577, 0.08012364059686661, 1.2387388944625854, 0.08862902224063873, -0.13183216750621796, -0.10556907951831818, -0.5803621411323547, 0.8616772294044495, -0.7390068769454956, 0.338432252407074, 0.43058305978775024, 0.1704905778169632, 0.05465523898601532, -0.9522581696510315, -0.7692016363143921, -0.2018798440694809, -0.16946926712989807, 0.20802371203899384, -0.07137764990329742, 0.13020260632038116, 0.3430018126964569, 0.18453776836395264, -0.6288542747497559, 0.20984505116939545, -0.6091688275337219, -0.3227701485157013, 0.7238227128982544, -0.10389520972967148, 0.08592203259468079, -0.20437897741794586, -0.5941587090492249, -0.31287357211112976, -0.5319468379020691, 0.18339526653289795, 0.4046728312969208, 0.26669633388519287, -0.16007739305496216, 0.5079254508018494, -0.09818121045827866, 0.6365444660186768, 0.0898074060678482, 0.011142249219119549, 0.4657123386859894, -0.26503756642341614, -0.3311659097671509, 0.006363301537930965, 0.831153154373169, 0.20770913362503052, 0.4702976644039154, -0.23022468388080597, -0.2547401189804077, -0.13094793260097504, 0.44332632422447205, -0.9103391766548157, -0.24319690465927124, 0.1894809454679489, -0.3804763853549957, -0.22740375995635986, 0.12771648168563843, -0.4345446228981018, 0.09647167474031448, -0.24732160568237305, 0.7268034815788269, -0.5968313813209534, 0.01930871233344078, 0.14755332469940186, -0.22521871328353882, 0.42097532749176025, 0.06450609117746353, -0.7353993654251099, 0.1462695449590683, 0.4856187701225281, 0.6468777060508728, -0.1124136820435524, -0.38299480080604553, -0.22438186407089233, -0.14833441376686096, -0.25242164731025696, 0.6636657118797302, -0.23509134352207184, -0.13987575471401215, 0.05330647528171539, 0.2386123090982437, -0.2364330291748047, -0.25074926018714905, 0.4241490662097931, -0.6880995631217957, 0.444626122713089, -0.12993434071540833, -0.7079905271530151, -0.2878546714782715, 0.10473547875881195, -0.49626848101615906, 1.0649635791778564, 0.014484284445643425, -0.5797926187515259, 0.4306409955024719, -0.6080601215362549, -0.5744003653526306, 0.057756200432777405, 0.1723465919494629, -0.578931987285614, 0.005059171933680773, 0.23812539875507355, 0.5960651636123657, 0.014623001217842102, 0.2936237156391144, -0.16848555207252502, -0.3989962637424469, 0.30932915210723877, -0.28799477219581604, 1.032132863998413, 0.1081528440117836, -0.3540489375591278, -0.002289821160957217, -0.7104442119598389, 0.05073433369398117, 0.1646217256784439, -0.32635268568992615, -0.09619023650884628, -0.035424716770648956, 0.06517240405082703, 0.3256184756755829, 0.34645533561706543, -0.6608117818832397, 0.0814981535077095, -0.6163181662559509, 0.47014120221138, 0.7332297563552856, 0.015833495184779167, 0.27246394753456116, -0.41834789514541626, 0.4018731415271759, 0.060079045593738556, 0.15756525099277496, -0.204058438539505, -0.6434131264686584, -0.9520992636680603, -0.32295292615890503, 0.5570762157440186, 0.6747445464134216, -0.6135315895080566, 0.7599942088127136, -0.14775554835796356, -0.4730565547943115, -0.7197006940841675, 0.033820684999227524, 0.4654349684715271, 0.49124976992607117, 0.5496960282325745, -0.3655541241168976, -0.8109247088432312, -1.052384376525879, 0.09004878252744675, -0.1386890411376953, -0.1589958816766739, 0.1316630244255066, 0.6328706741333008, -0.14127780497074127, 0.9332254528999329, -0.5127977728843689, -0.3822679817676544, -0.4326375126838684, 0.23640209436416626, 0.20572228729724884, 0.5896050930023193, 0.4344557225704193, -0.6345329284667969, -0.4399218261241913, -0.4030039608478546, -0.5551828742027283, -0.06457303464412689, -0.19945205748081207, -0.21041660010814667, 0.40802890062332153, 0.6961187124252319, -0.6282963752746582, 0.3641061782836914, 0.46253249049186707, -0.17266805469989777, 0.5297861099243164, -0.2203340381383896, -0.2216816544532776, -1.2318528890609741, 0.031112655997276306, -0.04919574409723282, -0.11278477311134338, -0.6416900753974915, -0.008258044719696045, 0.033403776586055756, -0.08920278400182724, -0.5389534831047058, 0.4260718822479248, -0.4791729748249054, 0.06435970962047577, -0.08972702920436859, 0.13531579077243805, 0.05801988020539284, 0.8328363299369812, 0.1725558191537857, 0.7244493365287781, 0.4113576412200928, -0.6193711161613464, 0.2137298732995987, 0.38650456070899963, -0.5458477735519409, 0.18821249902248383, -0.8410712480545044, 0.2236906737089157, -0.11139979958534241, 0.22855131328105927, -1.1624839305877686, 0.016906175762414932, -0.012152740731835365, -0.5964322686195374, 0.4517507553100586, 0.09899304062128067, -0.5892265439033508, -0.5634377002716064, -0.28160956501960754, 0.21255023777484894, 0.7401917576789856, -0.29802924394607544, 0.3168018162250519, 0.30670908093452454, -0.08414450287818909, -0.6246326565742493, -0.77995765209198, -0.05321138724684715, -0.030038628727197647, -0.6242167949676514, 0.6017528772354126, -0.23374013602733612, 0.08090724796056747, -0.13042950630187988, 0.062066178768873215, -0.19819772243499756, 0.06254573911428452, 0.1655866503715515, 0.3624432384967804, -0.2012978345155716, 0.3444397747516632, -0.04376073181629181, 0.04530475288629532, 0.03749483451247215, -0.20653532445430756, 0.8050423860549927, -0.002453853143379092, -0.04857325553894043, -0.42988789081573486, 0.3729199767112732, 0.3010929226875305, -0.1800549030303955, 0.9745911359786987, 0.8754637241363525, -0.37557992339134216, -0.028453674167394638, -0.7244691252708435, -0.37179771065711975, -0.4807358682155609, 0.5433695316314697, -0.3380591869354248, -0.8245754241943359, 0.5599040985107422, 0.38861021399497986, 0.14215989410877228, 0.7224090695381165, 0.5024579763412476, -0.39221325516700745, 0.9164187908172607, 0.7490809559822083, -0.10627306997776031, 0.5413174033164978, -0.38110989332199097, 0.25876837968826294, -0.788302481174469, -0.4091649055480957, -0.46370357275009155, -0.40390822291374207, -0.6520280838012695, -0.2375994771718979, 0.19058671593666077, 0.23201829195022583, -0.3466091454029083, 0.48218899965286255, -0.4761078655719757, 0.27569711208343506, 0.8161656260490417, 0.3372034728527069, -0.09243949502706528, 0.07261643558740616, -0.2201845645904541, -0.04206749051809311, -0.6819347143173218, -0.270600289106369, 1.1815874576568604, 0.4138708710670471, 0.4343821406364441, -0.08870629966259003, 0.7192806601524353, 0.1832079142332077, 0.1424599289894104, -0.8087267875671387, 0.6433544754981995, -0.19612374901771545, -0.8618685007095337, -0.40978267788887024, -0.18928807973861694, -1.1360270977020264, 0.024632606655359268, -0.3497762382030487, -0.6412292122840881, 0.04524534195661545, -0.11950775980949402, -0.305867463350296, 0.1973775029182434, -0.9388592839241028, 0.7705931067466736, -0.129521906375885, -0.0807938501238823, -0.09788278490304947, -0.9504697918891907, 0.2190077304840088, -0.17360132932662964, -0.13307200372219086, 0.07941623032093048, 0.19613096117973328, 1.0583908557891846, -0.465751588344574, 0.9588928818702698, -0.17723245918750763, 0.11882374435663223, 0.26227879524230957, -0.3565617799758911, 0.3602479100227356, -0.2257137894630432, 0.11204532533884048, 0.33602333068847656, -0.06191854178905487, -0.504687488079071, -0.2673095166683197, 0.34657421708106995, -0.9145715236663818, -0.6462488770484924, -0.43020811676979065, -0.6528323888778687, -0.21178121864795685, 0.235820934176445, 0.518414318561554, 0.3739267587661743, -0.12775558233261108, 0.3938336968421936, 0.8176978230476379, -0.4297277331352234, 0.7296037673950195, 0.48251667618751526, -0.06449899077415466, -0.1971738487482071, 0.6598588228225708, 0.1932293027639389, 0.3343972861766815, 0.5761685967445374, 0.0656864270567894, -0.45129162073135376, -0.48648491501808167, -0.22361628711223602, 0.4020414352416992, -0.41043007373809814, -0.2479107677936554, -0.8158894181251526, -0.7017868757247925, -0.6185164451599121, -0.04526827484369278, -0.1686892807483673, -0.4568619430065155, -0.35266637802124023, -0.12764033675193787, 0.42694786190986633, 0.5023730993270874, 0.010680243372917175, 0.4976896643638611, -0.6271658539772034, 0.2794123589992523, 0.5182470679283142, 0.22914040088653564, -0.13174673914909363, -0.8242647051811218, -0.3457452952861786, 0.17025336623191833, -0.401327908039093, -0.762361466884613, 0.3774092197418213, 0.3052196502685547, 0.5561447143554688, 0.3798498511314392, 0.03147272393107414, 0.6674593687057495, -0.6517942547798157, 0.9104267358779907, 0.16495461761951447, -0.8315362334251404, 0.5710464119911194, -0.11777705699205399, 0.33537232875823975, 0.4423350989818573, 0.43679705262184143, -0.3694511950016022, -0.4199792742729187, -0.8617222905158997, -0.8793372511863708, 0.7990133762359619, 0.2552388906478882, 0.36559155583381653, -0.09171151369810104, 0.2466205507516861, 0.015724604949355125, 0.296257346868515, -0.9127306938171387, -0.3810347616672516, -0.1723986715078354, -0.13530533015727997, -0.31617236137390137, -0.4088406562805176, -0.009882630780339241, -0.4931476414203644, 0.8087191581726074, 0.20601490139961243, 0.7706904411315918, 0.20966443419456482, -0.2964363992214203, 0.2434966117143631, 0.11262112110853195, 0.8034509420394897, 0.5077846646308899, -0.46918976306915283, -0.16168548166751862, 0.19263122975826263, -0.7121290564537048, -0.1624041497707367, 0.36111554503440857, -0.1382267326116562, 0.18497660756111145, 0.4574730694293976, 0.98698890209198, 0.09276816993951797, -0.6046792268753052, 0.5984035134315491, 0.11219785362482071, -0.4119710922241211, -0.4518975615501404, -0.07264316827058792, -0.03655629977583885, 0.2342073917388916, 0.5302718281745911, -0.07374352961778641, -0.12080974131822586, -0.5775808095932007, 0.35769301652908325, 0.4824751913547516, -0.3846602737903595, -0.20115305483341217, 0.6055397987365723, 0.11280622333288193, -0.4065912961959839, 0.7716942429542542, -0.23633970320224762, -0.7802782654762268, 0.696988582611084, 0.6199093461036682, 0.9012723565101624, -0.2240990400314331, 0.2695560157299042, 0.37215957045555115, 0.5728200674057007, 0.0421292744576931, 0.20504140853881836, 0.07399289309978485, -0.8786960244178772, -0.5115940570831299, -0.7999299168586731, -0.16571244597434998, 0.41280195116996765, -0.6681511998176575, 0.2685095965862274, -0.3503749370574951, -0.05894951894879341, 0.098081573843956, 0.20775915682315826, -0.8645135164260864, 0.41555255651474, 0.029614565894007683, 0.9826874136924744, -0.8408172130584717, 0.9750416874885559, 0.5877072811126709, -0.5644457340240479, -0.9095188975334167, -0.06400562077760696, -0.4506978690624237, -1.1673527956008911, 0.7650477886199951, 0.296637624502182, 0.3239773213863373, 0.10903587937355042, -0.6225345730781555, -0.6649761199951172, 0.9485116004943848, 0.15504172444343567, -0.5076969265937805, -0.1744488775730133, 0.1533135622739792, 0.6335816383361816, -0.42460834980010986, 0.2060919851064682, 0.44128313660621643, 0.283772349357605, 0.08630076050758362, -0.8469142317771912, -0.03570980578660965, -0.1945338100194931, 0.048879679292440414, 0.08471223711967468, -0.532019853591919, 0.9484905004501343, -0.1532442718744278, -0.04809652641415596, 0.018534736707806587, 0.5226563215255737, 0.14786092936992645, 0.10688261687755585, 0.47206825017929077, 0.678311288356781, 0.6185941696166992, -0.20003335177898407, 1.0001531839370728, -0.28503525257110596, 0.33007994294166565, 0.9549208879470825, 0.028622889891266823, 0.9518216252326965, 0.4572089612483978, -0.27865147590637207, 0.638194739818573, 0.7204329967498779, -0.14136214554309845, 0.7540841102600098, 0.2540116608142853, -0.04150572046637535, -0.15658234059810638, 0.11844468861818314, -0.45712146162986755, 0.4511648118495941, 0.24797743558883667, -0.4967682361602783, 0.03449508175253868, 0.09706801176071167, 0.12614066898822784, -0.2504151165485382, -0.2534339129924774, 0.7677404880523682, 0.01947907730937004, -0.7462400794029236, 0.6383628249168396, 0.017601611092686653, 0.7476333975791931, -0.7469903826713562, 0.14990010857582092, -0.2578103244304657, 0.03989337757229805, 0.03710474073886871, -0.6451451182365417, 0.2570987939834595, -0.16148638725280762, -0.33477726578712463, -0.40321916341781616, 0.546622097492218, -0.5286492705345154, -0.6396788954734802, 0.1274198293685913, 0.4152798056602478, 0.29009702801704407, -0.10604489594697952, -0.7480827569961548, -0.20678429305553436, 0.059342171996831894, -0.2680540680885315, 0.3371255397796631, 0.4293469786643982, 0.13475897908210754, 0.54776531457901, 0.6449763774871826, -0.0027664140798151493, 0.23364251852035522, 0.051921773701906204, 0.7367736101150513, -0.5891842246055603, -0.513107419013977, -0.7389499545097351, 0.5953823328018188, -0.1784735769033432, -0.44003844261169434, 0.631201982498169, 0.565323531627655, 0.9787200689315796, -0.20815758407115936, 0.5948528051376343, -0.11593562364578247, 0.5023009181022644, -0.6072046756744385, 0.7051074504852295, -0.49895888566970825, 0.15426352620124817, -0.2217031866312027, -0.9314174652099609, -0.14775362610816956, 0.8142401576042175, -0.14022551476955414, 0.14069445431232452, 0.882469892501831, 0.7142794728279114, 0.09065720438957214, -0.09297483414411545, 0.2922425866127014, 0.3325263559818268, 0.05563695728778839, 0.5331583619117737, 0.45977628231048584, -0.6298055052757263, 0.6565811634063721, -0.38242974877357483, -0.08122646808624268, -0.1613670289516449, -0.7892859578132629, -1.1468268632888794, -0.8428102135658264, -0.3088858425617218, -0.45486029982566833, 0.0297907292842865, 0.7464982271194458, 0.781202495098114, -0.825037956237793, -0.18530791997909546, -0.1193549633026123, -0.06496883928775787, -0.3201032876968384, -0.2732708752155304, 0.4324187934398651, -0.5195867419242859, -0.6980411410331726, 0.11441165208816528, -0.05349238961935043, 0.1319030225276947, -0.2534613609313965, 0.10252491384744644, -0.6061802506446838, 0.16598191857337952, 0.7412394881248474, 0.101133331656456, -0.580797016620636, -0.41970232129096985, 0.19966760277748108, -0.16394072771072388, 0.003396045183762908, 0.5317348837852478, -0.7854695916175842, 0.3759593367576599, 0.31933343410491943, 0.6349693536758423, 0.875399112701416, -0.18604649603366852, 0.5095075368881226, -1.1374385356903076, 0.29647013545036316, 0.22330570220947266, 0.27510279417037964, 0.18021176755428314, -0.22035114467144012, 0.41452980041503906, 0.3769609332084656, -0.5204123854637146, -0.7830550670623779, 0.047453299164772034, -1.120200276374817, -0.33651676774024963, 1.0840222835540771, -0.19900104403495789, -0.09859632700681686, -0.07071862369775772, -0.17411702871322632, 0.4422854483127594, -0.2786950469017029, 0.8493520617485046, 0.9395486116409302, 0.10131802409887314, -0.20326858758926392, -0.515658438205719, 0.4830545485019684, 0.44792425632476807, -0.6011655926704407, -0.44635018706321716, 0.21587438881397247, 0.3382907509803772, 0.19598737359046936, 0.5597831010818481, 0.1299445629119873, 0.0623750202357769, -0.2206858992576599, 0.25189676880836487, -0.012425296008586884, -0.24071654677391052, -0.22885385155677795, 0.10485146194696426, -0.33063748478889465, -0.5512990355491638 ]
Helsinki-NLP/opus-mt-uk-en
Helsinki-NLP
"2023-08-16T12:08:04Z"
22,172
6
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "uk", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-uk-en * source languages: uk * target languages: en * OPUS readme: [uk-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/uk-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2020-01-16.zip](https://object.pouta.csc.fi/OPUS-MT-models/uk-en/opus-2020-01-16.zip) * test set translations: [opus-2020-01-16.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/uk-en/opus-2020-01-16.test.txt) * test set scores: [opus-2020-01-16.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/uk-en/opus-2020-01-16.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.uk.en | 64.1 | 0.757 |
[ -0.22732718288898468, -0.31132298707962036, 0.2412450611591339, 0.3680309057235718, -0.5245875716209412, -0.44368746876716614, -0.42499426007270813, -0.102789007127285, -0.003929930739104748, 0.497232049703598, -0.7743278741836548, -0.6245715022087097, -0.630993664264679, 0.28772568702697754, -0.12778240442276, 0.6845585107803345, -0.14661464095115662, 0.6377701163291931, 0.1949765533208847, -0.5045124292373657, -0.3756297826766968, -0.4581783413887024, -0.4878261089324951, -0.3149126470088959, 0.3570714592933655, 0.5041736364364624, 0.4326404631137848, 0.43438267707824707, 1.1377878189086914, 0.25367099046707153, -0.1239887997508049, 0.0333227701485157, -0.5791978240013123, -0.08965785056352615, -0.007619702257215977, -0.6830323338508606, -0.7848894596099854, -0.10498754680156708, 1.096318244934082, 0.4954543709754944, -0.07307036966085434, 0.3761570155620575, -0.05208854377269745, 0.9808472990989685, -0.2995123863220215, 0.07777714729309082, -0.6268307566642761, 0.10189477354288101, -0.3048916459083557, -0.2577666640281677, -0.7449438571929932, -0.1573595106601715, 0.1082264706492424, -0.6557281017303467, -0.06797441095113754, 0.2513379752635956, 1.499145746231079, 0.25860750675201416, -0.3871702253818512, -0.21667712926864624, -0.6322323679924011, 1.1131728887557983, -0.8913614153862, 0.7359399795532227, 0.46551111340522766, 0.31163346767425537, 0.2602345943450928, -0.5875927805900574, -0.2954551577568054, 0.06986579298973083, -0.29898130893707275, 0.30824971199035645, -0.023418400436639786, -0.31919342279434204, 0.2796669602394104, 0.8221067786216736, -0.8399950861930847, 0.05767467990517616, -0.6934648752212524, -0.07441900670528412, 0.7843279242515564, 0.07139364629983902, 0.11043833941221237, -0.27039942145347595, -0.4516456127166748, -0.5643072128295898, -0.858780562877655, 0.13375157117843628, 0.45564520359039307, 0.3846791982650757, -0.5510866045951843, 0.7390227913856506, -0.13105931878089905, 0.6135745048522949, -0.01563476026058197, -0.06523610651493073, 0.9931524991989136, -0.42393016815185547, -0.3212544023990631, -0.10490622371435165, 1.3037418127059937, 0.3758580982685089, 0.06404249370098114, 0.02503948099911213, -0.23279517889022827, -0.22406882047653198, 0.05968724191188812, -1.0235942602157593, -0.07330559194087982, 0.24562731385231018, -0.4852725565433502, -0.0901254341006279, 0.09678930789232254, -0.5683363080024719, 0.21380990743637085, -0.4323365390300751, 0.638278603553772, -0.7264875769615173, -0.3077571988105774, 0.4486413598060608, 0.020813900977373123, 0.4834781289100647, -0.07373236119747162, -0.6937682628631592, 0.08722998201847076, 0.4079609215259552, 0.7551055550575256, -0.41112425923347473, -0.3551715314388275, -0.44088542461395264, -0.1362507939338684, -0.09704383462667465, 0.7339895367622375, -0.13935382664203644, -0.588334858417511, -0.1199459359049797, 0.625207245349884, -0.28688928484916687, -0.3697141110897064, 1.4072085618972778, -0.2630001902580261, 0.8787556290626526, -0.5035507678985596, -0.5615441203117371, -0.2875348627567291, 0.5246306657791138, -0.6503000855445862, 1.3238567113876343, 0.16284070909023285, -0.9322220087051392, 0.29547834396362305, -0.8765934109687805, -0.25193849205970764, -0.011086924001574516, 0.01274733617901802, -0.6621601581573486, 0.07962416112422943, 0.1845225691795349, 0.5057366490364075, -0.41075754165649414, 0.3426063060760498, 0.027078207582235336, -0.3650084137916565, 0.06697091460227966, -0.4767189919948578, 1.0512652397155762, 0.2991434633731842, -0.3067852556705475, 0.14381647109985352, -1.0680445432662964, -0.1376195102930069, -0.05379446595907211, -0.5098271369934082, -0.1263684779405594, 0.15350578725337982, 0.30243754386901855, 0.2260945737361908, 0.30835315585136414, -0.7589897513389587, 0.284199059009552, -0.6758813261985779, 0.22856701910495758, 0.6889251470565796, -0.3595694303512573, 0.3526937663555145, -0.5301932096481323, 0.41134563088417053, 0.16613346338272095, 0.1007799580693245, 0.05749751627445221, -0.5117030739784241, -0.8092738389968872, -0.26294830441474915, 0.6931071877479553, 1.2139168977737427, -0.7535467743873596, 0.8745875954627991, -0.7887060642242432, -0.8426108956336975, -0.9134264588356018, -0.15787732601165771, 0.5720961689949036, 0.3523738980293274, 0.5158233046531677, -0.2916252911090851, -0.5133095383644104, -1.2071411609649658, -0.1512218415737152, -0.21298544108867645, -0.30801862478256226, 0.19650930166244507, 0.6545825004577637, -0.19747978448867798, 0.5640277862548828, -0.5005382895469666, -0.4450526535511017, -0.1818322241306305, 0.13219822943210602, 0.5330204963684082, 0.6896706223487854, 0.4586331844329834, -1.0072144269943237, -0.6425608992576599, 0.014328266493976116, -0.7068014740943909, -0.16970738768577576, 0.04028049856424332, -0.26415181159973145, 0.07809311151504517, 0.09041880816221237, -0.2870396375656128, 0.06626823544502258, 0.7058220505714417, -0.6665686368942261, 0.5877408981323242, -0.07592494040727615, 0.39622727036476135, -1.6196784973144531, 0.18555767834186554, -0.19370079040527344, -0.16966164112091064, -0.3383697271347046, -0.040048085153102875, 0.3302912414073944, 0.07021094113588333, -0.9743800759315491, 0.5888414978981018, -0.3630147874355316, -0.02732941135764122, 0.392872154712677, 0.06776683032512665, 0.12923260033130646, 0.6768391132354736, -0.09292594343423843, 0.9617648124694824, 0.74602872133255, -0.44720450043678284, 0.1498328596353531, 0.6915572285652161, -0.46217283606529236, 0.5409839749336243, -0.7718918919563293, -0.3451276123523712, 0.3644014298915863, -0.16546598076820374, -0.8147242665290833, 0.029539266601204872, 0.20421263575553894, -0.7287333011627197, 0.48072612285614014, -0.10333147644996643, -0.7192476987838745, -0.1002521812915802, -0.30781862139701843, 0.43318498134613037, 0.81134033203125, -0.2264598160982132, 0.6475484371185303, 0.07612985372543335, -0.0480896532535553, -0.5088086724281311, -1.1477621793746948, -0.17796869575977325, -0.4113340377807617, -0.7957523465156555, 0.3128880262374878, -0.4084712564945221, -0.0469207763671875, 0.027716876938939095, 0.28034016489982605, -0.050277501344680786, -0.02193049155175686, 0.079030841588974, 0.17051802575588226, -0.4903172254562378, 0.049590010195970535, -0.06676769256591797, -0.1998402625322342, -0.10891691595315933, -0.13496704399585724, 0.5859792828559875, -0.29135262966156006, -0.2719864547252655, -0.7171208262443542, 0.12602904438972473, 0.7160805463790894, -0.40555399656295776, 0.9215807914733887, 0.5907821655273438, -0.06434708088636398, 0.1134764701128006, -0.42238619923591614, 0.06674492359161377, -0.5050066113471985, 0.18899589776992798, -0.5263150334358215, -0.8504709601402283, 0.5877176523208618, 0.11988316476345062, 0.45288601517677307, 0.9611384272575378, 0.6520484685897827, 0.006119833327829838, 0.7139484286308289, 0.28779831528663635, -0.019778214395046234, 0.41431325674057007, -0.5249203443527222, -0.15568424761295319, -1.1461161375045776, 0.05037651211023331, -0.7367957830429077, -0.3811298608779907, -0.9120162129402161, -0.24472999572753906, 0.26462557911872864, 0.083759605884552, -0.19444288313388824, 0.7138363122940063, -0.640309751033783, 0.3157719373703003, 0.5797312259674072, -0.12008873373270035, 0.2874460518360138, 0.03904728218913078, -0.6678977608680725, -0.270976185798645, -0.4985348880290985, -0.5490381121635437, 1.4924037456512451, 0.3346734642982483, 0.38509634137153625, 0.33439528942108154, 0.5032594203948975, 0.05070564150810242, 0.3103199899196625, -0.6961365342140198, 0.5308977961540222, -0.3535870611667633, -0.7754743695259094, -0.29866525530815125, -0.6630293130874634, -0.9892693758010864, 0.44728001952171326, -0.21904417872428894, -0.5429049730300903, 0.0885557308793068, -0.05367710441350937, -0.10760828852653503, 0.5408939719200134, -0.7866528034210205, 1.1877104043960571, -0.10711628198623657, -0.1877613067626953, 0.3552924394607544, -0.5176416039466858, 0.3090958595275879, -0.009354712441563606, 0.3427596390247345, -0.19509468972682953, 0.21226918697357178, 0.7642410397529602, -0.07206068933010101, 0.4655076563358307, -0.06366333365440369, -0.12580958008766174, 0.00024166305956896394, 0.061848483979701996, 0.3926768898963928, -0.17745234072208405, -0.48597046732902527, 0.4079893231391907, 0.11667661368846893, -0.5306316018104553, -0.13785479962825775, 0.561294436454773, -0.8370947241783142, -0.07269542664289474, -0.4556112289428711, -0.756563663482666, -0.00041537469951435924, 0.3728479743003845, 0.7411422729492188, 0.8554950952529907, -0.26317036151885986, 0.6934629678726196, 0.8146502375602722, -0.2596639394760132, 0.44294869899749756, 0.8921432495117188, -0.25484827160835266, -0.6304137706756592, 0.8485440611839294, 0.2346135973930359, 0.47834768891334534, 0.7439912557601929, 0.18085217475891113, -0.2529456615447998, -0.9201709032058716, -0.7073464393615723, 0.3062646687030792, -0.2945963144302368, -0.15710221230983734, -0.5324216485023499, -0.05471665784716606, -0.3775341808795929, 0.17886725068092346, -0.4514044225215912, -0.5893620848655701, -0.16213372349739075, -0.2430521845817566, 0.2943970859050751, 0.3583155870437622, -0.11058860272169113, 0.5873422622680664, -1.1215237379074097, 0.20942918956279755, -0.11308977007865906, 0.4159044325351715, -0.6028960347175598, -0.9834291338920593, -0.5309349894523621, 0.0437636561691761, -0.7400227189064026, -0.8011227250099182, 0.588720440864563, 0.10468397289514542, 0.2717715799808502, 0.4265109598636627, 0.11703962087631226, 0.40931281447410583, -0.8341931700706482, 1.1175017356872559, -0.07183907926082611, -0.726456344127655, 0.45669740438461304, -0.5149738192558289, 0.553188681602478, 1.022971510887146, 0.41946420073509216, -0.4446408450603485, -0.5429324507713318, -0.7978575229644775, -0.9059404730796814, 0.8321191072463989, 0.7246395945549011, -0.2322147786617279, 0.2769542634487152, -0.051605984568595886, 0.013261746615171432, 0.16286371648311615, -1.158686637878418, -0.41034042835235596, 0.20324084162712097, -0.43016499280929565, -0.2676486372947693, -0.27697664499282837, -0.21019801497459412, -0.25780022144317627, 1.2869492769241333, 0.21629533171653748, 0.19947916269302368, 0.5166059136390686, -0.17653106153011322, -0.1954258382320404, 0.4498300850391388, 0.9463609457015991, 0.5970937013626099, -0.6993162631988525, -0.28875845670700073, 0.31697750091552734, -0.5489261746406555, -0.07852055132389069, 0.20388033986091614, -0.40791434049606323, 0.2533222436904907, 0.5076155066490173, 1.061049461364746, 0.25685298442840576, -0.6537123918533325, 0.46879255771636963, -0.4299268424510956, -0.5302980542182922, -0.6339491605758667, -0.1496042013168335, 0.20535343885421753, -0.011711481027305126, 0.27611634135246277, 0.06580403447151184, 0.16418221592903137, -0.25892603397369385, 0.2630968689918518, 0.08914177864789963, -0.7048395276069641, -0.5660719275474548, 0.5239125490188599, 0.15319883823394775, -0.5083088278770447, 0.4697088897228241, -0.5329994559288025, -0.6099010705947876, 0.4068968594074249, 0.19785556197166443, 1.0961182117462158, -0.37194883823394775, -0.2575156092643738, 0.7403392791748047, 0.7028306722640991, -0.2327491194009781, 0.7029227614402771, 0.18173950910568237, -0.7431028485298157, -0.5541900992393494, -0.9265633225440979, -0.3223106861114502, 0.1574419140815735, -0.9666756987571716, 0.4131685197353363, 0.404714971780777, 0.07103345543146133, -0.3438917100429535, 0.31767645478248596, -0.6524698734283447, 0.20362503826618195, -0.25459203124046326, 1.1954538822174072, -1.0561989545822144, 0.9453233480453491, 0.5016444325447083, -0.21484911441802979, -1.053775668144226, -0.29978376626968384, -0.21922926604747772, -0.47093871235847473, 0.5377089381217957, 0.32386335730552673, 0.29531991481781006, -0.10770446062088013, -0.18124264478683472, -0.8930584192276001, 1.322260856628418, 0.22132264077663422, -0.8167279362678528, 0.04280843213200569, 0.2701685428619385, 0.4453723430633545, -0.3536951243877411, 0.1949596256017685, 0.498851478099823, 0.7469705939292908, 0.13257190585136414, -1.1938934326171875, -0.3654862642288208, -0.5928612351417542, -0.45556512475013733, 0.6332628130912781, -0.6686015725135803, 1.0213984251022339, 0.5715470314025879, -0.17341990768909454, 0.05162506923079491, 0.5804483890533447, 0.3011198341846466, 0.23546181619167328, 0.5401932597160339, 1.304221749305725, 0.4753272235393524, -0.5044856071472168, 1.1142432689666748, -0.40735316276550293, 0.5287883281707764, 1.3141911029815674, -0.19814608991146088, 1.132503628730774, 0.35727348923683167, -0.26592540740966797, 0.5782889127731323, 0.6706128716468811, -0.27546703815460205, 0.5377503633499146, 0.027998603880405426, 0.22655797004699707, -0.07564741373062134, 0.28157731890678406, -0.7913016676902771, 0.34337979555130005, 0.2636318802833557, -0.2537349760532379, 0.03072223626077175, -0.10472609847784042, 0.07161691784858704, -0.09701564162969589, -0.2249448597431183, 0.6767491102218628, -0.07895175367593765, -0.6404983997344971, 0.8105037808418274, -0.10903337597846985, 0.8056997656822205, -0.8527763485908508, 0.21221749484539032, -0.1171814575791359, 0.29856076836586, 0.013726936653256416, -0.6061136722564697, 0.48666781187057495, -0.02053564414381981, -0.308074951171875, -0.5004881024360657, 0.1268947422504425, -0.6667019724845886, -1.137390375137329, 0.4529831111431122, 0.5065740346908569, 0.43611493706703186, 0.1394834667444229, -1.0128016471862793, -0.008041076362133026, 0.21541598439216614, -0.6611393094062805, 0.07301904261112213, 0.7892869710922241, 0.41498851776123047, 0.4458199739456177, 0.7168790102005005, 0.3169422447681427, 0.1711767464876175, -0.06982272118330002, 0.7082607746124268, -0.5661495923995972, -0.49280229210853577, -0.8802229166030884, 0.9701644778251648, -0.12678462266921997, -0.7567518949508667, 0.8496369123458862, 1.1591302156448364, 1.1308914422988892, -0.09455008804798126, 0.35343578457832336, -0.046206995844841, 0.872275710105896, -0.6990893483161926, 0.7357901334762573, -1.0413620471954346, 0.25466758012771606, -0.08982743322849274, -0.9500667452812195, -0.27823755145072937, 0.3352578282356262, -0.3091750741004944, -0.40935030579566956, 0.9229631423950195, 0.8776438236236572, -0.30616769194602966, -0.17167335748672485, 0.4246077835559845, 0.4042670726776123, 0.22705593705177307, 0.6687907576560974, 0.423231303691864, -1.0485540628433228, 0.5757482051849365, -0.3372044265270233, -0.014346633106470108, 0.0782683789730072, -0.8713813424110413, -0.9254131317138672, -0.6227886080741882, -0.1334122270345688, -0.2947702407836914, -0.3176089823246002, 0.9554405212402344, 0.6313350796699524, -1.1031800508499146, -0.6548259854316711, 0.09919598698616028, 0.038955073803663254, -0.1311008483171463, -0.27546563744544983, 0.6959632635116577, -0.2684715688228607, -1.0006282329559326, 0.5607635974884033, 0.07443486899137497, -0.09611283987760544, -0.1215265542268753, -0.264217734336853, -0.5910606384277344, -0.01847573183476925, 0.33805933594703674, -0.04069490358233452, -0.5849020481109619, 0.12011919915676117, 0.11622188240289688, -0.08648625761270523, 0.48130109906196594, 0.3611379563808441, -0.31967055797576904, 0.25444114208221436, 0.781882107257843, 0.4002816081047058, 0.40915605425834656, -0.128215491771698, 0.5555012822151184, -0.7655880451202393, 0.37082499265670776, 0.22018572688102722, 0.7135549783706665, 0.5214177966117859, -0.10152465105056763, 0.8623233437538147, 0.23441019654273987, -0.7369248867034912, -1.1536588668823242, 0.07247006893157959, -1.2778360843658447, -0.001338316360488534, 1.0704004764556885, -0.3355064392089844, -0.38594770431518555, 0.36889633536338806, -0.2060828059911728, 0.1283440887928009, -0.35574308037757874, 0.4463079571723938, 1.0119760036468506, 0.5113475918769836, 0.10510104149580002, -0.7451285719871521, 0.3656683564186096, 0.5998671650886536, -0.8199037313461304, -0.2406424731016159, 0.22427485883235931, 0.19162684679031372, 0.4179910719394684, 0.46679580211639404, -0.28929951786994934, 0.08571578562259674, -0.2967953085899353, 0.4340870678424835, -0.024904796853661537, -0.22535234689712524, -0.39857926964759827, 0.09319959580898285, -0.0997108519077301, -0.30316588282585144 ]
StanfordAIMI/stanford-deidentifier-base
StanfordAIMI
"2022-11-23T19:44:40Z"
22,144
53
transformers
[ "transformers", "pytorch", "bert", "token-classification", "sequence-tagger-model", "pubmedbert", "uncased", "radiology", "biomedical", "en", "dataset:radreports", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2022-06-16T18:24:42Z"
--- widget: - text: "PROCEDURE: Chest xray. COMPARISON: last seen on 1/1/2020 and also record dated of March 1st, 2019. FINDINGS: patchy airspace opacities. IMPRESSION: The results of the chest xray of January 1 2020 are the most concerning ones. The patient was transmitted to another service of UH Medical Center under the responsability of Dr. Perez. We used the system MedClinical data transmitter and sent the data on 2/1/2020, under the ID 5874233. We received the confirmation of Dr Perez. He is reachable at 567-493-1234." - text: "Dr. Curt Langlotz chose to schedule a meeting on 06/23." tags: - token-classification - sequence-tagger-model - pytorch - transformers - pubmedbert - uncased - radiology - biomedical datasets: - radreports language: - en license: mit --- Stanford de-identifier was trained on a variety of radiology and biomedical documents with the goal of automatising the de-identification process while reaching satisfactory accuracy for use in production. Manuscript in-proceedings. These model weights are the recommended ones among all available deidentifier weights. Associated github repo: https://github.com/MIDRC/Stanford_Penn_Deidentifier ## Citation ```bibtex @article{10.1093/jamia/ocac219, author = {Chambon, Pierre J and Wu, Christopher and Steinkamp, Jackson M and Adleberg, Jason and Cook, Tessa S and Langlotz, Curtis P}, title = "{Automated deidentification of radiology reports combining transformer and “hide in plain sight” rule-based methods}", journal = {Journal of the American Medical Informatics Association}, year = {2022}, month = {11}, abstract = "{To develop an automated deidentification pipeline for radiology reports that detect protected health information (PHI) entities and replaces them with realistic surrogates “hiding in plain sight.”In this retrospective study, 999 chest X-ray and CT reports collected between November 2019 and November 2020 were annotated for PHI at the token level and combined with 3001 X-rays and 2193 medical notes previously labeled, forming a large multi-institutional and cross-domain dataset of 6193 documents. Two radiology test sets, from a known and a new institution, as well as i2b2 2006 and 2014 test sets, served as an evaluation set to estimate model performance and to compare it with previously released deidentification tools. Several PHI detection models were developed based on different training datasets, fine-tuning approaches and data augmentation techniques, and a synthetic PHI generation algorithm. These models were compared using metrics such as precision, recall and F1 score, as well as paired samples Wilcoxon tests.Our best PHI detection model achieves 97.9 F1 score on radiology reports from a known institution, 99.6 from a new institution, 99.5 on i2b2 2006, and 98.9 on i2b2 2014. On reports from a known institution, it achieves 99.1 recall of detecting the core of each PHI span.Our model outperforms all deidentifiers it was compared to on all test sets as well as human labelers on i2b2 2014 data. It enables accurate and automatic deidentification of radiology reports.A transformer-based deidentification pipeline can achieve state-of-the-art performance for deidentifying radiology reports and other medical documents.}", issn = {1527-974X}, doi = {10.1093/jamia/ocac219}, url = {https://doi.org/10.1093/jamia/ocac219}, note = {ocac219}, eprint = {https://academic.oup.com/jamia/advance-article-pdf/doi/10.1093/jamia/ocac219/47220191/ocac219.pdf}, } ```
[ -0.17707589268684387, -0.10926344245672226, 0.6514363884925842, -0.14607641100883484, -0.41965416073799133, -0.13590575754642487, 0.2542530596256256, -0.4903002977371216, 0.13201747834682465, 0.11897927522659302, -0.30785003304481506, -0.6103144884109497, -0.7578450441360474, 0.33090752363204956, -0.32242316007614136, 0.6336106061935425, 0.12226680666208267, 0.005150089506059885, 0.23565931618213654, 0.05348159372806549, -0.35684284567832947, -0.13515152037143707, -0.19951649010181427, -0.34387505054473877, 0.44708961248397827, 0.2184581458568573, 0.630611002445221, 1.0185821056365967, 1.0981128215789795, 0.24807246029376984, 0.06740948557853699, 0.040582116693258286, -0.3873448967933655, -0.17957404255867004, -0.0279286690056324, 0.052356086671352386, -0.5488770008087158, 0.026628267019987106, 0.6058351993560791, 0.7969551086425781, 0.24449121952056885, 0.004464508965611458, -0.23493587970733643, 0.725020706653595, -0.9117477536201477, 0.34885966777801514, -0.2563551962375641, -0.03044683113694191, -0.31103628873825073, -0.33025798201560974, -0.5183871984481812, -0.504176139831543, 0.39404600858688354, -0.34876909852027893, 0.22441507875919342, -0.21743007004261017, 1.1343690156936646, 0.3128967583179474, -0.5181049108505249, -0.2613446116447449, -0.8214869499206543, 0.6147586107254028, -0.6238517761230469, 0.33497354388237, 0.45771685242652893, 0.17303456366062164, 0.24122051894664764, -1.0494717359542847, 0.07010779529809952, -0.29298701882362366, -0.45957446098327637, 0.3897518515586853, -0.30892956256866455, 0.13122113049030304, 0.4408721923828125, 0.5768935680389404, -0.7479932308197021, 0.25266408920288086, -0.9937290549278259, -0.045447126030921936, 0.7343980669975281, 0.06430061906576157, 0.22026973962783813, -0.3636537194252014, -0.31362980604171753, -0.19573239982128143, -0.5068796873092651, -0.48135727643966675, 0.050114069133996964, 0.1720920354127884, -0.14008012413978577, 0.22384823858737946, -0.4057086110115051, 0.3232773244380951, 0.3441433906555176, -0.2201155722141266, 0.7465556263923645, 0.09227634966373444, -0.4338998794555664, 0.48102086782455444, 0.7373863458633423, 0.15033942461013794, -0.057802874594926834, 0.022091569378972054, -0.002697469899430871, -0.07962171733379364, 0.24615566432476044, -0.8306330442428589, -0.5933197736740112, 0.05161362513899803, -0.7664546966552734, -0.5677159428596497, 0.6882203221321106, -0.3608342707157135, -0.5571498274803162, -0.41308465600013733, 0.2850140333175659, -0.6847096085548401, -0.30155906081199646, 0.16518886387348175, -0.19362002611160278, 0.26710647344589233, 0.36364418268203735, -0.7479369640350342, 0.034897610545158386, 0.540141761302948, 0.7319623827934265, -0.1610579937696457, 0.08078057318925858, -0.32165729999542236, 0.35048988461494446, -0.35817334055900574, 0.5889766812324524, -0.19614584743976593, -0.5419137477874756, -0.2618989646434784, 0.3513012230396271, -0.25337541103363037, -0.5518767833709717, 0.7261085510253906, -0.47910720109939575, 0.3199460506439209, -0.30983850359916687, -0.25519615411758423, -0.37918347120285034, -0.003148353425785899, -0.9167072176933289, 0.9429280161857605, 0.26216012239456177, -0.959321916103363, 0.37300315499305725, -0.25052908062934875, -0.39766547083854675, 0.38929101824760437, -0.23517359793186188, -0.6229210495948792, 0.19893993437290192, 0.14441777765750885, 0.1749335527420044, -0.4934375286102295, 0.5013090968132019, -0.13215580582618713, -0.5825954675674438, 0.09870614856481552, -0.5565546154975891, 1.1874992847442627, 0.2216981053352356, -0.42773547768592834, -0.42607322335243225, -0.8057342171669006, 0.036774296313524246, 0.05996020883321762, -0.3672347664833069, -0.4030604362487793, -0.4533892273902893, -0.21404998004436493, -0.014166741631925106, 0.06175237521529198, -0.6308754086494446, 0.07332857698202133, -0.3833237290382385, 0.2136579155921936, 0.5484637022018433, 0.07478300482034683, 0.11672867834568024, -0.5141641497612, 0.4245261549949646, 0.15000388026237488, 0.2485705316066742, -0.18936190009117126, -0.42836153507232666, -0.45348647236824036, -0.8666378259658813, 0.5322800874710083, 0.6001811027526855, 0.20044656097888947, 0.6814860105514526, -0.6803637146949768, -0.6145280599594116, -0.3503445088863373, -0.44215670228004456, 0.2875686585903168, 0.7887430787086487, 0.39966171979904175, -0.4608762860298157, -0.6515014171600342, -0.9964852929115295, 0.2807979881763458, -0.2681247293949127, -0.2918137311935425, 0.14736665785312653, 0.4053694009780884, -0.3919982612133026, 0.7901291251182556, -0.7459098696708679, -0.542898416519165, -0.06615155190229416, 0.3220103979110718, 0.1894311010837555, 0.4883391261100769, 0.426744669675827, -0.8707112073898315, -0.5930997133255005, -0.19655562937259674, -1.1123113632202148, -0.385662317276001, -0.019428499042987823, 0.0999632179737091, 0.08172360062599182, 0.68880295753479, -0.2805119454860687, 0.8586158156394958, -0.007007337640970945, 0.2741979956626892, -0.043691180646419525, -0.5466604828834534, 0.26594120264053345, -0.7784509062767029, 0.5838057398796082, -0.04077887162566185, 0.004269739147275686, -0.5345602631568909, -0.3137980103492737, 0.44070497155189514, -0.1416252702474594, -0.46659478545188904, 0.3270483613014221, -0.7828353047370911, 0.17573954164981842, 0.0954638421535492, -0.12691731750965118, 0.1458706110715866, 0.27789732813835144, 0.16507230699062347, 0.25044000148773193, 0.3584544062614441, -0.5498676300048828, 0.13552309572696686, 0.1263614147901535, -0.2773166298866272, 0.5543888211250305, -0.801499605178833, 0.07090231776237488, -0.5662906169891357, 0.36349135637283325, -1.062385082244873, -0.19106525182724, 0.4387083947658539, -0.10271286964416504, 0.5949540734291077, -0.2194083333015442, -0.13306072354316711, -0.8030015826225281, -0.611583411693573, 0.4269827902317047, 0.45467066764831543, -0.3707386255264282, 0.5908978581428528, 0.3726671636104584, 0.06573688238859177, -0.5362942218780518, -0.9300709366798401, -0.05631069093942642, -0.3694445788860321, -0.419807106256485, 0.9383670091629028, -0.15635497868061066, -0.29411378502845764, -0.1298142522573471, -0.0020245257765054703, -0.37194544076919556, 0.08459965884685516, 0.7340685725212097, 0.5432515144348145, -0.08636613190174103, 0.23236000537872314, 0.0516897514462471, -0.6521778106689453, -0.015623457729816437, -0.12700262665748596, 0.16803915798664093, 0.016824088990688324, -0.7028954029083252, -1.0002720355987549, 0.22851133346557617, 0.7987626194953918, 0.033705055713653564, 0.3962675929069519, 0.47560247778892517, -0.6373530030250549, 0.5019765496253967, -0.6247805953025818, -0.2744444012641907, -0.42200902104377747, 0.2071695476770401, -0.42407745122909546, -0.070222407579422, 0.39536938071250916, -0.23790894448757172, -0.010326343588531017, 0.8123617768287659, 0.40712520480155945, -0.06649921834468842, 0.9970337152481079, 0.47861430048942566, -0.1960470825433731, 0.1655544936656952, -0.47189727425575256, 0.3775368332862854, -0.8090393543243408, -0.2898321747779846, -0.6279892325401306, -0.3864021301269531, -0.5389629006385803, 0.0038832174614071846, 0.695102334022522, -0.13110245764255524, -0.04844322055578232, 0.2575870454311371, -0.9646810293197632, 0.39878204464912415, 0.5631945133209229, 0.39641073346138, 0.527864396572113, -0.04450296238064766, 0.20296797156333923, -0.3277724087238312, -0.4028577208518982, -0.3972758948802948, 1.3297721147537231, 0.37692657113075256, 0.9596084356307983, 0.1977573186159134, 0.9757459163665771, 0.6088364124298096, 0.19560466706752777, -0.6557161808013916, 0.20896559953689575, -0.3442128598690033, -0.40137794613838196, -0.19916602969169617, -0.050384391099214554, -1.0148682594299316, -0.018605584278702736, 0.2490340769290924, -0.5673606991767883, 0.6362481713294983, -0.27008551359176636, -0.6419597864151001, -0.025232180953025818, -0.3512442111968994, 0.5533586144447327, -0.14469970762729645, 0.10165314376354218, -0.18334275484085083, -0.6000418066978455, 0.3668863773345947, -0.2488660365343094, -0.12396293133497238, -0.19527971744537354, 0.1993928998708725, 0.5859804749488831, -0.5565094351768494, 0.8715371489524841, 0.03843039274215698, -0.11579598486423492, 0.11103394627571106, -0.09926265478134155, 0.2767942547798157, 0.1759462207555771, -0.2087736576795578, 0.40708884596824646, 0.24739061295986176, 0.14326168596744537, -0.06746499985456467, 0.6786913275718689, -0.7357150912284851, -0.4911368787288666, -0.8386673927307129, -0.5035696625709534, 0.4636516273021698, 0.5169337391853333, 0.7105328440666199, 0.8428011536598206, -0.13616420328617096, 0.31238099932670593, 0.9671212434768677, -0.12767131626605988, 0.28435009717941284, 0.6774718761444092, 0.4500736892223358, -0.5397397875785828, 0.6744734048843384, 0.3920835852622986, -0.10860226303339005, 0.6660906672477722, 0.39029380679130554, -0.291574627161026, -0.33614981174468994, -0.3640930652618408, 0.643519401550293, -0.7994697093963623, -0.3764306306838989, -0.8640527129173279, -0.6609115600585938, -0.6186536550521851, -0.18759405612945557, -0.19692860543727875, -0.46008023619651794, -0.521443784236908, -0.045023076236248016, 0.14121247828006744, 0.5012767910957336, -0.4677233099937439, 0.03424195945262909, -0.6541356444358826, 0.28473272919654846, 0.22809332609176636, -0.0741380825638771, -0.20633257925510406, -0.8454335927963257, 0.027622228488326073, 0.023922545835375786, -0.23344920575618744, -0.8799917101860046, 0.41886791586875916, 0.17780150473117828, 0.5621294975280762, 0.6707990765571594, 0.6417797207832336, 0.5696411728858948, 0.006927293259650469, 0.29479315876960754, -0.07537630200386047, -0.7513791918754578, 0.8522188663482666, -0.20316866040229797, 0.4739346504211426, 0.7895093560218811, 0.5785300135612488, -0.3994514048099518, -0.24466556310653687, -0.7641417980194092, -0.7643184661865234, 0.8907167911529541, -0.22913360595703125, -0.07055545598268509, -0.12079712748527527, 0.33677157759666443, -0.11441740393638611, -0.2260703444480896, -0.5608533024787903, -0.10763529688119888, 0.28764021396636963, -0.5008955597877502, 0.6355292797088623, -0.5061601996421814, -0.3673776090145111, -0.26477229595184326, 0.9663233757019043, -0.16655048727989197, 0.21948541700839996, 0.3497576415538788, -0.5362758040428162, -0.09471035748720169, -0.21394699811935425, 0.4423087537288666, 0.8642452359199524, -0.42353349924087524, 0.2498655468225479, 0.040191300213336945, -0.8315030336380005, -0.03977340832352638, 0.26297271251678467, -0.4752979874610901, 0.20902806520462036, 0.40379056334495544, 0.17674389481544495, 0.14965899288654327, -0.42827853560447693, 0.6471621990203857, -0.1873517632484436, -0.36688825488090515, -0.5089352130889893, -0.03073137067258358, -0.2764841616153717, 0.03517794981598854, 0.43331047892570496, -0.13586708903312683, 0.43917059898376465, -0.06947395950555801, 0.19283007085323334, 0.27963024377822876, -0.7396208643913269, -0.12656806409358978, 0.7035650610923767, 0.0770266205072403, 0.24870818853378296, 1.160140037536621, -0.10169994086027145, -0.1849449723958969, 0.7870395183563232, 0.09793883562088013, 1.0564734935760498, -0.4937806725502014, 0.22379635274410248, 0.7437084317207336, 0.41715505719184875, -0.05286809802055359, 0.12989215552806854, 0.03397321701049805, -0.2551369369029999, 0.2092738300561905, -0.16245943307876587, 0.03154243901371956, 0.38440197706222534, -0.876483142375946, 0.7486152648925781, -0.5951288342475891, -0.21936941146850586, 0.22722171247005463, -0.02140025980770588, -0.4453156590461731, 0.20742648839950562, 0.3962111175060272, 0.7925666570663452, -0.9321120381355286, 0.6719634532928467, 0.27603083848953247, -0.691245973110199, -0.6201297044754028, -0.01549205556511879, 0.38438889384269714, -0.42938950657844543, 0.9119918942451477, 0.5153712034225464, 0.06112922728061676, -0.03597923368215561, 0.2516075074672699, -1.1927882432937622, 1.5529732704162598, 0.2875223755836487, -0.4785216450691223, -0.15290036797523499, 0.3487352728843689, 0.3177124261856079, 0.010535256937146187, 0.6786384582519531, 0.554229199886322, 0.4680587351322174, 0.24946290254592896, -1.1156508922576904, 0.2586454153060913, -0.14719517529010773, 0.024352936074137688, 0.05194970592856407, -0.535710871219635, 0.8504999876022339, -0.27517420053482056, -0.4932422935962677, 0.06691302359104156, 0.4374518096446991, 0.0623185969889164, 0.35946139693260193, 0.3369274437427521, 0.7848571538925171, 1.0899070501327515, -0.1933850795030594, 0.5681037902832031, -0.49439918994903564, 0.24342909455299377, 0.8720420598983765, -0.2933345139026642, 0.07711860537528992, 0.04330400750041008, 0.02066900208592415, 0.6926711797714233, 0.6290450096130371, -0.2462700456380844, 0.8470330834388733, 0.016842080280184746, -0.20754750072956085, -0.007921669632196426, -0.11381086707115173, -0.7764474153518677, 0.45910292863845825, 0.23950085043907166, -1.0134378671646118, -0.23632816970348358, 0.10188504308462143, 0.10423988848924637, -0.4235473871231079, 0.1331254094839096, 0.7878922820091248, -0.08054573833942413, -0.4789753258228302, 0.8177318572998047, 0.15308059751987457, 0.3181317448616028, -0.6176568269729614, 0.1495889574289322, -0.31043553352355957, 0.6183909773826599, -0.3982643783092499, -0.20240972936153412, 0.5674064755439758, -0.33998945355415344, -0.3426986634731293, -0.17491498589515686, 0.6217290163040161, -0.10174647718667984, -0.5526331067085266, -0.02824625000357628, 0.1806151568889618, 0.1488671600818634, 0.11197608709335327, -0.4992208778858185, 0.2413647621870041, -0.09318602085113525, -0.04670611023902893, 0.2173352837562561, 0.4620934724807739, -0.3961029052734375, 0.5298722386360168, 0.29043734073638916, -0.13430336117744446, -0.3593207001686096, 0.28805026412010193, 0.8161953687667847, -0.1960701197385788, -0.5260389447212219, -0.6094141006469727, 0.302982896566391, -0.13099689781665802, -0.23732008039951324, 0.46793776750564575, 0.870986819267273, 0.5809846520423889, 0.0172509104013443, 0.6605095863342285, -0.2995384633541107, 0.4838549792766571, -0.12941206991672516, 0.6693416237831116, -0.25925368070602417, 0.44939419627189636, -0.4207783341407776, -0.6043602824211121, -0.46909353137016296, 0.6659937500953674, -0.46711528301239014, 0.008937492966651917, 0.7809379696846008, 0.9261800646781921, -0.4407772421836853, -0.06291254609823227, 0.024322694167494774, -0.08827005326747894, 0.37507501244544983, 0.5158728361129761, 0.31912171840667725, -0.8363099694252014, 0.48201608657836914, -0.6193816065788269, -0.560504674911499, -0.3369784653186798, -0.7571823000907898, -0.6286384463310242, -0.7343901991844177, -1.0182164907455444, -0.19749446213245392, -0.049231767654418945, 0.38047587871551514, 0.9820667505264282, -0.6239365935325623, 0.12964710593223572, 0.030213793739676476, -0.16448771953582764, -0.37256625294685364, -0.23009371757507324, 0.8384698629379272, 0.15918785333633423, -0.8337992429733276, 0.3720411956310272, 0.4753761887550354, 0.1304250955581665, -0.32274237275123596, 0.13268670439720154, -0.02279234118759632, -0.1955040991306305, 0.16407644748687744, 0.43712157011032104, -0.5812081694602966, -0.025227539241313934, -0.21367265284061432, -0.6437529921531677, 0.0041601029224693775, 0.6391311287879944, -1.009267807006836, 0.519810140132904, 0.7205725908279419, 0.2619539499282837, 0.43227463960647583, 0.025851719081401825, 0.1026989072561264, -0.3694426417350769, 0.29912805557250977, 0.2317240983247757, 0.13977979123592377, 0.2547359764575958, -0.7036351561546326, 0.7724694609642029, 0.5184872150421143, -0.32442978024482727, -0.9338359832763672, -0.2357969731092453, -0.7309767603874207, -0.13546122610569, 0.6787975430488586, -0.08553627878427505, -0.18344064056873322, -0.0677340030670166, 0.05313456803560257, 0.27459830045700073, -0.06336019188165665, 1.1595029830932617, 0.03273118659853935, -0.0532042421400547, -0.126649871468544, -0.04599515721201897, 0.41551539301872253, 0.04372251406311989, -0.8142698407173157, 0.02819898910820484, 0.5751721858978271, 0.2527841031551361, 0.38734591007232666, 1.0634901523590088, -0.4124077260494232, 0.49695897102355957, -0.3695651888847351, -0.06761837005615234, -0.2874287962913513, -0.4064834415912628, -0.4466577470302582, -0.09432380646467209, -0.2544602155685425, -0.40466880798339844 ]
huggyllama/llama-30b
huggyllama
"2023-04-07T15:50:57Z"
22,144
40
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "license:other", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-04-04T00:50:30Z"
--- license: other --- This contains the weights for the LLaMA-30b model. This model is under a non-commercial license (see the LICENSE file). You should only use this repository if you have been granted access to the model by filling out [this form](https://docs.google.com/forms/d/e/1FAIpQLSfqNECQnMkycAp2jP4Z9TFX0cGR4uf7b_fBxjY_OjhJILlKGA/viewform?usp=send_form) but either lost your copy of the weights or got some trouble converting them to the Transformers format.
[ -0.15370109677314758, -0.1290644407272339, 0.4339113235473633, 0.8338972926139832, -0.4886993169784546, 0.001076559186913073, 0.3570546805858612, -0.2877736985683441, 0.36323055624961853, 0.8425838351249695, -0.8011439442634583, -0.37176233530044556, -0.8423902988433838, 0.11059306561946869, -0.6445927023887634, 1.1735996007919312, -0.25914186239242554, 0.30254197120666504, -0.5087551474571228, -0.13202115893363953, -0.10098746418952942, -0.22084376215934753, -0.2485121637582779, -0.833254873752594, 0.7089921236038208, 0.424839586019516, 0.48922866582870483, 0.44047704339027405, 0.7586843967437744, 0.25551238656044006, -0.3493178188800812, -0.6966140270233154, -0.4435630738735199, -0.39651042222976685, 0.031006919220089912, -0.879995584487915, -1.0988068580627441, 0.2108951359987259, 0.6697766780853271, 0.5312525629997253, -0.9219736456871033, 0.6356337070465088, -0.26019567251205444, 0.5612920522689819, -0.506729006767273, 0.46304893493652344, -0.4626697897911072, -0.020168138667941093, -0.4966101050376892, 0.048445262014865875, -0.35183218121528625, -0.21159476041793823, -0.3770969808101654, -0.8913582563400269, 0.0809035450220108, 0.18131674826145172, 1.452738881111145, 0.38919171690940857, -0.5945204496383667, -0.24993515014648438, -0.32592684030532837, 0.8214081525802612, -0.934661865234375, 0.18581609427928925, 0.506837010383606, 0.7073355913162231, -0.12206998467445374, -0.9519935250282288, -0.38762366771698, -0.35263749957084656, 0.20860880613327026, 0.14087027311325073, -0.5326981544494629, 0.03472435846924782, 0.24018913507461548, 0.84260493516922, -0.39791780710220337, 0.13295701146125793, -1.1095856428146362, -0.06559377163648605, 1.0821607112884521, 0.11778555810451508, 0.5304326415061951, -0.28482699394226074, -0.9640549421310425, -0.41847196221351624, -1.0106359720230103, -0.0382026731967926, 0.8858999013900757, 0.11017491668462753, -1.00203537940979, 1.5163836479187012, -0.15712761878967285, 0.5106986165046692, 0.06679531186819077, -0.14452382922172546, 0.7314444780349731, 0.27829062938690186, -0.4438675343990326, -0.18580181896686554, 0.5195233225822449, 0.6494713425636292, 0.3438720703125, -0.11976819485425949, -0.21655382215976715, -0.18536943197250366, 0.5132076740264893, -0.7887895107269287, -0.18796415627002716, -0.08053997904062271, -0.6860606670379639, -0.22932110726833344, -0.06726843118667603, -0.36061209440231323, -0.4378957152366638, -0.2394506186246872, 0.4549494981765747, 0.0653359517455101, -0.3318457007408142, 0.3619604706764221, -0.35464784502983093, 0.37627363204956055, 0.2367299646139145, -0.8185879588127136, 0.5046221613883972, -0.13236244022846222, 0.5025070905685425, 0.3556267321109772, -0.19776974618434906, 0.08708573877811432, 0.34044402837753296, -0.16835275292396545, 0.8436806797981262, -0.05552953481674194, -0.8991414308547974, -0.15335720777511597, 0.5778944492340088, 0.007121407426893711, -0.7507193684577942, 0.4748551547527313, -1.0173540115356445, -0.06097925454378128, -0.2557973861694336, -0.39115869998931885, -0.5743640065193176, -0.12226700782775879, -1.0655537843704224, 0.9822776317596436, 0.5978889465332031, -0.6415796279907227, 0.43339553475379944, -0.5937000513076782, -0.13896507024765015, 0.46636322140693665, 0.1267222762107849, -0.6520125269889832, 0.3125389814376831, -0.04702842980623245, 0.30964839458465576, -0.3494375944137573, 0.2733052968978882, -0.584165632724762, -0.34014153480529785, 0.07825746387243271, -0.05907609686255455, 1.2424761056900024, 0.3363950848579407, 0.12351801991462708, -0.007740654982626438, -1.071851372718811, -0.5766658782958984, 0.6755493879318237, -0.8264786601066589, 0.0754084587097168, -0.26737555861473083, 0.14142806828022003, -0.12862618267536163, 0.7501997351646423, -0.7678186893463135, 0.5413954854011536, 0.23883210122585297, 0.13257211446762085, 0.8286430835723877, -0.05703655257821083, 0.6073259711265564, -0.5567052364349365, 0.9506927132606506, -0.17406536638736725, 0.40877649188041687, 0.5528971552848816, -0.7321322560310364, -0.7323607206344604, -0.17221364378929138, -0.058405689895153046, 0.3810880482196808, -0.5439152121543884, 0.1837347149848938, -0.1070948988199234, -1.012402057647705, -0.4284813106060028, 0.17429500818252563, 0.21784371137619019, 0.39340460300445557, 0.3327048718929291, -0.18479053676128387, -0.5466403961181641, -1.36342453956604, 0.3023492693901062, -0.29263296723365784, -0.5501643419265747, 0.6296099424362183, 0.9906843900680542, -0.2741982042789459, 0.5959556102752686, -0.7038665413856506, -0.4736056923866272, -0.31952184438705444, 0.08473903685808182, 0.3752270042896271, 0.2791779935359955, 1.0817608833312988, -0.6348949670791626, -0.09230548143386841, -0.4002264738082886, -0.982191801071167, -0.6074174642562866, -0.03929708153009415, 0.07386786490678787, -0.19798544049263, 0.02392040379345417, -0.5848045945167542, 0.40065208077430725, 1.1311757564544678, -0.2850361466407776, 0.561528205871582, -0.2497340887784958, -0.2759222984313965, -1.0483946800231934, 0.3461872339248657, 0.1791245937347412, -0.2335461974143982, 0.07842618972063065, 0.4953908324241638, 0.13830116391181946, 0.008289431221783161, -0.8561837077140808, 0.4894712269306183, -0.3712548613548279, -0.27006590366363525, -0.11560748517513275, -0.05477900430560112, 0.0715271383523941, 0.2491791993379593, -0.4583149552345276, 1.1199311017990112, 0.254066526889801, -0.5273091793060303, 0.4820445775985718, 0.6295336484909058, -0.44254305958747864, 0.5455719828605652, -0.9106536507606506, -0.06482037901878357, -0.3358571231365204, 0.4105542004108429, -0.3715909719467163, -0.4052087962627411, 0.41193634271621704, -0.37819433212280273, 0.2585900127887726, -0.2426563948392868, -0.15641462802886963, -0.38441649079322815, -0.17585383355617523, 0.3593074083328247, 0.35476863384246826, -0.42352575063705444, 0.8322181701660156, 0.6430010795593262, -0.07461946457624435, -0.6678654551506042, -1.3329014778137207, -0.21838343143463135, -0.3617728650569916, -0.2710479497909546, 0.5658690929412842, -0.08657590299844742, -0.32854601740837097, 0.27484649419784546, -0.1364573985338211, -0.20245636999607086, 0.06776053458452225, 0.4797474443912506, 0.43992310762405396, 0.03552417829632759, -0.24039094150066376, 0.21325349807739258, -0.07562586665153503, 0.11724265664815903, 0.20668046176433563, 0.7387630939483643, -0.1259298026561737, -0.24871863424777985, -0.6239237189292908, -0.04985034838318825, 0.5227684378623962, 0.09560947865247726, 0.8728035688400269, 0.2134629786014557, -0.5550096035003662, 0.09162267297506332, -0.5141611695289612, 0.16371935606002808, -0.5205284953117371, 0.2948000729084015, -0.3335540294647217, -0.5078158378601074, 0.7273133397102356, 0.19180060923099518, -0.10459023714065552, 1.0943944454193115, 0.931281328201294, -0.17915421724319458, 0.530562162399292, 0.93095862865448, -0.10964296758174896, 0.482282429933548, -0.6726250648498535, -0.22461308538913727, -1.4822466373443604, -1.0494288206100464, -0.672977864742279, -0.6202892661094666, -0.21061857044696808, -0.12427593767642975, 0.04618788883090019, 0.3028484582901001, -0.9550093412399292, 1.0281634330749512, -0.34391969442367554, 0.15105128288269043, 0.6501549482345581, 0.3806792199611664, 0.47100597620010376, 0.04059410095214844, -0.11774860322475433, 0.07164467871189117, -0.375274121761322, -0.5897591710090637, 1.4119906425476074, 0.26471325755119324, 1.2652231454849243, 0.2670069932937622, 0.7484886646270752, 0.4106939733028412, 0.6962316632270813, -0.6744470596313477, 0.539539635181427, 0.007236230652779341, -1.1193426847457886, 0.08450087904930115, -0.49941784143447876, -1.0328725576400757, 0.0670425072312355, -0.04653473570942879, -1.0148084163665771, 0.23723424971103668, -0.21653525531291962, 0.041676636785268784, 0.5284832119941711, -0.7118145823478699, 0.5044863224029541, -0.09908924251794815, 0.38047468662261963, -0.3486182689666748, -0.26165342330932617, 0.6957623362541199, -0.027045302093029022, 0.24487707018852234, -0.3396431803703308, -0.056039292365312576, 1.0409317016601562, -0.5119385719299316, 1.0528284311294556, -0.4662693738937378, -0.2503511905670166, 0.5892347693443298, -0.15053509175777435, 0.4382815659046173, 0.25818032026290894, -0.06188284605741501, 0.47987100481987, -0.05970068275928497, -0.3369501829147339, -0.001810265937820077, 0.4970819652080536, -1.3858953714370728, -0.49238353967666626, -0.40432092547416687, -0.724958598613739, 0.533710241317749, 0.1920112520456314, 0.25556522607803345, -0.2731476426124573, 0.3865734934806824, 0.6717970371246338, 0.27166134119033813, -0.33991560339927673, 0.42110592126846313, 0.6773806214332581, -0.33395829796791077, -0.4346216022968292, 0.542115330696106, 0.10544688254594803, 0.23717719316482544, 0.3386925160884857, 0.24663692712783813, -0.45328786969184875, -0.441756933927536, -0.6249595284461975, 0.36762645840644836, -0.8706430792808533, -0.5584697723388672, -0.4242275655269623, -0.2729721665382385, -0.143596351146698, -0.158683642745018, -0.31895992159843445, -0.627732515335083, -0.6221694946289062, -0.1955205202102661, 0.595012903213501, 0.9824863076210022, -0.13016049563884735, 1.2437455654144287, -0.8396696448326111, 0.3268057405948639, 0.34498128294944763, 0.3272416889667511, 0.07921663671731949, -0.7027083039283752, -0.06653886288404465, -0.13627515733242035, -0.7566813826560974, -0.916706919670105, 0.343744158744812, -0.08153196424245834, 0.663269579410553, 0.27492058277130127, -0.19253790378570557, 0.6021972298622131, -0.28458350896835327, 1.163739562034607, 0.44268661737442017, -0.9382603764533997, 0.06921156495809555, -0.3269031047821045, 0.05088013783097267, 0.41386210918426514, 0.46367180347442627, -0.2672920823097229, 0.058884963393211365, -0.7442193031311035, -0.9322545528411865, 0.7072243690490723, 0.20298968255519867, 0.1842208355665207, 0.5290771126747131, 0.2459384649991989, 0.006034610792994499, 0.4490836560726166, -1.377522349357605, -0.11060807853937149, -0.29488644003868103, -0.24331466853618622, 0.45360809564590454, -0.22807349264621735, -0.5438438653945923, -0.03843440115451813, 0.831012487411499, 0.1690359115600586, 0.1990078091621399, -0.15783017873764038, -0.25323808193206787, -0.47239363193511963, 0.021952489390969276, 0.5138686299324036, 0.511215329170227, -0.5791823863983154, -0.3908078074455261, 0.5214822292327881, -0.9412396550178528, 0.15922540426254272, 0.3602103590965271, -0.05456184595823288, -0.5541732907295227, 0.3946777582168579, 0.49008601903915405, 0.32549476623535156, -0.4916715621948242, 0.6548874378204346, 0.0323091596364975, -0.4974811375141144, -0.5215077996253967, -0.2646077871322632, 0.36210617423057556, 0.757989227771759, 0.5620407462120056, -0.05134078860282898, 0.1137455552816391, -0.2506815195083618, -0.0018549649976193905, 0.3036023676395416, 0.07246518135070801, -0.3802972435951233, 1.2246283292770386, -0.025303399190306664, -0.16848312318325043, 0.7917007207870483, -0.06395619362592697, 0.09353962540626526, 0.9432581663131714, 0.6473682522773743, 0.8333709239959717, -0.10767650604248047, 0.15785226225852966, 0.1445838361978531, 0.40853965282440186, -0.07945789396762848, 0.7742274403572083, 0.09395036101341248, -0.5067776441574097, -0.560569703578949, -1.1794579029083252, -0.6985623240470886, 0.06627821922302246, -0.940664529800415, 0.5667558312416077, -0.4763452708721161, -0.31656354665756226, -0.3488612174987793, 0.009013397619128227, -0.7001590132713318, 0.5375176668167114, 0.4105292558670044, 1.1582057476043701, -0.8120870590209961, 0.7933576107025146, 0.783585786819458, -1.1329549551010132, -1.2567628622055054, -0.6524035930633545, 0.12384430319070816, -1.5788516998291016, 0.7661567330360413, -0.15799768269062042, -0.004789363127201796, -0.109430693089962, -0.914496123790741, -1.3317044973373413, 1.6177401542663574, 0.5387804508209229, -0.7584838271141052, -0.513788104057312, 0.10218887776136398, 0.011034948751330376, -0.03528362512588501, 0.260971337556839, -0.11331583559513092, 0.5973430275917053, 0.3710107207298279, -0.9486363530158997, 0.06713177263736725, -0.010553296655416489, -0.011116307228803635, -0.07362065464258194, -0.961139976978302, 1.2809548377990723, -0.19871003925800323, -0.19117522239685059, 0.4568899869918823, 0.5172906517982483, 0.6737006306648254, 0.056826334446668625, 0.37594667077064514, 1.0855674743652344, 0.6821593046188354, -0.02111201174557209, 1.3553690910339355, -0.18642772734165192, 0.8776840567588806, 0.6507599353790283, -0.40127018094062805, 0.744104266166687, 0.5889294147491455, -0.7261722087860107, 1.005515456199646, 0.6198893189430237, -0.6195342540740967, 0.432477205991745, 0.6427101492881775, -0.08184364438056946, 0.026209795847535133, -0.15505985915660858, -0.6970596313476562, 0.40926599502563477, 0.16304558515548706, -0.45813778042793274, -0.501715362071991, -0.2971179187297821, 0.10692812502384186, -0.3163025677204132, -0.33394497632980347, 0.3719964027404785, 0.5650403499603271, 0.22722774744033813, 0.4630812406539917, 0.1655314564704895, 0.5595423579216003, -0.8868979215621948, 0.053884997963905334, -0.008337178267538548, 0.1863556206226349, -0.46716439723968506, -0.7603321075439453, 0.535001277923584, 0.13764573633670807, -0.1386374831199646, -0.242997407913208, 0.41362428665161133, 0.3848230242729187, -0.8274307250976562, 0.4793132245540619, 0.15130306780338287, 0.21406809985637665, 0.06455125659704208, -0.6857590079307556, 0.2262781411409378, -0.3252749443054199, -0.5864825248718262, 0.3464745283126831, -0.292251855134964, -0.11062440276145935, 1.1721372604370117, 0.6545018553733826, 0.17900551855564117, 0.11859965324401855, 0.29530707001686096, 1.1754244565963745, -0.5304257273674011, -0.12439237534999847, -0.49735721945762634, 0.8503709435462952, 0.09701269865036011, -0.6439846754074097, 0.5994011759757996, 0.714808464050293, 1.1719781160354614, -0.5221030116081238, 0.47326967120170593, -0.47502797842025757, -0.14761945605278015, -0.5112801790237427, 1.3586136102676392, -1.067441463470459, -0.002593653043732047, -0.10354380309581757, -1.1284635066986084, -0.5372253060340881, 0.6900365948677063, 0.06570988148450851, -0.10780881345272064, 0.47052934765815735, 0.5037449598312378, 0.21562469005584717, -0.04530946537852287, 0.06339260190725327, 0.01555029209703207, 0.4098888635635376, 0.5790150761604309, 0.6140880584716797, -0.7280735373497009, 0.7880118489265442, -0.12961111962795258, -0.36698371171951294, 0.016893038526177406, -1.0459836721420288, -0.7758386135101318, -0.2589571177959442, -0.08916912972927094, -0.16131919622421265, -0.42695868015289307, 0.7556958794593811, 0.7674541473388672, -0.5181102156639099, -0.5699379444122314, -0.11091151833534241, -0.12811286747455597, -0.07218362390995026, -0.1771187037229538, 0.22352252900600433, 0.2321491837501526, -0.9527708888053894, 0.45320573449134827, -0.03593449294567108, 0.5981177687644958, -0.3516927659511566, -0.0076559167355299, -0.1784764677286148, -0.11040221154689789, 0.24764452874660492, 0.15885955095291138, -0.7307834625244141, 0.012987235561013222, -0.003665753873065114, -0.004792678635567427, -0.042149610817432404, 0.330863356590271, -0.6929788589477539, 0.11926983296871185, 0.4712386727333069, 0.33252212405204773, 0.86220383644104, -0.07756316661834717, 0.490276962518692, -0.7069264650344849, 0.3985341489315033, 0.22631226480007172, 0.9273963570594788, 0.2653796672821045, -0.2268979549407959, 0.5452182292938232, 0.3571452796459198, -0.7622475624084473, -0.6633255481719971, 0.10815604776144028, -1.4713293313980103, 0.01677670329809189, 0.9263765811920166, -0.22054879367351532, -0.49603039026260376, 0.7002457976341248, -0.3515812158584595, 0.41680416464805603, -0.45535075664520264, 0.7801635265350342, 0.7851359844207764, 0.18476155400276184, -0.5316807627677917, -0.6817967891693115, -0.09836600720882416, -0.055531859397888184, -0.7077727913856506, -0.4829443693161011, 0.2646203637123108, 0.4869908094406128, 0.25540420413017273, 0.19642168283462524, -0.748656153678894, -0.1977018266916275, 0.1610599011182785, 0.6975035071372986, -0.14532208442687988, -0.20887596905231476, -0.2214110642671585, -0.07862904667854309, 0.021668756380677223, -0.45368829369544983 ]
fxmarty/resnet-tiny-beans
fxmarty
"2022-08-23T13:18:09Z"
22,143
1
transformers
[ "transformers", "pytorch", "onnx", "resnet", "image-classification", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-07-27T09:51:50Z"
--- license: apache-2.0 --- A model trained on the beans dataset, just for testing and having a really tiny model.
[ -0.45210543274879456, -0.7946692109107971, 0.35801801085472107, 0.2554820477962494, -0.1379246711730957, -0.4516323208808899, 0.12854540348052979, 0.030019760131835938, 0.3155750036239624, 0.4088839888572693, -0.7452744841575623, -0.033692967146635056, -0.25783470273017883, -0.2030385583639145, -0.9945511817932129, 1.2301692962646484, 0.7196747660636902, 0.18497715890407562, -0.0851527601480484, -0.016417307779192924, -0.4112563729286194, 0.12915442883968353, -0.7322230339050293, -0.5474224090576172, 0.8093129396438599, 0.87688809633255, 0.9482307434082031, 0.6648879051208496, 0.7025436162948608, -0.03650635853409767, 0.06323324888944626, -0.31967025995254517, -0.5433265566825867, -0.5933760404586792, 0.020685357972979546, -0.9262634515762329, -0.24145829677581787, 0.2127705067396164, 0.3073224425315857, 1.1965547800064087, 0.3394198417663574, 0.7979533672332764, -0.3538888394832611, 0.18504193425178528, -0.5167357325553894, -0.0357142835855484, -0.25228458642959595, 0.2906312942504883, -0.09824832528829575, 0.2057003229856491, -0.533824622631073, -0.4456847012042999, -0.20189262926578522, -0.756645679473877, 0.9801800847053528, 0.8914185762405396, 1.1640710830688477, 0.12022963166236877, -0.4218609631061554, 0.2639244496822357, -0.5647057890892029, 0.499092161655426, -0.20315644145011902, 0.3866603374481201, 0.38658297061920166, 0.8164345622062683, -0.12240234017372131, -0.6700199246406555, -0.7693880796432495, -0.17875531315803528, -0.41989248991012573, -0.08952289819717407, 0.27310803532600403, -0.051180094480514526, 0.4090065658092499, 0.48190125823020935, -0.4944263696670532, -0.08345385640859604, -0.32244592905044556, 0.28014808893203735, 0.7106267809867859, 0.48871853947639465, 0.14266641438007355, -0.08843723684549332, -0.32391712069511414, -0.12286365777254105, -0.777314305305481, -0.49655941128730774, 0.06285759061574936, 0.7239511013031006, -0.5680234432220459, 0.6537665128707886, 0.07180721312761307, 0.9398242235183716, -0.35825902223587036, 0.03413067013025284, 0.06276050955057144, 0.42000460624694824, -0.6768240928649902, -0.45044198632240295, 0.7455309629440308, -0.09525144845247269, 0.3240230977535248, -0.3257834017276764, -0.690165102481842, 0.17476554214954376, 0.3573833107948303, -1.0023200511932373, -0.9047418236732483, 0.0093004135414958, -0.7001838684082031, -0.45945385098457336, -0.10644787549972534, -0.4853884279727936, -0.3433113694190979, -0.24596001207828522, 0.5262280106544495, -0.3794780373573303, -0.24272523820400238, -0.07348110526800156, -0.4589536786079407, -0.14954443275928497, 0.16698606312274933, -1.0664713382720947, 0.6127303242683411, 0.4058225750923157, 1.0812082290649414, 0.33649200201034546, -0.45526060461997986, -0.21529604494571686, 0.039983101189136505, -0.8126173615455627, 0.5934641361236572, -0.5923829078674316, -0.8653918504714966, -0.3253460228443146, 0.5882419347763062, 0.006845355033874512, 0.004532689228653908, 0.5302243232727051, -0.7221530675888062, -0.16631019115447998, -0.5662238597869873, -0.6285776495933533, -0.010640686377882957, 0.16216547787189484, -0.6227160692214966, 1.2731550931930542, 0.6601629853248596, -0.4964260756969452, 0.989226222038269, -1.0036929845809937, -0.41668665409088135, 0.5630945563316345, -0.5399971604347229, -0.7365260124206543, 0.43549084663391113, -0.30901986360549927, 0.42575153708457947, -0.7809552550315857, 0.009184623137116432, -0.8104465007781982, -0.5520704984664917, 0.3341406285762787, -0.14541739225387573, 0.6277512311935425, 0.34070953726768494, 0.1725078821182251, -0.5093895196914673, -1.2875255346298218, 0.11066735535860062, 0.624267041683197, -0.11461184918880463, -0.5032172799110413, -0.3731728792190552, 0.4097624719142914, -0.1796395629644394, -0.31573882699012756, -0.9598679542541504, 0.5522565841674805, 0.04968981444835663, 0.289437472820282, 0.3775591552257538, 0.045987486839294434, 0.5609003305435181, -0.6612643003463745, 0.34648746252059937, -0.17999498546123505, 0.5444977283477783, -0.15058858692646027, -0.6736440658569336, -1.3057562112808228, -0.7948058843612671, 1.0184823274612427, -0.11969117820262909, -0.12959346175193787, 0.6142621040344238, -0.23782409727573395, -0.6522859930992126, -0.644104540348053, 0.06670881807804108, 0.24083001911640167, 0.28078988194465637, -0.09414148330688477, 0.08771160989999771, -0.2831597924232483, -1.2766151428222656, 0.6069410443305969, -0.06703316420316696, -0.6584219932556152, -0.060207538306713104, 1.0922739505767822, -0.18213120102882385, 1.4732946157455444, -0.8802092671394348, -0.4058404564857483, -0.2368306815624237, 0.10518698394298553, 0.24080485105514526, 0.8106600642204285, 0.7750117182731628, -0.7322948575019836, -0.30396175384521484, -0.062030598521232605, -0.5819800496101379, -0.07481229305267334, -0.015449563972651958, -0.15886540710926056, -0.8603276014328003, 0.23176309466362, -0.7457850575447083, 0.5908456444740295, 0.43461382389068604, -0.06226789951324463, 0.2199431210756302, -0.2150287926197052, -0.08029977232217789, -0.48981374502182007, -0.032369643449783325, -0.1183386743068695, -0.4187283217906952, -0.4045155942440033, 0.33032193779945374, 0.7148910760879517, -0.615031898021698, -0.21673992276191711, 0.9343374967575073, -0.6437279582023621, -0.4172706604003906, -0.6222091317176819, -0.2993531823158264, 0.3651069104671478, 0.3546545207500458, -0.03706878796219826, 0.8367789387702942, 0.29592475295066833, -0.9359480738639832, 0.43425068259239197, 0.4430171847343445, -0.17211730778217316, 0.6893585920333862, -0.6140062808990479, 0.2831079959869385, 0.0909629836678505, -0.22707003355026245, -0.8934504389762878, -0.835974395275116, -0.23488444089889526, -0.24577583372592926, 0.06784113496541977, -0.4996928572654724, -0.5409849882125854, -0.8731505274772644, 0.018102353438735008, 0.4052354693412781, 0.48360252380371094, -1.1884411573410034, 0.5156494379043579, 0.3776993751525879, 0.13789360225200653, 0.2836424708366394, -1.2500135898590088, -0.5004438161849976, -0.15033508837223053, -0.42924100160598755, -0.047843966633081436, -0.03687151148915291, 0.02246171236038208, 0.06927555054426193, 0.2811442017555237, -0.31666088104248047, 0.1080019474029541, 0.6304278373718262, 0.23901857435703278, -0.5075936317443848, 1.0352731943130493, -0.2341436892747879, -0.1826469600200653, -0.10113828629255295, -0.06628762930631638, 0.26142552495002747, -0.04891473799943924, -0.39553532004356384, -0.1982603371143341, 0.246787428855896, 0.16535231471061707, 0.449871689081192, 0.7819030284881592, -0.07652512192726135, -0.43874672055244446, -0.8998532295227051, -0.24261444807052612, -0.45695436000823975, -0.419681191444397, -0.050944190472364426, -0.9693560004234314, -0.5015916228294373, 0.5163680911064148, 0.10396311432123184, -0.18695706129074097, 0.15643222630023956, 0.42925381660461426, -0.10373345762491226, 0.8655403852462769, 0.982882022857666, 0.06404891610145569, -0.011818083003163338, -0.2689374089241028, 0.27055078744888306, -0.4854251742362976, -0.06119254603981972, -0.7066552042961121, -0.3940715193748474, -0.16219906508922577, -0.3603535592556, -0.0953032523393631, -0.2925632894039154, -0.8789204359054565, 0.3251708745956421, -0.3500416576862335, 0.9219813346862793, 0.8069819211959839, 0.20498505234718323, 0.005894772242754698, -0.7860058546066284, 0.036106374114751816, 0.17670629918575287, -0.8194302320480347, -0.4896824359893799, 1.3779500722885132, 0.44047701358795166, 1.2481908798217773, -0.13140776753425598, -0.046194225549697876, 0.682413637638092, 0.46962806582450867, -0.9057722687721252, 0.4339419901371002, 0.3037448227405548, -1.1857420206069946, -0.20245681703090668, -0.3892381191253662, -1.1158918142318726, 0.14736230671405792, -0.09065771102905273, -0.34513479471206665, 0.4164361357688904, 0.4087464511394501, -0.7591050267219543, 0.15256492793560028, -1.153583288192749, 0.9599794745445251, -0.36499691009521484, 0.04928438365459442, 0.3954886794090271, -0.3981875479221344, 0.2685209810733795, -0.23822446167469025, 0.10773266106843948, -0.18785905838012695, -0.02221982553601265, 0.7112045288085938, -0.6475030183792114, 0.8596615791320801, -0.0947577953338623, 0.4096735119819641, 0.1402740776538849, 0.469257116317749, 0.3724150061607361, 0.38938453793525696, 0.4243471026420593, -0.06977373361587524, 0.25206413865089417, -1.034586787223816, -0.3608265817165375, 0.41141068935394287, -0.8909794092178345, -0.25035664439201355, -0.5194965600967407, -0.6096603870391846, -0.21858835220336914, 0.2337508648633957, 0.14861415326595306, 0.17030270397663116, -0.5462261438369751, 0.31150802969932556, 0.8346210718154907, -0.057507820427417755, 0.20758342742919922, 0.7483031153678894, -0.8856520652770996, 0.5810269713401794, 0.8322968482971191, -0.13708139955997467, 0.2700197994709015, 0.32603639364242554, 0.47900423407554626, 0.3149377107620239, -0.25207746028900146, -0.36506742238998413, 0.30666452646255493, -0.34396079182624817, -0.20693306624889374, -0.5594791769981384, -0.3754705488681793, -0.28928446769714355, -0.19208626449108124, -0.9024675488471985, -0.6684352159500122, -0.14558923244476318, -0.4872902035713196, 0.47764793038368225, 0.7471634149551392, -0.18464899063110352, 1.4475243091583252, -0.5779851675033569, 0.3977234661579132, 0.6533893942832947, 0.5383804440498352, -0.39751970767974854, -0.5055568814277649, -0.4481603503227234, -0.06485790014266968, -0.14057138562202454, -0.586227536201477, 0.38675135374069214, 0.17462050914764404, 0.031676702201366425, 0.894220232963562, -0.1667456328868866, 0.3681475520133972, -0.2310446798801422, 0.6068324446678162, 0.3188917636871338, -0.6277231574058533, 0.8208383917808533, -0.4600939452648163, 0.2218046933412552, 0.5883800983428955, 0.3007018268108368, -0.256065309047699, -0.10800711065530777, -1.0595941543579102, -0.0933612659573555, 0.8936647772789001, 0.161782905459404, -0.042926888912916183, -0.01065781433135271, 0.2527146637439728, 0.6166512966156006, 0.45865902304649353, -0.6369068026542664, -0.1263810694217682, 0.03134111687541008, -0.06307562440633774, 0.16190704703330994, -0.16979828476905823, -0.8336738348007202, -0.12276820838451385, 0.5295510292053223, -0.3598306179046631, 0.5076596140861511, -0.5146418213844299, -0.17954124510288239, -0.17326059937477112, -0.15532633662223816, -0.45656412839889526, 0.35845616459846497, -0.6440402269363403, 0.06375223398208618, 0.1567411571741104, -0.45550188422203064, 0.3758671283721924, -0.2643316686153412, -0.6771413087844849, 0.029714718461036682, 0.11245805770158768, 0.7770447731018066, 0.35235968232154846, -0.33030787110328674, 0.9032968878746033, -0.48031970858573914, -0.13330842554569244, -0.36597132682800293, 0.23112860321998596, -0.0669897198677063, -0.10377848893404007, 0.015396654605865479, 0.22154821455478668, 0.21762748062610626, -0.3316671848297119, 0.22971048951148987, 0.019436342641711235, -0.33790120482444763, -0.41822487115859985, 0.763715922832489, 0.47362640500068665, -0.21733900904655457, 0.8474218249320984, -0.5540613532066345, 0.10653454810380936, 0.7954467535018921, 0.5179592370986938, 0.2393294721841812, -0.0647493228316307, 0.46245893836021423, 0.16384847462177277, 0.6048270463943481, -0.22236987948417664, 0.09526792168617249, 0.04057881981134415, -0.8457756042480469, 0.31979864835739136, -0.7414171695709229, -0.5679425001144409, 0.632653534412384, -0.7693274617195129, 0.7050068974494934, -1.030110239982605, -0.24068593978881836, 0.07029436528682709, -0.14986228942871094, -1.1560128927230835, 1.184635043144226, -0.1170225739479065, 1.3964545726776123, -1.2899516820907593, 1.1238631010055542, 0.5092988014221191, -0.5891834497451782, -0.49457767605781555, -0.26816096901893616, 0.035184409469366074, -1.0529265403747559, 0.5612761378288269, 0.13615494966506958, 0.578447163105011, -0.46596962213516235, -0.44159215688705444, -0.6771332621574402, 0.5878294706344604, 0.6510535478591919, -0.7571153044700623, -0.2280166894197464, 0.026906177401542664, 0.3467653691768646, -0.5779001712799072, 0.659085214138031, 1.1293230056762695, -0.01665509305894375, -0.1988631933927536, -0.347956120967865, -0.3024825155735016, -0.5626781582832336, 0.4160519540309906, 0.054626140743494034, -1.2712476253509521, 1.2066923379898071, 0.1508118361234665, -0.02523723617196083, 0.21786004304885864, 0.864006757736206, -0.0022333459928631783, 0.03966962546110153, 0.8067909479141235, 0.553160548210144, 0.8408320546150208, -0.501854419708252, 1.6396452188491821, 0.08927086740732193, 0.6380511522293091, 1.2791224718093872, -0.07090870290994644, 0.25185099244117737, 0.32696399092674255, -0.2069438099861145, -0.2503716051578522, 0.9884818196296692, -0.2675914764404297, 0.7069451808929443, 0.2563915252685547, -0.040960147976875305, -0.5593842267990112, 0.1482209861278534, -0.5509746074676514, 0.1617247313261032, 0.3220135271549225, -0.44808128476142883, 0.1236472949385643, 0.3551516830921173, -0.10327769815921783, -0.10759605467319489, -0.3227042853832245, 0.16545461118221283, 0.21519015729427338, -0.12076809257268906, 0.03994772583246231, -0.16090089082717896, 0.05882741138339043, -0.6941375732421875, 0.22997969388961792, -0.41208165884017944, 0.4932338297367096, -0.024453500285744667, -0.5100386738777161, -0.08591610193252563, -0.09307709336280823, -0.5221823453903198, 0.25856661796569824, 0.5778573751449585, 0.21456363797187805, -1.0216741561889648, 0.5350111722946167, 0.007012968882918358, 0.335796982049942, 0.16286824643611908, -0.5327862501144409, 0.05918628349900246, -0.47168999910354614, -0.48592349886894226, 0.32703202962875366, 0.7586758732795715, 0.2589987814426422, 0.9116892218589783, 0.2590661644935608, 0.2958298623561859, 0.16671310365200043, 0.584089457988739, 0.7119435667991638, -0.7710868120193481, -0.9374307990074158, -0.19881898164749146, 0.19998416304588318, -0.37548279762268066, -0.539320707321167, 0.6166438460350037, 0.8978620171546936, 0.7903794050216675, -0.4699503481388092, 1.1591168642044067, -0.2477026879787445, 0.9833966493606567, -0.11806479841470718, 0.401733934879303, -0.5676188468933105, -0.014915676787495613, 0.3065418303012848, -0.49477913975715637, -0.13221022486686707, 0.861681342124939, -0.08798005431890488, 0.16894638538360596, 0.7446035146713257, 0.9806098937988281, -0.6903228759765625, 0.9520512819290161, 0.7803769111633301, 0.5203503370285034, 0.21602417528629303, 0.4119889438152313, 0.74452143907547, -0.4742289185523987, 0.43389075994491577, -0.4684516489505768, -0.5514851212501526, -0.41313615441322327, -0.36358362436294556, -1.2261507511138916, -0.4565574526786804, -0.12666445970535278, -0.047056883573532104, 0.2421065717935562, 0.6831030249595642, 1.3693373203277588, -0.8934024572372437, -0.2331480234861374, -0.23946930468082428, -0.5035604238510132, -0.22182555496692657, -0.1172482818365097, 0.16200849413871765, -0.4603361487388611, -0.7903239130973816, 0.3887951672077179, 0.07544396817684174, 0.06023649498820305, -0.2100704461336136, 0.20456664264202118, 0.00624476745724678, 0.2677839398384094, 0.17357437312602997, 0.3885866403579712, 0.2673990726470947, -0.8957610130310059, -0.5021719932556152, -0.27472424507141113, -0.08065403252840042, 0.7090006470680237, -0.3209856450557709, 0.46972593665122986, -0.0050008720718324184, 0.9116387963294983, 0.768208384513855, -0.3989158868789673, 0.6469653248786926, -1.2198837995529175, 0.7798430919647217, 0.12855564057826996, 0.6358637809753418, 0.34043076634407043, -0.4568489193916321, 0.909850001335144, 0.3487381637096405, -0.7129412889480591, -1.0585603713989258, 0.1371598243713379, -1.1100825071334839, -0.2158350944519043, 0.9245572686195374, -0.12771789729595184, -0.7052788734436035, 0.11902612447738647, -0.15326733887195587, 0.13484741747379303, -0.26347291469573975, 0.9756606221199036, 0.5126671195030212, 0.39738908410072327, 0.025515761226415634, -0.689785361289978, 0.2714315950870514, 0.4595204293727875, -0.8263346552848816, -0.10759633034467697, 0.03689780831336975, 0.42815154790878296, 0.2660272717475891, 0.4553917348384857, 0.24515673518180847, 0.6104828715324402, 0.9571644067764282, 0.3625577390193939, 0.05900910869240761, -0.7251690626144409, 0.047803305089473724, 0.5467219352722168, -0.029866689816117287, -0.7693027257919312 ]
deepset/electra-base-squad2
deepset
"2023-09-27T12:04:02Z"
22,136
15
transformers
[ "transformers", "pytorch", "safetensors", "electra", "question-answering", "en", "dataset:squad_v2", "license:cc-by-4.0", "model-index", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: en license: cc-by-4.0 datasets: - squad_v2 model-index: - name: deepset/electra-base-squad2 results: - task: type: question-answering name: Question Answering dataset: name: squad_v2 type: squad_v2 config: squad_v2 split: validation metrics: - type: exact_match value: 77.6074 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYzE5NTRmMmUwYTk1MTI0NjM0ZmQwNDFmM2Y4Mjk4ZWYxOGVmOWI3ZGFiNWM4OTUxZDQ2ZjdmNmU3OTk5ZjRjYyIsInZlcnNpb24iOjF9.0VZRewdiovE4z3K5box5R0oTT7etpmd0BX44FJBLRFfot-uJ915b-bceSv3luJQ7ENPjaYSa7o7jcHlDzn3oAw - type: f1 value: 81.7181 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiY2VlMzM0Y2UzYjhhNTJhMTFiYWZmMDNjNjRiZDgwYzc5NWE3N2M4ZGFlYWQ0ZjVkZTE2MDU0YmMzMDc1MTY5MCIsInZlcnNpb24iOjF9.jRV58UxOM7CJJSsmxJuZvlt00jMGA1thp4aqtcFi1C8qViQ1kW7NYz8rg1gNTDZNez2UwPS1NgN_HnnwBHPbCQ - task: type: question-answering name: Question Answering dataset: name: squad type: squad config: plain_text split: validation metrics: - type: exact_match value: 80.407 name: Exact Match - type: f1 value: 88.942 name: F1 - task: type: question-answering name: Question Answering dataset: name: adversarial_qa type: adversarial_qa config: adversarialQA split: validation metrics: - type: exact_match value: 23.533 name: Exact Match - type: f1 value: 36.521 name: F1 - task: type: question-answering name: Question Answering dataset: name: squad_adversarial type: squad_adversarial config: AddOneSent split: validation metrics: - type: exact_match value: 73.867 name: Exact Match - type: f1 value: 81.381 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts amazon type: squadshifts config: amazon split: test metrics: - type: exact_match value: 64.512 name: Exact Match - type: f1 value: 80.166 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts new_wiki type: squadshifts config: new_wiki split: test metrics: - type: exact_match value: 76.568 name: Exact Match - type: f1 value: 87.706 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts nyt type: squadshifts config: nyt split: test metrics: - type: exact_match value: 77.884 name: Exact Match - type: f1 value: 87.858 name: F1 - task: type: question-answering name: Question Answering dataset: name: squadshifts reddit type: squadshifts config: reddit split: test metrics: - type: exact_match value: 64.399 name: Exact Match - type: f1 value: 78.096 name: F1 --- # electra-base for QA ## Overview **Language model:** electra-base **Language:** English **Downstream-task:** Extractive QA **Training data:** SQuAD 2.0 **Eval data:** SQuAD 2.0 **Code:** See [example](https://github.com/deepset-ai/FARM/blob/master/examples/question_answering.py) in [FARM](https://github.com/deepset-ai/FARM/blob/master/examples/question_answering.py) **Infrastructure**: 1x Tesla v100 ## Hyperparameters ``` seed=42 batch_size = 32 n_epochs = 5 base_LM_model = "google/electra-base-discriminator" max_seq_len = 384 learning_rate = 1e-4 lr_schedule = LinearWarmup warmup_proportion = 0.1 doc_stride=128 max_query_length=64 ``` ## Performance Evaluated on the SQuAD 2.0 dev set with the [official eval script](https://worksheets.codalab.org/rest/bundles/0x6b567e1cf2e041ec80d7098f031c5c9e/contents/blob/). ``` "exact": 77.30144024256717, "f1": 81.35438272008543, "total": 11873, "HasAns_exact": 74.34210526315789, "HasAns_f1": 82.45961302894314, "HasAns_total": 5928, "NoAns_exact": 80.25231286795626, "NoAns_f1": 80.25231286795626, "NoAns_total": 5945 ``` ## Usage ### In Transformers ```python from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline model_name = "deepset/electra-base-squad2" # a) Get predictions nlp = pipeline('question-answering', model=model_name, tokenizer=model_name) QA_input = { 'question': 'Why is model conversion important?', 'context': 'The option to convert models between FARM and transformers gives freedom to the user and lets people easily switch between frameworks.' } res = nlp(QA_input) # b) Load model & tokenizer model = AutoModelForQuestionAnswering.from_pretrained(model_name) tokenizer = AutoTokenizer.from_pretrained(model_name) ``` ### In FARM ```python from farm.modeling.adaptive_model import AdaptiveModel from farm.modeling.tokenization import Tokenizer from farm.infer import Inferencer model_name = "deepset/electra-base-squad2" # a) Get predictions nlp = Inferencer.load(model_name, task_type="question_answering") QA_input = [{"questions": ["Why is model conversion important?"], "text": "The option to convert models between FARM and transformers gives freedom to the user and lets people easily switch between frameworks."}] res = nlp.inference_from_dicts(dicts=QA_input) # b) Load model & tokenizer model = AdaptiveModel.convert_from_transformers(model_name, device="cpu", task_type="question_answering") tokenizer = Tokenizer.load(model_name) ``` ### In haystack For doing QA at scale (i.e. many docs instead of a single paragraph), you can load the model also in [haystack](https://github.com/deepset-ai/haystack/): ```python reader = FARMReader(model_name_or_path="deepset/electra-base-squad2") # or reader = TransformersReader(model="deepset/electra-base-squad2",tokenizer="deepset/electra-base-squad2") ``` ## Authors Vaishali Pal `vaishali.pal [at] deepset.ai` Branden Chan: `branden.chan [at] deepset.ai` Timo Möller: `timo.moeller [at] deepset.ai` Malte Pietsch: `malte.pietsch [at] deepset.ai` Tanay Soni: `tanay.soni [at] deepset.ai` ## About us ![deepset logo](https://workablehr.s3.amazonaws.com/uploads/account/logo/476306/logo) We bring NLP to the industry via open source! Our focus: Industry specific language models & large scale QA systems. Some of our work: - [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert) - [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad) - [FARM](https://github.com/deepset-ai/FARM) - [Haystack](https://github.com/deepset-ai/haystack/) Get in touch: [Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Discord](https://haystack.deepset.ai/community/join) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai) By the way: [we're hiring!](http://www.deepset.ai/jobs)
[ -0.37610873579978943, -0.6521773338317871, 0.3435158133506775, 0.10001755505800247, 0.1412104219198227, 0.1391678750514984, -0.22477221488952637, -0.3772146999835968, 0.10890772938728333, 0.4403938055038452, -0.6693103909492493, -0.6648159027099609, -0.16681399941444397, 0.11279155313968658, -0.40468233823776245, 0.9833266735076904, -0.04165571182966232, -0.04423590749502182, -0.07338012009859085, -0.1109880656003952, -0.3239576816558838, -0.48897165060043335, -0.7051835656166077, -0.42033523321151733, 0.18780209124088287, 0.49983182549476624, 0.5669405460357666, 0.09943308681249619, 0.43233928084373474, 0.34410712122917175, -0.058434631675481796, 0.2132311314344406, -0.2617446780204773, 0.277238130569458, -0.1385507434606552, -0.5492073893547058, -0.4515298306941986, -0.15468236804008484, 0.5387703776359558, 0.2869811952114105, -0.21959146857261658, 0.5519800186157227, -0.2748447060585022, 0.7670458555221558, -0.5471081733703613, 0.2314496636390686, -0.7245894074440002, -0.24458923935890198, 0.2657913863658905, 0.2216985672712326, -0.28372883796691895, -0.2620986998081207, 0.23116609454154968, -0.5454886555671692, 0.3089657127857208, -0.2307993322610855, 1.4917947053909302, 0.27835360169410706, -0.14322489500045776, -0.13292263448238373, -0.6609183549880981, 0.7964796423912048, -1.2506996393203735, 0.10840218514204025, 0.41471222043037415, 0.352895051240921, 0.10245048254728317, -0.9069189429283142, -0.7896317839622498, -0.04759300500154495, -0.011164139024913311, 0.1904788315296173, -0.26724979281425476, -0.07441096007823944, 0.14162211120128632, 0.4026571214199066, -0.5005927681922913, 0.15345202386379242, -0.5471585988998413, -0.12757347524166107, 0.8792526721954346, 0.17592057585716248, 0.313984751701355, -0.224189892411232, 0.020342951640486717, -0.3383592665195465, -0.569278359413147, 0.2671620845794678, 0.30276042222976685, 0.3759381175041199, -0.19706112146377563, 0.5626372694969177, -0.5098135471343994, 0.42981842160224915, 0.2845984101295471, 0.42765048146247864, 0.698005735874176, -0.46068862080574036, -0.3151577413082123, -0.12330257892608643, 1.084875464439392, 0.27259519696235657, 0.08712027221918106, 0.009747193194925785, -0.2648980915546417, -0.10524861514568329, 0.25410857796669006, -0.891323983669281, -0.30205756425857544, 0.6774048805236816, -0.2753366529941559, -0.4951074719429016, -0.05857609212398529, -0.9364537000656128, -0.3080656826496124, 0.022674039006233215, 0.5243750214576721, -0.4306246340274811, -0.5640468597412109, 0.2607991397380829, -0.0490654781460762, 0.6993939280509949, 0.024378016591072083, -0.9192816615104675, 0.1945142298936844, 0.4995228946208954, 0.7096318006515503, 0.22031782567501068, -0.40953677892684937, -0.28513017296791077, -0.27737656235694885, -0.21352972090244293, 0.6814081072807312, -0.15386278927326202, 0.0692126452922821, 0.0668707862496376, 0.28760677576065063, -0.27647337317466736, -0.49552473425865173, 0.3747464418411255, -0.7381653189659119, 0.41110503673553467, -0.062204472720623016, -0.5374090075492859, -0.4376298189163208, 0.3072587847709656, -0.7362001538276672, 1.1818839311599731, 0.375326544046402, -0.5078113675117493, 0.13050153851509094, -0.7739506959915161, -0.3429347276687622, 0.03139675036072731, 0.1067158579826355, -0.5350123643875122, -0.21708467602729797, 0.3966062366962433, 0.4836048185825348, -0.21835103631019592, 0.25674569606781006, -0.12717105448246002, -0.30030325055122375, 0.2062169462442398, -0.07848528027534485, 1.038642406463623, 0.14103364944458008, -0.5918551087379456, 0.2253098338842392, -0.7977513074874878, 0.3951607048511505, 0.14876854419708252, -0.2274821549654007, -0.017975037917494774, 0.1334945261478424, 0.1398317515850067, 0.37020447850227356, 0.38990169763565063, -0.46307313442230225, 0.03271815925836563, -0.8235703706741333, 0.7336061000823975, 0.6334714293479919, -0.07623174786567688, 0.4243186116218567, -0.24107693135738373, 0.649297297000885, 0.05506044626235962, 0.04052623733878136, 0.15904739499092102, -0.3937855362892151, -1.2110874652862549, -0.016322020441293716, 0.4479481875896454, 0.8506976962089539, -0.8021142482757568, 0.891120433807373, -0.1801416128873825, -0.744975745677948, -1.038447380065918, 0.09653614461421967, 0.19334019720554352, 0.3753388822078705, 0.5258544087409973, 0.13950584828853607, -0.8442057967185974, -1.0154110193252563, 0.017921842634677887, -0.25670021772384644, -0.09092339128255844, 0.18709994852542877, 0.863008975982666, -0.4532719552516937, 0.917147696018219, -0.4768713712692261, -0.3229805827140808, -0.5532419085502625, -0.15823949873447418, 0.7373549938201904, 0.5989168286323547, 0.5586424469947815, -0.7404770851135254, -0.4516271948814392, 0.006181574426591396, -0.6626831293106079, 0.1830626279115677, -0.08942217379808426, -0.15493622422218323, 0.1310064047574997, 0.3483245372772217, -0.7972490787506104, 0.08312248438596725, 0.660859227180481, -0.5831769108772278, 0.586877703666687, 0.02090718038380146, 0.07329113036394119, -1.5156553983688354, 0.23749350011348724, -0.07391738891601562, -0.17827102541923523, -0.4857831597328186, 0.31356266140937805, -0.08141495287418365, -0.05282125994563103, -0.5685890316963196, 0.5414830446243286, -0.20384985208511353, 0.19270260632038116, 0.1098635122179985, -0.09578855335712433, 0.13512501120567322, 0.5845432281494141, -0.17299407720565796, 1.0948355197906494, 0.6034819483757019, -0.7184953093528748, 0.6316460371017456, 0.5246156454086304, -0.46937960386276245, 0.07258221507072449, -0.9245453476905823, 0.19157063961029053, 0.10222923755645752, 0.0701005682349205, -0.9147632718086243, -0.1692301630973816, 0.253213107585907, -0.643273115158081, 0.060416292399168015, -0.031697068363428116, -0.5675747990608215, -0.45742619037628174, -0.37507569789886475, 0.17400607466697693, 0.846976101398468, -0.3607117235660553, 0.5082064867019653, 0.3589140772819519, -0.11539099365472794, -0.5377235412597656, -0.7030345797538757, -0.12504452466964722, -0.07989081740379333, -0.5638396143913269, 0.2791629135608673, 0.012572960928082466, -0.15325726568698883, 0.16351653635501862, 0.06582950800657272, -0.4380284249782562, 0.1272236704826355, 0.00769592123106122, 0.38903579115867615, -0.4617924988269806, 0.27307671308517456, 0.03692208603024483, -0.017298545688390732, 0.10175223648548126, -0.18311765789985657, 0.7575727701187134, -0.6950086355209351, -0.004106349777430296, -0.5547365546226501, 0.2288946658372879, 0.6636218428611755, -0.45877453684806824, 0.8580490350723267, 0.7037582993507385, -0.3380189538002014, -0.21780851483345032, -0.6070325374603271, -0.14284101128578186, -0.5062853693962097, 0.6766397356987, -0.28007078170776367, -0.727307140827179, 0.7112511992454529, 0.16985277831554413, 0.3103315234184265, 1.0844775438308716, 0.6235089302062988, -0.24154937267303467, 1.14822518825531, 0.6193864941596985, -0.11392848938703537, 0.43504026532173157, -0.9360445141792297, 0.12275515496730804, -0.9720261096954346, -0.2509828507900238, -0.6270646452903748, -0.2581784129142761, -0.5853692293167114, -0.2507900595664978, 0.10060075670480728, 0.07861433923244476, -0.5778470039367676, 0.4790568947792053, -0.8001590371131897, 0.36894941329956055, 0.6378974914550781, 0.12534241378307343, 0.03254585340619087, -0.0452277772128582, 0.12882788479328156, 0.2326716035604477, -0.7557376623153687, -0.5255856513977051, 1.1328946352005005, 0.35665544867515564, 0.49322062730789185, 0.0031593688763678074, 0.7477450966835022, 0.07891207188367844, 0.017376916483044624, -0.7898954153060913, 0.4927108883857727, -0.1082385927438736, -0.769139289855957, -0.4946820139884949, -0.38588011264801025, -0.9653011560440063, 0.17765353620052338, -0.08694808185100555, -0.679667055606842, 0.41514554619789124, -0.049548182636499405, -0.5275596976280212, 0.41302183270454407, -0.7765654921531677, 1.0004780292510986, -0.12426192313432693, -0.007492344360798597, -0.14654527604579926, -0.5497668385505676, 0.178901806473732, 0.08936731517314911, 0.11777129769325256, -0.22842754423618317, 0.0690373033285141, 0.8980429768562317, -0.5515606999397278, 0.8537530303001404, -0.015680629760026932, 0.06802772730588913, 0.4610738158226013, -0.05285296216607094, 0.41258499026298523, 0.14204291999340057, -0.3813052773475647, 0.2988458275794983, 0.3404804766178131, -0.41103285551071167, -0.38653564453125, 0.6429716348648071, -1.0757620334625244, -0.27111637592315674, -0.4488111138343811, -0.47182178497314453, -0.20295864343643188, 0.32671284675598145, 0.4544963240623474, 0.22629570960998535, -0.01776784472167492, 0.31677454710006714, 0.7008380889892578, -0.25815659761428833, 0.49895772337913513, 0.4982989728450775, -0.11168975383043289, -0.3921475410461426, 0.8459885120391846, -0.13951362669467926, 0.18026308715343475, 0.3892958164215088, 0.01703755371272564, -0.42308011651039124, -0.49368318915367126, -0.581856906414032, 0.171519473195076, -0.6168737411499023, -0.4198397696018219, -0.6474092602729797, -0.5457550287246704, -0.6026951670646667, 0.08067445456981659, -0.5863577723503113, -0.3238227963447571, -0.5242254734039307, -0.2761663794517517, 0.720660924911499, 0.4189738631248474, 0.117164246737957, 0.14233040809631348, -0.7846483588218689, 0.3145589530467987, 0.40754494071006775, 0.3026224374771118, -0.04675716161727905, -0.544205367565155, -0.26662832498550415, 0.3462345004081726, -0.1675478219985962, -0.8901281356811523, 0.5522876381874084, 0.2524133324623108, 0.3800661265850067, -0.07930868864059448, 0.10498137772083282, 0.4770006239414215, -0.3462010324001312, 0.9499189257621765, 0.07102809846401215, -0.9825186133384705, 0.6921002864837646, -0.23918582499027252, 0.33493268489837646, 1.0254437923431396, 0.09511911123991013, -0.570952296257019, -0.29250067472457886, -0.7440186142921448, -1.2132056951522827, 0.679905116558075, 0.2950773239135742, 0.3081728219985962, 0.030472785234451294, 0.22940535843372345, -0.05433399975299835, 0.3105402886867523, -0.6956437826156616, -0.313814640045166, -0.20938794314861298, -0.41610607504844666, -0.023847026750445366, -0.1411927044391632, -0.04900933429598808, -0.5522754788398743, 1.0412487983703613, -0.017447087913751602, 0.2772175073623657, 0.44826826453208923, -0.260861337184906, 0.03944335877895355, 0.45580747723579407, 0.35329994559288025, 0.8200436234474182, -0.3174761235713959, -0.24687545001506805, 0.3842989206314087, -0.39980384707450867, 0.17452120780944824, 0.3464144170284271, -0.5713245868682861, 0.18669059872627258, 0.3371274173259735, 0.8832769393920898, 0.013233193196356297, -0.7439538836479187, 0.45806628465652466, 0.07197224348783493, -0.3999689519405365, -0.5997179746627808, 0.11105582863092422, 0.08242235332727432, 0.39496520161628723, 0.42161670327186584, -0.06025867909193039, 0.05917768552899361, -0.4111121892929077, 0.1565917432308197, 0.20780374109745026, -0.46437060832977295, -0.2186688482761383, 0.6181081533432007, 0.3608834147453308, -0.4095839262008667, 0.9500762224197388, -0.3391595780849457, -0.7123816013336182, 1.0730116367340088, 0.33010509610176086, 1.1754220724105835, -0.02469703182578087, 0.5237753391265869, 0.5279682874679565, 0.4073270559310913, 0.00496806763112545, 0.5509327054023743, 0.31122419238090515, -0.9250295758247375, -0.53643399477005, -0.705119252204895, -0.3140023648738861, 0.49259164929389954, -0.6664918661117554, 0.1194886788725853, -0.31140613555908203, -0.05589933320879936, -0.06799125671386719, 0.20574481785297394, -0.9638650417327881, 0.11276225745677948, -0.12961553037166595, 0.9140428304672241, -0.692743718624115, 0.5597677230834961, 0.9880938529968262, -0.8254379034042358, -1.167673945426941, -0.2448606938123703, -0.49193134903907776, -0.8374104499816895, 0.45141977071762085, 0.18906942009925842, 0.11058457940816879, 0.3617028295993805, -0.6569992303848267, -0.8692024946212769, 1.2226117849349976, 0.1459415853023529, -0.5739372372627258, -0.3545869290828705, -0.08589023351669312, 0.5996505618095398, -0.286807119846344, 0.3352963626384735, 0.6780071258544922, 0.44920894503593445, -0.20888689160346985, -0.9986067414283752, 0.2174370139837265, -0.48936325311660767, -0.20835866034030914, 0.09486348927021027, -0.668348491191864, 0.9437237977981567, -0.31238704919815063, -0.057183749973773956, 0.19281063973903656, 0.553612232208252, 0.2784130573272705, 0.09080260992050171, 0.45042359828948975, 0.5334051251411438, 0.7338224649429321, -0.04497115686535835, 0.9321159720420837, -0.23135848343372345, 0.8583817481994629, 1.015945315361023, -0.21415169537067413, 1.0124508142471313, 0.33200138807296753, -0.4014788568019867, 0.9401758909225464, 0.6755686402320862, -0.40033087134361267, 0.4908584952354431, 0.028401633724570274, -0.060024671256542206, -0.2870756983757019, 0.13844673335552216, -0.7338268756866455, 0.41024908423423767, 0.1562362164258957, -0.3294237554073334, -0.19318532943725586, -0.19350998103618622, -0.1383063942193985, -0.12957115471363068, -0.21772408485412598, 0.7443576455116272, -0.07436440885066986, -0.5544834733009338, 0.7855403423309326, -0.08538444340229034, 0.7817962765693665, -0.7203382849693298, -0.11347614228725433, -0.0833696573972702, 0.33371856808662415, -0.30615073442459106, -0.7052041292190552, 0.05356205627322197, -0.19820992648601532, -0.34999603033065796, -0.11525733023881912, 0.6680632829666138, -0.4723598062992096, -0.7828737497329712, 0.11260531097650528, 0.6486499905586243, 0.11255433410406113, -0.18973328173160553, -1.0033758878707886, -0.2868547737598419, 0.03562263399362564, -0.4811367988586426, 0.0745188295841217, 0.17984415590763092, 0.2906106412410736, 0.7175047397613525, 0.7570009827613831, 0.17925450205802917, -0.0034002389293164015, 0.12629976868629456, 0.9409520030021667, -0.7160975933074951, -0.42036131024360657, -0.784432590007782, 0.7375036478042603, -0.24202696979045868, -0.6148725748062134, 0.5974596738815308, 0.6002197861671448, 0.8551337122917175, -0.21093964576721191, 0.8197672963142395, -0.2671017646789551, 0.4715445339679718, -0.4852537512779236, 1.0174585580825806, -0.563007652759552, 0.1372329294681549, -0.03367051109671593, -0.7573058009147644, 0.07229798287153244, 0.7086569666862488, -0.21909679472446442, -0.003952009603381157, 0.8159948587417603, 0.7857120633125305, 0.06087903678417206, -0.26409026980400085, -0.034307487308979034, 0.383263498544693, 0.3354051411151886, 0.8081476092338562, 0.7813721299171448, -0.8561457395553589, 0.6635410785675049, -0.5124056339263916, 0.018731044605374336, -0.11512155085802078, -0.5120835900306702, -0.8815283179283142, -0.5868533253669739, -0.341339647769928, -0.6825599074363708, -0.08029363304376602, 0.9409222602844238, 0.743161678314209, -1.2153525352478027, -0.21300724148750305, -0.2947811484336853, 0.30519556999206543, -0.5055931806564331, -0.37128227949142456, 0.5071752071380615, -0.44343510270118713, -0.7084431648254395, 0.3817647099494934, -0.23313769698143005, -0.20543904602527618, -0.29500138759613037, 0.08153074979782104, -0.5524934530258179, -0.12705294787883759, 0.4817236661911011, 0.41692015528678894, -0.6846789121627808, -0.15421707928180695, 0.19978471100330353, -0.15071828663349152, 0.034846823662519455, 0.41336092352867126, -0.9194598197937012, 0.21969729661941528, 0.64442378282547, 0.6947401762008667, 0.4146440327167511, -0.2572752833366394, 0.7194787859916687, -0.512190580368042, 0.12812213599681854, 0.5991955995559692, 0.25476235151290894, 0.25629737973213196, -0.5223996639251709, 0.6343990564346313, 0.031368598341941833, -0.5659883618354797, -0.9390292763710022, 0.0124184750020504, -0.8680762648582458, -0.2823924124240875, 1.3395572900772095, 0.024712160229682922, -0.193573459982872, -0.026528552174568176, -0.17520464956760406, 0.2915934920310974, -0.5333357453346252, 0.6838288307189941, 0.6631168127059937, 0.13961166143417358, -0.0867871567606926, -0.6807861924171448, 0.45688873529434204, 0.46326398849487305, -1.0135637521743774, -0.18248629570007324, 0.3084552586078644, 0.45022183656692505, 0.16427993774414062, 0.6022402048110962, 0.1583009660243988, 0.4970644414424896, -0.20005977153778076, 0.3608938753604889, -0.2142936736345291, 0.08169412612915039, -0.43977081775665283, -0.01800253987312317, -0.23375394940376282, -0.4680473208427429 ]
facebook/dragon-plus-context-encoder
facebook
"2023-09-27T17:26:22Z"
22,072
17
transformers
[ "transformers", "pytorch", "bert", "fill-mask", "feature-extraction", "arxiv:2302.07452", "autotrain_compatible", "endpoints_compatible", "region:us" ]
feature-extraction
"2023-02-15T18:19:38Z"
--- tags: - feature-extraction pipeline_tag: feature-extraction --- DRAGON+ is a BERT-base sized dense retriever initialized from [RetroMAE](https://huggingface.co/Shitao/RetroMAE) and further trained on the data augmented from MS MARCO corpus, following the approach described in [How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrieval](https://arxiv.org/abs/2302.07452). <p align="center"> <img src="https://raw.githubusercontent.com/facebookresearch/dpr-scale/main/dragon/images/teaser.png" width="600"> </p> The associated GitHub repository is available here https://github.com/facebookresearch/dpr-scale/tree/main/dragon. We use asymmetric dual encoder, with two distinctly parameterized encoders. The following models are also available: Model | Initialization | MARCO Dev | BEIR | Query Encoder Path | Context Encoder Path |---|---|---|---|---|--- DRAGON+ | Shitao/RetroMAE| 39.0 | 47.4 | [facebook/dragon-plus-query-encoder](https://huggingface.co/facebook/dragon-plus-query-encoder) | [facebook/dragon-plus-context-encoder](https://huggingface.co/facebook/dragon-plus-context-encoder) DRAGON-RoBERTa | RoBERTa-base | 39.4 | 47.2 | [facebook/dragon-roberta-query-encoder](https://huggingface.co/facebook/dragon-roberta-query-encoder) | [facebook/dragon-roberta-context-encoder](https://huggingface.co/facebook/dragon-roberta-context-encoder) ## Usage (HuggingFace Transformers) Using the model directly available in HuggingFace transformers . ```python import torch from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained('facebook/dragon-plus-query-encoder') query_encoder = AutoModel.from_pretrained('facebook/dragon-plus-query-encoder') context_encoder = AutoModel.from_pretrained('facebook/dragon-plus-context-encoder') # We use msmarco query and passages as an example query = "Where was Marie Curie born?" contexts = [ "Maria Sklodowska, later known as Marie Curie, was born on November 7, 1867.", "Born in Paris on 15 May 1859, Pierre Curie was the son of Eugène Curie, a doctor of French Catholic origin from Alsace." ] # Apply tokenizer query_input = tokenizer(query, return_tensors='pt') ctx_input = tokenizer(contexts, padding=True, truncation=True, return_tensors='pt') # Compute embeddings: take the last-layer hidden state of the [CLS] token query_emb = query_encoder(**query_input).last_hidden_state[:, 0, :] ctx_emb = context_encoder(**ctx_input).last_hidden_state[:, 0, :] # Compute similarity scores using dot product score1 = query_emb @ ctx_emb[0] # 396.5625 score2 = query_emb @ ctx_emb[1] # 393.8340 ```
[ -0.40289542078971863, -0.6573846936225891, 0.1533062905073166, 0.3243199288845062, -0.10645316541194916, -0.16153347492218018, -0.22834162414073944, -0.4720609784126282, 0.6552321314811707, 0.2955295741558075, -0.8001101613044739, -0.5117479562759399, -0.5688394904136658, -0.04494616016745567, -0.33158257603645325, 0.8611835241317749, 0.050812844187021255, 0.24453845620155334, 0.09481170028448105, -0.15394729375839233, 0.06119745224714279, -0.6875380277633667, -1.0077483654022217, -0.26015591621398926, 0.6453083157539368, -0.07914546132087708, 0.8042709827423096, 0.8292507529258728, 0.31012171506881714, 0.3921859562397003, -0.31247976422309875, 0.25431913137435913, -0.5619122982025146, -0.11805736273527145, 0.00846254825592041, -0.4011997580528259, -0.5062737464904785, -0.04094979912042618, 0.6245690584182739, 0.6114279627799988, 0.11789765954017639, 0.10547208786010742, 0.05752000957727432, 0.5248764753341675, -0.5212448835372925, -0.021605677902698517, -0.502507209777832, 0.25860488414764404, 0.12930046021938324, -0.10139891505241394, -0.2090245485305786, -0.577743649482727, 0.0990295261144638, -0.6727027297019958, 0.31435149908065796, -0.20858357846736908, 1.298570156097412, 0.1991049200296402, -0.4480647146701813, -0.39532071352005005, -0.30023255944252014, 0.7242013812065125, -0.6351191997528076, 0.40453046560287476, 0.264191597700119, 0.18681178987026215, -0.17690008878707886, -1.0154472589492798, -0.7640236020088196, -0.2269706428050995, -0.1978108286857605, -0.1500912457704544, 0.021288612857460976, 0.010673015378415585, 0.33656132221221924, 0.49721458554267883, -0.6165603995323181, -0.11347249150276184, -0.5188078880310059, -0.33907878398895264, 0.7901024222373962, 0.076488196849823, 0.5141476392745972, -0.24810732901096344, -0.44533583521842957, -0.32856929302215576, -0.5645610690116882, 0.3163810670375824, 0.28803351521492004, 0.2575567662715912, -0.2962687611579895, 0.6608921885490417, -0.0834687352180481, 0.8187425136566162, 0.5782911777496338, 0.08497191965579987, 0.6771887540817261, -0.3149636387825012, -0.18266579508781433, 0.1430140882730484, 0.9312930703163147, 0.31094640493392944, 0.1863948106765747, -0.1072026789188385, 0.0011702972697094083, 0.005694389808923006, 0.05953565984964371, -1.1574606895446777, -0.1220456212759018, 0.36908888816833496, -0.8594597578048706, -0.2763323187828064, 0.22467318177223206, -0.3252909779548645, -0.30690711736679077, -0.14683124423027039, 0.646948516368866, -0.4514492452144623, -0.45919880270957947, 0.36800017952919006, -0.43602490425109863, 0.5411708354949951, -0.20341049134731293, -0.929826021194458, 0.17436960339546204, 0.7730044722557068, 0.6433344483375549, -0.021432170644402504, -0.40974709391593933, -0.27586838603019714, -0.06091129779815674, -0.31312766671180725, 0.5000051259994507, -0.4892263114452362, -0.45239442586898804, 0.030410801991820335, 0.4735417068004608, -0.22946323454380035, -0.6147421002388, 0.9868305325508118, -0.4303775429725647, 0.27228283882141113, -0.5644075870513916, -0.6923350095748901, -0.3429044187068939, 0.3304024934768677, -0.7430788278579712, 1.0713108777999878, 0.23646041750907898, -0.7261286377906799, 0.5410562753677368, -0.42578598856925964, -0.44538405537605286, -0.028538484126329422, -0.2179139256477356, -0.4179210364818573, -0.07252173125743866, 0.40886062383651733, 0.7500481009483337, 0.16027545928955078, 0.06331425905227661, -0.6642327904701233, -0.753655731678009, 0.25505146384239197, -0.15912213921546936, 1.3305120468139648, 0.19488154351711273, -0.40810415148735046, 0.045971304178237915, -0.8904410004615784, 0.24892206490039825, 0.0427267961204052, -0.43612974882125854, -0.314444363117218, -0.04591767489910126, 0.16320981085300446, 0.2324809581041336, 0.5698378682136536, -0.8203470706939697, 0.3637356162071228, -0.4326433539390564, 0.4918777644634247, 0.4007328748703003, -0.046546369791030884, 0.4235699474811554, -0.2089531421661377, -0.02248305268585682, -0.08647403866052628, 0.29101768136024475, -0.09396756440401077, -0.41903451085090637, -0.6804009675979614, -0.3549160361289978, -0.0014689170056954026, 0.43518492579460144, -0.7373912334442139, 0.7460147738456726, -0.31235066056251526, -0.6453664302825928, -0.7398793697357178, -0.09839676320552826, 0.28562507033348083, 0.2793215811252594, 0.3284745514392853, -0.1813797503709793, -0.6513243913650513, -0.7966482043266296, -0.1768716275691986, -0.03645637631416321, -0.17326505482196808, 0.6551849842071533, 0.40914660692214966, -0.4277305006980896, 0.5813631415367126, -0.5272555351257324, -0.17863799631595612, -0.13805502653121948, -0.10509678721427917, 0.6963180303573608, 0.8496382236480713, 0.8099821209907532, -1.0380576848983765, -0.5489668250083923, -0.06172439455986023, -0.8799326419830322, 0.45769211649894714, -0.09941162914037704, -0.2501371204853058, -0.13029368221759796, 0.13137701153755188, -0.9608742594718933, 0.3559894561767578, 0.45008352398872375, -0.6052897572517395, 0.49675506353378296, -0.2700357437133789, 0.3694561719894409, -1.2829248905181885, 0.032321613281965256, 0.043998219072818756, 0.05699615553021431, -0.5025299191474915, 0.24822093546390533, 0.2469601184129715, -0.15114234387874603, -0.45420047640800476, 0.5131285786628723, -0.5442401170730591, -0.078379787504673, -0.05524551495909691, -0.146969273686409, 0.17348390817642212, 0.5356391072273254, 0.16371016204357147, 0.5574946403503418, 0.774810791015625, -0.7308331727981567, 0.7655237913131714, 0.26209756731987, -0.19840970635414124, 0.4594528079032898, -0.7867861986160278, 0.20691977441310883, 0.10019873827695847, 0.2251267433166504, -0.8685094714164734, -0.17838531732559204, 0.28201910853385925, -0.8756939172744751, 0.4653562009334564, -0.10255654901266098, -0.5654105544090271, -0.626518964767456, -0.7120792269706726, 0.44905269145965576, 0.3143864870071411, -0.9495481252670288, 0.6337896585464478, 0.28085944056510925, 0.2505857050418854, -0.8455188274383545, -0.9818358421325684, -0.05326429009437561, 0.002721100579947233, -0.9201512336730957, 0.7321374416351318, -0.19277052581310272, 0.27068087458610535, 0.368170827627182, 0.0726325511932373, -0.4605255126953125, -0.1893874555826187, 0.11491469293832779, 0.27846452593803406, -0.4214951992034912, -0.32943177223205566, 0.14388948678970337, -0.02201450802385807, 0.18825843930244446, -0.34943222999572754, 0.6147729158401489, -0.0736984834074974, -0.36812156438827515, -0.5819959044456482, 0.11595834046602249, 0.3492470681667328, -0.1268097460269928, 0.8343614935874939, 1.1960389614105225, -0.6150693893432617, -0.18328827619552612, -0.5438944101333618, -0.28524601459503174, -0.5960479974746704, 0.5290333032608032, -0.42946213483810425, -1.0169048309326172, 0.7825965881347656, 0.374652624130249, -0.2033323496580124, 0.4309666156768799, 0.6284359097480774, 0.030631478875875473, 1.2100751399993896, 0.5925154089927673, -0.3176634907722473, 0.4320054352283478, -0.661789059638977, -0.007703237235546112, -0.7726916074752808, -0.5552836656570435, -0.38934028148651123, -0.5231865048408508, -0.8260525465011597, -0.20148351788520813, 0.09405001252889633, 0.005268151871860027, -0.47424429655075073, 0.804679274559021, -0.9560956954956055, 0.31754636764526367, 0.5760937929153442, 0.4648393392562866, -0.2704354226589203, 0.12029258906841278, 0.03000640869140625, -0.1448148488998413, -0.4977068305015564, 0.19594311714172363, 1.02277410030365, 0.129543736577034, 0.7796468138694763, -0.09712851792573929, 0.6960540413856506, 0.05698764696717262, -0.054476771503686905, -0.6428572535514832, 0.47420188784599304, -0.3929062783718109, -0.8857415318489075, 0.04680716246366501, -0.533607006072998, -0.8830526471138, 0.212283656001091, -0.27049195766448975, -0.7780988216400146, 0.6860212087631226, -0.10369022190570831, -0.4404880404472351, 0.37129905819892883, -0.5565934181213379, 0.8760687112808228, -0.3453349173069, -0.4641663730144501, -0.07427124679088593, -0.515504777431488, 0.20464657247066498, 0.3929173946380615, -0.19250443577766418, 0.25021985173225403, -0.06198208034038544, 0.595061719417572, -0.23044191300868988, 0.7053113579750061, -0.4432987868785858, 0.20415888726711273, 0.37221238017082214, -0.12442085891962051, 0.37298882007598877, 0.03217320144176483, -0.16613708436489105, -0.0010988927679136395, 0.1379166692495346, -0.40411582589149475, -0.6186082363128662, 1.0386353731155396, -0.9632843136787415, -0.16068123281002045, -0.10834648460149765, -0.40136387944221497, 0.17195717990398407, 0.29113054275512695, 0.5407648086547852, 0.6174850463867188, 0.1748518943786621, 0.5379731059074402, 0.8325088024139404, -0.5277973413467407, 0.3836140036582947, 0.35933998227119446, -0.15096575021743774, -0.5751968622207642, 1.1393828392028809, 0.27833694219589233, -0.2528759241104126, 0.4805329442024231, -0.008108203299343586, -0.5182868242263794, -0.2565346658229828, -0.3065187633037567, 0.4190913438796997, -0.598504364490509, -0.09017304331064224, -0.6891165971755981, -0.6393002867698669, -0.4556325078010559, -0.15838417410850525, -0.40302184224128723, -0.397466778755188, -0.530601978302002, -0.2791464030742645, 0.2690238356590271, 0.42205753922462463, -0.21681110560894012, 0.14992184937000275, -0.7161178588867188, 0.4095751643180847, 0.24432259798049927, 0.39058205485343933, -0.06912289559841156, -0.5177751183509827, -0.19633281230926514, -0.008198649622499943, -0.03182169049978256, -0.8248412609100342, 0.45385390520095825, 0.21722574532032013, 0.7781509757041931, 0.5984490513801575, -0.12986387312412262, 0.8893751502037048, -0.26991888880729675, 0.9348447322845459, 0.0038834773004055023, -0.6792008280754089, 0.2131907194852829, -0.2502403259277344, -0.07377395033836365, 0.3915172219276428, 0.5215421915054321, -0.41677215695381165, -0.013483641669154167, -0.5447539687156677, -1.0010019540786743, 0.6228605508804321, 0.038377560675144196, 0.5231228470802307, -0.04371603950858116, 0.7748004198074341, -0.029166506603360176, 0.10412777960300446, -0.9205297231674194, -0.6408981680870056, -0.3642718195915222, -0.20973089337348938, 0.3016919493675232, -0.55437171459198, 0.13239724934101105, -0.7101311087608337, 0.702494740486145, 0.14107412099838257, 0.5088958144187927, 0.337083637714386, 0.06772417575120926, 0.060296401381492615, -0.260284423828125, 0.4021712839603424, 0.509379506111145, -0.387809693813324, -0.21661674976348877, 0.12105490267276764, -0.5005999207496643, -0.17086152732372284, 0.5140904188156128, -0.20829695463180542, 0.2167401760816574, 0.44303661584854126, 0.8039503693580627, 0.26438242197036743, -0.20573432743549347, 0.6989184021949768, -0.12884066998958588, -0.2935344874858856, -0.5258247256278992, 0.05964617058634758, 0.21546612679958344, 0.4099228084087372, 0.6474018096923828, -0.04745905473828316, 0.34580618143081665, -0.21587243676185608, 0.5118662714958191, 0.443801611661911, -0.5229436755180359, -0.4237958788871765, 0.8463647961616516, -0.03722839802503586, -0.09106756746768951, 0.5513002872467041, -0.2694956660270691, -0.5388864278793335, 0.8282185196876526, 0.5676982998847961, 1.0221858024597168, -0.06181599572300911, 0.17284810543060303, 0.7525249719619751, 0.23781779408454895, -0.015073086135089397, 0.627678632736206, -0.2615392208099365, -0.9501384496688843, -0.42299896478652954, -0.5948789715766907, 0.03310293331742287, 0.1884460151195526, -0.9953635334968567, 0.2982882857322693, -0.3782002925872803, -0.33291372656822205, -0.028749287128448486, 0.3322252333164215, -0.7441726922988892, 0.30673283338546753, 0.13091272115707397, 1.0555922985076904, -0.5228404402732849, 0.9756328463554382, 0.8416439294815063, -0.5517841577529907, -1.2028120756149292, -0.27688002586364746, -0.11966706812381744, -1.0551259517669678, 0.6972384452819824, 0.28467199206352234, 0.09972931444644928, 0.019544944167137146, -0.7844017744064331, -0.8699561953544617, 1.1846638917922974, 0.4006330668926239, -0.34820759296417236, -0.05447762832045555, -0.14334242045879364, 0.6307146549224854, -0.386805921792984, 0.41141578555107117, 0.37653669714927673, 0.3781260550022125, 0.05826104059815407, -0.6254861950874329, 0.15638242661952972, -0.5743396878242493, 0.04217341169714928, -0.22214792668819427, -0.6363371014595032, 1.2721155881881714, -0.10500377416610718, -0.1928756833076477, 0.24432332813739777, 0.7158477902412415, 0.29587385058403015, 0.17106418311595917, 0.27441200613975525, 0.7143466472625732, 0.46010270714759827, -0.14240066707134247, 1.1897540092468262, -0.605970561504364, 0.7015838027000427, 0.7330040335655212, 0.057398565113544464, 0.8365219831466675, 0.24538199603557587, -0.19712410867214203, 0.5887258052825928, 0.8983440399169922, -0.3401651680469513, 0.5832140445709229, -0.055678173899650574, -0.22293634712696075, -0.02233726531267166, 0.06584908813238144, -0.7724328637123108, 0.09604532271623611, 0.34286925196647644, -0.6612791419029236, -0.0456036701798439, -0.1208050474524498, 0.34209638833999634, -0.08362390100955963, -0.45479249954223633, 0.6114240884780884, -0.01902434416115284, -0.41158410906791687, 0.8737188577651978, -0.00977740716189146, 1.1108359098434448, -0.6829422116279602, 0.03280803561210632, -0.3151806890964508, 0.4879305064678192, -0.5774673819541931, -0.9061523675918579, 0.20894628763198853, -0.24278965592384338, -0.15020230412483215, 0.11876252293586731, 0.8498114347457886, -0.6594647169113159, -0.7525162100791931, 0.6024109721183777, 0.15506994724273682, 0.1205911859869957, -0.10878823697566986, -1.1209330558776855, 0.16533958911895752, 0.12608103454113007, -0.5139191150665283, 0.2110218107700348, 0.5154023766517639, 0.3329733908176422, 0.6571617126464844, 0.7855541110038757, 0.21653029322624207, 0.3216560482978821, 0.059951551258563995, 1.2006412744522095, -0.6609438061714172, -0.4210691452026367, -0.9764701128005981, 0.36744213104248047, -0.1968977153301239, -0.3162769675254822, 0.8475765585899353, 0.6740493774414062, 0.9434190988540649, -0.0583081915974617, 0.5588176846504211, -0.35213667154312134, 0.36867645382881165, -0.2122436910867691, 1.1379958391189575, -0.9138720631599426, -0.08872562646865845, -0.1753004491329193, -0.9314605593681335, -0.15311658382415771, 0.7065579891204834, -0.06388171017169952, 0.14469683170318604, 0.37845543026924133, 1.0211435556411743, -0.11867935210466385, -0.17840488255023956, 0.06172662600874901, 0.25307756662368774, 0.20424045622348785, 0.5549384355545044, 0.638664722442627, -0.5466963648796082, 0.6391263008117676, -0.49759742617607117, -0.12229038029909134, 0.04801211133599281, -0.652621865272522, -0.9725328683853149, -0.4691181182861328, -0.018034473061561584, -0.5974835157394409, 0.10643882304430008, 0.9713467955589294, 0.8286671042442322, -0.9765254259109497, -0.25311392545700073, 0.23017941415309906, 0.019388647750020027, -0.34532153606414795, -0.3072117865085602, 0.797874927520752, -0.16622057557106018, -0.7867681384086609, 0.28443026542663574, -0.01210754830390215, -0.20517092943191528, -0.24252064526081085, -0.30230778455734253, -0.035553228110075, -0.20206762850284576, 0.41686615347862244, 0.3504738211631775, -0.553458034992218, -0.302323579788208, 0.09183832257986069, -0.2557632327079773, 0.12316621840000153, 0.46638837456703186, -0.6639288067817688, 0.519025444984436, 0.7042961120605469, 0.8159276843070984, 0.8044673800468445, 0.029600631445646286, 0.4105781018733978, -0.7717767357826233, 0.3944908380508423, 0.1117883026599884, 0.48196837306022644, 0.45474520325660706, -0.663329541683197, 0.3631240427494049, 0.41311126947402954, -0.45465701818466187, -0.8149162530899048, -0.0840030163526535, -1.025166630744934, -0.2311246693134308, 1.0291576385498047, -0.3130502700805664, -0.5107344388961792, 0.3772346079349518, -0.2575880289077759, 0.335137277841568, -0.38333430886268616, 0.5080639719963074, 0.35418277978897095, -0.1473936289548874, -0.12865568697452545, -0.2428651601076126, 0.5188759565353394, 0.12133367359638214, -0.26404833793640137, -0.532106339931488, 0.13705827295780182, 0.4650937020778656, 0.24781431257724762, 0.6620030999183655, -0.32518884539604187, 0.25610196590423584, 0.2350551038980484, 0.13417690992355347, -0.2905932366847992, 0.015926744788885117, -0.16528357565402985, 0.23408806324005127, -0.3666677474975586, -0.4801657199859619 ]
allenai/longformer-large-4096-finetuned-triviaqa
allenai
"2022-10-03T22:04:43Z"
22,069
5
transformers
[ "transformers", "pytorch", "tf", "longformer", "question-answering", "en", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: en ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
julien-c/bert-xsmall-dummy
julien-c
"2021-05-19T20:53:10Z"
21,936
0
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
## How to build a dummy model ```python from transformers BertConfig, BertForMaskedLM, BertTokenizer, TFBertForMaskedLM SMALL_MODEL_IDENTIFIER = "julien-c/bert-xsmall-dummy" DIRNAME = "./bert-xsmall-dummy" config = BertConfig(10, 20, 1, 1, 40) model = BertForMaskedLM(config) model.save_pretrained(DIRNAME) tf_model = TFBertForMaskedLM.from_pretrained(DIRNAME, from_pt=True) tf_model.save_pretrained(DIRNAME) # Slightly different for tokenizer. # tokenizer = BertTokenizer.from_pretrained(DIRNAME) # tokenizer.save_pretrained() ```
[ -0.42517855763435364, -0.363299697637558, 0.2437705099582672, 0.23423270881175995, -0.27876192331314087, 0.0903596505522728, 0.0013169515877962112, 0.26036956906318665, 0.0816352367401123, 0.32537269592285156, -0.9250131845474243, -0.15148073434829712, -0.46631959080696106, 0.010297751054167747, -0.6006461977958679, 0.9745579957962036, -0.1127222552895546, 0.3116294741630554, 0.12186024338006973, -0.010148367844522, -0.3502176105976105, -0.6806304454803467, -0.7478293776512146, -0.4251548945903778, 0.31663793325424194, 0.176161989569664, 0.643559455871582, 0.3272766172885895, 0.14085550606250763, 0.547039270401001, -0.06319009512662888, -0.2007407248020172, -0.43174824118614197, -0.37418416142463684, -0.1593480408191681, -0.5606269240379333, -0.5452712774276733, -0.052756838500499725, 0.8791102766990662, 0.49236348271369934, 0.1324108988046646, 0.3616710305213928, -0.2761407196521759, -0.0639052540063858, -0.28417739272117615, 0.14028744399547577, -0.3348849415779114, 0.0205150805413723, 0.1321791410446167, 0.11024120450019836, -0.3602752685546875, -0.37515732645988464, -0.03684414550662041, -0.603614330291748, 0.8318711519241333, 0.15100552141666412, 1.481656789779663, 0.3510902225971222, -0.3400372862815857, 0.3889777362346649, -0.6708783507347107, 0.9529942274093628, -0.9148299098014832, 0.4384416937828064, 0.037717338651418686, 0.48491281270980835, -0.16271643340587616, -1.254020094871521, -0.7382281422615051, -0.2373691350221634, -0.3940926194190979, -0.3108428418636322, -0.11317428201436996, 0.06346826255321503, 0.6843345165252686, 0.2569679319858551, -0.26194268465042114, -0.0035579935647547245, -0.9946125149726868, -0.46688470244407654, 0.6273267269134521, 0.05568933114409447, 0.00034698162926360965, -0.34395548701286316, -0.4935080409049988, -0.5878757238388062, -0.39395055174827576, -0.20468151569366455, 0.3794775903224945, 0.32000860571861267, -0.24549709260463715, 0.7273181676864624, -0.0897555947303772, 0.1739250272512436, 0.37068501114845276, -0.062165338546037674, 0.40794503688812256, -0.15586182475090027, -0.36424678564071655, 0.21206800639629364, 0.7804988622665405, 0.0024417154490947723, 0.43869420886039734, -0.10774131119251251, -0.4546968936920166, -0.021273009479045868, 0.5074561834335327, -1.0878310203552246, -0.5299732089042664, 0.4532272517681122, -0.6583236455917358, -0.5632665157318115, 0.22733037173748016, -0.1225472092628479, 0.33793890476226807, -0.2643021047115326, 1.0833775997161865, -0.658007025718689, -0.330515056848526, -0.1635127067565918, -0.6005115509033203, 0.24349483847618103, 0.1294805407524109, -0.7739661931991577, 0.2680906653404236, 0.8063656687736511, 0.7000933289527893, 0.26227402687072754, -0.4021846652030945, -0.3583802282810211, 0.13630542159080505, -0.38064467906951904, 0.5486482977867126, 0.11029534786939621, -0.6183980703353882, 0.13497482240200043, 0.3727824091911316, -0.020873555913567543, -0.3706417977809906, 0.6988763213157654, -0.4092850983142853, 0.5107496380805969, -0.1917557269334793, -0.7046129107475281, -0.3502068817615509, 0.15738600492477417, -0.5931112170219421, 1.0649334192276, 0.6119951605796814, -0.5665014982223511, 0.3733726441860199, -0.7862234115600586, -0.5181720852851868, 0.14201445877552032, 0.10670454055070877, -0.6229463219642639, 0.42603614926338196, -0.07054974883794785, 0.4179438054561615, 0.274463415145874, 0.3665604889392853, -0.3854132294654846, -0.5309110283851624, 0.29676201939582825, -0.24659961462020874, 1.1208221912384033, -0.08341741561889648, -0.19351138174533844, 0.30844739079475403, -0.6357870101928711, 0.11393377929925919, -0.1359129548072815, -0.17029383778572083, 0.0034733545035123825, -0.03923562914133072, 0.37494775652885437, 0.21953098475933075, 0.24877914786338806, -0.7008897662162781, 0.4600367546081543, -0.1903274655342102, 0.47976154088974, 0.9133725166320801, -0.11431422084569931, 0.30994758009910583, -0.6020437479019165, 0.181285098195076, 0.03823176398873329, 0.1226007491350174, 0.1945885270833969, -0.17794181406497955, -1.5177968740463257, -0.48799312114715576, 0.690153181552887, 0.28749004006385803, -0.8534786701202393, 0.7426087260246277, -0.3499099910259247, -0.6409143209457397, -0.395710825920105, -0.3576608896255493, 0.2709178328514099, 0.37839874625205994, 0.42311182618141174, 0.00020622662850655615, -0.9143337607383728, -1.1927852630615234, 0.002615766366943717, -0.45161324739456177, -0.3066457211971283, -0.10817236453294754, 1.068832516670227, -0.2831130027770996, 0.8928807377815247, -0.7999541759490967, -0.37945353984832764, -0.35342010855674744, 0.1829885095357895, 0.48920708894729614, 1.0200296640396118, 0.7897079586982727, -0.44523853063583374, -0.246617391705513, -0.44520649313926697, -0.4433920979499817, 0.06254906207323074, -0.24423174560070038, -0.33464139699935913, 0.18578575551509857, 0.23735453188419342, -0.9196183085441589, 0.4240871071815491, 0.12633082270622253, -0.4505411386489868, 0.9613012075424194, -0.21161574125289917, -0.12484320998191833, -1.1954231262207031, 0.1062488853931427, -0.3225570023059845, -0.2735266387462616, -0.6025534868240356, 0.07030613720417023, 0.14090873301029205, -0.022716037929058075, -0.7714017033576965, 0.9675979018211365, -0.08540648221969604, 0.06853324174880981, -0.06918637454509735, -0.5480788350105286, -0.10782115906476974, 0.6012245416641235, 0.010203189216554165, 0.4873640239238739, 0.6618714928627014, -0.6474959254264832, 0.5736799836158752, 0.6544521450996399, -0.13285359740257263, 0.1817689687013626, -0.9073421359062195, 0.051435116678476334, 0.29554685950279236, 0.27590376138687134, -0.7108043432235718, -0.46514418721199036, 0.48461756110191345, -0.47904130816459656, 0.5036150813102722, -0.21467973291873932, -0.8177438974380493, -0.6384679675102234, -0.2613641023635864, 0.32133856415748596, 1.0019781589508057, -0.7283765077590942, 0.8748215436935425, -0.13400515913963318, 0.05929311737418175, -0.28246280550956726, -0.6818051934242249, -0.3294298052787781, -0.09807532280683517, -0.6680405735969543, 0.5632325410842896, -0.119082011282444, -0.0406881608068943, 0.0777268037199974, -0.21222585439682007, -0.2851518988609314, -0.1578366458415985, 0.16631731390953064, 0.5800632238388062, -0.3176949620246887, 0.1649436503648758, 0.204506054520607, -0.36297568678855896, 0.2892017364501953, -0.050097305327653885, 0.6856048107147217, -0.17779076099395752, -0.3053550720214844, -0.5294718742370605, 0.21162039041519165, 0.263209730386734, 0.21187099814414978, 0.8195146918296814, 0.7871783375740051, -0.3222484290599823, -0.46874094009399414, -0.528232216835022, -0.455223947763443, -0.6222378611564636, 0.48195070028305054, -0.493969202041626, -0.4906342923641205, 0.36976882815361023, 0.050168439745903015, 0.2691602110862732, 0.5910829901695251, 0.7191413044929504, -0.18852396309375763, 0.8713668584823608, 0.791118323802948, 0.43126481771469116, 0.5256785154342651, -0.6893035769462585, 0.06656918674707413, -0.4958128035068512, -0.3059815466403961, -0.5238383412361145, -0.42002180218696594, -0.5755172967910767, -0.40008893609046936, 0.0787002220749855, 0.09990141540765762, -0.7579872608184814, 0.7794634699821472, -0.5078222155570984, 0.2615070939064026, 0.9671918153762817, 0.030534867197275162, -0.07926686853170395, -0.006774622946977615, -0.12170257419347763, 0.24718447029590607, -0.8406912684440613, -0.6790469288825989, 0.9733979105949402, 0.2025522142648697, 0.609185516834259, -0.10796201229095459, 0.8663409948348999, -0.05740951746702194, 0.533989667892456, -0.8713546395301819, 0.6176972389221191, -0.17102721333503723, -1.2677074670791626, -0.04537846893072128, -0.23756255209445953, -0.4559430480003357, 0.28262314200401306, -0.0009199362830258906, -0.6046208143234253, 0.2981937527656555, 0.28501778841018677, -0.431603342294693, 0.3825722634792328, -0.8105210065841675, 1.083675503730774, -0.279266893863678, 0.07857641577720642, -0.09688469022512436, -0.3647591769695282, 0.5317177772521973, -0.2948441803455353, -0.19092683494091034, 0.04370579496026039, -0.05248862877488136, 0.8897089958190918, -0.7321045994758606, 0.7215239405632019, -0.23073996603488922, 0.43249914050102234, 0.1307254284620285, -0.049302838742733, 0.12120460718870163, 0.11067985743284225, -0.18123406171798706, 0.36205464601516724, 0.31371647119522095, -0.5352672934532166, -0.43858328461647034, 0.6813430190086365, -1.124220609664917, -0.6810510158538818, -0.6081861853599548, -0.5464313626289368, 0.1564091444015503, 0.3675137758255005, 0.5607837438583374, 0.36534708738327026, -0.38639020919799805, 0.16201341152191162, 0.36605533957481384, -0.09336536377668381, 0.8842980861663818, 0.3382772207260132, -0.014602620154619217, -0.40922263264656067, 0.709378719329834, 0.22651715576648712, 0.18621213734149933, 0.23318709433078766, 0.10593077540397644, -0.36903759837150574, -0.036894019693136215, -0.23583972454071045, 0.2543199360370636, -0.5688043236732483, -0.2649381160736084, -0.5730050206184387, -0.7055601477622986, -0.4495488703250885, -0.17808552086353302, -0.47623082995414734, -0.598955512046814, -0.4611651301383972, 0.12567336857318878, 0.317684143781662, 0.4215843975543976, -0.37645798921585083, 0.7422723174095154, -0.8423756957054138, 0.5690101385116577, 0.32360589504241943, 0.21617993712425232, 0.014041393995285034, -0.6235248446464539, -0.09715837240219116, 0.1956983208656311, -0.4695073664188385, -0.6804099082946777, 0.5176516175270081, 0.3186797797679901, 0.6716252565383911, 0.6857078075408936, 0.4385503828525543, 0.8172610998153687, -0.6660137176513672, 0.6412269473075867, 0.16644519567489624, -1.236362099647522, 0.37905868887901306, -0.0045448546297848225, 0.05990050733089447, 0.20630677044391632, 0.24832431972026825, -0.26632776856422424, -0.10885470360517502, -1.3492295742034912, -0.7122414112091064, 1.1330673694610596, 0.6765814423561096, 0.3522017300128937, 0.22358103096485138, 0.12208563089370728, 0.2809572219848633, 0.3156324625015259, -0.8937724232673645, -0.2576844096183777, -0.7218434810638428, 0.028864098712801933, -0.16253389418125153, -0.026675652712583542, -0.3310682773590088, -0.6939430236816406, 1.13741934299469, 0.1469608098268509, 0.6403821110725403, -0.07522353529930115, -0.08967894315719604, 0.0368155762553215, -0.09164589643478394, 0.511874794960022, 0.27035239338874817, -0.5681744813919067, -0.10817887634038925, 0.3539351522922516, -0.2472173571586609, 0.3380621075630188, 0.2490268051624298, -0.2169855237007141, 0.5446140766143799, 0.6147552132606506, 1.007146954536438, 0.25152328610420227, -0.17883503437042236, 0.3257726728916168, -0.05344143882393837, -0.3073480427265167, -0.749474823474884, 0.45337846875190735, 0.05345354601740837, 0.3005596995353699, 0.4365523159503937, 0.3656362295150757, -0.4741910696029663, -0.4042523503303528, 0.049500972032547, 0.4117158353328705, -0.30962681770324707, -0.4471490979194641, 0.6236021518707275, 0.142578125, -0.8259730339050293, 0.8958314061164856, -0.020894916728138924, -0.6993555426597595, 0.8859288692474365, 0.477413147687912, 1.1661840677261353, -0.02750450372695923, 0.1733556091785431, 0.6074369549751282, 0.32606640458106995, -0.17356322705745697, 0.30166274309158325, -0.10298789292573929, -0.7040958404541016, -0.24772167205810547, -0.8547363877296448, -0.31793680787086487, 0.14208362996578217, -0.5227038264274597, 0.7100494503974915, -0.4892820119857788, -0.16811925172805786, 0.2026803195476532, 0.13255153596401215, -0.8677619099617004, 0.12108521908521652, -0.1436661183834076, 1.324794054031372, -0.9294498562812805, 1.1829073429107666, 0.7457872033119202, -0.6220133304595947, -1.0752750635147095, -0.08758467435836792, -0.3403874635696411, -0.6139242053031921, 1.0268253087997437, 0.2932884991168976, 0.4501963257789612, 0.23675335943698883, -0.75608229637146, -0.8756848573684692, 1.0829914808273315, 0.2813875079154968, -0.29016345739364624, -0.19806934893131256, -0.03349775820970535, 0.4961097538471222, -0.3346729576587677, 0.21248219907283783, 0.5339968800544739, 0.6208622455596924, 0.36142951250076294, -0.772977888584137, 0.09588239341974258, -0.22567786276340485, 0.14781539142131805, 0.18114282190799713, -0.6056536436080933, 1.4347498416900635, -0.3243258595466614, -0.31822603940963745, 0.6534712910652161, 0.6607612371444702, 0.42527469992637634, -0.2376825511455536, 0.4559204876422882, 0.38952142000198364, 0.1496899127960205, -0.46239960193634033, 1.0130378007888794, -0.2703160047531128, 0.7808693051338196, 0.8627946972846985, 0.13440266251564026, 0.813935399055481, 0.4985588490962982, -0.16083873808383942, 0.634913980960846, 0.8284501433372498, -0.7641177177429199, 0.6202245354652405, 0.16892854869365692, -0.19338028132915497, -0.5563315153121948, 0.3872436285018921, -0.6890867352485657, 0.18671037256717682, 0.18601739406585693, -0.38664957880973816, -0.36566072702407837, -0.14839717745780945, 0.0630483403801918, -0.7088242173194885, -0.1636480689048767, 0.4012545645236969, 0.03994114324450493, -0.6791903972625732, 0.8385798931121826, 0.2004028558731079, 0.6099401712417603, -0.8064109086990356, 0.06521757692098618, -0.20636087656021118, 0.8237157464027405, -0.15976683795452118, -0.38046133518218994, 0.3213784396648407, -0.2777787446975708, -0.29188165068626404, -0.3105849325656891, 0.7370184063911438, -0.29904261231422424, -1.1164809465408325, 0.027894288301467896, 0.34511733055114746, 0.18965962529182434, 0.0055295671336352825, -0.6169779896736145, 0.058805979788303375, 0.006140682380646467, -0.3105643093585968, 0.11706924438476562, 0.15028519928455353, 0.03000687062740326, 0.5773402452468872, 0.8640579581260681, -0.18589305877685547, 0.11280059814453125, -0.12118605524301529, 1.0563981533050537, -0.5941228270530701, -0.6211676597595215, -0.7703996896743774, 0.7821241617202759, -0.14781536161899567, -0.48680952191352844, 0.6269077062606812, 0.5330854654312134, 1.0367223024368286, -0.757964015007019, 0.5890322923660278, -0.4620794951915741, 0.23344716429710388, -0.13837917149066925, 1.0033087730407715, -0.5094701051712036, -0.11384261399507523, -0.013415670953691006, -1.1352498531341553, 0.04653668403625488, 0.8861756324768066, -0.10367655009031296, 0.07053934782743454, 0.8492490649223328, 1.0508642196655273, -0.49265965819358826, -0.27657508850097656, 0.25610148906707764, 0.550794780254364, 0.2923228442668915, 0.17844709753990173, 0.804522693157196, -0.76496422290802, 0.5452383756637573, -0.6006958484649658, -0.046072762459516525, -0.19872330129146576, -0.8777062892913818, -1.2703648805618286, -0.4316370487213135, -0.47610437870025635, -0.4913436472415924, -0.14741989970207214, 0.9981920123100281, 1.168724536895752, -1.1018757820129395, -0.328367680311203, 0.047773897647857666, 0.11546489596366882, -0.20788845419883728, -0.2806711792945862, 0.5646218061447144, -0.35069984197616577, -0.9645717740058899, 0.1309872716665268, -0.44402387738227844, 0.328431099653244, -0.48348602652549744, -0.17604663968086243, -0.2773669362068176, 0.1361558735370636, 0.30651456117630005, 0.26058492064476013, -0.8818318247795105, -0.6082966327667236, -0.42388007044792175, -0.05376262590289116, -0.07717712223529816, 0.49500519037246704, -1.1714199781417847, -0.08621539175510406, 0.624469518661499, -0.2366478443145752, 0.7333107590675354, -0.14942650496959686, 0.799152672290802, -1.1128462553024292, 0.4498584568500519, 0.09056755155324936, 0.5588444471359253, 0.26821693778038025, 0.03001290000975132, 0.40772736072540283, 0.4057263731956482, -0.2542475461959839, -1.091380000114441, 0.03524871915578842, -1.035172700881958, -0.26811128854751587, 1.0948302745819092, -0.173441082239151, -0.2964729368686676, 0.06584534794092178, -0.5104756355285645, 0.7380059957504272, -0.34541359543800354, 0.7565478086471558, 0.4704107940196991, 0.021204417571425438, 0.03370494768023491, -0.21116967499256134, 0.44860079884529114, 0.12132252752780914, -0.6170985102653503, -0.5068167448043823, 0.10318594425916672, 0.7264719009399414, 0.6001075506210327, 0.015056498348712921, 0.2332453727722168, 0.30038022994995117, 0.4698827266693115, 0.39220958948135376, -0.45186495780944824, -0.0320381335914135, 0.06358527392148972, 0.2707124650478363, -0.5429533123970032, -0.616032063961029 ]
google/byt5-small
google
"2023-01-24T16:36:59Z"
21,861
27
transformers
[ "transformers", "pytorch", "tf", "jax", "t5", "text2text-generation", "multilingual", "af", "am", "ar", "az", "be", "bg", "bn", "ca", "ceb", "co", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fil", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "haw", "hi", "hmn", "ht", "hu", "hy", "ig", "is", "it", "iw", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lb", "lo", "lt", "lv", "mg", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "ne", "nl", "no", "ny", "pa", "pl", "ps", "pt", "ro", "ru", "sd", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "tr", "uk", "und", "ur", "uz", "vi", "xh", "yi", "yo", "zh", "zu", "dataset:mc4", "arxiv:1907.06292", "arxiv:2105.13626", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: - multilingual - af - am - ar - az - be - bg - bn - ca - ceb - co - cs - cy - da - de - el - en - eo - es - et - eu - fa - fi - fil - fr - fy - ga - gd - gl - gu - ha - haw - hi - hmn - ht - hu - hy - ig - is - it - iw - ja - jv - ka - kk - km - kn - ko - ku - ky - la - lb - lo - lt - lv - mg - mi - mk - ml - mn - mr - ms - mt - my - ne - nl - no - ny - pa - pl - ps - pt - ro - ru - sd - si - sk - sl - sm - sn - so - sq - sr - st - su - sv - sw - ta - te - tg - th - tr - uk - und - ur - uz - vi - xh - yi - yo - zh - zu datasets: - mc4 license: apache-2.0 --- # ByT5 - Small ByT5 is a tokenizer-free version of [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and generally follows the architecture of [MT5](https://huggingface.co/google/mt5-small). ByT5 was only pre-trained on [mC4](https://www.tensorflow.org/datasets/catalog/c4#c4multilingual) excluding any supervised training with an average span-mask of 20 UTF-8 characters. Therefore, this model has to be fine-tuned before it is useable on a downstream task. ByT5 works especially well on noisy text data,*e.g.*, `google/byt5-small` significantly outperforms [mt5-small](https://huggingface.co/google/mt5-small) on [TweetQA](https://arxiv.org/abs/1907.06292). Paper: [ByT5: Towards a token-free future with pre-trained byte-to-byte models](https://arxiv.org/abs/2105.13626) Authors: *Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel* ## Example Inference ByT5 works on raw UTF-8 bytes and can be used without a tokenizer: ```python from transformers import T5ForConditionalGeneration import torch model = T5ForConditionalGeneration.from_pretrained('google/byt5-small') input_ids = torch.tensor([list("Life is like a box of chocolates.".encode("utf-8"))]) + 3 # add 3 for special tokens labels = torch.tensor([list("La vie est comme une boîte de chocolat.".encode("utf-8"))]) + 3 # add 3 for special tokens loss = model(input_ids, labels=labels).loss # forward pass ``` For batched inference & training it is however recommended using a tokenizer class for padding: ```python from transformers import T5ForConditionalGeneration, AutoTokenizer model = T5ForConditionalGeneration.from_pretrained('google/byt5-small') tokenizer = AutoTokenizer.from_pretrained('google/byt5-small') model_inputs = tokenizer(["Life is like a box of chocolates.", "Today is Monday."], padding="longest", return_tensors="pt") labels = tokenizer(["La vie est comme une boîte de chocolat.", "Aujourd'hui c'est lundi."], padding="longest", return_tensors="pt").input_ids loss = model(**model_inputs, labels=labels).loss # forward pass ``` ## Abstract Most widely-used pre-trained language models operate on sequences of tokens corresponding to word or subword units. Encoding text as a sequence of tokens requires a tokenizer, which is typically created as an independent artifact from the model. Token-free models that instead operate directly on raw text (bytes or characters) have many benefits: they can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Since byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with minimal modifications to process byte sequences. We carefully characterize the trade-offs in terms of parameter count, training FLOPs, and inference speed, and show that byte-level models are competitive with their token-level counterparts. We also demonstrate that byte-level models are significantly more robust to noise and perform better on tasks that are sensitive to spelling and pronunciation. As part of our contribution, we release a new set of pre-trained byte-level Transformer models based on the T5 architecture, as well as all code and data used in our experiments. ![model image](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/ByT5.png)
[ -0.2589530944824219, -0.2984185814857483, 0.28052738308906555, 0.1069929301738739, -0.38046714663505554, -0.05944577604532242, -0.28465020656585693, -0.5920950174331665, 0.017788009718060493, 0.2707659900188446, -0.5699812769889832, -0.4616057574748993, -0.7469536662101746, 0.2559073865413666, -0.42645150423049927, 1.0314675569534302, -0.0198464784771204, 0.10769150406122208, 0.21333123743534088, -0.1780426949262619, -0.31377968192100525, -0.5255582332611084, -0.6971230506896973, -0.3890315592288971, 0.5462808012962341, 0.3531734049320221, 0.4713227152824402, 0.7356085181236267, 0.512568473815918, 0.3556317389011383, -0.07971981912851334, -0.08820215612649918, -0.3735378086566925, -0.22764737904071808, 0.001546087907627225, -0.6237919330596924, -0.47964200377464294, -0.003666053991764784, 0.4269965887069702, 0.6174789071083069, 0.12457524240016937, 0.4350394308567047, -0.107825867831707, 0.2959425747394562, -0.5592170357704163, 0.07372643053531647, -0.6696666479110718, 0.11449865996837616, -0.25654056668281555, 0.17691366374492645, -0.6637927889823914, -0.11679372936487198, 0.013050585053861141, -0.524217426776886, 0.6135178804397583, 0.1663208156824112, 1.0268537998199463, 0.24722640216350555, -0.3096579611301422, -0.2512566149234772, -0.5913882255554199, 1.0130887031555176, -0.6898742914199829, 0.6969139575958252, 0.1278936117887497, 0.18808670341968536, -0.021621568128466606, -1.2591570615768433, -0.6101261377334595, 0.08863596618175507, -0.19933554530143738, 0.18406438827514648, -0.24692128598690033, 0.20088109374046326, 0.3059041500091553, 0.46764835715293884, -0.5630728006362915, 0.10614662617444992, -0.7204656004905701, -0.18245364725589752, 0.338954359292984, -0.11761175096035004, 0.28423067927360535, -0.3484790027141571, -0.4174644351005554, -0.13109219074249268, -0.6117867231369019, 0.17799846827983856, 0.17267556488513947, 0.30344071984291077, -0.2103857547044754, 0.2724780738353729, -0.05753946304321289, 0.3159628212451935, 0.2227819710969925, -0.007280943915247917, 0.29814931750297546, -0.3542136251926422, -0.36570775508880615, 0.2192220687866211, 0.9354600310325623, 0.07416728883981705, 0.2831084132194519, -0.530508816242218, -0.37001922726631165, 0.14420102536678314, 0.28048837184906006, -1.2834453582763672, -0.27236977219581604, 0.34970802068710327, -0.7480329871177673, -0.40949293971061707, -0.05972100794315338, -0.5223335027694702, -0.05566105246543884, 0.09753253310918808, 0.6106158494949341, -0.5551499724388123, -0.0028270066250115633, 0.23475943505764008, -0.2214457392692566, 0.16514559090137482, 0.023546341806650162, -1.3010709285736084, 0.19843877851963043, 0.3714073896408081, 0.789543867111206, -0.10950444638729095, -0.2460547834634781, -0.45039838552474976, -0.04200361296534538, -0.34526506066322327, 0.6149098873138428, -0.27897804975509644, -0.5254573822021484, -0.365802526473999, 0.24184568226337433, -0.02636232040822506, -0.45913735032081604, 0.8302618861198425, -0.516939640045166, 0.444625586271286, -0.17141082882881165, -0.5282573103904724, -0.13116542994976044, 0.055832408368587494, -0.6799426078796387, 0.8872361183166504, -0.010254976339638233, -0.8535621166229248, 0.6928436160087585, -0.8538122773170471, -0.2651268541812897, -0.06752670556306839, 0.16951754689216614, -0.6536028385162354, 0.08894602954387665, 0.40110301971435547, 0.4395751357078552, -0.23808182775974274, 0.052196528762578964, -0.29539066553115845, -0.592616617679596, 0.10389149188995361, -0.5988954305648804, 0.83509761095047, 0.3404553234577179, -0.3770260810852051, 0.2853292226791382, -0.9555227756500244, 0.038110386580228806, 0.03405211120843887, -0.468441903591156, 0.04024563729763031, -0.13975752890110016, 0.08212161064147949, 0.24983826279640198, 0.16204126179218292, -0.5833184719085693, 0.3021697700023651, -0.47415560483932495, 0.7692598104476929, 0.6605205535888672, -0.22083735466003418, 0.5680506229400635, -0.31890833377838135, 0.31786173582077026, 0.3772617280483246, 0.19014853239059448, -0.24018417298793793, -0.23695221543312073, -1.0179178714752197, -0.5114038586616516, 0.6729862093925476, 0.4204944372177124, -0.7652996182441711, 0.2660684883594513, -0.7607560753822327, -0.5290991067886353, -0.7483903765678406, -0.09826655685901642, 0.2581378221511841, 0.43933624029159546, 0.6988673210144043, -0.29340115189552307, -0.795274555683136, -0.5863764882087708, -0.25901496410369873, 0.038560546934604645, -0.12303347140550613, 0.019984489306807518, 0.5761666893959045, -0.2650657594203949, 0.9010430574417114, -0.1410989761352539, -0.13052909076213837, -0.41862908005714417, 0.274969220161438, 0.2951917350292206, 0.7159508466720581, 0.5080506205558777, -0.5564707517623901, -0.3060409724712372, -0.21170905232429504, -0.6389621496200562, 0.08614439517259598, -0.08687964826822281, 0.21142025291919708, 0.31413471698760986, 0.319333016872406, -0.6558911800384521, 0.3039247393608093, 0.4010387063026428, -0.41265028715133667, 0.4150042235851288, -0.30939576029777527, 0.02625167742371559, -1.2720627784729004, 0.1970757693052292, -0.12072313576936722, -0.46687382459640503, -0.6684651374816895, -0.17136383056640625, 0.13355901837348938, -0.12300849705934525, -0.7143343687057495, 0.8640829920768738, -0.5294530391693115, 0.01860162988305092, -0.008018378168344498, -0.1893128603696823, -0.07380644977092743, 0.558087944984436, 0.01442564558237791, 1.0486252307891846, 0.36223581433296204, -0.6164553761482239, 0.064843088388443, 0.2682216465473175, -0.39765533804893494, 0.08017583191394806, -0.6581830978393555, 0.19290664792060852, -0.0775720626115799, 0.2518830895423889, -0.8693361878395081, 0.0036642318591475487, 0.24235542118549347, -0.7336965799331665, 0.3253214359283447, -0.1864578276872635, -0.5234009027481079, -0.451820433139801, -0.41157209873199463, 0.432428777217865, 0.7386462688446045, -0.6730569005012512, 0.5834137201309204, -0.14371034502983093, 0.32019057869911194, -0.783305287361145, -1.0403673648834229, 0.07202620804309845, -0.39236924052238464, -0.712211549282074, 0.5904232859611511, 0.044851548969745636, 0.3137039542198181, -0.024963295087218285, -0.19804202020168304, -0.0736488625407219, 0.06505192816257477, 0.045498162508010864, 0.26918745040893555, -0.33450332283973694, -0.026303956285119057, -0.12781018018722534, -0.2826152443885803, 0.000546010269317776, -0.6599342226982117, 0.5156617164611816, -0.14849700033664703, 0.1518019586801529, -0.4512699842453003, 0.07952749729156494, 0.5580074787139893, -0.1837969720363617, 0.889204740524292, 0.9935390949249268, -0.2679347097873688, -0.2253558188676834, -0.4049432873725891, -0.3256484568119049, -0.5683462023735046, 0.3173464238643646, -0.6791580319404602, -0.6793888211250305, 0.7136342525482178, 0.13238142430782318, 0.028915854170918465, 0.5188249945640564, 0.47321048378944397, 0.0585726723074913, 0.9054742455482483, 0.6678460240364075, -0.02931692823767662, 0.6271306276321411, -0.5159322023391724, 0.33248910307884216, -0.6142566204071045, 0.020187562331557274, -0.45297911763191223, -0.3363021910190582, -0.935374915599823, -0.26807835698127747, 0.0962451919913292, -0.047812242060899734, -0.353645920753479, 0.39812231063842773, -0.5541034936904907, 0.3639339208602905, 0.6548962593078613, 0.0761522427201271, 0.1611562967300415, -0.048837337642908096, -0.23988080024719238, -0.061095383018255234, -0.8495708703994751, -0.5877327919006348, 1.1314857006072998, 0.34153878688812256, 0.7066460847854614, -0.04091842100024223, 0.6903997659683228, 0.15410709381103516, 0.27582359313964844, -0.7447724938392639, 0.46040967106819153, -0.4855104088783264, -0.6870650053024292, -0.13098980486392975, -0.36509987711906433, -1.1623796224594116, 0.1834982931613922, -0.2982177436351776, -1.0061960220336914, 0.14723412692546844, 0.17373207211494446, -0.312296599149704, 0.5332517623901367, -1.0213942527770996, 1.1671010255813599, 0.027992697432637215, -0.373026967048645, 0.07076004892587662, -0.7684349417686462, 0.294715017080307, 0.10522668063640594, 0.01826404221355915, 0.29307278990745544, 0.08247168362140656, 0.8085826635360718, -0.5079957246780396, 0.871565580368042, -0.11311595141887665, 0.20409096777439117, 0.2087581306695938, -0.2243259847164154, 0.5327396988868713, -0.29851728677749634, -0.053968679159879684, 0.23101340234279633, 0.25131553411483765, -0.5117669105529785, -0.5289546251296997, 0.4081820547580719, -0.9603193402290344, -0.43303292989730835, -0.25467467308044434, -0.3227475583553314, 0.04012478142976761, 0.4935644567012787, 0.7019062638282776, 0.4039880037307739, 0.037840452045202255, 0.4611893594264984, 0.682091236114502, -0.19331204891204834, 0.8450869917869568, -0.018137913197278976, -0.05205706134438515, -0.40478745102882385, 1.0396839380264282, 0.3231830298900604, 0.16889351606369019, 0.500791609287262, 0.2421298772096634, -0.5241410732269287, -0.5249903202056885, -0.5343462824821472, 0.15709106624126434, -0.8577964305877686, -0.0889701172709465, -0.765990138053894, -0.2628019154071808, -0.5620495080947876, -0.16877877712249756, -0.429746150970459, -0.4104359447956085, -0.441976934671402, -0.13287292420864105, 0.12259209156036377, 0.37198615074157715, 0.19528593122959137, 0.5237674713134766, -0.8943147659301758, 0.25890809297561646, 0.031102944165468216, 0.370652437210083, 0.05872325226664543, -0.6150760650634766, -0.27598339319229126, -0.11345870792865753, -0.4206942319869995, -0.647456169128418, 0.3905899226665497, -0.03237369284033775, 0.22805747389793396, 0.36459872126579285, 0.09709713608026505, 0.6887108087539673, -0.4893297851085663, 0.9385530948638916, 0.12511728703975677, -1.2038283348083496, -0.012512684799730778, -0.16039977967739105, 0.3185884952545166, 0.29817724227905273, 0.2657534182071686, -0.6905097365379333, -0.1903751641511917, -0.9620285034179688, -0.7780753374099731, 0.7821958065032959, 0.2678779065608978, 0.12005787342786789, 0.11921968311071396, 0.16374745965003967, 0.218380406498909, 0.20544418692588806, -1.0360386371612549, -0.2585989534854889, -0.5108944177627563, -0.4685128927230835, 0.0789053812623024, -0.19465288519859314, 0.4514276087284088, -0.21230344474315643, 0.7259138822555542, -0.01453128270804882, 0.7012965679168701, 0.1678222268819809, -0.32474976778030396, 0.28043830394744873, 0.32076606154441833, 0.634688138961792, 0.3053240478038788, -0.21570023894309998, 0.26906734704971313, 0.5444350242614746, -0.649303674697876, 0.1037655919790268, 0.02666805498301983, -0.24901337921619415, 0.1113295704126358, 0.341763436794281, 1.1404308080673218, 0.08224504441022873, -0.29814890027046204, 0.4508674442768097, -0.22317001223564148, -0.21787355840206146, -0.16312529146671295, 0.05870511382818222, 0.05286702513694763, 0.1503530740737915, 0.21038863062858582, 0.11950342357158661, 0.11272489279508591, -0.411737322807312, 0.13860556483268738, 0.23891840875148773, -0.3486710488796234, -0.5528213381767273, 1.0478049516677856, 0.18187621235847473, -0.24825473129749298, 0.6543874144554138, -0.2251155972480774, -0.4742406904697418, 0.4922388792037964, 0.7089543342590332, 0.9120452404022217, 0.062253210693597794, -0.12746883928775787, 0.3650004267692566, 0.2934468984603882, -0.08967578411102295, 0.15645386278629303, -0.1991552710533142, -0.7772331833839417, -0.3871529698371887, -0.5802128911018372, -0.16957613825798035, 0.21826960146427155, -0.24427229166030884, 0.6550827622413635, -0.41878387331962585, -0.1444227695465088, 0.03898536041378975, 0.231596440076828, -0.8022645711898804, 0.7299667000770569, 0.13079555332660675, 0.9544810652732849, -0.5578699111938477, 1.0010591745376587, 0.5222879648208618, -0.608336329460144, -1.0351506471633911, -0.08873332291841507, -0.5326983332633972, -0.7210738658905029, 0.5931782722473145, 0.4593840539455414, -0.04141884297132492, 0.23980262875556946, -0.506615936756134, -0.8182513117790222, 1.2729727029800415, 0.45065897703170776, -0.114833302795887, -0.43721553683280945, 0.23551642894744873, 0.46969377994537354, -0.0859636515378952, 0.5535326600074768, 0.40729209780693054, 0.36344167590141296, 0.2574288547039032, -0.7538426518440247, 0.16197381913661957, -0.16010478138923645, 0.0178103968501091, 0.1676948517560959, -0.8067685961723328, 0.8055423498153687, -0.16507437825202942, -0.275227814912796, -0.016014106571674347, 0.9331943392753601, 0.047453489154577255, -0.019183237105607986, 0.36961978673934937, 0.4959973990917206, 0.8536183834075928, -0.1662607640028, 1.0660901069641113, -0.42513471841812134, 0.60230952501297, 0.7382880449295044, 0.42257601022720337, 0.5767020583152771, 0.5075403451919556, -0.027408825233578682, 0.35475248098373413, 0.8405487537384033, -0.16873222589492798, 0.5454018115997314, 0.08097405731678009, -0.21044926345348358, -0.09555842727422714, 0.12832726538181305, -0.20791178941726685, 0.40090107917785645, 0.09618336707353592, -0.43029898405075073, -0.1849750131368637, -0.05462145805358887, 0.2518326938152313, -0.5714295506477356, -0.27311471104621887, 0.49375399947166443, 0.12690779566764832, -0.5924196839332581, 0.7787159085273743, 0.3300352096557617, 1.0472608804702759, -0.4711317718029022, 0.4285934567451477, -0.28657692670822144, 0.3852720558643341, -0.28468063473701477, -0.40458106994628906, 0.4206806421279907, 0.15113520622253418, -0.241011381149292, -0.4175409972667694, 0.7787402272224426, -0.3419429063796997, -0.560232937335968, 0.012604989111423492, 0.29383453726768494, 0.28671643137931824, 0.19242757558822632, -0.5379078388214111, -0.11301995068788528, -0.10879041254520416, -0.4968124032020569, 0.1382274180650711, 0.5362141132354736, -0.25616127252578735, 0.7524656057357788, 0.5547551512718201, 0.09325826168060303, 0.38496991991996765, -0.12118757516145706, 0.583989679813385, -0.6541762948036194, -0.5746670365333557, -0.9553967118263245, 0.6622337698936462, 0.21217291057109833, -0.34092259407043457, 0.43228229880332947, 0.6286939382553101, 0.971775472164154, -0.2620707154273987, 0.7151197195053101, -0.021773332729935646, 0.13505150377750397, -0.5634593963623047, 0.8855137228965759, -0.6637714505195618, -0.015088777989149094, -0.047640640288591385, -0.6387598514556885, -0.3678054213523865, 0.4877515137195587, -0.40406590700149536, 0.2788691818714142, 0.817595362663269, 0.6818106174468994, -0.4326823353767395, -0.16615426540374756, 0.451356440782547, 0.1691358983516693, 0.5207464098930359, 0.5157213807106018, 0.3738783001899719, -0.794745147228241, 0.8418688178062439, -0.10515300929546356, 0.24831850826740265, -0.014254899695515633, -0.8823003172874451, -1.0271655321121216, -0.43149513006210327, -0.0660853311419487, -0.35867583751678467, 0.01621820591390133, 1.1053262948989868, 0.8653040528297424, -0.7302445769309998, -0.0445866659283638, -0.23047609627246857, 0.048790302127599716, -0.019241617992520332, -0.1719549298286438, 0.4409095048904419, -0.5960513353347778, -0.9699217081069946, 0.06586437672376633, -0.04606407880783081, 0.2937268912792206, 0.02849305234849453, 0.11408232152462006, 0.08058582991361618, 0.22788529098033905, 0.44892561435699463, 0.07012433558702469, -0.5507896542549133, -0.525845468044281, 0.19874344766139984, -0.23037022352218628, 0.4733346104621887, 0.5911144614219666, -0.8496772050857544, 0.256529301404953, 0.4569877088069916, 0.7735561728477478, 0.815652072429657, -0.14638228714466095, 0.3946133553981781, -0.8248757719993591, 0.28543269634246826, -0.014128102920949459, 0.4706178605556488, 0.41527771949768066, -0.3132648468017578, 0.4044188857078552, 0.46273958683013916, -0.47974032163619995, -0.7107312679290771, -0.02913534641265869, -0.9373915791511536, -0.13814625144004822, 0.9370095729827881, -0.16520379483699799, -0.5212069749832153, 0.244873046875, -0.06382530927658081, 0.626980185508728, -0.4110032916069031, 0.8988714218139648, 0.8920039534568787, 0.17697188258171082, -0.2732945680618286, -0.36446869373321533, 0.572846531867981, 0.4531446397304535, -0.6774498820304871, -0.19252701103687286, -0.08592992275953293, 0.5316409468650818, 0.055363647639751434, 0.6058751344680786, 0.01742076873779297, 0.12874335050582886, 0.12606799602508545, 0.2988635003566742, -0.07472919672727585, -0.18534792959690094, -0.23178021609783173, 0.16441108286380768, -0.06207342445850372, -0.6488015651702881 ]
LanguageBind/LanguageBind_Image
LanguageBind
"2023-10-06T13:43:44Z"
21,840
3
transformers
[ "transformers", "pytorch", "LanguageBindImage", "zero-shot-image-classification", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-image-classification
"2023-10-06T13:28:02Z"
--- license: mit ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
guillaumekln/faster-whisper-medium
guillaumekln
"2023-05-12T18:58:10Z"
21,814
24
ctranslate2
[ "ctranslate2", "audio", "automatic-speech-recognition", "en", "zh", "de", "es", "ru", "ko", "fr", "ja", "pt", "tr", "pl", "ca", "nl", "ar", "sv", "it", "id", "hi", "fi", "vi", "he", "uk", "el", "ms", "cs", "ro", "da", "hu", "ta", "no", "th", "ur", "hr", "bg", "lt", "la", "mi", "ml", "cy", "sk", "te", "fa", "lv", "bn", "sr", "az", "sl", "kn", "et", "mk", "br", "eu", "is", "hy", "ne", "mn", "bs", "kk", "sq", "sw", "gl", "mr", "pa", "si", "km", "sn", "yo", "so", "af", "oc", "ka", "be", "tg", "sd", "gu", "am", "yi", "lo", "uz", "fo", "ht", "ps", "tk", "nn", "mt", "sa", "lb", "my", "bo", "tl", "mg", "as", "tt", "haw", "ln", "ha", "ba", "jw", "su", "license:mit", "region:us" ]
automatic-speech-recognition
"2023-03-23T10:28:55Z"
--- language: - en - zh - de - es - ru - ko - fr - ja - pt - tr - pl - ca - nl - ar - sv - it - id - hi - fi - vi - he - uk - el - ms - cs - ro - da - hu - ta - 'no' - th - ur - hr - bg - lt - la - mi - ml - cy - sk - te - fa - lv - bn - sr - az - sl - kn - et - mk - br - eu - is - hy - ne - mn - bs - kk - sq - sw - gl - mr - pa - si - km - sn - yo - so - af - oc - ka - be - tg - sd - gu - am - yi - lo - uz - fo - ht - ps - tk - nn - mt - sa - lb - my - bo - tl - mg - as - tt - haw - ln - ha - ba - jw - su tags: - audio - automatic-speech-recognition license: mit library_name: ctranslate2 --- # Whisper medium model for CTranslate2 This repository contains the conversion of [openai/whisper-medium](https://huggingface.co/openai/whisper-medium) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format. This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/guillaumekln/faster-whisper). ## Example ```python from faster_whisper import WhisperModel model = WhisperModel("medium") segments, info = model.transcribe("audio.mp3") for segment in segments: print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)) ``` ## Conversion details The original model was converted with the following command: ``` ct2-transformers-converter --model openai/whisper-medium --output_dir faster-whisper-medium \ --copy_files tokenizer.json --quantization float16 ``` Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the [`compute_type` option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html). ## More information **For more information about the original model, see its [model card](https://huggingface.co/openai/whisper-medium).**
[ 0.09474585205316544, -0.4727262556552887, 0.24784722924232483, 0.5305144786834717, -0.5029990077018738, -0.35152459144592285, -0.5843557715415955, -0.3651386797428131, 0.10221810638904572, 0.783961296081543, -0.4378334581851959, -0.5622696280479431, -0.5962802171707153, -0.38592803478240967, -0.40387213230133057, 1.0314162969589233, -0.2537730038166046, 0.33315780758857727, 0.49623847007751465, -0.14335371553897858, -0.3697187304496765, -0.14084453880786896, -0.8350771069526672, -0.36516010761260986, 0.19613350927829742, 0.25123998522758484, 0.6871092319488525, 0.38851669430732727, 0.5243266820907593, 0.27719733119010925, -0.3119020164012909, -0.07220926135778427, -0.3766806125640869, -0.10892784595489502, 0.296491801738739, -0.6690912246704102, -0.6373105049133301, 0.21431131660938263, 0.7834203839302063, 0.20754235982894897, -0.4251638352870941, 0.5211228728294373, -0.2464737743139267, 0.3270431160926819, -0.5224193930625916, 0.22324608266353607, -0.5697984099388123, 0.04123730584979057, -0.1753791719675064, -0.38248154520988464, -0.5903195142745972, -0.35479316115379333, 0.47956952452659607, -0.8965098857879639, 0.16401873528957367, 0.02978380396962166, 0.9328731894493103, 0.2425350844860077, -0.5016945004463196, -0.29916492104530334, -1.1100335121154785, 0.9476463794708252, -0.8007507920265198, 0.27073270082473755, 0.2596658766269684, 0.6713718175888062, 0.23534490168094635, -1.1686068773269653, -0.2766903340816498, -0.157992422580719, 0.1832188218832016, 0.3683592975139618, -0.3989783525466919, 0.3025170564651489, 0.1909922957420349, 0.4706175625324249, -0.6397287249565125, -0.15035566687583923, -0.8023280501365662, -0.4548857510089874, 0.47215554118156433, 0.14085890352725983, 0.23597240447998047, -0.19329385459423065, -0.34245747327804565, -0.6256328225135803, -0.5377723574638367, -0.03125457465648651, 0.5394842028617859, 0.12967845797538757, -0.6788418292999268, 0.665068507194519, 0.07246524095535278, 0.3988075256347656, 0.00938751082867384, -0.39856451749801636, 0.35106873512268066, -0.2911362051963806, -0.1427682489156723, 0.41892874240875244, 0.7202215790748596, 0.6335804462432861, 0.0240846648812294, 0.25542157888412476, -0.4462384879589081, -0.05538461357355118, 0.08539577573537827, -1.1919041872024536, -0.42427247762680054, 0.19492563605308533, -1.0459452867507935, -0.2698000371456146, 0.003953826613724232, -0.2677846848964691, 0.08107337355613708, -0.21512605249881744, 0.6898393034934998, -0.45674383640289307, -0.6001507043838501, 0.43307775259017944, -0.5787909030914307, 0.15117397904396057, 0.4447927474975586, -0.7364861369132996, 0.4860851466655731, 0.41371339559555054, 1.1402517557144165, 0.14758965373039246, -0.0388079434633255, -0.18964450061321259, 0.34759706258773804, -0.20348118245601654, 0.5908975005149841, -0.006619550287723541, -0.5137649774551392, -0.04681304842233658, -0.06654246896505356, -0.07326236367225647, -0.6074808239936829, 0.8318293690681458, -0.2655757963657379, 0.43655505776405334, 0.27837663888931274, -0.24421140551567078, -0.2681557834148407, 0.013909701257944107, -0.7419602870941162, 1.0188522338867188, 0.5059790015220642, -0.7829204797744751, -0.12312159687280655, -0.8645811676979065, -0.1467369943857193, -0.15644365549087524, 0.4645775556564331, -0.4397657513618469, 0.2557372748851776, -0.14696188271045685, 0.08080606907606125, -0.5763593316078186, 0.362354040145874, -0.19373823702335358, -0.5203656554222107, 0.40691661834716797, -0.5754860639572144, 0.9569978713989258, 0.4437848925590515, 0.025081276893615723, 0.36607325077056885, -0.6158566474914551, -0.005701729562133551, 0.06283395737409592, -0.4417419135570526, -0.20791815221309662, -0.19462904334068298, 0.7640356421470642, -0.008662394247949123, 0.3067573010921478, -0.5876929759979248, 0.1953437775373459, -0.4381985366344452, 0.9320003390312195, 0.47101372480392456, -0.06444300711154938, 0.4469771385192871, -0.48502445220947266, 0.09826698899269104, 0.20029135048389435, 0.46807244420051575, 0.22557273507118225, -0.4828074872493744, -0.7651541829109192, -0.0989271029829979, 0.4781484603881836, 0.4231928586959839, -0.6158320307731628, 0.22550548613071442, -0.2563817799091339, -1.022297739982605, -0.9647814631462097, -0.4139907658100128, 0.2513023018836975, 0.37942421436309814, 0.5849546790122986, -0.009480875916779041, -0.7315570116043091, -0.9169239401817322, -0.049558140337467194, -0.3515787124633789, -0.2533000111579895, 0.35003459453582764, 0.46491676568984985, -0.2081511914730072, 0.5296754837036133, -0.7154771089553833, -0.4833712577819824, -0.26771968603134155, 0.4028065800666809, 0.32773512601852417, 0.8419923782348633, 0.6983830332756042, -0.8473787307739258, -0.24066367745399475, -0.2651567757129669, -0.32792162895202637, -0.029578331857919693, -0.1330440789461136, -0.07299204915761948, -0.010997988283634186, 0.12795716524124146, -0.7331214547157288, 0.4040765166282654, 0.8343324065208435, -0.4043416678905487, 0.641340970993042, -0.09467428922653198, 0.05143889784812927, -1.313684105873108, 0.1903078258037567, 0.0895666629076004, -0.11241787672042847, -0.6108188033103943, 0.012310163117945194, 0.21612393856048584, 0.049495503306388855, -0.7774218320846558, 0.6710954308509827, -0.13236673176288605, -0.01946558989584446, -0.17698143422603607, -0.24921104311943054, -0.09638495743274689, 0.24169737100601196, 0.4060281813144684, 0.8723248243331909, 0.41071635484695435, -0.3952319920063019, 0.28336021304130554, 0.4775225818157196, -0.23965342342853546, 0.13743987679481506, -1.1635029315948486, 0.08335033059120178, 0.2575624883174896, 0.5536993145942688, -0.6360626816749573, -0.053413402289152145, 0.2911052107810974, -0.6429243683815002, 0.19124926626682281, -0.5942384600639343, -0.6291517019271851, -0.22996516525745392, -0.4701833426952362, 0.5221890807151794, 0.7183162569999695, -0.37876996397972107, 0.7464699745178223, 0.2172965258359909, 0.19181028008460999, 0.005623876582831144, -1.066552996635437, -0.06117049232125282, -0.27271732687950134, -0.8243918418884277, 0.7554002404212952, -0.29582086205482483, -0.1327996850013733, -0.09250213205814362, -0.010034283623099327, -0.38067471981048584, -0.13770124316215515, 0.4004333019256592, 0.44172343611717224, -0.4847314953804016, -0.24636787176132202, 0.48774755001068115, -0.3559543490409851, 0.13070355355739594, -0.4898830056190491, 0.7280530333518982, -0.11959493160247803, 0.10923285037279129, -0.7650661468505859, 0.05894940719008446, 0.539772629737854, -0.23948734998703003, 0.5676818490028381, 0.9451048970222473, -0.40233534574508667, -0.13545715808868408, -0.5380194187164307, -0.34263506531715393, -0.4944823086261749, 0.21306389570236206, -0.34515297412872314, -0.7300184965133667, 0.48283901810646057, 0.04495060816407204, -0.02454015053808689, 0.7941507697105408, 0.5546526908874512, 0.06412815302610397, 1.1681387424468994, 0.4113736152648926, 0.2687487304210663, 0.5043146014213562, -0.7687408328056335, -0.23769962787628174, -1.2578903436660767, -0.3021676540374756, -0.7064774632453918, -0.2603696286678314, -0.36223748326301575, -0.2860903739929199, 0.5574832558631897, 0.22990162670612335, -0.3930363357067108, 0.6556720733642578, -0.7575971484184265, -0.03140795975923538, 0.5100151896476746, 0.3436843454837799, 0.25315043330192566, -0.022266143932938576, 0.23960967361927032, -0.13085725903511047, -0.4222554862499237, -0.4370315968990326, 1.2521638870239258, 0.6383140683174133, 0.7998553514480591, 0.3485625982284546, 0.5871592164039612, 0.03989535942673683, 0.18621988594532013, -0.8227583765983582, 0.2583908140659332, -0.2565332353115082, -0.6693604588508606, -0.05771583318710327, -0.3660091459751129, -0.6563305854797363, -0.009640183299779892, -0.12947450578212738, -0.4902963936328888, -0.014841086231172085, -0.00457549374550581, -0.10383091866970062, 0.35005122423171997, -0.5869091153144836, 0.7620068788528442, 0.17402879893779755, 0.29701924324035645, -0.3011297583580017, -0.44941699504852295, 0.5149573683738708, 0.1725802719593048, -0.3283434212207794, 0.04531044512987137, -0.16418269276618958, 1.1810030937194824, -0.6126575469970703, 0.738654613494873, -0.4269593358039856, -0.10951532423496246, 0.7111756205558777, 0.18954624235630035, 0.37805595993995667, 0.24139167368412018, -0.16572457551956177, 0.4693526327610016, 0.431398868560791, -0.07419925183057785, -0.41542139649391174, 0.49791190028190613, -1.3404563665390015, -0.06486376374959946, -0.16906200349330902, -0.6451883316040039, 0.43259644508361816, 0.1147131696343422, 0.5632868409156799, 0.7350054383277893, 0.032069168984889984, 0.33135488629341125, 0.6963461637496948, 0.11948975920677185, 0.46429044008255005, 0.7327374219894409, -0.04590585082769394, -0.7137535214424133, 0.8102447390556335, 0.2808753252029419, 0.31954091787338257, 0.38091713190078735, 0.474992036819458, -0.5483163595199585, -1.0228707790374756, -0.42694732546806335, 0.10890690982341766, -0.6511892080307007, -0.3551504909992218, -0.6379671096801758, -0.5864911079406738, -0.48197850584983826, 0.1339118480682373, -0.6319571733474731, -0.7564331889152527, -0.6292814612388611, 0.3838557004928589, 0.6510050892829895, 0.46270424127578735, 0.01200073678046465, 0.7398753762245178, -1.052597999572754, 0.24123360216617584, -0.05391291156411171, 0.13778257369995117, 0.10029015690088272, -1.0738306045532227, -0.03637748584151268, 0.11522882431745529, -0.3478134870529175, -0.7756893634796143, 0.45290112495422363, 0.07498813420534134, 0.10676142573356628, 0.29986894130706787, 0.09595341235399246, 0.7493842840194702, -0.21870854496955872, 0.9498583674430847, 0.37822240591049194, -1.1127352714538574, 0.6352632641792297, -0.5603594779968262, 0.09236261248588562, 0.5021191239356995, 0.17723309993743896, -0.6522176265716553, -0.09812692552804947, -0.6537981033325195, -0.6481077075004578, 0.7889969944953918, 0.3955550193786621, -0.01683335192501545, 0.27079343795776367, 0.23655058443546295, 0.08806048333644867, 0.1827756017446518, -0.8433032631874084, -0.2751423716545105, -0.6412935853004456, -0.42762747406959534, 0.15050502121448517, -0.310217946767807, -0.1626053750514984, -0.2138592153787613, 0.7065895199775696, -0.22965781390666962, 0.43892380595207214, 0.5038082003593445, -0.10688194632530212, -0.15417525172233582, 0.02549196034669876, 0.748734712600708, 0.1685214787721634, -0.569359302520752, -0.06473765522241592, 0.11949468404054642, -0.8465760350227356, -0.06585881114006042, 0.05655226111412048, -0.3951808512210846, 0.1420968621969223, 0.5150639414787292, 0.835089921951294, 0.3901762366294861, -0.32994696497917175, 0.7105852961540222, -0.2141454666852951, -0.4597364664077759, -0.7608912587165833, 0.09025505185127258, 0.21580719947814941, 0.23180320858955383, 0.31579428911209106, 0.2947535216808319, 0.37863224744796753, -0.3931839168071747, -0.2858580946922302, 0.1301039308309555, -0.5555106401443481, -0.47822660207748413, 0.8142551183700562, 0.17207379639148712, -0.32647812366485596, 0.6856408715248108, 0.06555326282978058, -0.2009802907705307, 0.5063367486000061, 0.8774268627166748, 1.1545135974884033, -0.10054249316453934, 0.12239574640989304, 0.536380410194397, 0.3010832667350769, -0.27865636348724365, 0.6870827674865723, -0.10309558361768723, -0.4416634738445282, -0.3765888810157776, -0.7262579798698425, -0.35214972496032715, 0.07778750360012054, -0.9251766800880432, 0.38199710845947266, -0.6214395761489868, -0.2385110706090927, 0.009872151538729668, 0.11695891618728638, -0.547562301158905, 0.0635203868150711, 0.06316713988780975, 1.4676895141601562, -0.6898110508918762, 1.1699482202529907, 0.5291947722434998, -0.4772207736968994, -1.1544526815414429, -0.30319589376449585, -0.08310312777757645, -0.6992536187171936, 0.5661413073539734, 0.13597774505615234, 0.07726816087961197, 0.010626323521137238, -0.8005357980728149, -0.8733817338943481, 1.5179413557052612, 0.11587254703044891, -0.5756868720054626, -0.15618965029716492, 0.06004738435149193, 0.5251225233078003, -0.5714467763900757, 0.7390590906143188, 0.32979127764701843, 0.832234263420105, 0.09550809115171432, -1.17702054977417, 0.09323231130838394, -0.149364173412323, 0.2549743354320526, 0.11421585828065872, -0.9100287556648254, 1.2152665853500366, -0.077410988509655, -0.05652684345841408, 0.7974868416786194, 0.6682873368263245, 0.2996462881565094, 0.32010096311569214, 0.5054516792297363, 0.48134249448776245, 0.3298110067844391, -0.33988258242607117, 0.6562871932983398, -0.2527795135974884, 0.4783403277397156, 0.8364229798316956, -0.19933626055717468, 1.0155162811279297, 0.39456427097320557, 0.010797182098031044, 0.6695792078971863, 0.5179042220115662, -0.30634647607803345, 0.5414989590644836, -0.02037333883345127, -0.03461002930998802, -0.02890341356396675, -0.17481832206249237, -0.5203552842140198, 0.7185173630714417, 0.3896283805370331, -0.412145733833313, -0.07848577946424484, -0.1512226164340973, 0.04475679248571396, -0.1732407808303833, -0.404086709022522, 0.6682469248771667, -0.11644671112298965, -0.37932270765304565, 0.7250078320503235, 0.46240735054016113, 0.942745566368103, -0.9486410021781921, -0.18034416437149048, 0.3022971749305725, 0.09576543420553207, -0.25904589891433716, -0.7860021591186523, 0.4244098365306854, -0.326931893825531, -0.31875988841056824, -0.03375966101884842, 0.6940978765487671, -0.6401065587997437, -0.4227062165737152, 0.3812527358531952, 0.136290043592453, 0.27482670545578003, -0.27525725960731506, -0.8515587449073792, 0.4684305191040039, 0.1510789692401886, -0.3692903220653534, 0.2124413400888443, -0.018667444586753845, 0.06196853518486023, 0.531413197517395, 0.9277549386024475, 0.25448018312454224, -0.02807012014091015, 0.14712950587272644, 0.7947047352790833, -0.6259852051734924, -0.6465910077095032, -0.3464815318584442, 0.4969881772994995, -0.053084149956703186, -0.8245546817779541, 0.4845639169216156, 0.8231256008148193, 0.5390669107437134, -0.29643896222114563, 0.49759066104888916, 0.04586169496178627, 0.33472612500190735, -0.8891458511352539, 0.928194522857666, -0.4172494411468506, -0.11818257719278336, -0.07550916075706482, -0.9578286409378052, 0.07961084693670273, 0.36216631531715393, 0.03595450520515442, -0.2134552001953125, 0.6962301731109619, 0.9003482460975647, -0.1736556440591812, 0.27374157309532166, -0.03366563841700554, 0.3968174457550049, 0.3314201533794403, 0.602992832660675, 0.620862603187561, -0.9859161972999573, 0.8013430833816528, -0.3789850175380707, -0.13086333870887756, -0.08450766652822495, -0.6365310549736023, -0.9248384237289429, -0.6184722781181335, -0.40274786949157715, -0.6955345869064331, -0.16072219610214233, 0.9116515517234802, 1.0056416988372803, -0.5338851809501648, -0.4398879110813141, 0.1127205416560173, -0.1694057434797287, 0.006567664444446564, -0.3071656823158264, 0.43610048294067383, 0.36325427889823914, -0.6798900365829468, 0.4853743016719818, 0.08604752272367477, 0.5171673893928528, -0.3594532310962677, -0.4611736536026001, 0.2945074141025543, 0.022775547578930855, 0.3323694169521332, -0.03269800916314125, -0.8194994926452637, -0.17399218678474426, -0.24535579979419708, -0.03228006511926651, 0.0868600383400917, 0.7405447959899902, -0.6335989236831665, 0.043867241591215134, 0.5418294072151184, -0.18767282366752625, 0.7953790426254272, -0.44979631900787354, 0.2352151721715927, -0.5011873841285706, 0.5168100595474243, 0.3159467875957489, 0.4370306730270386, 0.12817762792110443, -0.07608311623334885, 0.4626895487308502, 0.2804703414440155, -0.4006858468055725, -0.9684782028198242, -0.057339590042829514, -1.3917959928512573, -0.10943715274333954, 1.1414629220962524, 0.04368767514824867, -0.39936235547065735, 0.3095471262931824, -0.6780531406402588, 0.38620051741600037, -0.688187301158905, 0.26580119132995605, 0.1571749448776245, 0.4625391662120819, -0.06930707395076752, -0.5059044361114502, 0.3631829023361206, -0.022999119013547897, -0.42024481296539307, -0.05674896761775017, 0.14785565435886383, 0.5202376842498779, 0.4259936809539795, 0.505427896976471, -0.48589202761650085, 0.4848998785018921, 0.3013288378715515, 0.3089354634284973, -0.3149176239967346, -0.43809500336647034, -0.28332847356796265, -0.009453421458601952, -0.009167362935841084, -0.20389260351657867 ]
roneneldan/TinyStories-1M
roneneldan
"2023-05-17T22:10:57Z"
21,789
23
transformers
[ "transformers", "pytorch", "gpt_neo", "text-generation", "arxiv:2305.07759", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2023-05-12T19:01:50Z"
Model trained on the TinyStories Dataset, see https://arxiv.org/abs/2305.07759 ------ EXAMPLE USAGE --- from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig model = AutoModelForCausalLM.from_pretrained('roneneldan/TinyStories-1M') tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neo-125M") prompt = "Once upon a time there was" input_ids = tokenizer.encode(prompt, return_tensors="pt") # Generate completion output = model.generate(input_ids, max_length = 1000, num_beams=1) # Decode the completion output_text = tokenizer.decode(output[0], skip_special_tokens=True) # Print the generated text print(output_text)
[ -0.3189094364643097, -0.3746470808982849, 0.3801857829093933, 0.01254452858120203, -0.29147958755493164, -0.25381916761398315, 0.02006106823682785, 0.04087617248296738, 0.07543754577636719, 0.3173566460609436, -0.8536878824234009, -0.47648710012435913, -0.6365185976028442, 0.4009009897708893, -0.4971978962421417, 1.0844697952270508, 0.09348864108324051, 0.07627957314252853, 0.2680242657661438, 0.16875816881656647, -0.21709859371185303, -0.3869893550872803, -0.8347458839416504, -0.3130910098552704, 0.11193645745515823, 0.16118262708187103, 0.5067774653434753, 0.7065649628639221, 0.3027251660823822, 0.3874088525772095, -0.17431887984275818, 0.27982664108276367, -0.37393683195114136, -0.25976336002349854, 0.007669934071600437, -0.41406649351119995, -0.505561113357544, -0.16945824027061462, 0.8943858742713928, 0.472921222448349, 0.10403887927532196, 0.36285847425460815, 0.28166261315345764, -0.05348772183060646, -0.27527156472206116, 0.2668151259422302, -0.6714518070220947, 0.35696762800216675, 0.05244934558868408, -0.10412965714931488, -0.3985467255115509, -0.10243096947669983, 0.10008040070533752, -0.9624503254890442, 0.7369871139526367, 0.13638226687908173, 1.2095246315002441, 0.5175605416297913, -0.5972446203231812, -0.3481993079185486, -0.5307043194770813, 0.8800991773605347, -0.7437857389450073, 0.1662285327911377, 0.4367072880268097, 0.16916793584823608, -0.04767272621393204, -1.2866711616516113, -0.5571677684783936, 0.02077675238251686, -0.6023855209350586, -0.1444512903690338, -0.0917772501707077, 0.08480266481637955, 0.6243953108787537, 0.3146311342716217, -0.5985391736030579, -0.21100802719593048, -0.3980427086353302, -0.29237592220306396, 0.40226423740386963, 0.6197156310081482, -0.10010114312171936, -0.8301306366920471, -0.4301906228065491, -0.4443117380142212, -0.3857874274253845, -0.1689189225435257, 0.12853500247001648, 0.31705474853515625, -0.16172219812870026, 0.6676873564720154, -0.1993616670370102, 0.6473137140274048, 0.34433650970458984, 0.0829286053776741, 0.4012799561023712, -0.8026618361473083, -0.39885416626930237, -0.21017590165138245, 1.0840517282485962, -0.09154067188501358, -0.09163684397935867, -0.10308396071195602, -0.42484939098358154, -0.1832917183637619, 0.14604055881500244, -1.0558245182037354, -0.4039980173110962, 0.06223472207784653, -0.6310155391693115, -0.4471263289451599, 0.11354091018438339, -0.5900044441223145, 0.047263965010643005, -0.3049411475658417, 0.7383536696434021, -0.3146546185016632, -0.07989034801721573, 0.047058191150426865, -0.10182662308216095, 0.03370584920048714, -0.1605483740568161, -0.9703197479248047, 0.2529565393924713, 0.4042390286922455, 0.9635159373283386, 0.2488567978143692, -0.48583826422691345, -0.4432518482208252, 0.17027798295021057, -0.15050341188907623, 0.37357982993125916, 0.13442173600196838, -0.6413613557815552, -0.10982245206832886, 0.32606589794158936, -0.25916218757629395, -0.37324509024620056, 0.3977282643318176, -0.2798556387424469, 0.3716756999492645, -0.0493498295545578, -0.6088361740112305, 0.0388125441968441, 0.3003407418727875, -0.436008483171463, 0.9475303888320923, 0.2709771692752838, -0.8060370683670044, 0.5607300400733948, -0.6087715029716492, -0.2508203089237213, 0.00040900491876527667, -0.09905308485031128, -0.7024717330932617, 0.27629366517066956, 0.30427277088165283, 0.3562938868999481, -0.0034066406078636646, 0.39471039175987244, -0.29723289608955383, -0.29881712794303894, 0.06958809494972229, -0.508592426776886, 0.9153407216072083, 0.2994791269302368, -0.3641107678413391, 0.08597143739461899, -0.7802125215530396, -0.04934005066752434, 0.2799430787563324, -0.2743411064147949, -0.035078708082437515, -0.3009497821331024, 0.18882441520690918, 0.18804818391799927, 0.5211061835289001, -0.554172694683075, 0.4949706792831421, -0.4468202292919159, 0.5076701045036316, 0.6868922710418701, 0.18515440821647644, 0.44526204466819763, -0.2101869434118271, 0.3222062289714813, 0.10655070841312408, 0.40617793798446655, -0.2154354453086853, -0.2128916084766388, -1.0590248107910156, -0.34985917806625366, 0.4603423476219177, 0.23209963738918304, -0.864514946937561, 0.6076241135597229, -0.3780302107334137, -0.45783212780952454, -0.4432740807533264, 0.034611862152814865, 0.20750492811203003, 0.4266257882118225, 0.36007916927337646, -0.04151428863406181, -0.8797626495361328, -0.8467155694961548, 0.13945387303829193, -0.05689161270856857, -0.2912191152572632, 0.24433836340904236, 0.9647865891456604, -0.5360407829284668, 1.1604993343353271, -0.6762767434120178, -0.44638699293136597, 0.056309521198272705, 0.4178928732872009, 0.5202624797821045, 0.7493339776992798, 0.600706160068512, -0.47430741786956787, -0.2873936593532562, -0.4020732045173645, -0.7249449491500854, 0.09922438114881516, -0.1542547047138214, -0.1376502364873886, -0.09228966385126114, 0.3629118800163269, -0.9466666579246521, 0.5012399554252625, 0.2979740500450134, -0.689008355140686, 0.5413534045219421, -0.30732205510139465, 0.030067039653658867, -1.4870686531066895, 0.22391940653324127, -0.34894487261772156, -0.38742733001708984, -0.287105530500412, -0.11894064396619797, 0.08725838363170624, -0.23437228798866272, -0.4409674108028412, 0.7740525007247925, -0.41735920310020447, -0.17862895131111145, -0.3248160481452942, -0.10951107740402222, 0.17579908668994904, 0.40441736578941345, 0.18623246252536774, 0.6763390898704529, 0.5748435258865356, -0.751289963722229, 0.4033746123313904, 0.6697725653648376, -0.2235787808895111, -0.041580211371183395, -0.8407431840896606, 0.1811429262161255, 0.0009314767085015774, 0.15062469244003296, -0.9455831050872803, -0.17447315156459808, 0.21513700485229492, -0.4682133197784424, 0.38714125752449036, -0.5131654739379883, -0.8157692551612854, -0.6720655560493469, 0.04415979981422424, 0.6464238166809082, 0.3022952973842621, -0.8433060646057129, 0.7249962687492371, 0.1744643896818161, 0.11540696769952774, -0.4391457438468933, -0.7284547090530396, -0.22920773923397064, -0.14239732921123505, -0.38703128695487976, 0.14921870827674866, -0.10671034455299377, 0.19882901012897491, -0.020951561629772186, 0.34498390555381775, 0.08870386332273483, 0.04329580068588257, 0.27906087040901184, 0.4696781039237976, -0.19778792560100555, 0.07669637352228165, 0.11508441716432571, -0.5025948882102966, 0.07663630694150925, -0.44009503722190857, 0.8827303051948547, -0.41928982734680176, -0.2298077791929245, -0.408491849899292, 0.10079701989889145, 0.25270751118659973, 0.12067179381847382, 0.7981119751930237, 0.7600281834602356, -0.5727534294128418, -0.16923120617866516, -0.16019625961780548, -0.6669197678565979, -0.5518872141838074, 0.5354011654853821, -0.5363909006118774, -0.627124547958374, 0.7596394419670105, 0.26941192150115967, 0.13331162929534912, 0.7869253754615784, 0.44643113017082214, 0.16684278845787048, 1.3057403564453125, 0.4063371419906616, 0.1634262055158615, 0.45765194296836853, -0.988113284111023, 0.12035616487264633, -0.7285909652709961, -0.18468967080116272, -0.4986129701137543, -0.13860353827476501, -0.4638060927391052, -0.22400888800621033, 0.3301839828491211, 0.24205470085144043, -0.4683845043182373, 0.7086935639381409, -0.6670584678649902, 0.3001422584056854, 0.42437005043029785, -0.07471304386854172, 0.20239369571208954, -0.03736181557178497, -0.2766716480255127, -0.03834724426269531, -1.0427366495132446, -0.4322919547557831, 1.2078220844268799, 0.37054944038391113, 0.686184287071228, -0.16449737548828125, 0.89505535364151, 0.1238587275147438, 0.4957917630672455, -0.7344323992729187, 0.3736018240451813, -0.19290950894355774, -0.9284529089927673, -0.164900004863739, -0.692059338092804, -0.8654931783676147, 0.16256721317768097, -0.06709218770265579, -0.5376971364021301, 0.46383172273635864, 0.26229560375213623, -0.7145463824272156, 0.3437424302101135, -0.5832493901252747, 1.1216340065002441, 0.025598803535103798, -0.0716337338089943, -0.027854107320308685, -0.2845360040664673, 0.33488303422927856, -0.03484189137816429, -0.03432708606123924, 0.2743884027004242, -0.036194078624248505, 0.93268221616745, -0.5210410952568054, 0.894156813621521, -0.23732171952724457, 0.4245160222053528, 0.3316705524921417, 0.0647803321480751, 0.5015484094619751, 0.38550978899002075, 0.1120188981294632, 0.26951929926872253, 0.16871145367622375, -0.38372287154197693, -0.21800357103347778, 0.6969383358955383, -1.0338135957717896, -0.302251398563385, -0.46887028217315674, -0.499846875667572, 0.2311680018901825, 0.4385835826396942, 0.9598581790924072, 0.6699841618537903, -0.25957053899765015, 0.1083260029554367, 0.5441095232963562, 0.12192081660032272, 0.8677172064781189, 0.3793385922908783, -0.35240989923477173, -0.6440070271492004, 0.6037996411323547, 0.136963352560997, -0.0014264733763411641, -0.028375711292028427, 0.045067038387060165, -0.5605208873748779, -0.22601717710494995, -0.5647634267807007, 0.4025169610977173, -0.6789042949676514, -0.5891255140304565, -0.8433337807655334, -0.5121936202049255, -0.6398518085479736, 0.029938936233520508, -0.6297500729560852, -0.4986565411090851, -0.8052559494972229, -0.13585993647575378, 0.2971104085445404, 0.7309512495994568, -0.30882272124290466, 0.7102611660957336, -0.9005282521247864, 0.30926746129989624, 0.4863375425338745, 0.023033974692225456, 0.05591772124171257, -1.0025758743286133, -0.4070345163345337, -0.04343052953481674, -0.22789812088012695, -0.710914134979248, 0.5436811447143555, 0.14529240131378174, 0.32953691482543945, 0.5554544925689697, -0.07346925139427185, 0.45957478880882263, -0.3246341049671173, 0.7105712294578552, 0.10066451877355576, -0.9954667091369629, 0.5916926860809326, -0.3066940903663635, 0.46526604890823364, 0.4636562168598175, 0.14000366628170013, -0.23530127108097076, -0.08110018074512482, -0.9993312358856201, -1.005415916442871, 0.8426821827888489, 0.30997154116630554, 0.11356324702501297, -0.16491441428661346, 0.3598605990409851, 0.1156199499964714, 0.18730327486991882, -1.0141578912734985, -0.3375258445739746, -0.5627965927124023, -0.3513636291027069, -0.01827232725918293, -0.26031357049942017, -0.27797797322273254, -0.34398502111434937, 1.0271536111831665, -0.2663270831108093, 0.5000912547111511, 0.2310010939836502, -0.2642046809196472, -0.07833196967840195, 0.0003978733438998461, 0.4958314597606659, 0.5525229573249817, -0.31940487027168274, -0.08706075698137283, 0.41474032402038574, -0.34296679496765137, 0.11377167701721191, 0.378629207611084, -0.5202175378799438, 0.3329438269138336, 0.1877133548259735, 1.0809276103973389, 0.05591205134987831, 0.019924109801650047, 0.4719005525112152, -0.4034203588962555, -0.2489805668592453, -0.6492487192153931, 0.036147017031908035, -0.20964565873146057, 0.13318221271038055, 0.531598687171936, 0.08635057508945465, 0.10218558460474014, -0.19833700358867645, 0.31969544291496277, 0.3358154296875, -0.29210564494132996, -0.2918506860733032, 0.8471319675445557, -0.038336753845214844, -0.2501184046268463, 0.8060991168022156, -0.39361217617988586, -0.4831797182559967, 0.6733779311180115, 0.5960168838500977, 1.016676902770996, 0.08047184348106384, 0.06131143122911453, 0.7832237482070923, 0.419651061296463, -0.08266689628362656, 0.07164648175239563, -0.21315360069274902, -0.8085808157920837, -0.3471687138080597, -0.9654351472854614, -0.004535643849521875, 0.23400284349918365, -0.6824207305908203, 0.3690274953842163, -0.5589120984077454, -0.5890400409698486, -0.16589678823947906, 0.20817063748836517, -1.1076105833053589, 0.2720322906970978, 0.05189116299152374, 0.8597556352615356, -1.0525048971176147, 0.9680361151695251, 0.611472487449646, -0.447427898645401, -0.9961713552474976, -0.25246310234069824, -0.2140786498785019, -0.7031466960906982, 0.6238921284675598, 0.07798957824707031, 0.17988979816436768, 0.33871254324913025, -0.5493385195732117, -1.003542184829712, 1.1715456247329712, 0.02463136799633503, -0.5308365225791931, -0.3419528901576996, 0.17707869410514832, 0.3987886905670166, -0.5941926836967468, 0.5255274772644043, 0.6317821741104126, 0.3626435697078705, -0.2733337879180908, -0.6694285273551941, -0.06938434392213821, -0.30188578367233276, 0.2101186066865921, 0.0240324717015028, -0.5993011593818665, 1.0289452075958252, -0.14553114771842957, -0.09240423142910004, 0.5133427977561951, 0.8940926194190979, 0.43915101885795593, 0.12030302733182907, 0.5923964977264404, 0.7408531308174133, 0.4662545621395111, -0.318521648645401, 0.9465367794036865, -0.38091784715652466, 1.065285325050354, 1.1309638023376465, 0.28313589096069336, 0.4177982211112976, 0.3434765338897705, 0.13624225556850433, 0.288980633020401, 0.7186789512634277, -0.43465280532836914, 0.7445387244224548, -0.16391251981258392, -0.14001712203025818, -0.2689458429813385, 0.10341565310955048, -0.580999493598938, 0.27996551990509033, 0.4024536907672882, -0.6149483919143677, -0.07446479797363281, 0.22945958375930786, -0.140828475356102, -0.6145221590995789, -0.3121671676635742, 0.6468623876571655, 0.17150920629501343, -0.35576847195625305, 0.6211777925491333, 0.041445452719926834, 0.7227151393890381, -0.6902259588241577, 0.2749263346195221, -0.19779138267040253, 0.4372163414955139, -0.029077941551804543, -0.5091733932495117, 0.28956833481788635, -0.07241998612880707, -0.4884244203567505, -0.1769399344921112, 0.658317506313324, -0.4537701904773712, -0.6345703601837158, 0.21007715165615082, 0.15788908302783966, 0.05435312166810036, 0.12256155908107758, -0.7880964279174805, -0.24041211605072021, 0.026302609592676163, -0.654741108417511, -0.011518269777297974, 0.528784990310669, 0.4577302038669586, 0.5179369449615479, 0.6007264852523804, -0.052768461406230927, 0.35505738854408264, 0.025356236845254898, 0.8790543675422668, -0.5669420957565308, -0.6892547607421875, -0.6455096006393433, 0.5662036538124084, -0.13554683327674866, -0.7287362813949585, 0.7465981245040894, 0.8443046808242798, 0.9104910492897034, -0.33333051204681396, 0.4506244361400604, -0.1130138635635376, 0.40652671456336975, -0.4831365644931793, 0.872069776058197, -0.5142291188240051, 0.06912101805210114, 0.0714275911450386, -1.0764530897140503, 0.10175527632236481, 0.8025035858154297, -0.25447601079940796, 0.18577589094638824, 0.7194003462791443, 0.9867252707481384, -0.5063059329986572, 0.03527924045920372, 0.19008205831050873, 0.6121063232421875, 0.10805545002222061, 0.3555641174316406, 0.7757490277290344, -1.020035743713379, 0.6296075582504272, -0.5385783910751343, 0.07358401268720627, -0.04178015887737274, -0.6120170950889587, -0.7801803946495056, -0.3963180482387543, -0.25503700971603394, -0.7208870649337769, -0.3206641972064972, 1.048245906829834, 0.9043834805488586, -1.1175588369369507, -0.10219327360391617, -0.14336685836315155, -0.17347753047943115, 0.1497184783220291, -0.32247719168663025, 0.5913517475128174, -0.35130077600479126, -0.8016011118888855, 0.38346391916275024, -0.26929962635040283, 0.4410378336906433, -0.2627834379673004, -0.2325289249420166, -0.029040103778243065, 0.010106519795954227, 0.2216552495956421, 0.17329010367393494, -0.37557467818260193, -0.29859939217567444, -0.09236998856067657, -0.42500895261764526, 0.011915970593690872, 0.6837984323501587, -0.9012391567230225, 0.3029356300830841, 0.4351744055747986, 0.2711569666862488, 0.8987693190574646, -0.3209404945373535, 0.4158051013946533, -0.9128652811050415, 0.45443809032440186, 0.18742960691452026, 0.7977131605148315, 0.4210241436958313, -0.32478463649749756, 0.5041559934616089, 0.43519383668899536, -0.6823784112930298, -0.8381714820861816, -0.0523134283721447, -0.6128255724906921, -0.15772873163223267, 0.9212485551834106, -0.17151713371276855, -0.3880031108856201, 0.04195519536733627, -0.09447219967842102, 0.66799396276474, -0.1767743080854416, 0.852573037147522, 0.4729050099849701, 0.2452985793352127, -0.04568099603056908, -0.15172326564788818, 0.6443831324577332, 0.554759681224823, -0.583721935749054, -0.14235566556453705, 0.27050286531448364, 0.4325413703918457, 0.4149737060070038, 0.5431827902793884, -0.10418189316987991, 0.2735341787338257, 0.3089691400527954, 0.09043755382299423, -0.2405950129032135, -0.4589952230453491, -0.41888025403022766, 0.144947811961174, -0.1646030694246292, -0.3762887120246887 ]
digiplay/RealCartoon3D_v6
digiplay
"2023-08-03T16:51:10Z"
21,755
8
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:other", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-08-03T16:29:31Z"
--- license: other tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true --- Model info : https://civitai.com/models/94809/realcartoon3d
[ -0.40886837244033813, -0.261726051568985, 0.7382084131240845, 0.2833062410354614, -0.3418603241443634, -0.029025765135884285, 0.6995927095413208, -0.6255127191543579, 0.29822975397109985, 0.580594003200531, -0.8459113240242004, 0.099874347448349, 0.0777350515127182, -0.35867518186569214, -0.564730703830719, 0.3342607617378235, 0.3112793266773224, 0.548298716545105, -0.043354518711566925, 0.09522383660078049, -0.07458452880382538, -0.48266708850860596, -0.9309262633323669, 0.18003080785274506, 0.6337090730667114, 0.42044544219970703, 0.9931801557540894, 0.7992139458656311, 0.39534109830856323, 0.3088585138320923, -0.19724060595035553, -0.3420673608779907, -0.23950554430484772, -0.5750789046287537, 0.23255935311317444, -0.6166289448738098, -0.9588654637336731, -0.10615412890911102, 0.26785656809806824, 0.4805527925491333, -0.06605906039476395, 0.09392671287059784, -0.08296727389097214, 0.2402523308992386, -0.8510167002677917, 0.33727630972862244, 0.47033002972602844, 0.19721995294094086, -0.19537536799907684, -0.05339118093252182, -0.10381874442100525, -0.7202235460281372, -0.18877340853214264, -1.312149167060852, 0.5587139129638672, -0.06246680021286011, 1.4096424579620361, 0.1448529213666916, -0.5468778014183044, -0.24015562236309052, -0.9542891979217529, 0.26111871004104614, -0.7164458632469177, 0.8830452561378479, 0.2052811086177826, 0.895506739616394, -0.5401728749275208, -0.5875294208526611, -0.35914862155914307, -0.20085543394088745, -0.021947618573904037, 0.3549293279647827, 0.09010562300682068, 0.01133042760193348, 0.20223794877529144, 0.7245455384254456, -0.8923760652542114, -0.11710932850837708, -1.0252439975738525, -0.1148156225681305, 0.407684862613678, -0.09801053255796432, 0.1576402187347412, -0.006397022865712643, -0.6935107707977295, -0.12077441811561584, -0.6416848301887512, 0.05104013904929161, 0.5091981291770935, -0.04030076041817665, -0.6137367486953735, 0.7039149403572083, -0.3693750202655792, 1.0505993366241455, 0.02154616266489029, 0.24716678261756897, 0.020491285249590874, -0.5531257390975952, -0.5872392058372498, 0.20168448984622955, 0.14523199200630188, 0.4365798830986023, 0.28433114290237427, -0.11229820549488068, -0.022132139652967453, -0.8895536661148071, 0.3774779438972473, -0.9992983937263489, -0.5222655534744263, 0.1635858118534088, -0.646209180355072, -0.21102160215377808, 0.7227529287338257, -0.5786508321762085, -0.09983251988887787, -0.045094676315784454, 0.2851710617542267, -0.1788911521434784, -0.809759795665741, 0.2584441602230072, -0.22118046879768372, 0.30221235752105713, 0.47460776567459106, -0.6457681059837341, 0.4422716796398163, 0.6548802256584167, 1.095245361328125, 0.3633829653263092, 0.014698524959385395, -0.19132542610168457, 0.32220253348350525, -0.18461772799491882, 0.8278966546058655, -0.3461161255836487, -0.8018559813499451, 0.12037206441164017, 0.4694349467754364, -0.0022298062685877085, -0.6179348826408386, 0.5796586871147156, -0.8814414143562317, 0.12053632736206055, -0.33307260274887085, -0.4773632287979126, -0.5071552991867065, 0.41993772983551025, -1.3468188047409058, 0.5040217041969299, 0.08727247267961502, -0.6924334168434143, 0.05974114313721657, -0.4913303554058075, -0.27636823058128357, 0.344607949256897, -0.03724377229809761, -0.36446908116340637, 0.5534094572067261, -0.6042540669441223, 0.26252591609954834, -0.5448551774024963, 0.2057129293680191, -0.6150623559951782, -0.56600022315979, 0.06484398245811462, -0.33649128675460815, 1.1522791385650635, 0.5132663249969482, 0.1390848457813263, 0.21332676708698273, -1.3367398977279663, -0.4041029214859009, 0.46789422631263733, -0.15641799569129944, 0.27594324946403503, -0.5487423539161682, 0.011901048943400383, 0.2960190773010254, 0.33512893319129944, -0.5732134580612183, -0.04858548939228058, -0.006409888155758381, -0.15439683198928833, 0.22832687199115753, 0.03400328382849693, -0.21762233972549438, -0.49187546968460083, 0.9174613952636719, -0.15843698382377625, 0.8992475271224976, 0.4942724406719208, -0.8763609528541565, -1.4532328844070435, -0.29915422201156616, 0.05172085389494896, 0.5675527453422546, -0.9324381351470947, 0.5469650626182556, 0.12774723768234253, -0.7815994024276733, 0.1380539983510971, -0.6399742364883423, 0.3462929427623749, 0.31708642840385437, -0.057170357555150986, -0.161858469247818, -0.35642796754837036, -1.600692629814148, 0.12414190173149109, -0.2539156973361969, -0.5449602603912354, 0.30880942940711975, 0.43365663290023804, 0.169673889875412, 0.8308970332145691, -0.6129888296127319, -0.024694928899407387, -0.03222331404685974, 0.08141893893480301, 0.3407398462295532, 0.44940823316574097, 1.233659029006958, -0.9425748586654663, -0.13467945158481598, -0.19240376353263855, -0.504216730594635, 0.07890280336141586, 0.09289098531007767, -0.25978386402130127, -0.5647581219673157, 0.406343936920166, -0.76105797290802, 0.7553996443748474, 0.5914163589477539, -0.2046942412853241, 0.32795271277427673, -0.44891709089279175, 0.5840301513671875, -1.0866525173187256, 0.3869289755821228, 0.14019334316253662, -0.3151586353778839, -0.19507244229316711, -0.2309490293264389, 0.3466884195804596, 0.35889843106269836, -1.0682803392410278, 0.15571890771389008, -0.736871063709259, 0.0951089859008789, -0.20037725567817688, -0.025411834940314293, -0.03496873006224632, 0.4553195536136627, 0.28349992632865906, 0.7658150792121887, 0.2805703580379486, -0.9425152540206909, 0.7624792456626892, -0.016922926530241966, -0.6819215416908264, 0.0342668853700161, -0.8808663487434387, -0.0589333102107048, 0.055518366396427155, 0.12586665153503418, -0.8775197267532349, -0.641471266746521, 0.06671566516160965, -0.18537496030330658, -0.1634441316127777, -0.48194730281829834, -0.6055353879928589, -0.47142788767814636, -0.11908932030200958, 0.7118189930915833, -0.11780713498592377, -0.7748680710792542, 0.38697242736816406, 0.33083292841911316, -0.0814267247915268, 0.433504581451416, -0.628498375415802, -0.1673860400915146, -0.1497543454170227, -0.4148738980293274, 0.4333505928516388, -0.20506292581558228, -0.4925747513771057, -0.4388759434223175, 0.4418255090713501, -0.7880988717079163, 0.14800788462162018, 0.37479937076568604, 0.5689880847930908, -0.14842890202999115, -0.05735603719949722, 0.020722292363643646, -0.24397189915180206, 0.44748547673225403, 0.4024452865123749, 0.593911349773407, -0.27054697275161743, 0.11137579381465912, -0.8553666472434998, 0.15254981815814972, 0.8681420087814331, 0.12933751940727234, 0.7871437668800354, 0.42973726987838745, -1.0894701480865479, 0.3721524477005005, -0.7431865334510803, -0.10836800932884216, -0.49121174216270447, 0.20136459171772003, -0.9558547139167786, -0.13256016373634338, 0.2638069987297058, -0.026959259063005447, -0.3767484128475189, 0.7231175303459167, 0.48149043321609497, 0.3271954655647278, 1.3818461894989014, 0.9649295210838318, 0.8410672545433044, 0.36196082830429077, -0.6825876235961914, 0.18691477179527283, -0.669417679309845, -0.7602806091308594, -0.5499775409698486, 0.18826712667942047, -0.1367035210132599, -0.5578432679176331, -0.07378941774368286, 0.3980518579483032, -0.6188732981681824, 0.7905184030532837, -0.37025511264801025, 0.3937497138977051, 0.723642110824585, -0.006363740190863609, 0.3621492385864258, -0.7197498679161072, -0.17366831004619598, 0.18318399786949158, -0.6783432364463806, -0.611272394657135, 0.35229718685150146, 0.17683880031108856, 0.2926939129829407, 0.6897898316383362, 0.15427358448505402, 0.023872854188084602, 0.292522132396698, -0.3693768382072449, 0.3296566605567932, 0.18069814145565033, -1.2939420938491821, 0.5043045282363892, -0.05950426682829857, -0.45501723885536194, 0.18323102593421936, -0.30525124073028564, -0.04596363753080368, 0.8412340879440308, 0.2901875078678131, -1.052245020866394, 0.6162722706794739, -0.8417612910270691, 0.8624462485313416, -0.9950263500213623, -0.23627981543540955, -0.05416252836585045, -0.4845947027206421, 0.8491786122322083, 0.14062130451202393, 0.44304412603378296, 0.1398414820432663, 0.16775277256965637, 0.562847375869751, -0.9492261409759521, 0.4471222460269928, -0.23433853685855865, 0.11051469296216965, -0.019876934587955475, 0.2792806029319763, 0.13630898296833038, 0.6127234101295471, 0.03903358802199364, -0.1243291050195694, 0.09542151540517807, -0.11266272515058517, -0.14739051461219788, 1.0987112522125244, -0.7730147838592529, -0.4465828537940979, -0.9511469602584839, -0.04695698246359825, -0.30831483006477356, 0.07232895493507385, 0.8315773010253906, 0.5065020322799683, -0.770877480506897, 0.1527959704399109, 0.8613475561141968, -0.10760410130023956, 0.7911563515663147, 0.42120030522346497, -0.4471454620361328, -0.6550859808921814, 0.44448229670524597, -0.15394285321235657, 0.4264821410179138, 0.4803929328918457, 0.1288360208272934, -0.09302178770303726, -0.18615031242370605, -0.7135152220726013, 0.5870217680931091, 0.04884715378284454, -0.3043546974658966, -0.642024040222168, -0.44981229305267334, -0.42841845750808716, -0.24641768634319305, -0.9981679916381836, -0.6711047887802124, -0.7108083963394165, -0.30737099051475525, 0.38578125834465027, 1.3347980976104736, 0.2428618222475052, 0.6570996046066284, -0.6193217635154724, 0.34755176305770874, 0.5990921854972839, 0.7158394455909729, 0.25028687715530396, -0.4997827708721161, -0.395201176404953, 0.47237280011177063, -0.5604605078697205, -0.6217958927154541, 0.6139535903930664, -0.2639484703540802, 0.31947728991508484, 0.7061815857887268, -0.11889857798814774, 1.2679848670959473, -0.4969126284122467, 0.9728430509567261, 0.7074540853500366, -0.7748317718505859, 0.38662514090538025, -0.1831558644771576, 0.4795902371406555, 0.548793375492096, 0.661780595779419, 0.10623906552791595, 0.2390052229166031, -0.8274365663528442, -0.5796865224838257, 0.5079635381698608, 0.38496845960617065, -0.5406795144081116, 0.3830585181713104, 0.7453389763832092, 0.3431432545185089, 0.05739164724946022, -0.7666167616844177, -0.20004688203334808, -0.6420444250106812, -0.0720115453004837, 0.1467439830303192, -0.4615638852119446, -0.13249140977859497, -0.47685039043426514, 0.9364647269248962, 0.07865685969591141, 0.27173393964767456, 0.4426019489765167, -0.16607548296451569, 0.016438882797956467, -0.19276894629001617, 1.234569787979126, 0.8287716507911682, -0.9900544285774231, 0.04899757355451584, -0.2977634370326996, -0.4523858428001404, -0.2784308195114136, 0.22940987348556519, 0.35852816700935364, -0.11931410431861877, 0.3045586943626404, 0.953331708908081, 0.4913939833641052, -0.5251668691635132, 0.7398450374603271, -0.8001931309700012, -0.0440945066511631, -0.9964567422866821, 0.30430078506469727, 0.23188115656375885, 0.3834835886955261, 0.22455523908138275, -0.09164946526288986, 0.5562080144882202, -0.564252495765686, 0.018112849444150925, 0.01409539207816124, -0.8323395848274231, -0.9219437837600708, 1.5893709659576416, 0.6337241530418396, -0.8040196299552917, 0.8302167654037476, 0.015502264723181725, -0.14943429827690125, 0.8810835480690002, 0.6970738768577576, 1.240153193473816, -0.4921257197856903, 0.3152533173561096, 0.6125479340553284, -0.1348993182182312, -0.15344874560832977, 0.22182925045490265, -0.11573128402233124, -0.19627369940280914, 0.24976029992103577, -0.15041574835777283, -0.6690578460693359, 0.2208695262670517, -1.2050955295562744, 0.4973864257335663, -0.9121888875961304, -0.16674770414829254, -0.01929846592247486, -0.059800948947668076, -0.7272884845733643, 1.0592401027679443, 0.2845715284347534, 1.3457616567611694, -0.6205459833145142, 1.5202140808105469, 0.3531816899776459, -0.7392401099205017, -0.2227780520915985, -0.33689701557159424, -0.021338876336812973, -0.6445181965827942, 0.2625718414783478, 0.3328603506088257, -0.44307005405426025, -0.1743115335702896, -0.7106397151947021, -1.1650638580322266, 1.3460286855697632, 0.40161988139152527, -1.1645631790161133, -0.038994789123535156, -0.15164627134799957, 0.4209497272968292, -0.6593416929244995, 0.49732664227485657, 0.37553536891937256, 0.6421294808387756, 0.39883705973625183, -0.8500710725784302, -0.2225884348154068, -0.8138594031333923, 0.08508261293172836, -0.2906133532524109, -1.1167312860488892, 0.7256708145141602, -0.16886766254901886, -0.06569008529186249, 0.4956364035606384, 0.8118298053741455, 0.39576229453086853, -0.15938979387283325, 0.927683413028717, 0.5366472005844116, 0.3819165527820587, -0.036182742565870285, 1.4970005750656128, -0.11630155146121979, 0.15025536715984344, 1.0237951278686523, -0.3694521188735962, 0.39424604177474976, 0.16048067808151245, 0.22230449318885803, 0.4836788475513458, 1.1129257678985596, -0.2045644372701645, 0.4601905047893524, -0.11361494660377502, -0.39367279410362244, -0.39712607860565186, 0.023484716191887856, -0.40376684069633484, 0.1769525706768036, 0.2156822830438614, -0.3537543714046478, 0.28226080536842346, -0.05529429763555527, 0.00788060948252678, -0.24973829090595245, -0.2611108124256134, 0.5108965635299683, -0.23909084498882294, -0.47591355443000793, 0.46161696314811707, -0.09487753361463547, 0.22392970323562622, -0.6251353025436401, -0.07695683091878891, -0.1775936335325241, 0.4284015893936157, -0.1507594883441925, -0.4621289074420929, 0.20891080796718597, -0.17827217280864716, -0.29638245701789856, 0.04322465509176254, 0.13299749791622162, -0.07772181928157806, -0.9990065097808838, 0.5509191751480103, -0.3229515254497528, 0.1833852231502533, 0.13292674720287323, -0.7762247920036316, 0.42939090728759766, 0.20917417109012604, -0.15474167466163635, -0.23173578083515167, -0.5642455220222473, 0.02254258655011654, 0.7817087769508362, 0.13089966773986816, 0.1596183478832245, 0.37115177512168884, 0.17704321444034576, 0.42194992303848267, -1.0783116817474365, -0.24661347270011902, -0.01564471796154976, 0.6508611440658569, -0.6834911704063416, -0.9138649702072144, 0.7777312397956848, 1.790565013885498, 0.9989945888519287, -0.6084665060043335, 0.549070417881012, 0.2834334969520569, 0.5200877785682678, -0.36609935760498047, 0.7233997583389282, -0.7219072580337524, -0.08561393618583679, 0.45177024602890015, -1.1250975131988525, -0.7328233122825623, 0.6233980655670166, 0.37731918692588806, 0.32644903659820557, 0.4804692566394806, 0.7920348644256592, -0.39732643961906433, 0.588992714881897, 0.5903605818748474, 0.4173685610294342, 0.7739035487174988, -0.07737211883068085, 0.503844678401947, -0.8316816091537476, 0.15872062742710114, -0.9738388061523438, -0.7902122735977173, -0.5215685367584229, -0.5703808665275574, -0.6632193922996521, -0.4923994243144989, -0.6241112947463989, -0.17044948041439056, 0.013908712193369865, 0.6015036106109619, 1.1661638021469116, -0.9311643838882446, -0.5044947862625122, -0.15102897584438324, -0.08895507454872131, -0.07584883272647858, -0.27311354875564575, 0.39393743872642517, 0.8798546195030212, -1.043609380722046, 0.5980858206748962, 0.2298084795475006, 0.6098144054412842, -0.20864161849021912, 0.4165511429309845, -0.597409725189209, 0.6227388381958008, 0.29873406887054443, 0.5388112664222717, -0.5319386720657349, -0.43410199880599976, -0.3054591715335846, -0.07228444516658783, 0.019714584574103355, 1.2212469577789307, -0.45470207929611206, 0.2635849714279175, 0.43497833609580994, -0.4401642680168152, 0.6885614991188049, -0.007182873319834471, 0.8264055848121643, 0.020493539050221443, 0.5271083116531372, 0.00028007535729557276, 0.8191146850585938, 0.14801040291786194, -0.4576292634010315, 0.6872568130493164, 0.427611768245697, -0.5726306438446045, -0.7794688940048218, 0.28755640983581543, -1.5123564004898071, -0.24019798636436462, 0.6617724895477295, 0.13479244709014893, -0.7337713837623596, 0.07719142735004425, -0.43132489919662476, 0.279633492231369, 0.27014392614364624, 0.5304082036018372, 0.499906986951828, -0.19680437445640564, -0.3787681758403778, -0.5670179128646851, 0.3614608347415924, -0.40771183371543884, -0.7602717876434326, -0.39061659574508667, 0.3183937072753906, 0.34719035029411316, 0.17135341465473175, -0.25289395451545715, -0.4225342869758606, 0.6047553420066833, -0.03615599498152733, 0.8206354379653931, -0.0009882610756903887, -0.5096402764320374, -0.10756247490644455, 0.23853658139705658, -0.24643582105636597, -0.3719352185726166 ]
timm/vit_base_patch16_224.augreg_in21k
timm
"2023-05-06T00:00:35Z"
21,730
4
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-21k", "arxiv:2106.10270", "arxiv:2010.11929", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-22T07:25:23Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-21k --- # Model card for vit_base_patch16_224.augreg_in21k A Vision Transformer (ViT) image classification model. Trained on ImageNet-21k (with additional augmentation and regularization) in JAX by paper authors, ported to PyTorch by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 102.6 - GMACs: 16.9 - Activations (M): 16.5 - Image size: 224 x 224 - **Papers:** - How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers: https://arxiv.org/abs/2106.10270 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 - **Dataset:** ImageNet-21k - **Original:** https://github.com/google-research/vision_transformer ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('vit_base_patch16_224.augreg_in21k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'vit_base_patch16_224.augreg_in21k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 197, 768) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results). ## Citation ```bibtex @article{steiner2021augreg, title={How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers}, author={Steiner, Andreas and Kolesnikov, Alexander and and Zhai, Xiaohua and Wightman, Ross and Uszkoreit, Jakob and Beyer, Lucas}, journal={arXiv preprint arXiv:2106.10270}, year={2021} } ``` ```bibtex @article{dosovitskiy2020vit, title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale}, author={Dosovitskiy, Alexey and Beyer, Lucas and Kolesnikov, Alexander and Weissenborn, Dirk and Zhai, Xiaohua and Unterthiner, Thomas and Dehghani, Mostafa and Minderer, Matthias and Heigold, Georg and Gelly, Sylvain and Uszkoreit, Jakob and Houlsby, Neil}, journal={ICLR}, year={2021} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.5267913341522217, -0.41154029965400696, -0.031061328947544098, 0.0960727259516716, -0.3723014295101166, -0.32591167092323303, -0.3168269693851471, -0.49986961483955383, 0.16749697923660278, 0.3302115797996521, -0.5226926803588867, -0.4969472587108612, -0.6418409943580627, 0.007532285992056131, -0.14809924364089966, 1.001527190208435, -0.13335204124450684, 0.0417759045958519, -0.22436805069446564, -0.45032045245170593, -0.3381287157535553, -0.2662065327167511, -0.6054049134254456, -0.4455392062664032, 0.3683648109436035, 0.14282137155532837, 0.5849262475967407, 0.6720600724220276, 0.8028481006622314, 0.459775447845459, -0.1119675561785698, 0.17858442664146423, -0.32652419805526733, -0.1869991421699524, 0.2736302614212036, -0.639633297920227, -0.39167338609695435, 0.2272660881280899, 0.7247204780578613, 0.4137454926967621, 0.13739113509655, 0.3502001464366913, 0.12211313098669052, 0.5054236054420471, -0.3713259696960449, 0.2125105857849121, -0.5492318868637085, 0.24028024077415466, -0.02952273190021515, -0.06557817757129669, -0.3260379135608673, -0.3145674467086792, 0.23386724293231964, -0.5187295079231262, 0.6363829374313354, -0.05988389253616333, 1.4240872859954834, 0.273757666349411, 0.02517554722726345, 0.24192838370800018, -0.4315509796142578, 0.7747595310211182, -0.6139428615570068, 0.42346805334091187, 0.16928119957447052, 0.17644982039928436, 0.05246070772409439, -1.0487757921218872, -0.6408674716949463, -0.16835223138332367, -0.2207346260547638, 0.10982292890548706, -0.30912405252456665, 0.2592717111110687, 0.5068917274475098, 0.6386365294456482, -0.5351742506027222, -0.047254253178834915, -0.5833236575126648, -0.2954378128051758, 0.5898856520652771, -0.04196406900882721, 0.2302132248878479, -0.16918106377124786, -0.6184314489364624, -0.6169906854629517, -0.3299688994884491, 0.2671743333339691, 0.31137096881866455, 0.05101820454001427, -0.4925370216369629, 0.5829910039901733, 0.04034680128097534, 0.715654194355011, 0.2532932758331299, -0.2009090930223465, 0.7136121988296509, -0.14375506341457367, -0.39278092980384827, -0.30192944407463074, 1.1092965602874756, 0.5091288685798645, 0.4134982228279114, -0.03644893318414688, -0.20147326588630676, -0.10774067789316177, 0.07360342144966125, -1.100496530532837, -0.41177910566329956, 0.07713878154754639, -0.4548695385456085, -0.38815340399742126, 0.3407153785228729, -0.6571322679519653, -0.1348275989294052, -0.11891045421361923, 0.7888896465301514, -0.4478434920310974, -0.20014628767967224, 0.09978676587343216, -0.1908377707004547, 0.48399096727371216, 0.2623704969882965, -0.6141558289527893, 0.1087803989648819, 0.21773478388786316, 1.0408598184585571, 0.027720816433429718, -0.48483407497406006, -0.26202088594436646, -0.4359801113605499, -0.32915279269218445, 0.5307296514511108, -0.05002576485276222, -0.15836957097053528, -0.17006920278072357, 0.4047393798828125, -0.27181458473205566, -0.5852643847465515, 0.34031471610069275, -0.2144833356142044, 0.36186423897743225, 0.13327109813690186, -0.204880952835083, -0.4387025833129883, 0.2891223728656769, -0.4267995059490204, 1.2591742277145386, 0.35722365975379944, -0.9041505455970764, 0.40514078736305237, -0.452798992395401, -0.07832974940538406, -0.11931071430444717, 0.015812892466783524, -1.1268200874328613, 0.06326913833618164, 0.33993518352508545, 0.581662654876709, -0.1989002525806427, 0.00035238228156231344, -0.41163215041160583, -0.3531314432621002, 0.36130523681640625, -0.2825341820716858, 0.9399477243423462, 0.02097768522799015, -0.34215936064720154, 0.280886173248291, -0.6036919951438904, 0.08996894210577011, 0.41012653708457947, -0.2737986743450165, 0.010421022772789001, -0.6554290652275085, 0.16934560239315033, 0.1969868540763855, 0.2572667896747589, -0.6770853400230408, 0.4043130874633789, -0.35765403509140015, 0.41192948818206787, 0.655265212059021, -0.08052785694599152, 0.40204524993896484, -0.345136821269989, 0.33165591955184937, 0.23725652694702148, 0.40659159421920776, -0.15454697608947754, -0.6830310821533203, -1.069701910018921, -0.4659242033958435, 0.345186322927475, 0.4581555724143982, -0.6591359376907349, 0.5805661082267761, -0.37751200795173645, -0.759075403213501, -0.5949656367301941, 0.032944176346063614, 0.4703270196914673, 0.5385099649429321, 0.5492298603057861, -0.584696888923645, -0.5853962302207947, -0.9769122004508972, -0.15519608557224274, -0.08520384132862091, 0.010492733679711819, 0.23809926211833954, 0.6441596150398254, -0.30346518754959106, 0.8645797967910767, -0.4564465880393982, -0.32415351271629333, -0.2195490002632141, 0.06679438054561615, 0.35089311003685, 0.7702810764312744, 0.7043521404266357, -0.6567718386650085, -0.44796833395957947, -0.14552409946918488, -0.8638301491737366, 0.11203223466873169, -0.04588400945067406, -0.17725823819637299, 0.14787894487380981, 0.19491034746170044, -0.7233526110649109, 0.8000701665878296, 0.19923768937587738, -0.3651534616947174, 0.42609721422195435, -0.24530524015426636, 0.08405083417892456, -1.215193271636963, -0.0025842124596238136, 0.39044415950775146, -0.2754811644554138, -0.48933494091033936, 0.020953919738531113, 0.1288907378911972, -0.0409548282623291, -0.3843887150287628, 0.5687329173088074, -0.5363741517066956, -0.0738648921251297, -0.0640798956155777, -0.371799111366272, 0.08307346701622009, 0.7352350354194641, -0.032372161746025085, 0.5548083782196045, 0.7365320920944214, -0.4798009693622589, 0.6247843503952026, 0.521902322769165, -0.18697573244571686, 0.49770209193229675, -0.7353398203849792, 0.13857507705688477, -0.025180188938975334, 0.2136431187391281, -1.0137228965759277, -0.22565999627113342, 0.38510337471961975, -0.7779238820075989, 0.6518579125404358, -0.5720632672309875, -0.42163968086242676, -0.6140128970146179, -0.4047832787036896, 0.42180490493774414, 0.7842287421226501, -0.7866151332855225, 0.6302879452705383, 0.10010940581560135, 0.35267701745033264, -0.610646665096283, -1.0056712627410889, -0.17976966500282288, -0.3890784680843353, -0.718315839767456, 0.4933494031429291, 0.05817807465791702, 0.14763253927230835, 0.081388920545578, -0.06607606261968613, -0.0032990085892379284, -0.22621490061283112, 0.46563759446144104, 0.41131094098091125, -0.22171294689178467, -0.07812345027923584, -0.3735541105270386, -0.20642374455928802, 0.0059662507846951485, -0.3603340685367584, 0.5341489315032959, -0.34123626351356506, -0.2221069633960724, -0.7592798471450806, -0.2862212657928467, 0.48735132813453674, -0.31450414657592773, 0.7308434844017029, 1.1895993947982788, -0.4764670729637146, 0.05983193218708038, -0.6100798845291138, -0.4043159782886505, -0.49899527430534363, 0.4729683995246887, -0.3043295443058014, -0.4300963878631592, 0.764216959476471, 0.1863543689250946, 0.10646907240152359, 0.7969982624053955, 0.4671427011489868, 0.06388333439826965, 0.8567092418670654, 0.6983826756477356, 0.19389434158802032, 0.9104682803153992, -1.012148380279541, -0.11453855037689209, -0.9593067169189453, -0.40224796533584595, -0.2416553795337677, -0.5202338099479675, -0.7290472388267517, -0.5251078009605408, 0.4329496920108795, 0.0814383253455162, -0.28197231888771057, 0.5675302147865295, -0.9178899526596069, 0.16569948196411133, 0.7386608123779297, 0.507636547088623, -0.09033028781414032, 0.4494997262954712, -0.1965048462152481, -0.07399417459964752, -0.761685311794281, -0.0803997814655304, 1.114216685295105, 0.4631420969963074, 0.8203955888748169, -0.2807633876800537, 0.6950029730796814, -0.24880363047122955, 0.3097015917301178, -0.8071771860122681, 0.5560749173164368, 0.019491661339998245, -0.4136348068714142, -0.10418713837862015, -0.40880444645881653, -1.0672825574874878, 0.23704400658607483, -0.34285104274749756, -0.8205685615539551, 0.3964938819408417, 0.20050370693206787, -0.18861737847328186, 0.6848241090774536, -0.877247154712677, 0.9674990177154541, -0.060137227177619934, -0.5063028335571289, 0.10495901107788086, -0.7124561071395874, 0.1934087574481964, 0.26964983344078064, -0.3498499393463135, 0.14414222538471222, 0.2586647868156433, 0.9997256398200989, -0.6179822087287903, 0.8569870591163635, -0.3971068561077118, 0.36744454503059387, 0.482433557510376, -0.22842372953891754, 0.37572240829467773, 0.0478142611682415, 0.19136030972003937, 0.31723102927207947, -0.03209559619426727, -0.38329121470451355, -0.5086764097213745, 0.5167998671531677, -1.0787267684936523, -0.3900429904460907, -0.5506577491760254, -0.6214777827262878, 0.10607215017080307, 0.08472919464111328, 0.6803971529006958, 0.6411505937576294, 0.3098096549510956, 0.4196530878543854, 0.6813045144081116, -0.32288092374801636, 0.4133756160736084, 0.0011686192592605948, -0.17473559081554413, -0.5942255258560181, 0.9722782373428345, 0.22230085730552673, 0.15379698574543, 0.16647738218307495, 0.22770816087722778, -0.34854862093925476, -0.5094074606895447, -0.38436272740364075, 0.42357155680656433, -0.7177899479866028, -0.49326157569885254, -0.6054552793502808, -0.550666868686676, -0.33877381682395935, 0.026285365223884583, -0.41641461849212646, -0.3552038073539734, -0.36479946970939636, 0.09683902561664581, 0.8813241124153137, 0.5210804343223572, -0.1661401391029358, 0.5111523270606995, -0.5813115239143372, 0.2034725695848465, 0.29624855518341064, 0.5021195411682129, -0.20369674265384674, -1.0281915664672852, -0.3700852692127228, 0.03889055550098419, -0.527565598487854, -0.7657718062400818, 0.4830913245677948, 0.20637694001197815, 0.46065327525138855, 0.33893677592277527, -0.2650146186351776, 0.9137105345726013, -0.06329501420259476, 0.6114346385002136, 0.32701802253723145, -0.5405077338218689, 0.49560627341270447, -0.12325280159711838, 0.13748067617416382, 0.17413851618766785, 0.1306304782629013, -0.3174402713775635, -0.0843295082449913, -1.1179945468902588, -0.8054139018058777, 0.7557359337806702, 0.24890144169330597, 0.08570998907089233, 0.4683317244052887, 0.6079868674278259, -0.0985993891954422, 0.06050460785627365, -0.9128082394599915, -0.3014374375343323, -0.4066321849822998, -0.34347671270370483, -0.07640314847230911, -0.021849386394023895, -0.021551573649048805, -0.795640230178833, 0.6544827818870544, -0.07219314575195312, 0.8217558264732361, 0.4799445867538452, -0.24232766032218933, -0.1724640130996704, -0.4088720381259918, 0.35185831785202026, 0.2724469304084778, -0.30575263500213623, 0.054888758808374405, 0.27599915862083435, -0.7617074251174927, -0.04877647012472153, 0.3346203863620758, -0.10132457315921783, 0.060360588133335114, 0.5073013305664062, 1.1157077550888062, -0.13223247230052948, -0.02663990668952465, 0.5628069043159485, -0.08444716781377792, -0.41577059030532837, -0.3030407428741455, 0.08549084514379501, -0.24153012037277222, 0.3637406826019287, 0.3518035113811493, 0.4308910667896271, -0.1312752217054367, -0.13677029311656952, 0.1697247177362442, 0.5273129343986511, -0.5677674412727356, -0.38811299204826355, 0.6763292551040649, -0.19810019433498383, -0.08839552104473114, 0.8094669580459595, -0.029647184535861015, -0.5619759559631348, 0.9036015868186951, 0.3191872239112854, 1.023207187652588, -0.09822586923837662, -0.03873004764318466, 0.7952874898910522, 0.368364155292511, -0.037493716925382614, 0.17223146557807922, 0.13223949074745178, -0.8102853298187256, -0.11751618981361389, -0.6358462572097778, 0.02491866797208786, 0.3376355469226837, -0.5680849552154541, 0.39739757776260376, -0.5513282418251038, -0.402095228433609, 0.04698105528950691, 0.24299882352352142, -1.0258482694625854, 0.3046411871910095, 0.02016405016183853, 0.7559272050857544, -0.8366437554359436, 0.617549479007721, 0.8951641917228699, -0.707024335861206, -0.9687575101852417, -0.16169999539852142, -0.17922648787498474, -0.9288830161094666, 0.4589264690876007, 0.436717689037323, 0.165519580245018, 0.2601311504840851, -0.8242243528366089, -0.6252944469451904, 1.2988237142562866, 0.36901310086250305, -0.13000747561454773, 0.13035762310028076, -0.05999128893017769, 0.3993193805217743, -0.27592024207115173, 0.492946594953537, 0.15322695672512054, 0.40040063858032227, 0.22627685964107513, -0.7101660966873169, 0.07146741449832916, -0.34738898277282715, 0.18832135200500488, 0.17920075356960297, -0.8109230399131775, 0.9866971969604492, -0.4353767931461334, -0.08121948689222336, 0.1978839933872223, 0.6595301628112793, 0.12501223385334015, 0.04358307272195816, 0.5573844313621521, 0.9145485758781433, 0.3883763551712036, -0.444015771150589, 0.928935170173645, -0.1694754958152771, 0.7554512619972229, 0.47672349214553833, 0.5118886232376099, 0.4363005757331848, 0.48229995369911194, -0.3204095661640167, 0.36607417464256287, 1.0424282550811768, -0.6077245473861694, 0.28571778535842896, 0.10215677320957184, 0.056145649403333664, -0.2571863830089569, 0.02754165604710579, -0.4973519742488861, 0.509749174118042, 0.21165235340595245, -0.5880078077316284, -0.10112552344799042, 0.15684694051742554, -0.1435677856206894, -0.36749765276908875, -0.17809225618839264, 0.6191855669021606, -0.0004733821260742843, -0.44084540009498596, 0.8791173100471497, -0.0014702352927997708, 0.8165916204452515, -0.41403526067733765, -0.0403829962015152, -0.24684515595436096, 0.4446709156036377, -0.4054771363735199, -0.8195551037788391, 0.16840629279613495, -0.23073306679725647, -0.07127687335014343, 0.03812851011753082, 0.7202655076980591, -0.4207780063152313, -0.57297283411026, 0.10471636801958084, 0.32891425490379333, 0.3076099455356598, -0.06077199429273605, -1.0536935329437256, -0.014153058640658855, 0.0108090965077281, -0.6042909622192383, 0.1864045262336731, 0.4114772379398346, -0.0023025546688586473, 0.6908006072044373, 0.7168750762939453, -0.07328040152788162, 0.23206044733524323, -0.11165597289800644, 0.9446602463722229, -0.4309896230697632, -0.3877063989639282, -0.8020799160003662, 0.6613806486129761, -0.0955139771103859, -0.6215033531188965, 0.7000751495361328, 0.6421688795089722, 0.9340934157371521, -0.15235787630081177, 0.496416300535202, -0.15664009749889374, 0.023650793358683586, -0.3437563478946686, 0.5785943865776062, -0.7177479863166809, -0.10525774955749512, -0.2888665199279785, -0.927471935749054, -0.41068124771118164, 0.9663373231887817, -0.3712223470211029, 0.4667704403400421, 0.5292564630508423, 1.0099934339523315, -0.3371753990650177, -0.42663782835006714, 0.16806094348430634, 0.19653722643852234, 0.14642855525016785, 0.4008181095123291, 0.6146906614303589, -0.8963221311569214, 0.5143948197364807, -0.6219953894615173, -0.1865057647228241, -0.29395297169685364, -0.4835270345211029, -1.070057988166809, -0.8315649628639221, -0.5781158208847046, -0.7138013243675232, -0.18709881603717804, 0.8523420691490173, 0.9765540957450867, -0.5747055411338806, -0.09005087614059448, -0.18369553983211517, 0.028379689902067184, -0.31888386607170105, -0.24840125441551208, 0.5283710956573486, -0.13735836744308472, -0.8084316849708557, -0.33369964361190796, -0.007344126235693693, 0.522235095500946, -0.18518100678920746, -0.14810259640216827, -0.13179688155651093, -0.3411917984485626, 0.21398517489433289, 0.31306010484695435, -0.7155564427375793, -0.24195276200771332, -0.05717657133936882, -0.052811991423368454, 0.5153214931488037, 0.39627665281295776, -0.7561339735984802, 0.5716877579689026, 0.6070660352706909, 0.3477589190006256, 0.8695671558380127, -0.171354740858078, 0.14200541377067566, -0.8609009385108948, 0.6134853959083557, -0.02994484081864357, 0.554845929145813, 0.5598447322845459, -0.27974075078964233, 0.6002703905105591, 0.6392838954925537, -0.46135270595550537, -0.8759572505950928, -0.005344226025044918, -1.1060340404510498, 0.14847826957702637, 0.9913184642791748, -0.25120246410369873, -0.5102826952934265, 0.3803531229496002, -0.22414660453796387, 0.7346489429473877, -0.09190726280212402, 0.47702690958976746, 0.20000241696834564, 0.08514760434627533, -0.6437857747077942, -0.4746515154838562, 0.5145639181137085, 0.13244588673114777, -0.5236955881118774, -0.38454535603523254, 0.06847326457500458, 0.5693321824073792, 0.3729511797428131, 0.31575268507003784, -0.17160242795944214, 0.19224397838115692, 0.046522486954927444, 0.5798311829566956, -0.3726643919944763, -0.14406031370162964, -0.4040471017360687, -0.1838155835866928, -0.071574866771698, -0.6360468864440918 ]
princeton-nlp/sup-simcse-bert-base-uncased
princeton-nlp
"2021-05-20T02:54:31Z"
21,686
14
transformers
[ "transformers", "pytorch", "jax", "bert", "feature-extraction", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
sebastian-hofstaetter/colbert-distilbert-margin_mse-T2-msmarco
sebastian-hofstaetter
"2021-03-18T10:35:12Z"
21,669
13
transformers
[ "transformers", "pytorch", "ColBERT", "dpr", "dense-passage-retrieval", "knowledge-distillation", "en", "dataset:ms_marco", "arxiv:2004.12832", "arxiv:2010.02666", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: "en" tags: - dpr - dense-passage-retrieval - knowledge-distillation datasets: - ms_marco --- # Margin-MSE Trained ColBERT We provide a retrieval trained DistilBert-based ColBERT model (https://arxiv.org/pdf/2004.12832.pdf). Our model is trained with Margin-MSE using a 3 teacher BERT_Cat (concatenated BERT scoring) ensemble on MSMARCO-Passage. This instance can be used to **re-rank a candidate set** or **directly for a vector index based dense retrieval**. The architecure is a 6-layer DistilBERT, with an additional single linear layer at the end. If you want to know more about our simple, yet effective knowledge distillation method for efficient information retrieval models for a variety of student architectures that is used for this model instance check out our paper: https://arxiv.org/abs/2010.02666 🎉 For more information, training data, source code, and a minimal usage example please visit: https://github.com/sebastian-hofstaetter/neural-ranking-kd ## Configuration - fp16 trained, so fp16 inference shouldn't be a problem - We use no compression: 768 dim output vectors (better suited for re-ranking, or storage for smaller collections, MSMARCO gets to ~1TB vector storage with fp16 ... ups) - Query [MASK] augmention = 8x regardless of batch-size (needs to be added before the model, see the usage example in GitHub repo for more) ## Model Code ````python from transformers import AutoTokenizer,AutoModel, PreTrainedModel,PretrainedConfig from typing import Dict import torch class ColBERTConfig(PretrainedConfig): model_type = "ColBERT" bert_model: str compression_dim: int = 768 dropout: float = 0.0 return_vecs: bool = False trainable: bool = True class ColBERT(PreTrainedModel): """ ColBERT model from: https://arxiv.org/pdf/2004.12832.pdf We use a dot-product instead of cosine per term (slightly better) """ config_class = ColBERTConfig base_model_prefix = "bert_model" def __init__(self, cfg) -> None: super().__init__(cfg) self.bert_model = AutoModel.from_pretrained(cfg.bert_model) for p in self.bert_model.parameters(): p.requires_grad = cfg.trainable self.compressor = torch.nn.Linear(self.bert_model.config.hidden_size, cfg.compression_dim) def forward(self, query: Dict[str, torch.LongTensor], document: Dict[str, torch.LongTensor]): query_vecs = self.forward_representation(query) document_vecs = self.forward_representation(document) score = self.forward_aggregation(query_vecs,document_vecs,query["attention_mask"],document["attention_mask"]) return score def forward_representation(self, tokens, sequence_type=None) -> torch.Tensor: vecs = self.bert_model(**tokens)[0] # assuming a distilbert model here vecs = self.compressor(vecs) # if encoding only, zero-out the mask values so we can compress storage if sequence_type == "doc_encode" or sequence_type == "query_encode": vecs = vecs * tokens["tokens"]["mask"].unsqueeze(-1) return vecs def forward_aggregation(self,query_vecs, document_vecs,query_mask,document_mask): # create initial term-x-term scores (dot-product) score = torch.bmm(query_vecs, document_vecs.transpose(2,1)) # mask out padding on the doc dimension (mask by -1000, because max should not select those, setting it to 0 might select them) exp_mask = document_mask.bool().unsqueeze(1).expand(-1,score.shape[1],-1) score[~exp_mask] = - 10000 # max pooling over document dimension score = score.max(-1).values # mask out paddding query values score[~(query_mask.bool())] = 0 # sum over query values score = score.sum(-1) return score tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased") # honestly not sure if that is the best way to go, but it works :) model = ColBERT.from_pretrained("sebastian-hofstaetter/colbert-distilbert-margin_mse-T2-msmarco") ```` ## Effectiveness on MSMARCO Passage & TREC Deep Learning '19 We trained our model on the MSMARCO standard ("small"-400K query) training triples with knowledge distillation with a batch size of 32 on a single consumer-grade GPU (11GB memory). For re-ranking we used the top-1000 BM25 results. ### MSMARCO-DEV Here, we use the larger 49K query DEV set (same range as the smaller 7K DEV set, minimal changes possible) | | MRR@10 | NDCG@10 | |----------------------------------|--------|---------| | BM25 | .194 | .241 | | **Margin-MSE ColBERT** (Re-ranking) | .375 | .436 | ### TREC-DL'19 For MRR we use the recommended binarization point of the graded relevance of 2. This might skew the results when compared to other binarization point numbers. | | MRR@10 | NDCG@10 | |----------------------------------|--------|---------| | BM25 | .689 | .501 | | **Margin-MSE ColBERT** (Re-ranking) | .878 | .744 | For more metrics, baselines, info and analysis, please see the paper: https://arxiv.org/abs/2010.02666 ## Limitations & Bias - The model inherits social biases from both DistilBERT and MSMARCO. - The model is only trained on relatively short passages of MSMARCO (avg. 60 words length), so it might struggle with longer text. ## Citation If you use our model checkpoint please cite our work as: ``` @misc{hofstaetter2020_crossarchitecture_kd, title={Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillation}, author={Sebastian Hofst{\"a}tter and Sophia Althammer and Michael Schr{\"o}der and Mete Sertkan and Allan Hanbury}, year={2020}, eprint={2010.02666}, archivePrefix={arXiv}, primaryClass={cs.IR} } ```
[ -0.3408451974391937, -0.5730786323547363, 0.30496805906295776, 0.19329431653022766, -0.17197024822235107, 0.08872117847204208, -0.3365583121776581, -0.158877432346344, 0.3438049554824829, 0.13885122537612915, -0.17950674891471863, -0.7475554347038269, -0.8378410935401917, -0.00896175391972065, -0.18243657052516937, 1.0040439367294312, 0.21784088015556335, 0.18214644491672516, -0.08841235190629959, -0.18599571287631989, -0.14338672161102295, -0.6659928560256958, -0.8306376934051514, -0.11756573617458344, 0.45804181694984436, 0.2728032171726227, 0.3196223974227905, 0.43990689516067505, 0.4915321469306946, 0.4473077356815338, -0.3109114468097687, 0.14177997410297394, -0.6709170937538147, 0.012785589322447777, -0.007162061519920826, -0.3965628445148468, -0.49065864086151123, 0.2755127251148224, 0.6644158959388733, 0.5301393270492554, -0.14535100758075714, 0.2357143759727478, 0.2893538475036621, 0.8491180539131165, -0.6986563205718994, 0.03592462092638016, -0.676433265209198, -0.08835335075855255, -0.0664021298289299, -0.1429056078195572, -0.5203558802604675, -0.3619399666786194, 0.12922877073287964, -0.5012668967247009, 0.49554693698883057, 0.007075036410242319, 1.1328904628753662, 0.29932427406311035, -0.28040191531181335, -0.32320407032966614, -0.32173195481300354, 0.8400871753692627, -0.6220027208328247, 0.4104020893573761, 0.5241962671279907, 0.11944877356290817, 0.09075303375720978, -0.9895461797714233, -0.44098183512687683, -0.20801898837089539, -0.11669056117534637, 0.31708651781082153, -0.09053393453359604, -0.0479629747569561, 0.31845253705978394, 0.5875740051269531, -0.5253214240074158, -0.07202798128128052, -0.6994845271110535, -0.2906094491481781, 0.7072793245315552, -0.05411655083298683, -0.26060599088668823, -0.19686344265937805, -0.5683046579360962, -0.3904756009578705, -0.383367657661438, 0.2152632772922516, 0.4435198903083801, -0.034769970923662186, 0.2223569005727768, 0.4605039954185486, -0.14646314084529877, 0.6085337400436401, 0.3776250183582306, 0.07479420304298401, 0.5036535263061523, -0.2606825828552246, -0.3147822320461273, 0.06762491166591644, 0.9144339561462402, 0.3371746838092804, -0.10521702468395233, 0.03055957518517971, -0.35787877440452576, -0.26993268728256226, 0.2732956111431122, -0.9522863030433655, -0.3827216327190399, 0.21639929711818695, -0.4594910144805908, -0.4465077221393585, 0.07888692617416382, -0.7414190173149109, -0.1660010814666748, -0.20634716749191284, 0.6847751140594482, -0.5961255431175232, 0.042807262390851974, 0.1278960257768631, -0.32136836647987366, 0.10825827717781067, 0.08535733073949814, -0.867134153842926, 0.0639943927526474, 0.33398157358169556, 0.9869898557662964, -0.018213549628853798, -0.30381181836128235, -0.4445534944534302, -0.22000040113925934, -0.26801982522010803, 0.49884140491485596, -0.4093881845474243, -0.32221731543540955, -0.056682176887989044, 0.10812470316886902, -0.19857542216777802, -0.4716476798057556, 0.6044968962669373, -0.619522213935852, 0.38982775807380676, -0.32187768816947937, -0.5727354288101196, -0.16683581471443176, 0.29041168093681335, -0.5650306940078735, 1.2734651565551758, 0.0911923423409462, -0.7833041548728943, 0.32497966289520264, -0.4420608878135681, -0.2761334180831909, -0.2782210409641266, 0.03952373191714287, -0.5580173134803772, -0.011096694506704807, 0.3826829195022583, 0.5321993827819824, -0.10784751921892166, 0.22765929996967316, -0.2516128420829773, -0.41719740629196167, 0.09439148008823395, -0.36082616448402405, 1.0044255256652832, 0.34027257561683655, -0.3791397511959076, -0.02600768394768238, -0.8099971413612366, -0.05829029902815819, 0.06525129079818726, -0.606518566608429, -0.21497051417827606, -0.276838093996048, -0.10887181758880615, 0.29174402356147766, 0.4614000618457794, -0.45416828989982605, 0.33056512475013733, -0.1879177838563919, 0.5684508681297302, 0.7659168243408203, -0.08989020437002182, 0.4898337125778198, -0.3856213390827179, 0.2101283073425293, 0.07047493010759354, 0.20355066657066345, 0.14456361532211304, -0.39600834250450134, -0.9229975938796997, -0.39076727628707886, 0.5641571879386902, 0.4618285596370697, -0.6655812859535217, 0.6541129350662231, -0.358285129070282, -0.6809983253479004, -0.6394464373588562, -0.011569909751415253, 0.30514290928840637, 0.7546343803405762, 0.6438722610473633, -0.20062081515789032, -0.2903605103492737, -0.9623031616210938, -0.006927860900759697, 0.049648746848106384, -0.07215334475040436, 0.3247855603694916, 0.5749118328094482, -0.01322038285434246, 0.6609795093536377, -0.7532690167427063, -0.5331273078918457, -0.10996788740158081, 0.24007894098758698, 0.5088629126548767, 0.577565610408783, 0.5875275731086731, -0.6548550128936768, -0.5622599124908447, -0.38169246912002563, -0.7138487100601196, 0.0998249426484108, 0.17752762138843536, -0.2637938857078552, 0.3744420111179352, 0.590377926826477, -0.4255780875682831, 0.45707592368125916, 0.3151729702949524, -0.21466940641403198, 0.4396724998950958, -0.47013601660728455, 0.29408755898475647, -1.2057567834854126, 0.30094629526138306, 0.030817728489637375, -0.029170945286750793, -0.4586205780506134, -0.14398729801177979, 0.12604369223117828, -0.09100865572690964, -0.39197108149528503, 0.3651559054851532, -0.6302962303161621, 0.11341948062181473, 0.022585934028029442, 0.1474149227142334, 0.2182854562997818, 0.8752530813217163, 0.17548251152038574, 0.6528374552726746, 0.6415332555770874, -0.5806524753570557, 0.16351298987865448, 0.3029622733592987, -0.48653388023376465, 0.430745929479599, -0.8169097304344177, 0.1612987071275711, -0.18802636861801147, 0.2902299761772156, -1.154434323310852, 0.15629719197750092, 0.115373395383358, -0.6350774168968201, 0.6044435501098633, -0.34175971150398254, -0.4108555316925049, -0.3344026207923889, -0.5616379380226135, 0.28476986289024353, 0.43612122535705566, -0.5351864099502563, 0.4355822801589966, 0.3014494776725769, -0.02863054722547531, -1.0061585903167725, -0.6538479328155518, -0.12902669608592987, -0.21315033733844757, -0.7040908336639404, 0.5900583267211914, -0.15265093743801117, 0.04575742781162262, -0.1652473658323288, -0.10578765720129013, -0.02755463682115078, -0.0780416801571846, 0.14485082030296326, 0.3451559841632843, -0.01867501251399517, 0.31735193729400635, 0.12065649032592773, 0.007110701408237219, -0.09734801203012466, -0.3506590723991394, 0.6243488192558289, -0.4027310609817505, 0.04545729234814644, -0.2502025067806244, 0.189060240983963, 0.5171312689781189, -0.3405151665210724, 0.9281633496284485, 0.8677002787590027, -0.3006087839603424, 0.08261764794588089, -0.791106104850769, -0.3283604681491852, -0.49224504828453064, 0.3801322281360626, -0.39153221249580383, -0.6941213011741638, 0.5979161262512207, 0.2588140070438385, 0.154677152633667, 0.7782555222511292, 0.4634344279766083, -0.1560346484184265, 0.7562138438224792, 0.28057870268821716, -0.1067873015999794, 0.5842801332473755, -0.9882502555847168, -0.0505545549094677, -0.9935298562049866, -0.30676349997520447, -0.5030863881111145, -0.6043427586555481, -0.6212282180786133, -0.3112470805644989, 0.380740225315094, 0.28949448466300964, -0.21064603328704834, 0.3888038992881775, -0.8844234347343445, 0.26893600821495056, 0.7900145649909973, 0.2815566658973694, 0.08562056720256805, 0.17017583549022675, -0.3013528287410736, 0.034663788974285126, -0.8248687982559204, -0.3314551115036011, 1.358064889907837, 0.3148369789123535, 0.6262941360473633, 0.042268622666597366, 0.9342382550239563, 0.2782871425151825, 0.21522243320941925, -0.5803068280220032, 0.4602363705635071, -0.17186331748962402, -0.8042952418327332, -0.4573187828063965, -0.4373520314693451, -0.9479728937149048, 0.4769006073474884, -0.2847336530685425, -0.6337407827377319, 0.622151792049408, -0.003591603133827448, -0.47009316086769104, 0.24102050065994263, -0.7685203552246094, 0.859049916267395, -0.17432796955108643, -0.6872443556785583, -0.16813161969184875, -0.8543351292610168, 0.2433881014585495, 0.12925931811332703, 0.007557041011750698, 0.0015851592179387808, 0.09339285641908646, 1.0235008001327515, -0.4489120841026306, 0.5659340620040894, -0.23573029041290283, 0.13004082441329956, 0.29045212268829346, -0.15538769960403442, 0.48316845297813416, 0.15020175278186798, -0.3312823176383972, 0.4501812756061554, 0.08198349922895432, -0.5004205107688904, -0.430620014667511, 0.805313229560852, -0.878302812576294, -0.5873159170150757, -0.7088884711265564, -0.39195889234542847, 0.05156262218952179, 0.29761803150177, 0.7359761595726013, 0.52088862657547, 0.006672190967947245, 0.42207449674606323, 0.8250482082366943, -0.12985149025917053, 0.5975565314292908, 0.36861348152160645, 0.03787504881620407, -0.7235687971115112, 0.8637492656707764, 0.33215054869651794, 0.148726686835289, 0.48595139384269714, 0.09057298302650452, -0.5185215473175049, -0.5574675798416138, -0.15462598204612732, 0.2873147130012512, -0.7826470732688904, -0.2330954521894455, -0.7809018492698669, -0.3689616322517395, -0.7175472974777222, -0.02806933782994747, -0.3804453909397125, -0.5189989805221558, -0.4400751292705536, -0.11606994271278381, 0.17001396417617798, 0.5100448131561279, -0.30160364508628845, 0.22397586703300476, -0.5694844722747803, 0.10839761793613434, 0.39146754145622253, 0.1729675829410553, -0.07690732926130295, -0.8505242466926575, -0.3092680871486664, 0.15484119951725006, -0.530257523059845, -0.7695559859275818, 0.4599459767341614, 0.21127185225486755, 0.6362066864967346, 0.4392693042755127, 0.1667991578578949, 0.5686654448509216, -0.34772732853889465, 0.7318947315216064, 0.03888041526079178, -0.7688120007514954, 0.539659321308136, -0.039852701127529144, 0.02043852023780346, 0.8822050094604492, 0.618520200252533, -0.20319411158561707, -0.18877887725830078, -0.8255369663238525, -0.9493953585624695, 0.7880554795265198, 0.3179048001766205, -0.09880828112363815, -0.132703498005867, 0.2389998733997345, -0.10613995790481567, 0.28783461451530457, -0.712739884853363, -0.4549211859703064, -0.37516075372695923, -0.08403034508228302, -0.25940340757369995, -0.3723379969596863, -0.12875717878341675, -0.5547975301742554, 1.005265474319458, 0.11252422630786896, 0.46547046303749084, 0.5590670108795166, -0.3496361970901489, 0.36350491642951965, 0.023179052397608757, 0.7907031774520874, 0.6349338889122009, -0.6132186651229858, 0.19430269300937653, 0.16197119653224945, -0.6101606488227844, -0.056446898728609085, 0.3995230495929718, 0.028123971074819565, 0.17041823267936707, 0.18846167623996735, 0.7673554420471191, 0.09495777636766434, -0.08689907938241959, 0.6079919338226318, -0.0957912802696228, -0.4200294315814972, -0.3907310962677002, -0.13025769591331482, -0.055094826966524124, 0.2633490562438965, 0.551847517490387, 0.11589642614126205, 0.19863873720169067, -0.4183449447154999, 0.16831429302692413, 0.42009472846984863, -0.5260942578315735, -0.045642953366041183, 0.7513080835342407, 0.20506475865840912, -0.09571889787912369, 0.8178048133850098, -0.2690533399581909, -0.5615294575691223, 0.49506905674934387, 0.2684265375137329, 0.7589132189750671, -0.19979260861873627, 0.10219579935073853, 0.7960713505744934, 0.3729914724826813, -0.14454270899295807, 0.06232398748397827, -0.2293788194656372, -0.5313810706138611, -0.049356456845998764, -0.7623251080513, 0.13662420213222504, 0.13788455724716187, -0.6643907427787781, 0.26430848240852356, -0.2975243330001831, -0.41041240096092224, 0.08132532984018326, 0.39483436942100525, -0.6741334199905396, 0.18920738995075226, -0.04279077425599098, 1.021657109260559, -0.67254239320755, 0.8285515904426575, 0.49139630794525146, -0.7146885395050049, -0.6508826017379761, -0.24712297320365906, -0.3200267553329468, -0.8179046511650085, 0.703301727771759, 0.22343756258487701, 0.04508589208126068, 0.15334413945674896, -0.45218443870544434, -0.8754539489746094, 1.4668426513671875, 0.2537388801574707, -0.5855531692504883, -0.11361781507730484, -0.09192334115505219, 0.5276471376419067, -0.25082820653915405, 0.5117433071136475, 0.3631678521633148, 0.3076634407043457, 0.2714681029319763, -0.6032924056053162, 0.060962289571762085, -0.3601498305797577, -0.10151258111000061, 0.09804582595825195, -0.8498263955116272, 0.9471344947814941, -0.17932085692882538, -0.13594868779182434, -0.13651879131793976, 0.6084478497505188, 0.2450592815876007, 0.42757144570350647, 0.3669080138206482, 0.998759925365448, 0.8482850790023804, -0.10638895630836487, 0.9613513946533203, -0.49323132634162903, 0.6462294459342957, 0.9795963168144226, 0.13350021839141846, 0.7951493859291077, 0.41881877183914185, -0.2151453047990799, 0.5033132433891296, 0.8317664265632629, -0.08628872036933899, 0.7277907729148865, 0.21465951204299927, -0.0965399369597435, -0.2213694304227829, 0.26972103118896484, -0.6482229232788086, 0.2762509286403656, 0.24273307621479034, -0.7634177207946777, -0.04845263063907623, -0.1997387558221817, 0.025923462584614754, -0.27093562483787537, -0.15133309364318848, 0.6177006959915161, 0.11592994630336761, -0.769310712814331, 1.0128495693206787, -0.05412336438894272, 0.7416306138038635, -0.5154721736907959, 0.12325740605592728, -0.4669055640697479, 0.12781862914562225, -0.18413054943084717, -0.598282516002655, 0.10589603334665298, -0.29368701577186584, -0.29056113958358765, -0.21871232986450195, 0.44394952058792114, -0.6000984907150269, -0.7099105715751648, 0.12670795619487762, 0.22745181620121002, 0.3711261451244354, -0.23444326221942902, -0.7390457987785339, -0.16261476278305054, 0.05204359441995621, -0.4380292296409607, 0.30338484048843384, 0.3105853199958801, 0.16864152252674103, 0.5059971213340759, 0.7717676162719727, -0.08954339474439621, 0.19739069044589996, -0.11243154108524323, 0.8641732931137085, -0.44433408975601196, -0.3783314526081085, -0.7918439507484436, 0.5139896273612976, -0.44272127747535706, -0.40201812982559204, 0.6088501811027527, 0.8818362355232239, 0.7848085165023804, -0.06463808566331863, 0.5171532034873962, -0.11911435425281525, 0.17037853598594666, -0.5083423852920532, 1.0601234436035156, -0.6976638436317444, 0.2663021981716156, -0.0894227996468544, -1.089818000793457, -0.03016236238181591, 0.6557668447494507, -0.4305453300476074, 0.12100838869810104, 0.7344440817832947, 0.9293773174285889, -0.09546871483325958, -0.33840665221214294, 0.2507672905921936, 0.24792206287384033, 0.1950615644454956, 0.6664955615997314, 0.5938513278961182, -0.7838343977928162, 0.7687704563140869, -0.48242029547691345, -0.29454925656318665, -0.3397597670555115, -0.6802371740341187, -0.9923368692398071, -0.8711499571800232, -0.39007189869880676, -0.49595341086387634, -0.027124391868710518, 0.6832154393196106, 0.7436096668243408, -0.5773307681083679, -0.027047229930758476, 0.15640141069889069, 0.1267724186182022, -0.2746424078941345, -0.24783840775489807, 0.6955280303955078, -0.3854602873325348, -0.8097358345985413, 0.2461211383342743, -0.0494137667119503, -0.048921383917331696, -0.11264432966709137, -0.05042075365781784, -0.5240654945373535, -0.04852903261780739, 0.5810949802398682, 0.07214000076055527, -0.5213574171066284, -0.10346748679876328, 0.20819035172462463, -0.28639864921569824, 0.16168297827243805, 0.502208948135376, -0.7230913043022156, 0.39490440487861633, 0.6604835987091064, 0.3691871464252472, 0.9302157759666443, 0.0008301112684421241, 0.1578337550163269, -0.8729188442230225, 0.0014929979806765914, 0.14733655750751495, 0.51518714427948, 0.3031884431838989, -0.4161857068538666, 0.6477388143539429, 0.37619608640670776, -0.7794215083122253, -0.7377952337265015, -0.24188664555549622, -1.127626657485962, -0.26278388500213623, 1.1219886541366577, -0.21181894838809967, -0.22676928341388702, 0.16654838621616364, -0.22291184961795807, 0.3987169861793518, -0.5487405061721802, 1.0070778131484985, 0.7454416155815125, 0.08212316781282425, -0.027921833097934723, -0.36652952432632446, 0.49456048011779785, 0.35784706473350525, -0.33058661222457886, -0.22960130870342255, 0.37625789642333984, 0.4822281301021576, 0.40613073110580444, 0.6191070675849915, -0.06832832098007202, 0.06459711492061615, -0.007455833721905947, 0.08423137664794922, -0.36487051844596863, -0.23077666759490967, -0.35648053884506226, 0.24672777950763702, -0.2599795460700989, -0.5197728872299194 ]
google/flan-ul2
google
"2023-11-07T15:11:54Z"
21,616
514
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "flan-ul2", "en", "fr", "ro", "de", "multilingual", "dataset:svakulenk0/qrecc", "dataset:taskmaster2", "dataset:djaym7/wiki_dialog", "dataset:deepmind/code_contests", "dataset:lambada", "dataset:gsm8k", "dataset:aqua_rat", "dataset:esnli", "dataset:quasc", "dataset:qed", "dataset:c4", "arxiv:2205.05131", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2023-03-03T10:37:27Z"
--- language: - en - fr - ro - de - multilingual widget: - text: 'Translate to German: My name is Arthur' example_title: Translation - text: >- Please answer to the following question. Who is going to be the next Ballon d'or? example_title: Question Answering - text: >- Q: Can Geoffrey Hinton have a conversation with George Washington? Give the rationale before answering. example_title: Logical reasoning - text: >- Please answer the following question. What is the boiling point of Nitrogen? example_title: Scientific knowledge - text: >- Answer the following yes/no question. Can you write a whole Haiku in a single tweet? example_title: Yes/no question - text: >- Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet? example_title: Reasoning task - text: 'Q: ( False or not False or False ) is? A: Let''s think step by step' example_title: Boolean Expressions - text: >- The square root of x is the cube root of y. What is y to the power of 2, if x = 4? example_title: Math reasoning - text: >- Premise: At my age you will probably have learnt one lesson. Hypothesis: It's not certain how many lessons you'll learn by your thirties. Does the premise entail the hypothesis? example_title: Premise and hypothesis - text: >- Answer the following question by reasoning step by step. The cafeteria had 23 apples. If they used 20 for lunch, and bought 6 more, how many apple do they have? example_title: Chain of thought tags: - text2text-generation - flan-ul2 datasets: - svakulenk0/qrecc - taskmaster2 - djaym7/wiki_dialog - deepmind/code_contests - lambada - gsm8k - aqua_rat - esnli - quasc - qed - c4 license: apache-2.0 --- # Model card for Flan-UL2 ![model image](https://raw.githubusercontent.com/google-research/google-research/master/ul2/figs/ul2.png) # Table of Contents 0. [TL;DR](#TL;DR) 1. [Using the model](#using-the-model) 2. [Results](#results) 3. [Introduction to UL2](#introduction-to-ul2) 4. [Training](#training) 5. [Contribution](#contribution) 6. [Citation](#citation) # TL;DR Flan-UL2 is an encoder decoder model based on the `T5` architecture. It uses the same configuration as the [`UL2 model`](https://huggingface.co/google/ul2) released earlier last year. It was fine tuned using the "Flan" prompt tuning and dataset collection. According to the original [blog](https://www.yitay.net/blog/flan-ul2-20b) here are the notable improvements: - The original UL2 model was only trained with receptive field of 512, which made it non-ideal for N-shot prompting where N is large. - The Flan-UL2 checkpoint uses a receptive field of 2048 which makes it more usable for few-shot in-context learning. - The original UL2 model also had mode switch tokens that was rather mandatory to get good performance. However, they were a little cumbersome as this requires often some changes during inference or finetuning. In this update/change, we continue training UL2 20B for an additional 100k steps (with small batch) to forget “mode tokens” before applying Flan instruction tuning. This Flan-UL2 checkpoint does not require mode tokens anymore. # Using the model ## Converting from T5x to huggingface You can use the [`convert_t5x_checkpoint_to_pytorch.py`](https://github.com/huggingface/transformers/blob/main/src/transformers/models/t5/convert_t5x_checkpoint_to_pytorch.py) script and pass the argument `strict = False`. The final layer norm is missing from the original dictionnary, that is why we are passing the `strict = False` argument. ```bash python convert_t5x_checkpoint_to_pytorch.py --t5x_checkpoint_path PATH_TO_T5X_CHECKPOINTS --config_file PATH_TO_CONFIG --pytorch_dump_path PATH_TO_SAVE ``` We used the same config file as [`google/ul2`](https://huggingface.co/google/ul2/blob/main/config.json). ## Running the model For more efficient memory usage, we advise you to load the model in `8bit` using `load_in_8bit` flag as follows (works only under GPU): ```python # pip install accelerate transformers bitsandbytes from transformers import T5ForConditionalGeneration, AutoTokenizer import torch model = T5ForConditionalGeneration.from_pretrained("google/flan-ul2", device_map="auto", load_in_8bit=True) tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2") input_string = "Answer the following question by reasoning step by step. The cafeteria had 23 apples. If they used 20 for lunch, and bought 6 more, how many apple do they have?" inputs = tokenizer(input_string, return_tensors="pt").input_ids.to("cuda") outputs = model.generate(inputs, max_length=200) print(tokenizer.decode(outputs[0])) # <pad> They have 23 - 20 = 3 apples left. They have 3 + 6 = 9 apples. Therefore, the answer is 9.</s> ``` Otherwise, you can load and run the model in `bfloat16` as follows: ```python # pip install accelerate transformers from transformers import T5ForConditionalGeneration, AutoTokenizer import torch model = T5ForConditionalGeneration.from_pretrained("google/flan-ul2", torch_dtype=torch.bfloat16, device_map="auto") tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2") input_string = "Answer the following question by reasoning step by step. The cafeteria had 23 apples. If they used 20 for lunch, and bought 6 more, how many apple do they have?" inputs = tokenizer(input_string, return_tensors="pt").input_ids.to("cuda") outputs = model.generate(inputs, max_length=200) print(tokenizer.decode(outputs[0])) # <pad> They have 23 - 20 = 3 apples left. They have 3 + 6 = 9 apples. Therefore, the answer is 9.</s> ``` # Results ## Performance improvment The reported results are the following : | | MMLU | BBH | MMLU-CoT | BBH-CoT | Avg | | :--- | :---: | :---: | :---: | :---: | :---: | | FLAN-PaLM 62B | 59.6 | 47.5 | 56.9 | 44.9 | 49.9 | | FLAN-PaLM 540B | 73.5 | 57.9 | 70.9 | 66.3 | 67.2 | | FLAN-T5-XXL 11B | 55.1 | 45.3 | 48.6 | 41.4 | 47.6 | | FLAN-UL2 20B | 55.7(+1.1%) | 45.9(+1.3%) | 52.2(+7.4%) | 42.7(+3.1%) | 49.1(+3.2%) | # Introduction to UL2 This entire section has been copied from the [`google/ul2`](https://huggingface.co/google/ul2) model card and might be subject of change with respect to `flan-ul2`. UL2 is a unified framework for pretraining models that are universally effective across datasets and setups. UL2 uses Mixture-of-Denoisers (MoD), apre-training objective that combines diverse pre-training paradigms together. UL2 introduces a notion of mode switching, wherein downstream fine-tuning is associated with specific pre-training schemes. ![model image](https://raw.githubusercontent.com/google-research/google-research/master/ul2/figs/ul2.png) **Abstract** Existing pre-trained models are generally geared towards a particular class of problems. To date, there seems to be still no consensus on what the right architecture and pre-training setup should be. This paper presents a unified framework for pre-training models that are universally effective across datasets and setups. We begin by disentangling architectural archetypes with pre-training objectives -- two concepts that are commonly conflated. Next, we present a generalized and unified perspective for self-supervision in NLP and show how different pre-training objectives can be cast as one another and how interpolating between different objectives can be effective. We then propose Mixture-of-Denoisers (MoD), a pre-training objective that combines diverse pre-training paradigms together. We furthermore introduce a notion of mode switching, wherein downstream fine-tuning is associated with specific pre-training schemes. We conduct extensive ablative experiments to compare multiple pre-training objectives and find that our method pushes the Pareto-frontier by outperforming T5 and/or GPT-like models across multiple diverse setups. Finally, by scaling our model up to 20B parameters, we achieve SOTA performance on 50 well-established supervised NLP tasks ranging from language generation (with automated and human evaluation), language understanding, text classification, question answering, commonsense reasoning, long text reasoning, structured knowledge grounding and information retrieval. Our model also achieve strong results at in-context learning, outperforming 175B GPT-3 on zero-shot SuperGLUE and tripling the performance of T5-XXL on one-shot summarization. For more information, please take a look at the original paper. Paper: [Unifying Language Learning Paradigms](https://arxiv.org/abs/2205.05131v1) Authors: *Yi Tay, Mostafa Dehghani, Vinh Q. Tran, Xavier Garcia, Dara Bahri, Tal Schuster, Huaixiu Steven Zheng, Neil Houlsby, Donald Metzler* ## Training ### Flan UL2 The Flan-UL2 model was initialized using the `UL2` checkpoints, and was then trained additionally using Flan Prompting. This means that the original training corpus is `C4`, In “Scaling Instruction-Finetuned language models (Chung et al.)” (also referred to sometimes as the Flan2 paper), the key idea is to train a large language model on a collection of datasets. These datasets are phrased as instructions which enable generalization across diverse tasks. Flan has been primarily trained on academic tasks. In Flan2, we released a series of T5 models ranging from 200M to 11B parameters that have been instruction tuned with Flan. The Flan datasets have also been open sourced in “The Flan Collection: Designing Data and Methods for Effective Instruction Tuning” (Longpre et al.). See Google AI Blogpost: “The Flan Collection: Advancing Open Source Methods for Instruction Tuning”. ## UL2 PreTraining The model is pretrained on the C4 corpus. For pretraining, the model is trained on a total of 1 trillion tokens on C4 (2 million steps) with a batch size of 1024. The sequence length is set to 512/512 for inputs and targets. Dropout is set to 0 during pretraining. Pre-training took slightly more than one month for about 1 trillion tokens. The model has 32 encoder layers and 32 decoder layers, `dmodel` of 4096 and `df` of 16384. The dimension of each head is 256 for a total of 16 heads. Our model uses a model parallelism of 8. The same sentencepiece tokenizer as T5 of vocab size 32000 is used (click [here](https://huggingface.co/docs/transformers/v4.20.0/en/model_doc/t5#transformers.T5Tokenizer) for more information about the T5 tokenizer). UL-20B can be interpreted as a model that is quite similar to T5 but trained with a different objective and slightly different scaling knobs. UL-20B was trained using the [Jax](https://github.com/google/jax) and [T5X](https://github.com/google-research/t5x) infrastructure. The training objective during pretraining is a mixture of different denoising strategies that are explained in the following: ### Mixture of Denoisers To quote the paper: > We conjecture that a strong universal model has to be exposed to solving diverse set of problems > during pre-training. Given that pre-training is done using self-supervision, we argue that such diversity > should be injected to the objective of the model, otherwise the model might suffer from lack a certain > ability, like long-coherent text generation. > Motivated by this, as well as current class of objective functions, we define three main paradigms that > are used during pre-training: - **R-Denoiser**: The regular denoising is the standard span corruption introduced in [T5](https://huggingface.co/docs/transformers/v4.20.0/en/model_doc/t5) that uses a range of 2 to 5 tokens as the span length, which masks about 15% of input tokens. These spans are short and potentially useful to acquire knowledge instead of learning to generate fluent text. - **S-Denoiser**: A specific case of denoising where we observe a strict sequential order when framing the inputs-to-targets task, i.e., prefix language modeling. To do so, we simply partition the input sequence into two sub-sequences of tokens as context and target such that the targets do not rely on future information. This is unlike standard span corruption where there could be a target token with earlier position than a context token. Note that similar to the Prefix-LM setup, the context (prefix) retains a bidirectional receptive field. We note that S-Denoising with very short memory or no memory is in similar spirit to standard causal language modeling. - **X-Denoiser**: An extreme version of denoising where the model must recover a large part of the input, given a small to moderate part of it. This simulates a situation where a model needs to generate long target from a memory with relatively limited information. To do so, we opt to include examples with aggressive denoising where approximately 50% of the input sequence is masked. This is by increasing the span length and/or corruption rate. We consider a pre-training task to be extreme if it has a long span (e.g., ≥ 12 tokens) or have a large corruption rate (e.g., ≥ 30%). X-denoising is motivated by being an interpolation between regular span corruption and language model like objectives. See the following diagram for a more visual explanation: ![mixture-of-denoisers](https://raw.githubusercontent.com/google-research/google-research/master/ul2/figs/mod.png) **Important**: For more details, please see sections 3.1.2 of the [paper](https://arxiv.org/pdf/2205.05131v1.pdf). ## Fine-tuning The model was continously fine-tuned after N pretraining steps where N is typically from 50k to 100k. In other words, after each Nk steps of pretraining, the model is finetuned on each downstream task. See section 5.2.2 of [paper](https://arxiv.org/pdf/2205.05131v1.pdf) to get an overview of all datasets that were used for fine-tuning). As the model is continuously finetuned, finetuning is stopped on a task once it has reached state-of-the-art to save compute. In total, the model was trained for 2.65 million steps. **Important**: For more details, please see sections 5.2.1 and 5.2.2 of the [paper](https://arxiv.org/pdf/2205.05131v1.pdf). # Contribution This model was originally contributed by [Yi Tay](https://www.yitay.net/?author=636616684c5e64780328eece), and added to the Hugging Face ecosystem by [Younes Belkada](https://huggingface.co/ybelkada) & [Arthur Zucker](https://huggingface.co/ArthurZ). # Citation If you want to cite this work, please consider citing the [blogpost](https://www.yitay.net/blog/flan-ul2-20b) announcing the release of `Flan-UL2`.
[ -0.43210169672966003, -0.7535515427589417, 0.21526913344860077, -0.00817376933991909, 0.010703721083700657, -0.17160673439502716, -0.20410528779029846, -0.5504146814346313, -0.059336256235837936, 0.18461762368679047, -0.4475494921207428, -0.15642006695270538, -0.5644662380218506, 0.01972619816660881, -0.4329412877559662, 1.1601685285568237, -0.11048620194196701, -0.01886037178337574, 0.1063210666179657, -0.14102528989315033, -0.2537701427936554, -0.39292797446250916, -0.7295060157775879, -0.43458226323127747, 0.42600396275520325, 0.23102471232414246, 0.49386969208717346, 0.4274691641330719, 0.39293473958969116, 0.28303229808807373, -0.09163147211074829, -0.04032532498240471, -0.456848680973053, -0.4016697406768799, 0.08305609971284866, -0.4695061445236206, -0.49674034118652344, 0.12254130095243454, 0.3856358826160431, 0.40701237320899963, -0.0996619313955307, 0.22279635071754456, 0.21854820847511292, 0.7297149300575256, -0.42249175906181335, 0.13931484520435333, -0.4764823019504547, 0.06957491487264633, -0.010068517178297043, 0.2123306840658188, -0.30902719497680664, 0.03324507921934128, -0.008683210238814354, -0.716392457485199, 0.3950366973876953, -0.07030940055847168, 1.1372374296188354, 0.31755322217941284, -0.23131607472896576, -0.17355705797672272, -0.7292806506156921, 0.6858489513397217, -0.7599833011627197, 0.38917529582977295, 0.2470698207616806, 0.21071480214595795, -0.025207728147506714, -1.0371638536453247, -0.5776631832122803, -0.1290362924337387, -0.23944509029388428, 0.31625691056251526, -0.2438807338476181, 0.1854427605867386, 0.4128704369068146, 0.5296683311462402, -0.46279123425483704, 0.0930904820561409, -0.5513553619384766, -0.06254714727401733, 0.6368756294250488, -0.14704643189907074, 0.21863891184329987, -0.013748853467404842, -0.3917553722858429, -0.2563745975494385, -0.44218915700912476, 0.2754381000995636, 0.156612366437912, -0.0023260507732629776, -0.24895018339157104, 0.2357233464717865, -0.13249708712100983, 0.4682117700576782, 0.40087389945983887, -0.16584321856498718, 0.31769344210624695, -0.2211817502975464, -0.36722332239151, -0.0925445556640625, 0.8175039291381836, 0.2590450942516327, 0.23848004639148712, -0.004401348531246185, -0.404250830411911, 0.06717989593744278, 0.11352020502090454, -0.8230465650558472, -0.5407500863075256, 0.3206307291984558, -0.3682090640068054, -0.33836638927459717, 0.18303664028644562, -0.6689465045928955, 0.02346440963447094, -0.19079631567001343, 0.7250328063964844, -0.41734573245048523, -0.4393458664417267, 0.13200150430202484, -0.014470051042735577, 0.31978991627693176, 0.2561456561088562, -1.1382864713668823, 0.2918703258037567, 0.5204887986183167, 0.768501877784729, 0.1554916501045227, -0.3665098547935486, -0.2740612030029297, -0.10360389202833176, -0.2815881073474884, 0.5397074818611145, -0.2913540005683899, -0.17081907391548157, -0.25893494486808777, 0.09901481121778488, -0.309842973947525, -0.49322476983070374, 0.36285528540611267, -0.2915225327014923, 0.5218703746795654, -0.32348814606666565, -0.5581881999969482, -0.3836098313331604, -0.008786015212535858, -0.6137731671333313, 1.4176702499389648, 0.39072832465171814, -0.8300120234489441, 0.3784377872943878, -0.8904045820236206, -0.4140568971633911, -0.16624753177165985, -0.17776381969451904, -0.40677303075790405, 0.14546948671340942, 0.4385988414287567, 0.32297247648239136, -0.2581697404384613, 0.2513146698474884, -0.020653370767831802, -0.40897637605667114, -0.01817457005381584, -0.2458229959011078, 0.8608368039131165, 0.4544401168823242, -0.8279061913490295, 0.21797430515289307, -0.48320287466049194, -0.0912209078669548, 0.32238540053367615, -0.2692541480064392, 0.17225326597690582, -0.1972866952419281, 0.03142356500029564, 0.2811899781227112, 0.19075937569141388, -0.3464871644973755, 0.1506655067205429, -0.4170711934566498, 0.6257810592651367, 0.6738536953926086, -0.25069063901901245, 0.4416365325450897, -0.40567633509635925, 0.22087541222572327, 0.2508285939693451, 0.356330931186676, -0.22917430102825165, -0.538902997970581, -1.0815309286117554, 0.035926882177591324, 0.35327383875846863, 0.560784101486206, -0.49513673782348633, 0.6800535917282104, -0.1320817470550537, -0.3646574914455414, -0.48118162155151367, 0.2592754662036896, 0.32380813360214233, 0.6569314002990723, 0.5134237408638, -0.21655713021755219, -0.5093493461608887, -0.6647393703460693, 0.0005581044242717326, -0.08276037871837616, -0.13169008493423462, 0.09881166368722916, 0.7549600005149841, -0.23803162574768066, 0.7748813629150391, -0.22255322337150574, -0.4517151117324829, -0.6358932852745056, 0.09230880439281464, 0.3621620237827301, 0.7074416875839233, 0.6486564874649048, -0.5321303009986877, -0.40825220942497253, -0.04696070775389671, -0.9130445122718811, 0.12367162108421326, -0.2717225253582001, -0.05372777208685875, 0.32280591130256653, 0.5627567768096924, -0.5484543442726135, 0.4697169065475464, 0.43374553322792053, -0.18593375384807587, 0.47151535749435425, -0.30540066957473755, -0.003064860124140978, -1.1668676137924194, 0.270490437746048, 0.009705529548227787, -0.028507517650723457, -0.6214399933815002, 0.11921817064285278, 0.1103808581829071, 0.0032061454840004444, -0.4903358221054077, 0.7083095908164978, -0.475010484457016, 0.036648813635110855, -0.1401827186346054, -0.12166158854961395, 0.17972403764724731, 0.6545080542564392, -0.023945366963744164, 0.8168841004371643, 0.6117135286331177, -0.6422792673110962, 0.17340876162052155, 0.06051867827773094, -0.40893638134002686, 0.28352275490760803, -0.8063294291496277, 0.19012026488780975, -0.10213416814804077, 0.4570215344429016, -0.8754810094833374, -0.2804310619831085, 0.22277125716209412, -0.41502317786216736, 0.32249078154563904, -0.11600163578987122, -0.5017759799957275, -0.6131237745285034, -0.26339447498321533, 0.3301721513271332, 0.8617936372756958, -0.6717632412910461, 0.7437465190887451, 0.16245253384113312, 0.3795434832572937, -0.5200613737106323, -0.7524673938751221, -0.1593089997768402, -0.31222963333129883, -0.6862491369247437, 0.32034924626350403, -0.07120725512504578, -0.06905858963727951, -0.20351725816726685, -0.27444255352020264, 0.06077050790190697, 0.10779546201229095, 0.19237077236175537, 0.028803938999772072, -0.2856595516204834, -0.1615859717130661, 0.015623212791979313, -0.19091354310512543, 0.08537043631076813, -0.450332373380661, 0.5798072218894958, -0.39102715253829956, 0.053485967218875885, -0.7239214777946472, 0.05477755889296532, 0.3143051862716675, -0.32059261202812195, 0.6661450862884521, 1.0542042255401611, -0.3523145616054535, 0.029364963993430138, -0.6655029654502869, -0.39569056034088135, -0.5414289236068726, 0.2994382977485657, -0.4929928183555603, -0.6330708861351013, 0.524313747882843, 0.015609810128808022, 0.3465636074542999, 0.7585021257400513, 0.37233465909957886, -0.30546894669532776, 1.0501327514648438, 0.5753602981567383, -0.1634175181388855, 0.60178142786026, -0.8578795194625854, 0.17518272995948792, -0.9064798355102539, -0.3358345925807953, -0.24940979480743408, -0.5292161107063293, -0.28743696212768555, -0.18401966989040375, 0.39047637581825256, 0.46740326285362244, -0.4014466106891632, 0.32541897892951965, -0.5045714378356934, 0.45688870549201965, 0.6716316342353821, 0.19563159346580505, -0.06995060294866562, 0.2067726105451584, -0.23007817566394806, 0.11599268764257431, -0.8633609414100647, -0.23119644820690155, 1.1006505489349365, 0.43642380833625793, 0.6829034686088562, -0.07312767952680588, 0.6716398596763611, 0.1421056091785431, 0.19098468124866486, -0.46494364738464355, 0.46296823024749756, -0.18222670257091522, -0.8030046224594116, -0.12362736463546753, -0.3252597749233246, -0.955992579460144, 0.1909719705581665, -0.0909242108464241, -0.8687373399734497, -0.01970824785530567, 0.2700023651123047, -0.5484806895256042, 0.6111552715301514, -0.8682939410209656, 1.1189913749694824, -0.5616157650947571, -0.38276174664497375, -0.10741778463125229, -0.8610309362411499, 0.32629042863845825, 0.11375542730093002, 0.12050589919090271, 0.02420102246105671, 0.35999608039855957, 0.9949878454208374, -0.4955466389656067, 0.7149431705474854, -0.2863071858882904, 0.04241041839122772, 0.46386340260505676, -0.026044659316539764, 0.3655484616756439, 0.034790366888046265, 0.0016092747682705522, 0.2901958227157593, 0.08646760135889053, -0.46082672476768494, -0.5988895893096924, 0.6237720251083374, -1.0209259986877441, -0.4657556116580963, -0.4847289025783539, -0.4586872160434723, 0.09302035719156265, 0.28973615169525146, 0.5973190069198608, 0.5331937074661255, 0.06495146453380585, 0.183408722281456, 0.6678472757339478, -0.12115930020809174, 0.5838919878005981, 0.18933244049549103, -0.36815714836120605, -0.3744828402996063, 0.8213350772857666, 0.052153218537569046, 0.2564392685890198, 0.36660218238830566, 0.32659417390823364, -0.47126802802085876, -0.22198404371738434, -0.5586495399475098, 0.3327656090259552, -0.6741275787353516, -0.0498933419585228, -0.7411887645721436, -0.3167053759098053, -0.5141490697860718, -0.3000462055206299, -0.4161478579044342, -0.28619953989982605, -0.4965197741985321, -0.12673255801200867, 0.28209188580513, 0.7789989113807678, -0.20930156111717224, 0.5066497325897217, -0.4965628683567047, 0.3453514873981476, 0.3053118884563446, 0.24506215751171112, 0.0390964075922966, -0.8635472059249878, -0.21134701371192932, 0.2246517688035965, -0.2814238369464874, -0.6728947758674622, 0.15757490694522858, 0.2871013581752777, 0.47014284133911133, 0.6673975586891174, -0.13865496218204498, 0.7201846837997437, -0.15692496299743652, 0.8761295676231384, 0.2728106677532196, -0.7670854330062866, 0.6185333728790283, -0.18854902684688568, 0.2973884642124176, 0.6471710205078125, 0.3102121651172638, -0.27171945571899414, -0.008779846131801605, -0.8825708031654358, -0.7932881116867065, 0.8635964393615723, 0.23000840842723846, 0.09058459103107452, 0.20474132895469666, 0.38361141085624695, 0.006521505303680897, 0.0643344298005104, -0.9579351544380188, -0.3434234857559204, -0.5203004479408264, -0.21727868914604187, -0.17090614140033722, -0.20365658402442932, -0.1970900148153305, -0.7508821487426758, 0.6169644594192505, 0.0292829480022192, 0.46305325627326965, 0.18981331586837769, -0.3749035596847534, -0.02749941498041153, 0.03584275767207146, 0.4772585928440094, 0.5104498267173767, -0.340459942817688, 0.14261430501937866, 0.25369054079055786, -0.46815556287765503, 0.08561592549085617, 0.09289990365505219, -0.3083215653896332, -0.1525460183620453, 0.29669123888015747, 1.0561403036117554, 0.1718551516532898, -0.3193051218986511, 0.4063066244125366, -0.02623250149190426, -0.44388866424560547, -0.33351171016693115, 0.31759214401245117, -0.11081939190626144, 0.10482698678970337, 0.33190834522247314, 0.08948566019535065, -0.07470583915710449, -0.48828360438346863, 0.2631158232688904, 0.21136128902435303, -0.301135390996933, -0.515870213508606, 1.0856547355651855, 0.310762882232666, -0.18196286261081696, 0.8064562082290649, -0.1698513776063919, -0.49782654643058777, 0.6415809988975525, 0.6290864944458008, 0.8925886750221252, -0.16165810823440552, 0.21512486040592194, 0.6925806403160095, 0.4497566521167755, -0.2521395981311798, 0.17025822401046753, -0.1400650143623352, -0.5631756782531738, -0.07193265110254288, -0.699484646320343, 0.07970727980136871, 0.4310550391674042, -0.5582284331321716, 0.17452603578567505, -0.6502620577812195, -0.0011251817923039198, -0.13115280866622925, 0.23900213837623596, -0.7762794494628906, 0.4470962882041931, 0.10137447714805603, 0.9103993773460388, -0.8065075874328613, 0.9379568696022034, 0.6508715152740479, -0.6613332033157349, -1.0665024518966675, -0.11126461625099182, -0.04707691818475723, -0.7466903924942017, 0.3456575274467468, 0.5674403309822083, 0.08805615454912186, 0.2304544299840927, -0.49594995379447937, -0.7857699990272522, 1.2126705646514893, 0.2310863435268402, -0.5315550565719604, -0.2246302217245102, 0.1385851353406906, 0.49417686462402344, -0.30886539816856384, 0.6219841241836548, 0.7720518708229065, 0.445224791765213, 0.09777848422527313, -0.799727201461792, -0.019872017204761505, -0.3201254606246948, -0.07940893620252609, 0.04159635677933693, -0.7023126482963562, 1.0386886596679688, -0.385259747505188, -0.1644144505262375, 0.04391646385192871, 0.8059295415878296, 0.04485863447189331, 0.20829157531261444, 0.5829451084136963, 0.744907796382904, 0.572158932685852, -0.19627860188484192, 1.1275683641433716, -0.49936774373054504, 0.5563160181045532, 0.9134863018989563, 0.0365825779736042, 0.6097761392593384, 0.27701887488365173, -0.37008583545684814, 0.5004464387893677, 0.7660208940505981, -0.052794069051742554, 0.32612982392311096, -0.1324065625667572, -0.1445944756269455, -0.1254153847694397, 0.2131083458662033, -0.6569316387176514, 0.32447656989097595, 0.26550689339637756, -0.3507818281650543, -0.26714345812797546, -0.10779508948326111, 0.3050072193145752, -0.3533417880535126, -0.12172473967075348, 0.6859191060066223, 0.056999679654836655, -0.6977512836456299, 0.798490583896637, 0.07069654017686844, 0.7769498229026794, -0.6776331663131714, 0.17807841300964355, -0.5501790046691895, 0.29818081855773926, -0.3939807713031769, -0.5614933371543884, 0.07661756128072739, -0.12212377041578293, 0.1067490428686142, -0.12557272613048553, 0.3998345136642456, -0.31847667694091797, -0.7303450107574463, 0.29471316933631897, 0.1942823976278305, 0.26789239048957825, -0.11607717722654343, -1.072676181793213, 0.06686493009328842, 0.1501569002866745, -0.3776300847530365, 0.34897440671920776, 0.14333665370941162, 0.08528383821249008, 0.4365389347076416, 0.5864139795303345, -0.32230663299560547, 0.19241029024124146, 0.17871657013893127, 0.7925407886505127, -0.5055233240127563, -0.45017504692077637, -0.6364129185676575, 0.651618242263794, 0.04830997437238693, -0.477263867855072, 0.6322243213653564, 0.6650264859199524, 1.092961072921753, -0.011827261187136173, 0.6159172058105469, -0.36880069971084595, 0.1476927250623703, -0.5953116416931152, 0.653615415096283, -0.7810701727867126, 0.26418426632881165, -0.24328750371932983, -0.9660892486572266, -0.15096928179264069, 0.9230704307556152, -0.24720753729343414, 0.48637697100639343, 0.6728866100311279, 0.8596641421318054, -0.35710060596466064, -0.11770928651094437, 0.24004298448562622, 0.2314656525850296, 0.45295292139053345, 0.6567169427871704, 0.508897066116333, -0.7803342938423157, 0.46517443656921387, -0.6415395140647888, -0.29968100786209106, -0.26101961731910706, -0.5051359534263611, -0.8773259520530701, -0.6503745317459106, -0.2227143943309784, -0.3223121166229248, -0.045687537640333176, 0.7680036425590515, 0.80672687292099, -0.857128381729126, -0.3616597056388855, -0.31535157561302185, -0.1501852124929428, -0.35380885004997253, -0.24687880277633667, 0.3888174295425415, -0.41151538491249084, -0.5968767404556274, 0.30063092708587646, 0.08674512058496475, 0.13411863148212433, -0.15237723290920258, -0.2672375440597534, -0.38546040654182434, -0.046449270099401474, 0.481944739818573, 0.36916059255599976, -0.860418438911438, -0.24811951816082, -0.041049495339393616, 0.07899098098278046, 0.33036118745803833, 0.6899945735931396, -0.7549954652786255, 0.4130570590496063, 0.2522973120212555, 0.4356144964694977, 0.7006786465644836, 0.04983873292803764, 0.26276859641075134, -0.5444411635398865, 0.3245321810245514, -0.09251277893781662, 0.40525496006011963, 0.20017807185649872, -0.2381078600883484, 0.6487749814987183, 0.3058870732784271, -0.5952857732772827, -0.725339412689209, 0.11161132156848907, -0.9039788842201233, -0.24972334504127502, 1.154237985610962, -0.12756536900997162, -0.2687157988548279, 0.13431957364082336, -0.21611306071281433, 0.3182729184627533, -0.2556523382663727, 0.7778247594833374, 0.31361687183380127, -0.23415769636631012, -0.3253476321697235, -0.5169837474822998, 0.577002763748169, 0.6017574667930603, -0.7713395357131958, -0.26542162895202637, 0.3047904670238495, 0.5640578269958496, 0.06614474952220917, 0.7336094975471497, -0.01166309230029583, 0.2564125955104828, 0.10023611783981323, 0.05700056999921799, -0.1949765682220459, -0.6127519607543945, -0.3268555700778961, -0.0697706863284111, -0.09888021647930145, -0.20129753649234772 ]
sagorsarker/codeswitch-hineng-ner-lince
sagorsarker
"2023-03-27T15:21:21Z"
21,601
1
transformers
[ "transformers", "pytorch", "jax", "safetensors", "bert", "token-classification", "codeswitching", "hindi-english", "ner", "hi", "en", "multilingual", "dataset:lince", "license:mit", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- language: - hi - en - multilingual license: mit tags: - codeswitching - hindi-english - ner datasets: - lince --- # codeswitch-hineng-ner-lince This is a pretrained model for **Name Entity Recognition** of `Hindi-english` code-mixed data used from [LinCE](https://ritual.uh.edu/lince/home) This model is trained for this below repository. [https://github.com/sagorbrur/codeswitch](https://github.com/sagorbrur/codeswitch) To install codeswitch: ``` pip install codeswitch ``` ## Name Entity Recognition of Code-Mixed Data * **Method-1** ```py from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline tokenizer = AutoTokenizer.from_pretrained("sagorsarker/codeswitch-hineng-ner-lince") model = AutoModelForTokenClassification.from_pretrained("sagorsarker/codeswitch-hineng-ner-lince") ner_model = pipeline('ner', model=model, tokenizer=tokenizer) ner_model("put any hindi english code-mixed sentence") ``` * **Method-2** ```py from codeswitch.codeswitch import NER ner = NER('hin-eng') text = "" # your mixed sentence result = ner.tag(text) print(result) ```
[ -0.39261072874069214, -0.25636371970176697, 0.03861372917890549, 0.22315548360347748, -0.3769419193267822, 0.09652770310640335, -0.15232770144939423, -0.14943179488182068, 0.47646334767341614, 0.49697235226631165, -0.5433463454246521, -0.35825109481811523, -0.8617312908172607, 0.31063854694366455, -0.5928348898887634, 1.2331478595733643, -0.2921833097934723, 0.20577611029148102, 0.2936997711658478, -0.031574442982673645, -0.33616673946380615, -0.41222766041755676, -0.3755525052547455, -0.34802573919296265, 0.2087879478931427, 0.34550419449806213, 0.47701117396354675, 0.4415091872215271, 0.36707425117492676, 0.3591376841068268, 0.06449037790298462, -0.006497449241578579, -0.12118525058031082, 0.07840811461210251, -0.2192724347114563, -0.47322118282318115, -0.15942563116550446, -0.01864730194211006, 0.47932904958724976, 0.1999768167734146, -0.12415094673633575, 0.45972755551338196, -0.08296281844377518, 0.30803048610687256, -0.7604213356971741, 0.21893462538719177, -0.7461474537849426, 0.03123452700674534, -0.2170776128768921, -0.15855740010738373, -0.32433417439460754, -0.40416499972343445, 0.014134668745100498, -0.7117263078689575, 0.16860513389110565, -0.0013880330370739102, 1.428598165512085, 0.3779088854789734, -0.5030116438865662, -0.45615682005882263, -0.4380628168582916, 0.8041749000549316, -0.9136422872543335, 0.4800013601779938, 0.44694387912750244, 0.1418735384941101, 0.09386103600263596, -1.1995902061462402, -0.7143164873123169, -0.00239114579744637, -0.2057071477174759, -0.1306808739900589, -0.0840945616364479, -0.1839301437139511, 0.6706611514091492, 0.2383030354976654, -0.5971804261207581, -0.1275634616613388, -0.5116117596626282, -0.7066107988357544, 0.4759058356285095, 0.09737077355384827, 0.4785643517971039, -0.42789149284362793, -0.5204867124557495, -0.11943946033716202, -0.2890315055847168, -0.021195698529481888, 0.4114528000354767, 0.09591364115476608, -0.3423665761947632, 0.6096336841583252, -0.4482659101486206, 0.740658164024353, 0.041980598121881485, -0.17029844224452972, 0.7393144965171814, -0.2641189992427826, -0.41711682081222534, -0.027631087228655815, 0.9107704162597656, -0.013012909330427647, 0.5168858170509338, 0.043455276638269424, -0.36044842004776, 0.317586213350296, 0.021267719566822052, -0.8183406591415405, -0.6715896725654602, 0.02584918588399887, -0.5619311332702637, -0.48513132333755493, 0.18126116693019867, -0.8338481783866882, -0.11357284337282181, -0.2351681888103485, 0.6637143492698669, -0.3461727499961853, -0.4928627610206604, 0.1263158917427063, -0.08471087366342545, 0.4974750280380249, -0.0076461839489638805, -1.0433346033096313, 0.369915634393692, 0.33923929929733276, 0.7218927145004272, 0.10998275130987167, -0.636446475982666, -0.34282588958740234, -0.244546577334404, -0.039706483483314514, 0.6240044832229614, -0.13875390589237213, -0.12154076248407364, -0.1559220850467682, 0.34546658396720886, -0.3960038125514984, -0.4455334544181824, 0.46935051679611206, -0.6732004880905151, 0.3745781481266022, 0.18994158506393433, -0.5980225205421448, -0.07141750305891037, 0.2025931030511856, -0.5124133825302124, 1.0555251836776733, 0.22007544338703156, -1.2246665954589844, 0.3405488431453705, -0.7447070479393005, -0.5875374674797058, 0.28027376532554626, -0.3178873360157013, -0.5860190987586975, -0.23056091368198395, 0.18874399363994598, 0.371173620223999, 0.17419974505901337, 0.4267418384552002, 0.16056936979293823, -0.5174389481544495, 0.18580539524555206, -0.38360732793807983, 1.1632930040359497, 0.46612319350242615, -0.6008965373039246, 0.03429826721549034, -0.8864466547966003, 0.24381983280181885, 0.2819617688655853, -0.3409920036792755, -0.17507991194725037, -0.16788895428180695, 0.3974514901638031, 0.22229260206222534, 0.27967172861099243, -0.5002660751342773, 0.3569031059741974, -0.43503284454345703, 0.5327967405319214, 0.5188763737678528, -0.07820164412260056, 0.5775286555290222, -0.0018820964032784104, 0.6571407914161682, 0.15822960436344147, 0.10296608507633209, -0.15196944773197174, -0.47017744183540344, -1.0583552122116089, -0.10606202483177185, 0.682668149471283, 0.6454554796218872, -1.091110110282898, 0.47713571786880493, -0.18880242109298706, -0.5195290446281433, -0.5001451969146729, -0.10449721664190292, 0.35056301951408386, 0.2559414207935333, 0.4020163416862488, -0.3749600350856781, -0.9858412742614746, -0.8661515116691589, -0.40541571378707886, -0.006832865532487631, 0.0033658542670309544, -0.06413576006889343, 1.0113071203231812, -0.7475360035896301, 0.8332638740539551, -0.7117146849632263, -0.08097510039806366, -0.05613849684596062, 0.34706202149391174, 0.4112855792045593, 0.6103169322013855, 0.2657931447029114, -0.7324792742729187, -0.5490770936012268, -0.3181689381599426, -0.4777063727378845, -0.0032479031942784786, -0.07167172431945801, 0.02314716950058937, 0.1562502086162567, 0.41947320103645325, -0.48307985067367554, 0.5341743230819702, 0.6698341965675354, -0.46958014369010925, 0.9880814552307129, 0.01871068775653839, 0.2076444923877716, -1.3967342376708984, 0.053999993950128555, -0.3645116686820984, -0.1573779135942459, -0.3816135823726654, 0.21473637223243713, 0.5708127617835999, -0.24768784642219543, -0.531316339969635, 0.7303385734558105, -0.665309488773346, 0.10940476506948471, -0.10853909701108932, -0.31251466274261475, -0.04157662391662598, 0.5383294224739075, 0.07213432341814041, 0.9211440086364746, 0.9608060717582703, -0.7540494799613953, 0.5702096223831177, 0.44933339953422546, -0.5304574966430664, 0.05976342782378197, -0.4670213460922241, 0.09682436287403107, 0.2833210527896881, -0.006001168396323919, -0.6579945087432861, -0.4096013903617859, 0.5004682540893555, -0.642256498336792, 0.20380423963069916, -0.37431564927101135, -0.5058057308197021, -0.42090532183647156, 0.09769274294376373, 0.6904232501983643, 0.6635169982910156, -0.7436407208442688, 0.6152174472808838, 0.26839375495910645, -0.004990272223949432, -0.8159207701683044, -0.9132686257362366, 0.033706266433000565, -0.02228470891714096, -0.29801928997039795, 0.12212192267179489, -0.022195495665073395, 0.2319730818271637, -0.13728484511375427, -0.23391805589199066, -0.46260008215904236, -0.11954749375581741, 0.1610199362039566, 0.26721256971359253, -0.25028085708618164, 0.04243799299001694, -0.14817392826080322, -0.45176881551742554, 0.0985102429986, -0.33086028695106506, 0.801144540309906, -0.21417997777462006, -0.2629505693912506, -0.3094724416732788, -0.08946400135755539, 0.37860050797462463, -0.5177284479141235, 0.4567982256412506, 0.7446478009223938, -0.36888161301612854, -0.31984248757362366, -0.4166368842124939, -0.15255077183246613, -0.5033924579620361, 0.5705392956733704, -0.4196953773498535, -0.5861837863922119, 0.5133699178695679, -0.09477075189352036, -0.31565243005752563, 0.5354883074760437, 0.3680295944213867, 0.09467943012714386, 0.78827303647995, 0.45303189754486084, -0.21627609431743622, 0.4643639028072357, -0.365092009305954, 0.593973696231842, -0.6439999341964722, -0.14494892954826355, -0.6442117691040039, 0.09211767464876175, -0.7226966619491577, -0.07322937995195389, -0.0939001739025116, -0.003038503462448716, -0.3086380362510681, 0.902715802192688, -0.8615696430206299, 0.5795097947120667, 0.4389447867870331, -0.027699975296854973, 0.15153369307518005, 0.027431460097432137, -0.34407204389572144, -0.00012405691086314619, -0.5264865159988403, -0.41651272773742676, 1.0296522378921509, 0.41621971130371094, 0.967139720916748, -0.17152205109596252, 1.0095406770706177, -0.0793558657169342, -0.09719696640968323, -0.6783676743507385, 0.47091639041900635, 0.06361029297113419, -0.8027772307395935, -0.023105934262275696, -0.46966880559921265, -1.0001499652862549, 0.011029557324945927, -0.16669000685214996, -0.6702085137367249, 0.18214884400367737, 0.013592993840575218, -0.2383757084608078, 0.43768310546875, -0.8710597157478333, 0.9597930908203125, -0.35034704208374023, 0.1675683557987213, 0.1371876299381256, -0.5576720833778381, 0.45596012473106384, -0.08005648851394653, 0.37599465250968933, 0.1449914425611496, 0.19758127629756927, 1.1750915050506592, -0.3440799117088318, 0.5999674797058105, -0.11568080633878708, 0.07276307046413422, 0.05341160669922829, 0.11503102630376816, 0.3426400423049927, 0.28673672676086426, 0.0926874503493309, 0.36679741740226746, 0.22010882198810577, -0.514566957950592, -0.28828486800193787, 0.779719352722168, -0.8357939124107361, -0.05392134562134743, -0.8429019451141357, -0.3475905954837799, 0.2150108963251114, 0.547065258026123, 0.8334819674491882, 0.5818639397621155, 0.20645388960838318, -0.06137017533183098, 0.6176908612251282, -0.20344236493110657, 0.5249937176704407, 0.4466691315174103, -0.4121164381504059, -0.4834415316581726, 0.7616161108016968, -0.009632259607315063, 0.08345606923103333, 0.10737927258014679, -0.1281193345785141, -0.18017548322677612, -0.27128636837005615, -0.403780460357666, 0.05494755133986473, -0.8308388590812683, -0.40940654277801514, -0.7170412540435791, -0.8239282369613647, -0.4245913326740265, 0.11518145352602005, -0.40810728073120117, -0.1808844953775406, -0.2488122582435608, 0.06948442757129669, 0.3898274898529053, 0.6176919937133789, 0.024473609402775764, 0.4610539674758911, -0.8032732605934143, 0.5885696411132812, 0.28351694345474243, 0.6816688776016235, -0.1589079350233078, -0.6289305090904236, -0.532799243927002, 0.037249356508255005, -0.15072308480739594, -1.205483317375183, 0.5133833885192871, -0.16261333227157593, 0.6010293960571289, 0.14291484653949738, -0.17022830247879028, 0.41392746567726135, -0.38631144165992737, 0.7500324845314026, 0.21274620294570923, -1.1512740850448608, 0.6220921874046326, 0.02311304584145546, 0.5241270661354065, 0.7092535495758057, 0.39304766058921814, -0.5989894866943359, -0.07853827625513077, -0.804075300693512, -1.0837730169296265, 0.7230104804039001, 0.4429342448711395, 0.2536836862564087, 0.006713140290230513, 0.20628361403942108, 0.0938982218503952, 0.17390546202659607, -1.3503165245056152, -0.5112426280975342, -0.3062235116958618, -0.28189969062805176, 0.1378525048494339, -0.17167088389396667, 0.15950070321559906, -0.5023707747459412, 0.9663069248199463, 0.10621523857116699, 0.4083072543144226, 0.16309121251106262, -0.5396955013275146, 0.005874607712030411, 0.42791250348091125, 0.40846213698387146, 0.3773210048675537, -0.13057498633861542, 0.17763523757457733, 0.2220032811164856, -0.8036782741546631, 0.15675704181194305, 0.1243283823132515, -0.26289671659469604, 0.33782997727394104, 0.5387179255485535, 0.943880021572113, 0.3124273121356964, -0.24331232905387878, 0.6135303974151611, -0.34456321597099304, -0.30061718821525574, -0.5324793457984924, 0.07773589342832565, 0.07924481481313705, 0.1119488924741745, 0.3254426419734955, 0.589300811290741, 0.13073508441448212, -0.19699624180793762, 0.310302197933197, 0.051225464791059494, -0.22264604270458221, 0.1284964233636856, 0.5342257618904114, 0.1556110382080078, -0.5944857001304626, 0.8006789088249207, -0.5240404605865479, -0.9412859678268433, 0.9070309400558472, 0.49955299496650696, 1.0793256759643555, -0.12469194829463959, 0.09284341335296631, 0.7872053384780884, 0.3016526401042938, -0.14463545382022858, 0.46538761258125305, -0.28811269998550415, -0.9132729172706604, -0.24996784329414368, -0.84217369556427, -0.0790063738822937, 0.05355086177587509, -0.7403397560119629, 0.6652531027793884, -0.14680325984954834, -0.002583084162324667, 0.02518945001065731, 0.08105000853538513, -0.9999604225158691, 0.3390076160430908, 0.0577508881688118, 0.980934202671051, -1.1085777282714844, 1.2845547199249268, 0.7010558247566223, -0.6929692625999451, -1.3694196939468384, 0.26384976506233215, -0.3492710292339325, -0.8073409199714661, 0.8304932117462158, 0.2102094441652298, 0.11129286885261536, 0.4036068022251129, -0.612424373626709, -1.1226787567138672, 0.9312771558761597, -0.0908980593085289, -0.727721095085144, -0.01285583060234785, -0.28503450751304626, 0.32135501503944397, -0.2730449438095093, 0.7023496031761169, 0.5651719570159912, 0.45914173126220703, -0.2149060219526291, -1.1902661323547363, -0.11075741797685623, -0.5700380802154541, -0.08512432128190994, 0.3077503740787506, -0.1736120581626892, 0.971464991569519, -0.22988317906856537, -0.1732860654592514, 0.12468039989471436, 0.3249872326850891, 0.4452613294124603, 0.167960062623024, 0.6113128662109375, 0.47218018770217896, 0.43713119626045227, -0.1997317671775818, 0.6728489398956299, -0.43961215019226074, 0.9816429615020752, 1.0772032737731934, -0.12517043948173523, 0.7361647486686707, 0.50504469871521, -0.26303964853286743, 0.9760238528251648, 0.6444842219352722, -0.5266190767288208, 0.7107363343238831, 0.28653156757354736, 0.09738559275865555, 0.1596117615699768, 0.46226581931114197, -0.6270990967750549, 0.4165937006473541, 0.04495290666818619, -0.3426648676395416, -0.1933264136314392, 0.08758308738470078, -0.007368769962340593, -0.1665390282869339, -0.11628888547420502, 0.6657714247703552, -0.04432966932654381, -0.6632471084594727, 0.8233365416526794, 0.02214992046356201, 1.2441960573196411, -0.8410841822624207, -0.05426335707306862, 0.020828435197472572, 0.16260026395320892, -0.49798619747161865, -0.5995029807090759, 0.22894152998924255, 0.014872542582452297, -0.12539611756801605, -0.0370618999004364, 0.9302618503570557, -0.684394896030426, -0.44121965765953064, 0.6288010478019714, 0.15263347327709198, 0.26641616225242615, 0.16604186594486237, -0.85240638256073, 0.025975480675697327, 0.23136891424655914, -0.3266344964504242, 0.08900439739227295, 0.11329110711812973, 0.2305561602115631, 0.4784303307533264, 0.5088752508163452, 0.2145356684923172, 0.3344529867172241, 0.22660686075687408, 0.7543830871582031, -0.6305758953094482, -0.6935020089149475, -0.8015719056129456, 0.6382480263710022, -0.0747702494263649, -0.5848597884178162, 0.7334358096122742, 0.7448601722717285, 1.149616003036499, -0.5683058500289917, 0.7480708360671997, -0.3296915888786316, 0.3821786344051361, -0.557956874370575, 0.9960750341415405, -0.47285470366477966, 0.1792060285806656, -0.29063278436660767, -0.9364124536514282, -0.04208838567137718, 0.8631162047386169, -0.2678658068180084, 0.18927326798439026, 0.995550811290741, 1.0895946025848389, -0.5277771353721619, -0.07233447581529617, 0.16070328652858734, 0.24137263000011444, -0.15593554079532623, 0.4595201015472412, 0.8224889636039734, -0.9895054697990417, 0.4772823452949524, -0.5256731510162354, -0.10947608947753906, -0.045447006821632385, -0.6831936836242676, -0.864250659942627, -0.6872423887252808, -0.4005925953388214, -0.5645577907562256, -0.1456979662179947, 1.0153732299804688, 0.8912301659584045, -1.186767816543579, -0.25641539692878723, -0.2463967651128769, -0.0017159596318379045, 0.038301434367895126, -0.32215404510498047, 0.2965919077396393, -0.41889169812202454, -0.5577794909477234, 0.1369004100561142, -0.08200506865978241, -0.028929028660058975, -0.07139836251735687, -0.22518236935138702, -0.5041343569755554, -0.07001812756061554, 0.04375379905104637, 0.25689175724983215, -0.7283564805984497, -0.0665883794426918, -0.1003994271159172, -0.4890210032463074, -0.022799529135227203, 0.6865971684455872, -0.7033558487892151, 0.3597416579723358, 0.6495890617370605, 0.4135533273220062, 0.6399953365325928, -0.44585493206977844, 0.36202213168144226, -0.8187516331672668, 0.3490453362464905, 0.1644488275051117, 0.770447850227356, 0.18259252607822418, -0.4001350998878479, 0.5220663547515869, 0.32349783182144165, -0.7067174911499023, -0.7312605381011963, 0.2679913640022278, -0.6181065440177917, -0.3107069134712219, 1.1464343070983887, -0.08587779104709625, -0.22980450093746185, -0.2569551467895508, -0.43697184324264526, 0.6339867115020752, -0.12630566954612732, 0.5481147170066833, 0.5880960822105408, 0.30729323625564575, -0.24374811351299286, -0.35762089490890503, 0.4858497679233551, 0.42285746335983276, -0.741766095161438, -0.33564329147338867, -0.05290244147181511, 0.8032561540603638, 0.2767389416694641, 0.7503406405448914, -0.055371034890413284, 0.23242786526679993, 0.1129508689045906, 0.7247800827026367, -0.04782218113541603, -0.22437411546707153, -0.5792348980903625, -0.22259365022182465, -0.1424986720085144, -0.4450906217098236 ]
jonatasgrosman/wav2vec2-large-xlsr-53-dutch
jonatasgrosman
"2022-12-14T01:58:20Z"
21,537
6
transformers
[ "transformers", "pytorch", "jax", "wav2vec2", "automatic-speech-recognition", "audio", "hf-asr-leaderboard", "mozilla-foundation/common_voice_6_0", "nl", "robust-speech-event", "speech", "xlsr-fine-tuning-week", "dataset:common_voice", "dataset:mozilla-foundation/common_voice_6_0", "doi:10.57967/hf/0203", "license:apache-2.0", "model-index", "endpoints_compatible", "has_space", "region:us" ]
automatic-speech-recognition
"2022-03-02T23:29:05Z"
--- language: nl license: apache-2.0 datasets: - common_voice - mozilla-foundation/common_voice_6_0 metrics: - wer - cer tags: - audio - automatic-speech-recognition - hf-asr-leaderboard - mozilla-foundation/common_voice_6_0 - nl - robust-speech-event - speech - xlsr-fine-tuning-week model-index: - name: XLSR Wav2Vec2 Dutch by Jonatas Grosman results: - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Common Voice nl type: common_voice args: nl metrics: - name: Test WER type: wer value: 15.72 - name: Test CER type: cer value: 5.35 - name: Test WER (+LM) type: wer value: 12.84 - name: Test CER (+LM) type: cer value: 4.64 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Robust Speech Event - Dev Data type: speech-recognition-community-v2/dev_data args: nl metrics: - name: Dev WER type: wer value: 35.79 - name: Dev CER type: cer value: 17.67 - name: Dev WER (+LM) type: wer value: 31.54 - name: Dev CER (+LM) type: cer value: 16.37 --- # Fine-tuned XLSR-53 large model for speech recognition in Dutch Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) on Dutch using the train and validation splits of [Common Voice 6.1](https://huggingface.co/datasets/common_voice) and [CSS10](https://github.com/Kyubyong/css10). When using this model, make sure that your speech input is sampled at 16kHz. This model has been fine-tuned thanks to the GPU credits generously given by the [OVHcloud](https://www.ovhcloud.com/en/public-cloud/ai-training/) :) The script used for training can be found here: https://github.com/jonatasgrosman/wav2vec2-sprint ## Usage The model can be used directly (without a language model) as follows... Using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library: ```python from huggingsound import SpeechRecognitionModel model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-dutch") audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"] transcriptions = model.transcribe(audio_paths) ``` Writing your own inference script: ```python import torch import librosa from datasets import load_dataset from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor LANG_ID = "nl" MODEL_ID = "jonatasgrosman/wav2vec2-large-xlsr-53-dutch" SAMPLES = 10 test_dataset = load_dataset("common_voice", LANG_ID, split=f"test[:{SAMPLES}]") processor = Wav2Vec2Processor.from_pretrained(MODEL_ID) model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID) # Preprocessing the datasets. # We need to read the audio files as arrays def speech_file_to_array_fn(batch): speech_array, sampling_rate = librosa.load(batch["path"], sr=16_000) batch["speech"] = speech_array batch["sentence"] = batch["sentence"].upper() return batch test_dataset = test_dataset.map(speech_file_to_array_fn) inputs = processor(test_dataset["speech"], sampling_rate=16_000, return_tensors="pt", padding=True) with torch.no_grad(): logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits predicted_ids = torch.argmax(logits, dim=-1) predicted_sentences = processor.batch_decode(predicted_ids) for i, predicted_sentence in enumerate(predicted_sentences): print("-" * 100) print("Reference:", test_dataset[i]["sentence"]) print("Prediction:", predicted_sentence) ``` | Reference | Prediction | | ------------- | ------------- | | DE ABORIGINALS ZIJN DE OORSPRONKELIJKE BEWONERS VAN AUSTRALIË. | DE ABBORIGENALS ZIJN DE OORSPRONKELIJKE BEWONERS VAN AUSTRALIË | | MIJN TOETSENBORD ZIT VOL STOF. | MIJN TOETSENBORD ZIT VOL STOF | | ZE HAD DE BANK BESCHADIGD MET HAAR SKATEBOARD. | ZE HAD DE BANK BESCHADIGD MET HAAR SCHEETBOORD | | WAAR LAAT JIJ JE ONDERHOUD DOEN? | WAAR LAAT JIJ HET ONDERHOUD DOEN | | NA HET LEZEN VAN VELE BEOORDELINGEN HAD ZE EINDELIJK HAAR OOG LATEN VALLEN OP EEN LAPTOP MET EEN QWERTY TOETSENBORD. | NA HET LEZEN VAN VELE BEOORDELINGEN HAD ZE EINDELIJK HAAR OOG LATEN VALLEN OP EEN LAPTOP MET EEN QUERTITOETSEMBORD | | DE TAMPONS ZIJN OP. | DE TAPONT ZIJN OP | | MARIJKE KENT OLIVIER NU AL MEER DAN TWEE JAAR. | MAARRIJKEN KENT OLIEVIER NU AL MEER DAN TWEE JAAR | | HET VOEREN VAN BROOD AAN EENDEN IS EIGENLIJK ONGEZOND VOOR DE BEESTEN. | HET VOEREN VAN BEUROT AAN EINDEN IS EIGENLIJK ONGEZOND VOOR DE BEESTEN | | PARKET MOET JE STOFZUIGEN, TEGELS MOET JE DWEILEN. | PARKET MOET JE STOF ZUIGEN MAAR TEGELS MOET JE DWEILEN | | IN ONZE BUURT KENT IEDEREEN ELKAAR. | IN ONZE BUURT KENT IEDEREEN ELKAAR | ## Evaluation 1. To evaluate on `mozilla-foundation/common_voice_6_0` with split `test` ```bash python eval.py --model_id jonatasgrosman/wav2vec2-large-xlsr-53-dutch --dataset mozilla-foundation/common_voice_6_0 --config nl --split test ``` 2. To evaluate on `speech-recognition-community-v2/dev_data` ```bash python eval.py --model_id jonatasgrosman/wav2vec2-large-xlsr-53-dutch --dataset speech-recognition-community-v2/dev_data --config nl --split validation --chunk_length_s 5.0 --stride_length_s 1.0 ``` ## Citation If you want to cite this model you can use this: ```bibtex @misc{grosman2021xlsr53-large-dutch, title={Fine-tuned {XLSR}-53 large model for speech recognition in {D}utch}, author={Grosman, Jonatas}, howpublished={\url{https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-dutch}}, year={2021} } ```
[ -0.44067174196243286, -0.7031981348991394, 0.20241358876228333, 0.23516704142093658, -0.2100376933813095, -0.2091779261827469, -0.367525577545166, -0.6484521627426147, 0.29106900095939636, 0.2674255669116974, -0.6126028299331665, -0.5076060891151428, -0.47232741117477417, 0.0603913888335228, -0.35575926303863525, 0.8747177124023438, 0.13010728359222412, 0.2141079604625702, -0.12023617327213287, -0.15294313430786133, -0.31359389424324036, -0.4604542553424835, -0.6384546160697937, -0.3487226068973541, 0.35441941022872925, 0.22684527933597565, 0.29941654205322266, 0.3679845929145813, 0.38725733757019043, 0.3651715815067291, -0.3200894892215729, 0.07530698925256729, -0.26525941491127014, 0.06419157236814499, 0.08303364366292953, -0.4008006751537323, -0.3031617999076843, -0.029992172494530678, 0.538162112236023, 0.5165517330169678, -0.24995452165603638, 0.3440345227718353, 0.022230612114071846, 0.418856143951416, -0.37543004751205444, 0.2502913773059845, -0.42499929666519165, -0.13245658576488495, -0.08304203301668167, 0.12658356130123138, -0.33261510729789734, -0.2231598049402237, 0.20681144297122955, -0.426552414894104, 0.1995798647403717, -0.0005059136310592294, 1.0111929178237915, 0.14385607838630676, -0.07016422599554062, -0.36705198884010315, -0.6790417432785034, 0.8965672850608826, -0.9326329827308655, 0.40430834889411926, 0.4826735854148865, 0.15597599744796753, -0.0885763093829155, -0.7834629416465759, -0.7062893509864807, -0.15877152979373932, 0.06012500077486038, 0.28658467531204224, -0.4875869154930115, -0.09001247584819794, 0.3308563530445099, 0.07126252353191376, -0.7433587312698364, 0.0881127342581749, -0.72767174243927, -0.39149731397628784, 0.7083806991577148, -0.10416337102651596, 0.19390437006950378, -0.2142249494791031, -0.20680131018161774, -0.614510178565979, -0.14519540965557098, 0.35154008865356445, 0.3879709541797638, 0.5198052525520325, -0.5653848648071289, 0.5795657634735107, -0.08536330610513687, 0.6806910634040833, 0.058106161653995514, -0.30805355310440063, 0.8583071231842041, -0.20334863662719727, -0.3242323100566864, 0.2643030881881714, 1.0507421493530273, 0.19196926057338715, 0.26509037613868713, 0.06056540459394455, -0.1077178493142128, 0.23919755220413208, -0.23349404335021973, -0.7070851922035217, -0.26816949248313904, 0.39469239115715027, -0.3272091746330261, -0.12788258492946625, 0.10960588604211807, -0.599632203578949, -0.03815180063247681, -0.23194529116153717, 0.5804871320724487, -0.5755048394203186, -0.28765392303466797, 0.3322013020515442, -0.30431249737739563, 0.10797105729579926, -0.0024593675043433905, -0.8115565180778503, 0.16239500045776367, 0.4328657388687134, 0.8220837712287903, 0.1881864219903946, -0.22196853160858154, -0.3342633843421936, -0.16311411559581757, -0.22176986932754517, 0.5921686887741089, -0.28384828567504883, -0.27723872661590576, -0.17958104610443115, -0.026385203003883362, -0.21702855825424194, -0.4950936734676361, 0.685217022895813, -0.21063117682933807, 0.4739161729812622, -0.13652636110782623, -0.5221951603889465, -0.26596394181251526, -0.10124071687459946, -0.570582926273346, 1.1475903987884521, 0.0061645908281207085, -0.8422560095787048, 0.13002943992614746, -0.6831464767456055, -0.45554059743881226, -0.28703364729881287, -0.010072724893689156, -0.5705338716506958, -0.16558833420276642, 0.29012325406074524, 0.5231758952140808, -0.19910815358161926, 0.06233975291252136, -0.35198965668678284, -0.27715882658958435, 0.39086008071899414, -0.3379322588443756, 1.2560909986495972, 0.18972896039485931, -0.3776908218860626, 0.054617512971162796, -0.9139432907104492, 0.12569256126880646, 0.16457732021808624, -0.4154548645019531, -0.1928093284368515, -0.1330987811088562, 0.253900945186615, 0.21103763580322266, 0.17098495364189148, -0.6908990740776062, 0.010057780891656876, -0.6326258182525635, 0.6183466911315918, 0.5651978850364685, -0.10521478205919266, 0.14840538799762726, -0.36353856325149536, 0.32340943813323975, -0.010729992762207985, -0.011006181128323078, 0.08608941733837128, -0.5175860524177551, -0.7136748433113098, -0.34757402539253235, 0.3500368297100067, 0.6060069799423218, -0.43245768547058105, 0.7947952151298523, -0.20979641377925873, -0.8318753242492676, -0.7334265112876892, -0.15328949689865112, 0.39792922139167786, 0.4529326260089874, 0.503423273563385, -0.06557344645261765, -0.9622642397880554, -0.8728211522102356, 0.041227422654628754, -0.3392278850078583, -0.21780361235141754, 0.49000272154808044, 0.6202097535133362, -0.3086583614349365, 0.9032264351844788, -0.3849674463272095, -0.22780218720436096, -0.23001033067703247, 0.15615813434123993, 0.48846006393432617, 0.6820014715194702, 0.6092231869697571, -0.7924872636795044, -0.37652140855789185, -0.2399497777223587, -0.5224044919013977, -0.08988519757986069, -0.035057537257671356, -0.04496968537569046, 0.32722169160842896, 0.3710678517818451, -0.7101294994354248, 0.25615194439888, 0.5740912556648254, -0.39199692010879517, 0.6080563068389893, -0.10534876585006714, -0.12829707562923431, -1.1153730154037476, 0.1454009860754013, 0.1078338548541069, -0.1793527901172638, -0.4926149547100067, -0.3137976825237274, -0.17430703341960907, 0.11705394834280014, -0.43894094228744507, 0.5112513899803162, -0.4164973199367523, -0.08468414843082428, 0.0689207911491394, 0.24319379031658173, -0.07419919222593307, 0.5327005386352539, 0.02746780961751938, 0.594110369682312, 0.717341423034668, -0.5248656272888184, 0.5520875453948975, 0.5084137916564941, -0.6279296875, 0.16900913417339325, -0.8301573395729065, 0.2827959954738617, 0.08784294128417969, 0.2748912572860718, -1.1116938591003418, -0.12274841964244843, 0.37759214639663696, -0.8172664046287537, 0.21261753141880035, 0.154342383146286, -0.47402653098106384, -0.6422126889228821, -0.11086782068014145, 0.1275257021188736, 0.7108263373374939, -0.5194430351257324, 0.6721109747886658, 0.4398287534713745, -0.16733942925930023, -0.6854183673858643, -0.929850697517395, -0.22419020533561707, -0.1542629599571228, -0.727031409740448, 0.17185059189796448, -0.14155645668506622, -0.22734586894512177, -0.10053280740976334, -0.20300829410552979, 0.005602613091468811, -0.04070548340678215, 0.3735506534576416, 0.3689863383769989, -0.23056352138519287, -0.0783354863524437, -0.16122344136238098, 0.035330962389707565, 0.15785673260688782, -0.14622822403907776, 0.7317144274711609, -0.14720889925956726, -0.10048777610063553, -0.5697096586227417, 0.13375015556812286, 0.5323013067245483, -0.22858324646949768, 0.5892758965492249, 0.8612680435180664, -0.34765586256980896, -0.06875943392515182, -0.5323596596717834, -0.13175813853740692, -0.46393778920173645, 0.6093177795410156, -0.26927563548088074, -0.7043144106864929, 0.5751940011978149, 0.3317245543003082, 0.021067272871732712, 0.6210114359855652, 0.5593893527984619, -0.1930094212293625, 0.9345341920852661, 0.4263874888420105, -0.17154155671596527, 0.5493432879447937, -0.5430012941360474, 0.061317745596170425, -0.6831968426704407, -0.39716285467147827, -0.7085438370704651, -0.25147631764411926, -0.4383395314216614, -0.38245776295661926, 0.15157611668109894, 0.04777722433209419, -0.31811413168907166, 0.47077319025993347, -0.6228837370872498, 0.20040655136108398, 0.6527698636054993, 0.22506183385849, -0.16011932492256165, 0.15086084604263306, -0.31235820055007935, 0.12717223167419434, -0.6642736792564392, -0.374827116727829, 1.000502109527588, 0.3843082785606384, 0.6069706678390503, -0.008216818794608116, 0.613241970539093, 0.07961300015449524, -0.22005696594715118, -0.7416667938232422, 0.6268230080604553, -0.1552041620016098, -0.6355181336402893, -0.45321768522262573, -0.34400269389152527, -0.9327287077903748, 0.17816096544265747, -0.2892281711101532, -1.0091023445129395, 0.27527517080307007, -0.003564585233107209, -0.5207523703575134, 0.19770529866218567, -0.6661170721054077, 0.789575457572937, -0.04689861834049225, -0.1595541387796402, -0.16726039350032806, -0.7585859298706055, 0.21336089074611664, 0.018510010093450546, 0.10649390518665314, -0.13118582963943481, 0.29652437567710876, 1.2907013893127441, -0.30937954783439636, 0.8704189658164978, -0.2112085223197937, 0.03305066004395485, 0.47295868396759033, -0.28005826473236084, 0.3916439712047577, -0.25594085454940796, -0.2666451930999756, 0.40666627883911133, 0.246024027466774, -0.20664112269878387, -0.2701311707496643, 0.5731292963027954, -1.0704635381698608, -0.3047299087047577, -0.48555469512939453, -0.5075144171714783, -0.11205895990133286, 0.21793077886104584, 0.5459491014480591, 0.5231106281280518, -0.16982565820217133, 0.45728012919425964, 0.4608769416809082, -0.27987590432167053, 0.4969196021556854, 0.42949745059013367, -0.12872077524662018, -0.5148628354072571, 0.6010730266571045, 0.1925761103630066, 0.1674738973379135, 0.2386893481016159, 0.35366708040237427, -0.556642472743988, -0.43697598576545715, -0.16919571161270142, 0.2956589162349701, -0.7079375982284546, -0.1436220407485962, -0.7665697336196899, -0.2544665038585663, -0.74900221824646, 0.10761591047048569, -0.32093316316604614, -0.37341153621673584, -0.4616549611091614, -0.22449737787246704, 0.5595605373382568, 0.47128087282180786, -0.4157424867153168, 0.25756630301475525, -0.5104056000709534, 0.38563740253448486, 0.1370166540145874, 0.0716981291770935, -0.08042417466640472, -0.8113380670547485, -0.3510500490665436, 0.27870702743530273, -0.13698416948318481, -0.7400979399681091, 0.541153609752655, 0.08051227033138275, 0.49469247460365295, 0.38168713450431824, 0.144686758518219, 0.7248504757881165, -0.32939624786376953, 0.8529298305511475, 0.37653928995132446, -0.9769577980041504, 0.5938149690628052, -0.22995756566524506, 0.24543476104736328, 0.35313406586647034, 0.26373055577278137, -0.5732546448707581, -0.3177805244922638, -0.7604604363441467, -0.9964868426322937, 0.9234489798545837, 0.26902881264686584, 0.09276768565177917, 0.0695251077413559, 0.17551705241203308, -0.05856158584356308, 0.02835540845990181, -0.7189966440200806, -0.566653847694397, -0.18678978085517883, -0.24830752611160278, -0.3030111789703369, -0.251915842294693, -0.09652239829301834, -0.47063663601875305, 0.9986215829849243, 0.21734994649887085, 0.41869449615478516, 0.3305700421333313, 0.0889691710472107, -0.020951414480805397, 0.17053356766700745, 0.6621047258377075, 0.3721070885658264, -0.44520825147628784, -0.09863303601741791, 0.2083955556154251, -0.7146180272102356, 0.1011548787355423, 0.16797976195812225, -0.18250054121017456, 0.3504831790924072, 0.48914000391960144, 1.2461702823638916, 0.09489414840936661, -0.5819509029388428, 0.47508466243743896, -0.09739755839109421, -0.44773945212364197, -0.7062138319015503, 0.13669545948505402, 0.2654847502708435, 0.34235990047454834, 0.40131857991218567, 0.286312073469162, -0.12045303732156754, -0.35184893012046814, 0.16394229233264923, 0.31724920868873596, -0.2746272087097168, -0.21789352595806122, 0.6751815676689148, 0.08489158004522324, -0.36163124442100525, 0.5984473824501038, -0.05256880447268486, -0.44862017035484314, 0.8195553421974182, 0.5948758721351624, 0.8347389698028564, -0.26779910922050476, -0.09024518728256226, 0.7325903177261353, 0.2024521380662918, -0.3040371835231781, 0.4874855875968933, 0.05817345902323723, -0.8254479765892029, -0.2986880838871002, -0.6065666675567627, -0.24804216623306274, 0.3494134843349457, -0.9300744533538818, 0.3835618197917938, -0.3494187593460083, -0.277077317237854, 0.30296090245246887, 0.11572849005460739, -0.6894877552986145, 0.27550041675567627, 0.4293997287750244, 1.0374215841293335, -0.948094367980957, 0.9410743117332458, 0.5150189995765686, -0.45519495010375977, -1.1161744594573975, -0.10392887890338898, -0.15219798684120178, -0.7266142964363098, 0.5587416887283325, 0.23254603147506714, -0.11555031687021255, -0.006558528635650873, -0.6346463561058044, -1.0096849203109741, 1.0624158382415771, 0.42134934663772583, -0.9205727577209473, 0.003416741732507944, -0.05953659117221832, 0.4678610563278198, -0.18399085104465485, 0.39405497908592224, 0.6100267171859741, 0.5577000379562378, 0.06919215619564056, -1.1098264455795288, -0.07369621098041534, -0.3056609332561493, -0.1982744038105011, -0.18963541090488434, -0.5485988855361938, 1.019141674041748, -0.3741914629936218, -0.14700454473495483, 0.1923232525587082, 0.7684748768806458, 0.3921690583229065, 0.2582833468914032, 0.6311682462692261, 0.5176693797111511, 0.9855582118034363, -0.10502590239048004, 0.9149097800254822, -0.17844967544078827, 0.5263442993164062, 1.1174843311309814, -0.14002369344234467, 1.1395624876022339, 0.3958035707473755, -0.42170941829681396, 0.5667904019355774, 0.5940836071968079, -0.3347698748111725, 0.5583035945892334, 0.15430474281311035, -0.13449601829051971, -0.2194744199514389, 0.15123943984508514, -0.545067548751831, 0.7973589897155762, 0.18815086781978607, -0.28649279475212097, 0.12375346571207047, 0.2762163281440735, 0.10820919275283813, -0.14985904097557068, -0.19892017543315887, 0.5851366519927979, 0.08987191319465637, -0.4903922379016876, 0.8692837953567505, -0.051552560180425644, 0.9279361367225647, -0.7011430263519287, 0.18769660592079163, 0.18246962130069733, 0.27204152941703796, -0.2547081410884857, -0.6677877902984619, 0.10862285643815994, 0.09155219048261642, -0.34721776843070984, -0.007618093863129616, 0.4937700629234314, -0.5238491892814636, -0.682759165763855, 0.5709396004676819, 0.22195802628993988, 0.4257301092147827, -0.00020503967243712395, -0.8737779259681702, 0.2305871844291687, 0.25859057903289795, -0.49194931983947754, 0.08429471403360367, 0.3009204864501953, 0.2510281503200531, 0.5861625671386719, 0.7669433355331421, 0.20943529903888702, -0.04171901196241379, 0.0470682717859745, 0.6694744229316711, -0.6071918606758118, -0.6997436285018921, -0.8152236938476562, 0.5035204291343689, -0.038866955786943436, -0.31354600191116333, 0.731192946434021, 0.7883355021476746, 0.9324900507926941, -0.06640181690454483, 1.0228701829910278, -0.22628234326839447, 0.8621088266372681, -0.44823911786079407, 0.7802841067314148, -0.46212658286094666, 0.08018049597740173, -0.344628244638443, -0.6534134745597839, -0.19175709784030914, 0.9712989926338196, -0.42136698961257935, 0.09950452297925949, 0.49940431118011475, 0.8981407880783081, -0.030975783243775368, -0.06260676681995392, 0.25748714804649353, 0.5645069479942322, 0.17506076395511627, 0.5681572556495667, 0.4835875630378723, -0.6646994352340698, 0.8103824853897095, -0.5070644021034241, -0.02290012501180172, -0.2695452868938446, -0.6177828907966614, -0.8758795857429504, -0.7161199450492859, -0.48162463307380676, -0.6929382085800171, -0.08568549156188965, 1.1417313814163208, 0.6707355380058289, -0.9943068027496338, -0.3214014172554016, 0.1532241553068161, -0.19326451420783997, -0.41718995571136475, -0.21900607645511627, 0.6522699594497681, 0.15018236637115479, -0.8207043409347534, 0.3658611476421356, -0.15845522284507751, 0.28419721126556396, -0.020851416513323784, -0.18641047179698944, -0.2872464954853058, 0.07537148147821426, 0.39237964153289795, 0.39474213123321533, -0.8529538512229919, -0.20471951365470886, -0.005646243691444397, -0.2954747974872589, 0.1759183555841446, 0.20222489535808563, -0.7127159237861633, 0.26926082372665405, 0.5595467686653137, 0.1753615438938141, 0.6597028374671936, -0.21515749394893646, 0.25757846236228943, -0.5671650171279907, 0.4167770743370056, 0.29978471994400024, 0.6028056740760803, 0.35705217719078064, -0.16867493093013763, 0.37484899163246155, 0.24902300536632538, -0.4695674479007721, -0.991264283657074, -0.2364395707845688, -1.3495814800262451, -0.3053537607192993, 1.3491778373718262, -0.13354232907295227, -0.32282310724258423, 0.0428200364112854, -0.4026336967945099, 0.6291289329528809, -0.5451329350471497, 0.5615448951721191, 0.6036972403526306, -0.14523766934871674, 0.004377136938273907, -0.5827246308326721, 0.3061690330505371, 0.29750218987464905, -0.4384976923465729, 0.05847247317433357, 0.38119542598724365, 0.4935033917427063, 0.3504193127155304, 0.6426133513450623, 0.11578784883022308, 0.2687119245529175, 0.20926257967948914, 0.43621477484703064, -0.1733783632516861, -0.008676989004015923, -0.4476180374622345, 0.019924089312553406, -0.34992608428001404, -0.6026526093482971 ]
Intel/neural-chat-7b-v3-1
Intel
"2023-11-30T05:39:00Z"
21,483
395
transformers
[ "transformers", "pytorch", "safetensors", "mistral", "text-generation", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-11-14T07:03:44Z"
--- license: apache-2.0 --- ## Fine-tuning on Intel Gaudi2 This model is a fine-tuned model based on [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the open source dataset [Open-Orca/SlimOrca](https://huggingface.co/datasets/Open-Orca/SlimOrca). Then we align it with DPO algorithm. For more details, you can refer our blog: [The Practice of Supervised Fine-tuning and Direct Preference Optimization on Intel Gaudi2](https://medium.com/@NeuralCompressor/the-practice-of-supervised-finetuning-and-direct-preference-optimization-on-habana-gaudi2-a1197d8a3cd3). ## Model date Neural-chat-7b-v3-1 was trained between September and October, 2023. ## Evaluation We submit our model to [open_llm_leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard), and the model performance has been **improved significantly** as we see from the average metric of 7 tasks from the leaderboard. | Model | Average ⬆️| ARC (25-s) ⬆️ | HellaSwag (10-s) ⬆️ | MMLU (5-s) ⬆️| TruthfulQA (MC) (0-s) ⬆️ | Winogrande (5-s) | GSM8K (5-s) | DROP (3-s) | | --- | --- | --- | --- | --- | --- | --- | --- | --- | |[mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) | 50.32 | 59.58 | 83.31 | 64.16 | 42.15 | 78.37 | 18.12 | 6.14 | | [Intel/neural-chat-7b-v3](https://huggingface.co/Intel/neural-chat-7b-v3) | **57.31** | 67.15 | 83.29 | 62.26 | 58.77 | 78.06 | 1.21 | 50.43 | | [Intel/neural-chat-7b-v3-1](https://huggingface.co/Intel/neural-chat-7b-v3-1) | **59.06** | 66.21 | 83.64 | 62.37 | 59.65 | 78.14 | 19.56 | 43.84 | ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 1e-04 - train_batch_size: 1 - eval_batch_size: 2 - seed: 42 - distributed_type: multi-HPU - num_devices: 8 - gradient_accumulation_steps: 8 - total_train_batch_size: 64 - total_eval_batch_size: 8 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: cosine - lr_scheduler_warmup_ratio: 0.03 - num_epochs: 2.0 ### Training sample code Here is the sample code to reproduce the model: [Sample Code](https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat/examples/finetuning/finetune_neuralchat_v3/README.md). ## Prompt Template ``` ### System: {system} ### User: {usr} ### Assistant: ``` ## Inference with transformers ```python import transformers model_name = 'Intel/neural-chat-7b-v3-1' model = transformers.AutoModelForCausalLM.from_pretrained(model_name) tokenizer = transformers.AutoTokenizer.from_pretrained(model_name) def generate_response(system_input, user_input): # Format the input using the provided template prompt = f"### System:\n{system_input}\n### User:\n{user_input}\n### Assistant:\n" # Tokenize and encode the prompt inputs = tokenizer.encode(prompt, return_tensors="pt", add_special_tokens=False) # Generate a response outputs = model.generate(inputs, max_length=1000, num_return_sequences=1) response = tokenizer.decode(outputs[0], skip_special_tokens=True) # Extract only the assistant's response return response.split("### Assistant:\n")[-1] # Example usage system_input = "You are a math expert assistant. Your mission is to help users understand and solve various math problems. You should provide step-by-step solutions, explain reasonings and give the correct answer." user_input = "calculate 100 + 520 + 60" response = generate_response(system_input, user_input) print(response) # expected response """ To calculate the sum of 100, 520, and 60, we will follow these steps: 1. Add the first two numbers: 100 + 520 2. Add the result from step 1 to the third number: (100 + 520) + 60 Step 1: Add 100 and 520 100 + 520 = 620 Step 2: Add the result from step 1 to the third number (60) (620) + 60 = 680 So, the sum of 100, 520, and 60 is 680. """ ``` ## Ethical Considerations and Limitations neural-chat-7b-v3-1 can produce factually incorrect output, and should not be relied on to produce factually accurate information. neural-chat-7b-v3-1 was trained on [Open-Orca/SlimOrca](https://huggingface.co/datasets/Open-Orca/SlimOrca) based on [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1). Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs. Therefore, before deploying any applications of neural-chat-7b-v3-1, developers should perform safety testing. ## Disclaimer The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please cosult an attorney before using this model for commercial purposes. ## Organizations developing the model The NeuralChat team with members from Intel/DCAI/AISE/AIPT. Core team members: Kaokao Lv, Liang Lv, Chang Wang, Wenxin Zhang, Xuhui Ren, and Haihao Shen. ## Useful links * Intel Neural Compressor [link](https://github.com/intel/neural-compressor) * Intel Extension for Transformers [link](https://github.com/intel/intel-extension-for-transformers) # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Intel__neural-chat-7b-v3-1) | Metric | Value | |-----------------------|---------------------------| | Avg. | 59.06 | | ARC (25-shot) | 66.21 | | HellaSwag (10-shot) | 83.64 | | MMLU (5-shot) | 62.37 | | TruthfulQA (0-shot) | 59.65 | | Winogrande (5-shot) | 78.14 | | GSM8K (5-shot) | 19.56 | | DROP (3-shot) | 43.84 |
[ -0.42174413800239563, -0.8415219187736511, 0.12827888131141663, 0.2539118230342865, -0.1091047078371048, -0.146092027425766, -0.39986908435821533, -0.4220197796821594, 0.3147284686565399, 0.04264703392982483, -0.6477034687995911, -0.41924741864204407, -0.6083383560180664, -0.27293163537979126, -0.11727956682443619, 0.8909569978713989, 0.3299528658390045, 0.1662750542163849, -0.14903327822685242, 0.04793102666735649, -0.7040961384773254, -0.4886298179626465, -0.990108847618103, -0.37379157543182373, 0.1300814002752304, 0.40212997794151306, 0.4555097818374634, 0.5144280791282654, 0.6063783764839172, 0.45117852091789246, -0.40377938747406006, 0.19260261952877045, -0.5941110849380493, -0.13795462250709534, 0.23532697558403015, -0.6068518161773682, -0.8309643864631653, 0.0027554186526685953, 0.36132845282554626, 0.23338712751865387, -0.21087127923965454, 0.5159478187561035, 0.24221599102020264, 0.4639865756034851, -0.3855102062225342, 0.4940365254878998, -0.6415386199951172, 0.004091363865882158, -0.038949064910411835, -0.10127653926610947, -0.26871323585510254, -0.17186479270458221, -0.04662923514842987, -0.44610902667045593, 0.01758650504052639, -0.03776997700333595, 1.0082190036773682, 0.41507381200790405, 0.049494512379169464, -0.036683231592178345, -0.6481066346168518, 0.7776889801025391, -0.9631009697914124, 0.2647940516471863, 0.2604706883430481, 0.3817797303199768, -0.2188335508108139, -0.6750057935714722, -0.5360862612724304, -0.22314073145389557, 0.15436038374900818, 0.32201749086380005, -0.41750994324684143, 0.013125598430633545, 0.30151140689849854, 0.33290329575538635, -0.35987815260887146, 0.2226249873638153, -0.7336870431900024, -0.25829842686653137, 0.6303956508636475, 0.3084982931613922, 0.14035071432590485, -0.20804224908351898, -0.3892543911933899, -0.18096521496772766, -0.33202189207077026, 0.35322001576423645, 0.41833341121673584, 0.2967381775379181, -0.40123650431632996, 0.48415136337280273, -0.21610122919082642, 0.7695477604866028, 0.17115215957164764, -0.30041301250457764, 0.42120274901390076, -0.2877010703086853, -0.38366764783859253, -0.049581870436668396, 1.0190725326538086, 0.5536048412322998, 0.18900394439697266, 0.2524736821651459, 0.018385540693998337, 0.12569066882133484, 0.08924441039562225, -0.8266468048095703, -0.2555373013019562, 0.15172304213047028, -0.49555110931396484, -0.4416501820087433, -0.19401732087135315, -0.43390804529190063, -0.03845227509737015, -0.22523462772369385, 0.3722756803035736, -0.559893786907196, -0.25515657663345337, 0.25906336307525635, -0.20832791924476624, 0.15273866057395935, 0.19196762144565582, -0.8890010118484497, 0.4109686315059662, 0.5382217168807983, 0.830799400806427, -0.08213106542825699, -0.3373893201351166, 0.022427575662732124, -0.38999301195144653, -0.14885269105434418, 0.5454434156417847, -0.09922607988119125, -0.1613406240940094, -0.4529576599597931, -0.15594074130058289, -0.15342377126216888, -0.4327527582645416, 0.502048134803772, -0.32128989696502686, 0.2998107075691223, 0.008136481046676636, -0.5905493497848511, -0.09745325893163681, 0.27531710267066956, -0.35378405451774597, 1.167421817779541, -0.19719699025154114, -0.6677863597869873, -0.025386832654476166, -0.7213120460510254, -0.006418838165700436, -0.20922990143299103, -0.1447286605834961, -0.3271583318710327, -0.05104738101363182, 0.21679401397705078, 0.5061736106872559, -0.30447810888290405, 0.22575409710407257, -0.40642377734184265, -0.5844717621803284, 0.234559565782547, -0.6285895705223083, 1.0646520853042603, 0.06704629212617874, -0.5875362753868103, 0.11109502613544464, -0.7842572331428528, 0.03394351899623871, 0.2056765854358673, -0.2888287305831909, 0.025207707658410072, -0.09006145596504211, -0.2772755026817322, 0.2974884510040283, 0.4012598693370819, -0.6927756071090698, 0.019737912341952324, -0.5778433680534363, 0.5820066928863525, 0.8635435700416565, -0.07882910966873169, 0.2846314311027527, -0.2855927646160126, 0.25453177094459534, 0.17578750848770142, 0.6826062202453613, 0.12869545817375183, -0.7963528633117676, -1.0723042488098145, -0.15330250561237335, 0.23042427003383636, 0.6542222499847412, -0.5413318872451782, 0.8696529269218445, -0.2385033369064331, -0.756866991519928, -0.6489000916481018, 0.03722149506211281, 0.42472171783447266, 0.8835533857345581, 0.398992657661438, -0.2525058686733246, -0.4822932779788971, -1.1032288074493408, 0.16439621150493622, -0.32057783007621765, -0.014361852779984474, 0.6286128759384155, 0.3784865140914917, 0.04111906513571739, 0.7158733606338501, -0.5635983347892761, -0.3089595437049866, -0.10497751086950302, -0.047500137239694595, 0.476052463054657, 0.6410017609596252, 0.5789132118225098, -0.517488420009613, -0.315193772315979, -0.15972058475017548, -0.8565240502357483, 0.21539372205734253, 0.09005052596330643, -0.27065953612327576, 0.16119113564491272, 0.5905964970588684, -0.6292787790298462, 0.6431125998497009, 0.5368785858154297, -0.2329777032136917, 0.3561660945415497, -0.03931918740272522, 0.019268861040472984, -1.2862366437911987, 0.016751714050769806, -0.0679258406162262, -0.03236742317676544, -0.4685170650482178, -0.19296199083328247, -0.06172771379351616, -0.10346811264753342, -0.7620360255241394, 0.5505586266517639, -0.22974775731563568, 0.14678972959518433, -0.22724094986915588, 0.0600818432867527, -0.18065297603607178, 0.9849144816398621, -0.2863500416278839, 0.6935873627662659, 0.7277717590332031, -0.5667693614959717, 0.5924932360649109, 0.34170305728912354, -0.21984857320785522, 0.23196031153202057, -1.0063395500183105, 0.21182379126548767, 0.10423389077186584, 0.2003241330385208, -1.1565436124801636, 0.06761043518781662, 0.5139783024787903, -0.9533828496932983, 0.22470179200172424, -0.09312637150287628, -0.35045602917671204, -0.504847526550293, -0.26300138235092163, 0.2838640511035919, 0.7437967658042908, -0.418657124042511, 0.5081930756568909, 0.35472092032432556, 0.0029118810780346394, -0.788196325302124, -0.8304570317268372, -0.03530063107609749, -0.1244661882519722, -0.8751534223556519, 0.34763675928115845, -0.267854243516922, 0.012987037189304829, -0.036242906004190445, -0.075389064848423, 0.07391629368066788, 0.16288195550441742, 0.48512449860572815, 0.5822266340255737, -0.16819915175437927, -0.08772891014814377, -0.1792730689048767, -0.09109745919704437, 0.289348304271698, -0.2278948575258255, 0.8211037516593933, -0.5162970423698425, -0.21468403935432434, -0.7477576732635498, 0.016114549711346626, 0.43322259187698364, -0.03536226972937584, 0.7816869616508484, 0.7712920904159546, -0.3625626564025879, 0.1190577819943428, -0.6709195375442505, -0.40562984347343445, -0.5404845476150513, 0.4334287643432617, -0.2896510064601898, -0.7470002770423889, 0.798744797706604, 0.28003257513046265, 0.0884401947259903, 0.7750215530395508, 0.7055656313896179, 0.07493367791175842, 1.0752482414245605, 0.5638992786407471, -0.1991511881351471, 0.6451062560081482, -0.5882828235626221, 0.07190698385238647, -0.7479425668716431, -0.43249157071113586, -0.3903902769088745, -0.6634072661399841, -0.6359973549842834, -0.1510223001241684, 0.2586997151374817, 0.010911011137068272, -0.36965155601501465, 0.2837122976779938, -0.6973970532417297, 0.48449692130088806, 0.7767670750617981, 0.47189459204673767, -0.09950964152812958, 0.020309701561927795, -0.10851797461509705, -0.04621190205216408, -0.8188377022743225, -0.24474088847637177, 0.9941244125366211, 0.5070012807846069, 0.6924014091491699, -0.1290755718946457, 0.6177369952201843, -0.0774163082242012, 0.06855592131614685, -0.7555610537528992, 0.7740412354469299, 0.10709716379642487, -0.6455215215682983, -0.19749309122562408, -0.5442451238632202, -0.6463001370429993, -0.099863700568676, -0.20351193845272064, -0.9127278327941895, 0.3353290259838104, 0.11807714402675629, -0.5689208507537842, 0.3500617742538452, -0.8471294641494751, 0.7934868335723877, -0.17769064009189606, -0.13704423606395721, -0.1817047894001007, -0.7799400687217712, 0.39934220910072327, 0.32747530937194824, -0.3020112216472626, -0.25577107071876526, 0.10318803787231445, 0.8696281313896179, -0.35692012310028076, 1.0105186700820923, -0.148318812251091, 0.359220951795578, 0.3617978096008301, -0.1385783702135086, 0.13319478929042816, 0.14210085570812225, -0.01899823732674122, 0.47441819310188293, -0.33081573247909546, -0.45390260219573975, -0.555359959602356, 0.8520252108573914, -1.1769741773605347, -0.5405380129814148, -0.3057105243206024, -0.5753451585769653, -0.0531543530523777, 0.11211287975311279, 0.416739821434021, 0.47053325176239014, -0.012632562778890133, 0.3085813522338867, 0.5577653646469116, -0.2939407229423523, 0.5375440120697021, 0.2694580554962158, -0.03817332163453102, -0.4917045831680298, 0.8648005723953247, 0.032948412001132965, 0.30194178223609924, 0.020892996340990067, 0.12553560733795166, -0.07971050590276718, -0.39390677213668823, -0.34623077511787415, 0.10368482768535614, -0.5841489434242249, -0.48513445258140564, -0.6431270241737366, -0.5672699213027954, -0.5301652550697327, 0.20644141733646393, -0.6092809438705444, -0.494765043258667, -0.5362247228622437, -0.07976898550987244, 0.5105304718017578, 0.37363049387931824, -0.02832292765378952, 0.33664631843566895, -0.5508993268013, 0.14177952706813812, 0.39623865485191345, 0.34586405754089355, 0.14721240103244781, -0.8612161874771118, -0.24428386986255646, 0.2984256446361542, -0.4072521924972534, -0.6596871018409729, 0.39718756079673767, 0.19457611441612244, 0.5107927918434143, 0.3004985749721527, -0.20862677693367004, 0.8846155405044556, -0.3220804035663605, 0.8998211026191711, 0.24039839208126068, -0.7185853123664856, 0.5481429100036621, -0.23406067490577698, 0.3066099286079407, 0.489196240901947, 0.3968850076198578, -0.24185897409915924, -0.31002405285835266, -1.0501753091812134, -0.7672961354255676, 0.9500356912612915, 0.3340723216533661, 0.35314127802848816, -0.018063543364405632, 0.4078044593334198, -0.2857769727706909, 0.10558313876390457, -0.5363689661026001, -0.5945104360580444, -0.2467145323753357, -0.07813693583011627, -0.02135271020233631, -0.18097668886184692, -0.0868963897228241, -0.6321926116943359, 0.8210440278053284, 0.02676447294652462, 0.7554070353507996, 0.10866525024175644, 0.1914404183626175, 0.11139626055955887, -0.14801836013793945, 0.6477057337760925, 0.5791535973548889, -0.4475927948951721, -0.2477765679359436, 0.3184877336025238, -0.5437374114990234, -0.0937642902135849, 0.2724353075027466, 0.03287425637245178, -0.02826988324522972, 0.049610864371061325, 1.1574164628982544, 0.047315631061792374, -0.30852609872817993, 0.5432737469673157, -0.5504121780395508, -0.31335195899009705, -0.3573858141899109, 0.310483455657959, 0.3180253207683563, 0.39751237630844116, 0.2203325778245926, 0.4892570674419403, 0.07187971472740173, -0.31493350863456726, 0.02061641402542591, 0.25483858585357666, -0.40619346499443054, -0.28617623448371887, 0.7217421531677246, 0.2748939096927643, -0.49358701705932617, 0.9016795754432678, -0.06753705441951752, -0.4159737229347229, 0.8771634697914124, 0.4979794919490814, 0.8012567758560181, -0.11168316751718521, -0.04750192165374756, 0.499381422996521, 0.1760719269514084, -0.056934893131256104, 0.4053483307361603, 0.20126938819885254, -0.7767555117607117, -0.4145065248012543, -0.5056390166282654, -0.23088128864765167, 0.2039892077445984, -0.7702188491821289, 0.4437744915485382, -0.48620593547821045, -0.5417584776878357, 0.28738704323768616, 0.05580553784966469, -0.8440280556678772, -0.024009859189391136, 0.27426445484161377, 1.074458360671997, -0.7595062851905823, 0.6279818415641785, 0.602673351764679, -0.3443908393383026, -1.0808762311935425, -0.4624398350715637, 0.002824138617143035, -0.9667529463768005, 0.562669575214386, 0.05593273416161537, 0.08349891006946564, 0.07592017948627472, -0.7541812062263489, -0.8488094806671143, 1.1776866912841797, 0.5959299802780151, -0.4035789370536804, -0.046182263642549515, -0.07094718515872955, 0.6265057325363159, -0.26612043380737305, 0.7194162011146545, 0.4043804109096527, 0.15072481334209442, 0.11877039819955826, -1.0409133434295654, -0.08583469688892365, -0.728347659111023, -0.0564412958920002, -0.00037818390410393476, -1.010273814201355, 1.0268394947052002, -0.018227901309728622, 0.17966391146183014, -0.00030627232627011836, 0.8230116963386536, 0.2134445756673813, 0.062104057520627975, 0.40483272075653076, 0.6905729174613953, 0.5667102932929993, -0.16412709653377533, 1.019736886024475, -0.6041432619094849, 0.4069165587425232, 0.9690997004508972, 0.3667960464954376, 0.7891885042190552, 0.2538076639175415, -0.09780570864677429, 0.3771671950817108, 0.7539750933647156, -0.038504183292388916, 0.288611501455307, 0.12574484944343567, -0.007356763351708651, -0.18733100593090057, -0.10089815407991409, -0.46702608466148376, 0.6120439767837524, 0.2977139353752136, -0.34076109528541565, 0.012830156832933426, -0.06510879099369049, 0.14392565190792084, -0.40661656856536865, -0.21054299175739288, 0.8320272564888, 0.1352960467338562, -0.6227177977561951, 1.0297850370407104, -0.050896961241960526, 0.8407915234565735, -0.5316640138626099, -0.01730194315314293, -0.3549429774284363, 0.37787675857543945, -0.13190452754497528, -0.49503475427627563, 0.1389813870191574, -0.17928007245063782, -0.08427306264638901, -0.021763518452644348, 0.7689681649208069, -0.21848686039447784, -0.496651828289032, 0.2858469784259796, 0.46419626474380493, 0.3027687966823578, 0.0036449970211833715, -1.092745065689087, 0.057140715420246124, 0.14308975636959076, -0.4178546071052551, 0.2724440395832062, 0.18894502520561218, 0.1712978333234787, 0.6273934245109558, 0.6015512347221375, 0.0804697722196579, 0.09667497128248215, -0.07289215922355652, 1.0392135381698608, -0.4550742208957672, -0.42054665088653564, -1.1161279678344727, 0.4222034215927124, -0.22419779002666473, -0.7056101560592651, 0.7735883593559265, 0.48085513710975647, 0.8639209270477295, 0.046610038727521896, 0.40691128373146057, -0.1628093719482422, 0.13585640490055084, -0.29787662625312805, 0.6707306504249573, -0.4345605671405792, 0.21533732116222382, -0.06558831036090851, -0.8874057531356812, -0.07769791036844254, 0.5132347941398621, -0.20589780807495117, 0.05038861185312271, 0.4080639183521271, 0.9736091494560242, -0.17488667368888855, 0.06427431106567383, 0.18098478019237518, 0.2879987955093384, 0.261343777179718, 0.6804125905036926, 0.6728432178497314, -0.6655009984970093, 0.7269655466079712, -0.5684800148010254, -0.3659508526325226, -0.16338323056697845, -0.6615009903907776, -1.0252673625946045, -0.36326467990875244, -0.210972860455513, -0.49040356278419495, 0.0738842785358429, 1.0308356285095215, 0.8590530753135681, -0.5813624858856201, -0.346943199634552, -0.011240565218031406, -0.15359316766262054, -0.31666913628578186, -0.22135549783706665, 0.287158727645874, -0.2823876738548279, -0.8546721339225769, 0.3332935869693756, 0.029232632368803024, 0.14128175377845764, -0.266934871673584, -0.044835884124040604, -0.25340792536735535, -0.05690005421638489, 0.3345215618610382, 0.2830049395561218, -0.5258945822715759, -0.16082437336444855, 0.362192302942276, -0.1590079665184021, 0.2072535902261734, 0.2343681901693344, -0.7335541248321533, 0.3121572732925415, 0.724926769733429, 0.517822265625, 0.6659319400787354, -0.04721858352422714, 0.4624752104282379, -0.8246645927429199, 0.36476925015449524, 0.2554522156715393, 0.35152795910835266, 0.22111977636814117, -0.44464775919914246, 0.384733647108078, 0.20473386347293854, -0.7008489370346069, -0.7233607172966003, -0.219420924782753, -1.0558375120162964, 0.009042466059327126, 1.133827805519104, -0.13461054861545563, -0.5460862517356873, 0.3235756456851959, -0.3150161802768707, 0.409824401140213, -0.6258286833763123, 0.8397297859191895, 0.5325353741645813, -0.2670709192752838, 0.06090478599071503, -0.5584863424301147, 0.40830448269844055, 0.5131739974021912, -0.6724120378494263, -0.2607540786266327, 0.2633056640625, 0.2832735776901245, 0.33607208728790283, 0.6609547138214111, -0.05375685915350914, 0.30815476179122925, 0.002721867524087429, 0.24761444330215454, -0.4349296987056732, -0.2748560905456543, -0.3354710638523102, -0.16011746227741241, -0.14185503125190735, -0.593244194984436 ]
openlm-research/open_llama_3b
openlm-research
"2023-06-16T00:44:10Z"
21,443
127
transformers
[ "transformers", "pytorch", "llama", "text-generation", "dataset:togethercomputer/RedPajama-Data-1T", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-06-07T09:06:48Z"
--- license: apache-2.0 datasets: - togethercomputer/RedPajama-Data-1T --- # OpenLLaMA: An Open Reproduction of LLaMA In this repo, we present a permissively licensed open source reproduction of Meta AI's [LLaMA](https://ai.facebook.com/blog/large-language-model-llama-meta-ai/) large language model. We are releasing a 7B and 3B model trained on 1T tokens, as well as the preview of a 13B model trained on 600B tokens. We provide PyTorch and JAX weights of pre-trained OpenLLaMA models, as well as evaluation results and comparison against the original LLaMA models. Please see the [project homepage of OpenLLaMA](https://github.com/openlm-research/open_llama) for more details. ## Weights Release, License and Usage We release the weights in two formats: an EasyLM format to be use with our [EasyLM framework](https://github.com/young-geng/EasyLM), and a PyTorch format to be used with the [Hugging Face transformers](https://huggingface.co/docs/transformers/index) library. Both our training framework EasyLM and the checkpoint weights are licensed permissively under the Apache 2.0 license. ### Loading the Weights with Hugging Face Transformers Preview checkpoints can be directly loaded from Hugging Face Hub. **Please note that it is advised to avoid using the Hugging Face fast tokenizer for now, as we’ve observed that the auto-converted fast tokenizer sometimes gives incorrect tokenizations.** This can be achieved by directly using the `LlamaTokenizer` class, or passing in the `use_fast=False` option for the `AutoTokenizer` class. See the following example for usage. ```python import torch from transformers import LlamaTokenizer, LlamaForCausalLM model_path = 'openlm-research/open_llama_3b' # model_path = 'openlm-research/open_llama_7b' tokenizer = LlamaTokenizer.from_pretrained(model_path) model = LlamaForCausalLM.from_pretrained( model_path, torch_dtype=torch.float16, device_map='auto', ) prompt = 'Q: What is the largest animal?\nA:' input_ids = tokenizer(prompt, return_tensors="pt").input_ids generation_output = model.generate( input_ids=input_ids, max_new_tokens=32 ) print(tokenizer.decode(generation_output[0])) ``` For more advanced usage, please follow the [transformers LLaMA documentation](https://huggingface.co/docs/transformers/main/model_doc/llama). ### Evaluating with LM-Eval-Harness The model can be evaluated with [lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness). However, due to the aforementioned tokenizer issue, we need to avoid using the fast tokenizer to obtain the correct results. This can be achieved by passing in `use_fast=False` to [this part of lm-eval-harness](https://github.com/EleutherAI/lm-evaluation-harness/blob/4b701e228768052cfae9043dca13e82052ca5eea/lm_eval/models/huggingface.py#LL313C9-L316C10), as shown in the example below: ```python tokenizer = self.AUTO_TOKENIZER_CLASS.from_pretrained( pretrained if tokenizer is None else tokenizer, revision=revision + ("/" + subfolder if subfolder is not None else ""), use_fast=False ) ``` ### Loading the Weights with EasyLM For using the weights in our EasyLM framework, please refer to the [LLaMA documentation of EasyLM](https://github.com/young-geng/EasyLM/blob/main/docs/llama.md). Note that unlike the original LLaMA model, our OpenLLaMA tokenizer and weights are trained completely from scratch so it is no longer needed to obtain the original LLaMA tokenizer and weights. Note that we use BOS (beginning of sentence) token (id=1) during training, so it is best to prepend this token for best performance during few-shot evaluation. ## Dataset and Training We train our models on the [RedPajama](https://www.together.xyz/blog/redpajama) dataset released by [Together](https://www.together.xyz/), which is a reproduction of the LLaMA training dataset containing over 1.2 trillion tokens. We follow the exactly same preprocessing steps and training hyperparameters as the original LLaMA paper, including model architecture, context length, training steps, learning rate schedule, and optimizer. The only difference between our setting and the original one is the dataset used: OpenLLaMA employs the RedPajama dataset rather than the one utilized by the original LLaMA. We train the models on cloud TPU-v4s using [EasyLM](https://github.com/young-geng/EasyLM), a JAX based training pipeline we developed for training and fine-tuning large language models. We employ a combination of normal data parallelism and [fully sharded data parallelism (also know as ZeRO stage 3)](https://engineering.fb.com/2021/07/15/open-source/fsdp/) to balance the training throughput and memory usage. Overall we reach a throughput of over 2200 tokens / second / TPU-v4 chip for our 7B model. ## Evaluation We evaluated OpenLLaMA on a wide range of tasks using [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness). The LLaMA results are generated by running the original LLaMA model on the same evaluation metrics. We note that our results for the LLaMA model differ slightly from the original LLaMA paper, which we believe is a result of different evaluation protocols. Similar differences have been reported in [this issue of lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness/issues/443). Additionally, we present the results of GPT-J, a 6B parameter model trained on the [Pile](https://pile.eleuther.ai/) dataset by [EleutherAI](https://www.eleuther.ai/). The original LLaMA model was trained for 1 trillion tokens and GPT-J was trained for 500 billion tokens. We present the results in the table below. OpenLLaMA exhibits comparable performance to the original LLaMA and GPT-J across a majority of tasks, and outperforms them in some tasks. | **Task/Metric** | GPT-J 6B | LLaMA 7B | OpenLLaMA 7B | OpenLLaMA 3B | OpenLLaMA 13B 600BT | | ---------------------- | -------- | -------- | ------------ | ------------ | ------------------- | | anli_r1/acc | 0.32 | 0.35 | 0.33 | 0.33 | 0.33 | | anli_r2/acc | 0.34 | 0.34 | 0.36 | 0.32 | 0.35 | | anli_r3/acc | 0.35 | 0.37 | 0.38 | 0.35 | 0.38 | | arc_challenge/acc | 0.34 | 0.39 | 0.37 | 0.34 | 0.39 | | arc_challenge/acc_norm | 0.37 | 0.41 | 0.38 | 0.37 | 0.42 | | arc_easy/acc | 0.67 | 0.68 | 0.72 | 0.69 | 0.74 | | arc_easy/acc_norm | 0.62 | 0.52 | 0.68 | 0.65 | 0.70 | | ddboolq/acc | 0.50 | 0.56 | 0.53 | 0.49 | 0.71 | | hellaswag/acc | 0.36 | 0.36 | 0.63 | 0.43 | 0.54 | | hellaswag/acc_norm | 0.66 | 0.73 | 0.72 | 0.67 | 0.73 | | openbookqa/acc | 0.29 | 0.29 | 0.30 | 0.27 | 0.30 | | openbookqa/acc_norm | 0.38 | 0.41 | 0.40 | 0.40 | 0.41 | | piqa/acc | 0.75 | 0.78 | 0.76 | 0.75 | 0.77 | | piqa/acc_norm | 0.76 | 0.78 | 0.77 | 0.76 | 0.78 | | record/em | 0.88 | 0.91 | 0.89 | 0.88 | 0.90 | | record/f1 | 0.89 | 0.91 | 0.90 | 0.89 | 0.90 | | rte/acc | 0.54 | 0.56 | 0.60 | 0.58 | 0.65 | | truthfulqa_mc/mc1 | 0.20 | 0.21 | 0.23 | 0.22 | 0.22 | | truthfulqa_mc/mc2 | 0.36 | 0.34 | 0.35 | 0.35 | 0.35 | | wic/acc | 0.50 | 0.50 | 0.51 | 0.48 | 0.49 | | winogrande/acc | 0.64 | 0.68 | 0.67 | 0.62 | 0.67 | | Average | 0.51 | 0.53 | 0.55 | 0.52 | 0.56 | We removed the task CB and WSC from our benchmark, as our model performs suspiciously well on these two tasks. We hypothesize that there could be a benchmark data contamination in the training set. ## Contact We would love to get feedback from the community. If you have any questions, please open an issue or contact us. OpenLLaMA is developed by: [Xinyang Geng](https://young-geng.xyz/)* and [Hao Liu](https://www.haoliu.site/)* from Berkeley AI Research. *Equal Contribution ## Acknowledgment We thank the [Google TPU Research Cloud](https://sites.research.google/trc/about/) program for providing part of the computation resources. We’d like to specially thank Jonathan Caton from TPU Research Cloud for helping us organizing compute resources, Rafi Witten from the Google Cloud team and James Bradbury from the Google JAX team for helping us optimizing our training throughput. We’d also want to thank Charlie Snell, Gautier Izacard, Eric Wallace, Lianmin Zheng and our user community for the discussions and feedback. The OpenLLaMA 13B model is trained in collaboration with [Stability AI](https://stability.ai/), and we thank Stability AI for providing the computation resources. We’d like to especially thank David Ha and Shivanshu Purohit for the coordinating the logistics and providing engineering support. ## Reference If you found OpenLLaMA useful in your research or applications, please cite using the following BibTeX: ``` @software{openlm2023openllama, author = {Geng, Xinyang and Liu, Hao}, title = {OpenLLaMA: An Open Reproduction of LLaMA}, month = May, year = 2023, url = {https://github.com/openlm-research/open_llama} } ``` ``` @software{together2023redpajama, author = {Together Computer}, title = {RedPajama-Data: An Open Source Recipe to Reproduce LLaMA training dataset}, month = April, year = 2023, url = {https://github.com/togethercomputer/RedPajama-Data} } ``` ``` @article{touvron2023llama, title={Llama: Open and efficient foundation language models}, author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and others}, journal={arXiv preprint arXiv:2302.13971}, year={2023} } ```
[ -0.3199745714664459, -0.7384928464889526, 0.2555663585662842, 0.4143928587436676, -0.2564537227153778, -0.051138781011104584, -0.3345782458782196, -0.6060095429420471, 0.3860694468021393, 0.2651314437389374, -0.4109787344932556, -0.6944566965103149, -0.6813220977783203, 0.08588652312755585, -0.21676762402057648, 1.1895802021026611, -0.3266069293022156, -0.1469804346561432, 0.013175814412534237, -0.32850340008735657, -0.150426983833313, -0.36588844656944275, -0.7339436411857605, -0.4175187051296234, 0.43155357241630554, 0.19700010120868683, 0.622222363948822, 0.4875265955924988, 0.529392421245575, 0.34825628995895386, -0.3186916708946228, 0.22096751630306244, -0.5457327961921692, -0.2659640908241272, 0.2913236916065216, -0.5520297288894653, -0.7040372490882874, 0.05987338721752167, 0.5386785864830017, 0.3505224585533142, -0.34045425057411194, 0.5736860036849976, -0.031793832778930664, 0.5305510759353638, -0.5501885414123535, 0.3379776179790497, -0.5714724659919739, 0.11657049506902695, -0.31870609521865845, -0.04340268671512604, -0.2785566449165344, -0.3932681381702423, -0.10192456096410751, -0.7971757054328918, 0.02461382932960987, 0.028329772874712944, 1.214444875717163, 0.3333607614040375, -0.24504010379314423, -0.24187858402729034, -0.3997371792793274, 0.8356680870056152, -0.8376139402389526, 0.13830529153347015, 0.45320233702659607, 0.17209336161613464, -0.13510555028915405, -0.8140859007835388, -0.7339999079704285, -0.12799514830112457, -0.10299783945083618, 0.13505752384662628, -0.2988545596599579, -0.12526242434978485, 0.29454371333122253, 0.6341717839241028, -0.4937857389450073, 0.2553810775279999, -0.5702914595603943, -0.14508870244026184, 0.7963908910751343, 0.2848237156867981, 0.14074277877807617, -0.1427755355834961, -0.5139355659484863, -0.24627725780010223, -0.7251597046852112, 0.3714365065097809, 0.22616399824619293, 0.30912402272224426, -0.5002816319465637, 0.6643022298812866, -0.29577329754829407, 0.5254144668579102, 0.1145460233092308, -0.5730769634246826, 0.7264665961265564, -0.40628018975257874, -0.4643111228942871, 0.03913906216621399, 0.9228549599647522, 0.40291041135787964, 0.03208927437663078, 0.1294131577014923, -0.20056775212287903, -0.0881449356675148, -0.10332423448562622, -0.825079619884491, -0.03896261751651764, 0.25688961148262024, -0.5059703588485718, -0.3647412359714508, 0.044872306287288666, -0.566270112991333, -0.14525392651557922, -0.15098261833190918, 0.47003883123397827, -0.2211272120475769, -0.24168270826339722, 0.3077656626701355, 0.14939221739768982, 0.43746691942214966, 0.4725242257118225, -0.7405946254730225, 0.21024838089942932, 0.4997912645339966, 0.9716021418571472, -0.05424204841256142, -0.3947190046310425, -0.2866157591342926, 0.013496993109583855, -0.258008748292923, 0.5805088877677917, -0.10880834609270096, -0.3197014629840851, -0.13954786956310272, 0.0863645076751709, -0.24221816658973694, -0.48964646458625793, 0.5082916021347046, -0.4360089600086212, 0.24712520837783813, -0.1786758303642273, -0.18390269577503204, -0.31685584783554077, 0.28690439462661743, -0.6177511215209961, 1.3814479112625122, 0.09988090395927429, -0.7274880409240723, 0.31762295961380005, -0.7997100949287415, -0.10917852818965912, -0.27592071890830994, 0.16585570573806763, -0.6837337613105774, -0.05417461320757866, 0.441859632730484, 0.4230903089046478, -0.4612232744693756, 0.1953752189874649, -0.2462444007396698, -0.5120928883552551, 0.15046311914920807, -0.23421204090118408, 1.120822787284851, 0.2850281596183777, -0.4820701479911804, 0.27111637592315674, -0.9478179812431335, -0.06876827031373978, 0.6301921010017395, -0.6360399723052979, -0.0897340178489685, -0.3082606792449951, -0.020252397283911705, 0.062338944524526596, 0.47226861119270325, -0.590740442276001, 0.4344930648803711, -0.33819112181663513, 0.4989423453807831, 0.9310876727104187, -0.2078249603509903, 0.17681334912776947, -0.46242016553878784, 0.4369491934776306, 0.16730327904224396, 0.24754874408245087, -0.2074240893125534, -0.6642389893531799, -1.0288398265838623, -0.567378044128418, 0.14786578714847565, 0.43315592408180237, -0.3076332211494446, 0.47616514563560486, -0.1779375821352005, -0.7278851866722107, -0.7853581309318542, 0.2296069860458374, 0.4300898015499115, 0.44229382276535034, 0.5160325765609741, -0.3163035809993744, -0.5798795223236084, -0.873447835445404, 0.01603834144771099, -0.31214669346809387, 0.1621478945016861, 0.2986850440502167, 0.759253740310669, -0.3558211028575897, 0.8639763593673706, -0.5676498413085938, -0.42055773735046387, -0.20865273475646973, -0.07373325526714325, 0.6577866077423096, 0.4364973306655884, 0.7075523138046265, -0.4051995575428009, -0.5246846079826355, 0.03906139358878136, -0.8567221164703369, -0.07731946557760239, -0.020665312185883522, -0.16344919800758362, 0.315906286239624, 0.15423084795475006, -0.9194731116294861, 0.6488419771194458, 0.5917354226112366, -0.3886387348175049, 0.5521433353424072, -0.11447583138942719, 0.03142622858285904, -1.0044611692428589, 0.25950759649276733, -0.070693239569664, -0.11608234792947769, -0.4737047255039215, 0.278562992811203, 0.006223391741514206, 0.05337123945355415, -0.6846634745597839, 0.7180584073066711, -0.40384864807128906, -0.10207696259021759, 0.10173140466213226, 0.03566538169980049, -0.020133808255195618, 0.7180633544921875, -0.1590261459350586, 0.9587808847427368, 0.4587553143501282, -0.420464426279068, 0.32017776370048523, 0.33650195598602295, -0.5172204375267029, 0.3090513050556183, -0.8152129650115967, 0.2685447335243225, -0.0012113795382902026, 0.48408475518226624, -1.0195447206497192, -0.1891605705022812, 0.45413854718208313, -0.3124247193336487, 0.19634170830249786, 0.13851594924926758, -0.5490359663963318, -0.6671603322029114, -0.6596357226371765, 0.39067342877388, 0.5384932160377502, -0.7277155518531799, 0.2544715106487274, 0.1432725340127945, 0.1324906200170517, -0.7227945327758789, -0.715429425239563, -0.1002097800374031, -0.34296512603759766, -0.5848670601844788, 0.3601866662502289, -0.08306212723255157, -0.1815664917230606, -0.11779972165822983, -0.09092414379119873, 0.04106210544705391, 0.19724483788013458, 0.3466937243938446, 0.29803991317749023, -0.34132158756256104, -0.12663446366786957, -0.09473131597042084, -0.060425981879234314, -0.12373168021440506, 0.04481195658445358, 0.7461788654327393, -0.3972775340080261, -0.45781779289245605, -0.7185647487640381, -0.12597453594207764, 0.5101427435874939, -0.2507169842720032, 0.9519544243812561, 0.7246060967445374, -0.30092674493789673, 0.22195371985435486, -0.5611172914505005, 0.15882880985736847, -0.4878044128417969, 0.2798771560192108, -0.4283028841018677, -0.8917450904846191, 0.641457200050354, 0.2029740810394287, 0.24889694154262543, 0.7668307423591614, 0.8039098978042603, 0.0701378732919693, 0.8171724677085876, 0.4513395130634308, -0.27880287170410156, 0.34918656945228577, -0.60020911693573, -0.012142513878643513, -1.0354748964309692, -0.523122251033783, -0.5154396891593933, -0.41451770067214966, -0.3860718607902527, -0.4840642511844635, 0.3401387333869934, 0.3474181294441223, -0.6690880060195923, 0.4005976915359497, -0.525523841381073, 0.2812211811542511, 0.6318647265434265, 0.19916582107543945, 0.42320674657821655, 0.0667605921626091, -0.16001717746257782, 0.08332393318414688, -0.5096310973167419, -0.5417299866676331, 1.4678606986999512, 0.5474187135696411, 0.7614158987998962, 0.11482604593038559, 0.8854792714118958, 0.0747368112206459, 0.4941396117210388, -0.5785273909568787, 0.5178416967391968, 0.28417593240737915, -0.6034619808197021, -0.14832060039043427, -0.21698132157325745, -1.071119785308838, 0.5192846059799194, -0.09972155094146729, -0.9751034379005432, 0.031247053295373917, -0.0823800191283226, -0.36548683047294617, 0.4387877583503723, -0.5082830786705017, 0.7100673913955688, -0.28194746375083923, -0.23597398400306702, -0.12842942774295807, -0.4839695990085602, 0.636355459690094, -0.184706449508667, 0.15860900282859802, -0.1954476684331894, -0.2408972829580307, 0.9220210313796997, -0.7077223658561707, 0.8687707781791687, -0.179557204246521, -0.19934865832328796, 0.5286462306976318, -0.22478118538856506, 0.5363097190856934, -0.034059539437294006, -0.25059664249420166, 0.5061673521995544, -0.1468675285577774, -0.45339691638946533, -0.25029751658439636, 0.754853367805481, -1.2315433025360107, -0.7676350474357605, -0.5498624444007874, -0.41015613079071045, 0.18988773226737976, 0.15849465131759644, 0.18503320217132568, 0.019142765551805496, 0.027696039527654648, 0.23935475945472717, 0.375812828540802, -0.41985437273979187, 0.6118184328079224, 0.460306853055954, -0.4139816164970398, -0.5768471956253052, 0.757660984992981, 0.02297903411090374, 0.15290160477161407, 0.1797644942998886, 0.2268073707818985, -0.2637721300125122, -0.4828920364379883, -0.5698836445808411, 0.40723514556884766, -0.623025119304657, -0.37214842438697815, -0.6229206919670105, -0.2202688455581665, -0.38465332984924316, -0.08951304852962494, -0.35645580291748047, -0.5120226144790649, -0.45995819568634033, -0.15487462282180786, 0.6674928665161133, 0.8670638203620911, 0.03882415592670441, 0.49960440397262573, -0.5268462896347046, 0.20768477022647858, 0.2063591033220291, 0.1896495223045349, 0.18532367050647736, -0.7034439444541931, -0.296737939119339, 0.006376694887876511, -0.6374862194061279, -0.6796632409095764, 0.3836226463317871, 0.1507798135280609, 0.49597200751304626, 0.43042564392089844, -0.12265557050704956, 1.0462549924850464, -0.28680434823036194, 1.035752534866333, 0.3827657699584961, -0.8946508169174194, 0.6067509651184082, -0.2178478091955185, 0.19442474842071533, 0.49662986397743225, 0.4093654155731201, -0.2866465747356415, -0.32290956377983093, -0.6630029082298279, -0.9676743745803833, 0.9068374633789062, 0.24039335548877716, -0.02377595193684101, 0.09915342926979065, 0.28823915123939514, 0.044238388538360596, 0.2153962254524231, -1.171339750289917, -0.3980913758277893, -0.21867910027503967, -0.20915523171424866, -0.16778793931007385, -0.08558082580566406, -0.20780715346336365, -0.5146861672401428, 0.5961885452270508, 0.013469932600855827, 0.44735682010650635, 0.24351441860198975, -0.27380988001823425, -0.19599294662475586, -0.004992440342903137, 0.8053931593894958, 0.6347305178642273, -0.23300869762897491, -0.18976500630378723, 0.4266336262226105, -0.5517879724502563, 0.19578105211257935, -0.003977924585342407, -0.2521986663341522, -0.13395003974437714, 0.5331010222434998, 1.0026260614395142, 0.23903916776180267, -0.5722851157188416, 0.5615171194076538, 0.06451526284217834, -0.23441725969314575, -0.3403354585170746, 0.019143233075737953, 0.16961652040481567, 0.33751872181892395, 0.46532896161079407, -0.10365253686904907, -0.19421471655368805, -0.531467616558075, -0.07993637025356293, 0.45901957154273987, 0.015106731094419956, -0.33473923802375793, 0.9105578064918518, 0.07952240854501724, -0.2801212966442108, 0.46933984756469727, 0.06188580393791199, -0.48672589659690857, 0.8386375308036804, 0.6823848485946655, 0.7027357220649719, -0.21865129470825195, -0.002426262479275465, 0.5923169851303101, 0.3923279047012329, -0.062207601964473724, 0.26523134112358093, -0.0976002961397171, -0.39468541741371155, -0.2602086067199707, -0.971388041973114, -0.32862740755081177, 0.21773990988731384, -0.5931063890457153, 0.3591982424259186, -0.5724141597747803, -0.2015594094991684, -0.38961610198020935, 0.2562100887298584, -0.9218139052391052, 0.13795818388462067, 0.061358120292425156, 1.028624176979065, -0.7047576904296875, 0.8139243125915527, 0.6513596177101135, -0.680271327495575, -1.0168521404266357, -0.2519388794898987, -0.05683670565485954, -1.2768417596817017, 0.797908365726471, 0.3553810715675354, 0.16258740425109863, -0.11049412935972214, -0.4427514374256134, -1.200753927230835, 1.5744167566299438, 0.21244566142559052, -0.5265661478042603, 0.036740709096193314, 0.19181910157203674, 0.5197134613990784, -0.23444069921970367, 0.5981062650680542, 0.4881492853164673, 0.5804976224899292, -0.056703660637140274, -1.2354600429534912, 0.2772059738636017, -0.3023950457572937, -0.019099287688732147, 0.07602696865797043, -1.1046807765960693, 1.2124656438827515, -0.31199219822883606, -0.011961027048528194, 0.30172982811927795, 0.6927706599235535, 0.5422627329826355, 0.4511798918247223, 0.40435102581977844, 1.0270179510116577, 0.8858050107955933, -0.17013311386108398, 1.136222243309021, -0.17248980700969696, 0.6351228356361389, 0.7967122197151184, -0.17493118345737457, 0.9486685395240784, 0.48291900753974915, -0.6403465867042542, 0.5884381532669067, 0.870938241481781, 0.04318968951702118, 0.41223612427711487, 0.21306566894054413, -0.14709189534187317, 0.11307644098997116, 0.06216568872332573, -0.7703022360801697, 0.4902218282222748, 0.17364616692066193, -0.36776793003082275, -0.19663691520690918, -0.12106635421514511, 0.2211303412914276, -0.2415449619293213, -0.38216927647590637, 0.5761812329292297, 0.04965373873710632, -0.46846598386764526, 0.9875320792198181, 0.2166360318660736, 1.0127612352371216, -0.6002908945083618, 0.2153027057647705, -0.31172195076942444, 0.2002304047346115, -0.4275386929512024, -0.6035879850387573, 0.11502447724342346, 0.18291640281677246, 0.14024093747138977, -0.13032501935958862, 0.4899510443210602, -0.1534426212310791, -0.4689983129501343, 0.29673343896865845, 0.30201455950737, 0.27161741256713867, 0.21851983666419983, -0.7774882912635803, 0.37081223726272583, -0.049588706344366074, -0.836899995803833, 0.4751148819923401, 0.18644750118255615, -0.04463150352239609, 0.6743253469467163, 0.8978074193000793, 0.010786651633679867, 0.2711348831653595, -0.12428507953882217, 1.083490252494812, -0.7288424968719482, -0.3273313045501709, -0.8857520818710327, 0.5389266014099121, 0.01358227338641882, -0.6373736262321472, 0.8128469586372375, 0.6818828582763672, 0.8772261142730713, -0.033153750002384186, 0.42806801199913025, -0.10187597572803497, 0.2336406260728836, -0.5944211483001709, 0.7603129148483276, -0.7914676666259766, 0.14370210468769073, -0.24576956033706665, -0.9991912841796875, -0.33196982741355896, 0.8763307929039001, -0.22392724454402924, 0.04199937358498573, 0.5522372722625732, 0.7726358771324158, 0.09625830501317978, -0.11316891014575958, -0.02192046120762825, 0.3246247172355652, 0.33866724371910095, 0.8890703916549683, 0.7805663347244263, -0.7437422275543213, 0.5226323008537292, -0.3662963807582855, -0.1770227700471878, -0.40649381279945374, -0.807917058467865, -0.842911958694458, -0.3783465325832367, -0.3001258075237274, -0.30136215686798096, -0.1164138913154602, 1.1514135599136353, 0.5358889698982239, -0.5928639769554138, -0.4613450765609741, 0.11695223301649094, 0.11189864575862885, -0.11602909862995148, -0.1939319372177124, 0.5419300198554993, -0.12219212204217911, -0.8734567165374756, 0.35940998792648315, 0.045800305902957916, 0.10990529507398605, -0.3194514513015747, -0.3274112343788147, -0.251471608877182, -0.012570465914905071, 0.6682745814323425, 0.3306688666343689, -0.9764140248298645, -0.27505770325660706, -0.21945658326148987, -0.30529436469078064, 0.28393444418907166, 0.30292031168937683, -0.809399425983429, 0.14187867939472198, 0.2339339554309845, 0.515065610408783, 0.8430123329162598, -0.061586644500494, 0.04944998025894165, -0.42856737971305847, 0.483824223279953, -0.1716340184211731, 0.45053407549858093, 0.15988345444202423, -0.31527140736579895, 0.8145360350608826, 0.3106994032859802, -0.46034175157546997, -1.0744690895080566, -0.23045100271701813, -1.199674129486084, 0.03216804936528206, 1.1611964702606201, -0.30011558532714844, -0.5104652643203735, 0.3483583331108093, -0.3960372507572174, 0.20688816905021667, -0.46258601546287537, 0.6867790222167969, 0.6482762098312378, -0.11761803925037384, -0.03917209804058075, -0.5806088447570801, 0.1814860701560974, 0.3345392644405365, -0.8019554018974304, -0.32830581068992615, 0.1701972335577011, 0.3363490700721741, 0.23070888221263885, 0.934469997882843, -0.11868099123239517, 0.19465972483158112, -0.11919751018285751, 0.12244676798582077, -0.335635244846344, -0.10794997960329056, -0.3647017776966095, 0.1750962734222412, 0.0999927893280983, -0.34515753388404846 ]
sazyou-roukaku/BracingEvoMix
sazyou-roukaku
"2023-10-01T08:58:54Z"
21,372
135
diffusers
[ "diffusers", "stable-diffusion", "text-to-image", "ja", "license:creativeml-openrail-m", "has_space", "region:us" ]
text-to-image
"2023-05-31T10:29:16Z"
--- license: creativeml-openrail-m language: - ja library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - text-to-image --- License:[CreativeML Open RAIL-M](https://huggingface.co/sazyou-roukaku/BracingEvoMix/blob/main/license_v1.txt)<br> Additional Copyright: sazyou_roukaku (TwitterID [@sazyou_roukaku](https://twitter.com/sazyou_roukaku)) as of May 31, 2023<br> このモデルは『CreativeML Open RAIL-M』でLicenseそのものに変更はありません。<br> ~しかし追加著作者として鎖城郎郭の名前が追加されています。~<br> しかし追加著作者として佐城郎画の名前が追加されています。(6/10 Twitterネーム変更に伴い、表記変更。License内はsazyou_roukakuの為変更なし)<br> なお『CreativeML Open RAIL-M』に記載されている通り、<br> 本モデルを使用しての生成物に関してはLicenseの使用制限Aの事例を除き、当方は一切関与致しません。<br> 犯罪目的利用や医療用画像など特定専門的な用途での利用は使用制限Aで禁止されています。<br> 必ず確認しご利用ください。<br> また当方は一切責任を持ちません。免責されていることをご了承の上、ご使用ください。<br> <br> 2023/10/01<br> BracingEvoMix_v2一般公開。<br> <br> **・BracingEvoMix_v2**<br> CLIP設定/clip skip:2<br> 推奨ネガティブプロンプトベース: ``` (worst quality:2),(low quality:1,4),(undressing:1.5),(manicure:1.5),(long neck:2),lip,make up,(depth of field, bokeh, blurry, blurry background:1.4) ``` <br> (depth of field, bokeh, blurry, blurry background:1.4)は背景を鮮明に出したいとき用です。<br> <br> なおBracingEvoMixシリーズの更新は一旦このv2にてストップします。<br> 追加学習を行っている方々たちがSDXLへ移行を進めており、選定基準に即したモデルで性能をあげるのに限界があること。<br> 下半身の一部ベースとなっているsxdがかなり初期のモデルの為、労力に対して、向上性能が誤差になる可能性が高いこと。<br> 利用可能なモデルの制限が厳しすぎて、服飾系の種類をいずれにせよ増やせないこと。<br> 以上が理由です。<br> ただSD1.xの需要次第では、私自身でTrainingを行い、別シリーズを公開する可能性はあります。<br> とはいえ、まずはSDXLでの動きや企業から使いやすいモデルが公開される可能性も見つつ、対応したいと考えています。<br> <br> <br> <br> <h4>制限</h4> <div class="px-2"> <table class="table-fixed border mt-0 text-xs"> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> 著作者表記を入れずにモデルを使用する<br> Use the model without crediting the creator </td> </tr> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> このモデルで生成した画像を商用利用する<br> Sell images they generate </td> </tr> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> 商用画像生成サービスに、このモデルを使用する<br> Run on services that generate images for money </td> </tr> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> このモデルを使用したマージモデルを共有・配布する<br> Share merges using this model </td> </tr> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> このモデル、または派生モデルを販売する<br> Sell this model or merges using this model </td> </tr> <tr> <td class="align-middle px-4 w-8"> <span class="text-green-500"> <h5>OK</h5> </span> </td> <td> このモデルをマージしたモデルに異なる権限を設定する<br> Have different permissions when sharing merges </td> </tr> </table> </div> なお、上記のモデルそのものの販売や商用画像生成サービスへの利用は、<br> 『CreativeML Open RAIL-M』のLicense上、使用制限Aに追記記載しない限り、<br> 制限することが本来できない為、マージ者への負担も考慮し、civitai制限表記上OKとしているだけであり、<br> 積極的な推奨は行っておらず、またそれにより何らかの問題が生じても当方は一切責任を持ちません。<br> その点、ご留意いただくようお願いいたします。<br> <br> <div class="px-2"> <table class="table-fixed border mt-0 text-xs"> <tr> <td colspan="2"> <strong><h4>BracingEvoMix_v2</h4></strong> </td> </tr> <tr> <td> 自然言語プロンプト反応(SD1.5)<br> </td> <td class="align-middle px-4 w-15"> <h5>90点</h5> </td> </tr> <tr> <td> アジア顔出力の多様性<br> </td> <td class="align-middle px-4 w-15"> <h5>95点</h5> </td> </tr> <tr> <td> フォトリアリティ<br> </td> <td class="align-middle px-4 w-15"> <h5>95点</h5> </td>    </tr> <tr> <td> 非現実的美形度<br> </td> <td class="align-middle px-4 w-15"> <h5>40点</h5> </td>    </tr> <tr> <td> 彩度・明度安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>65点</h5> </td>    </tr> <tr> <td> 手指の描画精度(最新上位モデルを90点とした場合)<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td>    </tr> <tr> <td> 複雑ポーズ安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>75点</h5> </td>    </tr> <tr> <td> 乳部の意図せぬ露出制御性<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 感情表現のプロンプト反応<br> </td> <td class="align-middle px-4 w-15"> <h5>70点</h5> </td>    </tr> <tr> <td> 表現可能年齢幅<br> </td> <td class="align-middle px-4 w-15"> <h5>85点</h5> </td>    </tr> <tr> <td colspan="2"> <strong>基礎モデル『BracingEvoMix_v1』の正当後継版。彩度や明度のムラが改善され、指精度も上昇しています。 また背景強化、横長解像度への強化が入っています。<br> 出力ムラは減ったので汎用性は高くなったと思います。</strong><br> </td> </tr> <tr> <td colspan="2"> <strong><h4>BracingEvoMix_v1</h4></strong> </td> </tr> <tr> <td> 自然言語プロンプト反応(SD1.5)<br> </td> <td class="align-middle px-4 w-15"> <h5>90点</h5> </td> </tr> <tr> <td> アジア顔出力の多様性<br> </td> <td class="align-middle px-4 w-15"> <h5>95点</h5> </td> </tr> <tr> <td> フォトリアリティ<br> </td> <td class="align-middle px-4 w-15"> <h5>95点</h5> </td>    </tr> <tr> <td> 非現実的美形度<br> </td> <td class="align-middle px-4 w-15"> <h5>40点</h5> </td>    </tr> <tr> <td> 彩度・明度安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>40点</h5> </td>    </tr> <tr> <td> 手指の描画精度(最新上位モデルを90点とした場合)<br> </td> <td class="align-middle px-4 w-15"> <h5>70点</h5> </td>    </tr> <tr> <td> 複雑ポーズ安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 乳部の意図せぬ露出制御性<br> </td> <td class="align-middle px-4 w-15"> <h5>50点</h5> </td>    </tr> <tr> <td> 感情表現のプロンプト反応<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td>    </tr> <tr> <td> 表現可能年齢幅<br> </td> <td class="align-middle px-4 w-15"> <h5>85点</h5> </td>    </tr> <tr> <td colspan="2"> <strong>基礎モデル。OpenBra由来のアジア顔を表現でき、リアリティも非常に高い反面、彩度や明度にムラがある。<br> 感情表現にも強いので制御できれば表現幅は広い一方、弱点も多いじゃじゃ馬。<br> 素材となった各モデルの良さと悪さを両方併せ持つので使いこなせれば、強いという玄人向け。</strong><br> </td> </tr> <tr> <td colspan="2"> <strong><h4>BracingEvoMix_Another</h4></strong> </td> </tr> <tr> <td> 自然言語プロンプト反応(SD1.5)<br> </td> <td class="align-middle px-4 w-15"> <h5>90点</h5> </td> </tr> <tr> <td> アジア顔出力の多様性<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td> </tr> <tr> <td> フォトリアリティ<br> </td> <td class="align-middle px-4 w-15"> <h5>90点</h5> </td>    </tr> <tr> <td> 非現実的美形度<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 彩度・明度安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>75点</h5> </td>    </tr> <tr> <td> 手指の描画精度(最新上位モデルを90点とした場合)<br> </td> <td class="align-middle px-4 w-15"> <h5>85点</h5> </td>    </tr> <tr> <td> 複雑ポーズ安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 乳部の意図せぬ露出制御性<br> </td> <td class="align-middle px-4 w-15"> <h5>55点</h5> </td>    </tr> <tr> <td> 感情表現のプロンプト反応<br> </td> <td class="align-middle px-4 w-15"> <h5>50点</h5> </td>    </tr> <tr> <td> 表現可能年齢幅<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>  <tr> <td colspan="2"> <strong>アナザーモデル。マージ手法を変更し、よりミキシングを深めることで彩度や明度の露骨な変化を安定化させた。<br> 結果的にBRA顔が薄れ、少し一般的なアジア顔系マージモデルの方向性によっている。<br> 指の安定性。特に爪や指先端の綺麗な表現はかなり最新モデル上位に比肩する。(グチャらない訳ではない)<br> 弱みが減った分、感情表現反応も弱まった部分がある。なおlarge breasts以上での一般的な服装だとポロリのしやすさはそう大差なし。<br></strong> </td>  </tr>    </tr> <tr> <td colspan="2"> <strong><h4>BracingEvoMix_Fast</h4></strong> </td> </tr> <tr> <td> 自然言語プロンプト反応(SD1.5)<br> </td> <td class="align-middle px-4 w-15"> <h5>90点</h5> </td> </tr> <tr> <td> アジア顔出力の多様性<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td> </tr> <tr> <td> フォトリアリティ<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td>    </tr> <tr> <td> 非現実的美形度<br> </td> <td class="align-middle px-4 w-15"> <h5>65点</h5> </td>    </tr> <tr> <td> 彩度・明度安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>75点</h5> </td>    </tr> <tr> <td> 手指の描画精度(最新上位モデルを90点とした場合)<br> </td> <td class="align-middle px-4 w-15"> <h5>80点</h5> </td>    </tr> <tr> <td> 複雑ポーズ安定性<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 乳部の意図せぬ露出制御性<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>    </tr> <tr> <td> 感情表現のプロンプト反応<br> </td> <td class="align-middle px-4 w-15"> <h5>50点</h5> </td>    </tr> <tr> <td> 表現可能年齢幅<br> </td> <td class="align-middle px-4 w-15"> <h5>60点</h5> </td>  <tr> <td colspan="2"> <strong>アナザーモデルをよりchilled_remix的なアレンジをした試作モデル。<br> より完璧に整った顔立ちにしやすく、またエフェクト表現もchilled_remixほどではないも、多少通りやすいよう設計。<br> ただしフォトリアルの領域からは逸脱させていないので、chilled_remixほどの自由さはないです<br> </strong> </td>  </tr>    </tr> </table> </div> **マージ利用モデル一覧** **[BracingEvoMix_v2]** OpenBra **©BanKai** [@PleaseBanKai](https://twitter.com/PleaseBanKai) dreamshaper_6BakedVae (https://civitai.com/models/4384) ©Lykon epicrealism_newEra epicrealism_pureEvolutionV5 (https://civitai.com/models/25694) ©epinikion diamondCoalMix_diamondCoalv2 (https://civitai.com/models/41415) ©EnthusiastAI sxd_v10 (https://civitai.com/models/1169) ©izuek Evt_V4_e04_ema (https://huggingface.co/haor/Evt_V4-preview) ©haor bp_mk5 (https://huggingface.co/Crosstyan/BPModel) ©Crosstyan **[BracingEvoMix_v1]** OpenBraβ OpenBra **©BanKai** [@PleaseBanKai](https://twitter.com/PleaseBanKai) dreamshaper_5Bakedvae dreamshaper_6BakedVae (https://civitai.com/models/4384) ©Lykon epicrealism_newAge epicrealism_newEra (https://civitai.com/models/25694) ©epinikion diamondCoalMix_diamondCoalv2 (https://civitai.com/models/41415) ©EnthusiastAI sxd_v10 (https://civitai.com/models/1169) ©izuek Evt_V4_e04_ema (https://huggingface.co/haor/Evt_V4-preview) ©haor **[BracingEvoMix_Another]** OpenBra **©BanKai** [@PleaseBanKai](https://twitter.com/PleaseBanKai) dreamshaper_6BakedVae (https://civitai.com/models/4384) ©Lykon epicrealism_newEra (https://civitai.com/models/25694) ©epinikion sxd_v10 (https://civitai.com/models/1169) ©izuek Evt_V4_e04_ema (https://huggingface.co/haor/Evt_V4-preview) ©haor **[BracingEvoMix_Fast]** OpenBra **©BanKai** [@PleaseBanKai](https://twitter.com/PleaseBanKai) dreamshaper_6BakedVae (https://civitai.com/models/4384) ©Lykon epicrealism_newEra (https://civitai.com/models/25694) ©epinikion Evt_V4_e04_ema (https://huggingface.co/haor/Evt_V4-preview) ©haor bp_mk5 (https://huggingface.co/Crosstyan/BPModel) ©Crosstyan -------------------------------------------------------------------------- **推奨設定** CLIP設定/clip skip:2 badhand系のnegativeTIを入れた場合と入れない場合の差は感覚的に大差ありません。 このモデルは**EasyNegative**もしくは**BadBras推奨**です。 **EasyNegative v2** は人体構造破綻率が上記と比べて高いので非推奨。 自然言語的な文章プロンプトにかなり強いですが、シチュエーション以外の詳しい顔造形などは、 好みに合わせてワードプロンプトで指定するのが私のスタイルです。 ワードだけ構成でも問題があるわけではないので使いやすいスタイルで使ってください。 クオリティプロンプトは、high qualityなどは有効性を感じていません。 masterpieceは顔造形が変化する感覚ありますが、クオリティアップとしては微妙です。 ただhigh resolutionは背景や質感に効果あります。high res、Hiresなど色々ありますが、 一番high resolutionを信頼しています。 また1girlなどのWD式プロンプトではなく、girl、womanやyoung woman等の自然言語での使用も検討ください。 CGFスケールを少し下げ、5程度にすることで、全体的なコントラストを弱めることも技法として有用です。 **肌の色が濃く感じる場合は(fair skin:1.2)を入れると白くなります。上記と併せてご利用ください** ネガティブプロンプトベース ``` EasyNegative,(worst quality:2),(low quality:1.4),(undressing:1.5), (disheveled clothes:1.4),(manicure:1.2),(nipple:1.2),(long neck:2), ``` **FAQ** **Q1:BracingEvoMixとは何か** **A1:** 従来のマージモデルはNAIleakモデルの混入やDreamlikeLicenseの混入の恐れがあり、<br> 本格的なビジネス利用において判断に困るような場面が見受けられました。<br> 今回のBracingEvoMixは、BRAの学習開発者であるBanKai氏と直接話し合い、<br> 有志の寄付の結果生まれたOpenBraβ・OpenBraをベースにマージしたモデルです。<br> 他も全て学習モデルとなっており、マージモデルでの組み合わせよりリスクモデルの混入確率をグンと減らしています。<br> <br> 極東アジア系の顔が出るマージモデルの中では一番低リスクモデルだと考えられます。<br> しかし学習モデルと名乗っていても、その中身に関して詳細を知ることはできないのでリスクゼロではありません。<br> コサイン一致率などを元に選定も行っておりますが、混入がないとは言い切れない点はご承知おきください。<br> <br> <br> **Q2:完全な混入していないモデルは無理なのか** **A2:** 追加学習のみだと、データの偏りが生まれ、背景などを含めてどうしても能力にムラが出ます。<br> 個人レベルで完全な学習モデルを生み出すのは不可能に近い為、マージで対応する必要があります。<br> しかしこれらの学習モデルの中身に関しては専門家でもないので、解析できません。<br> <br> なお差分抽出にて、特定モデルのデータと一致するデータを除去することは可能ですが、<br> その差を取ることそのものが、派生モデルとしての条件を満たす可能性があります。<br> またNAIleakモデル本体をDLしなければならず、そこも含めて困難と言えます。<br> <br> **Q3:各学習モデル選定基準について** **A3:** ①sxd_v10<br> これはNSFWモデルです。NSFWモデルを入れると脱衣をしやすくなるなど問題がある反面、<br> OpenBraの弱点の一つである下半身の学習度合がやや低い点の補強と様々なポーズ学習データ補強に用いています。<br> なお割合を増やし過ぎると露出がしやすくなる為、最低限の量をマージしています。<br> sxdは比較的初期モデルながら、学習量も多めで、制限もない為、選択しています。<br> <br> ②dreamshaper_5Bakedvae/dreamshaper_6BakedVae<br> dreamshaperは商用画像生成サービスでも利用されている有名な学習モデルです。<br> 学習モデルとして追加学習量も多くデータの多様性も高い為、多様性補強用に採用しています。<br> <br> ③epicrealism_newAge/epicrealism_newEra<br> 現行の学習モデルで最強のスペックを誇ると思われます。背景補強と能力の高さから採用しています。<br> <br> ④diamondcoalmix_diamondcoalv2<br> 極東アジア人顔の系統データを持つ学習モデル。作者がLORA作成を多く行っており、またコサイン値からも問題ないと判断し、極東アジアデータ補強で採用。<br> <br> ⑤Evt_V4_e04_ema<br> ACertaintyというNAIleakデータを含まないと公言しているイラスト学習モデルでトレーニングを行い生み出されたモデル。<br> イラストモデルをマージすることで、人種・年齢関係なく、顔データに影響を与えられるため、<br> 肖像権侵害率を下げる意味合いと日本人好みの顔立ちにする為に採用しています。<br> <br> ※ACertaintyはNOVEL AIのデータを蒸留している可能性はありますが、こちらは特許法に抵触しない為、問題ないと考えています。<br> ACertainty<br> https://huggingface.co/JosephusCheung/ACertainty<br> https://huggingface.co/JosephusCheung/ASimilarityCalculatior<br> <br> ⑥bp_mk5<br> ACertaintyベースの学習モデル。BracingEvoMix_Fastはリバランスの為に用いています。 <br> <br> **Q4:無印の指のクオリティがchilled_remix等と比べて低い** **A4:** 使用モデルが一定の基準をクリアした学習モデルに限定されているため、データの安定性が最新モデルと比べて低いです。<br> それでも初期モデルよりはまだシャープな指として出力され、3月中頃のモデルと比較して、平均的な出力だと感じています。<br> ~今後可能ならば、指強化等も検討しますが学習データからして困難と見ています。~<br> 申し訳ございませんが、controlnetでの制御などもご検討ください。<br> <br> 6/14 追記:AnotherやFastはこの指の精度改善を行い、6月時点の最新フォトモデルの平均並みの出力だと考えています。 **Q5:今回の制限に問題や矛盾はないのか** **A5:** **diamondCoalMix_diamondCoalv2** 、 **dreamshaper_5Bakedvae** 、 **dreamshaper_6BakedVae** は **OK:Have different permissions when sharing merges**となっており解除可能。 他は制限なしの為、今回全て制限なしとし公開しております。 なおマージ利用モデル側にLicense変更・制限変更等が生じた際も 5/31時点のLicenseや制限を前提として公開している為、creativeml-openrail-mに準じます。 こちらはMergeModel_LicenseSS_v1に該当モデルのSSを保管しております。 なおマージ利用モデル側に重大な問題が発生した場合は、モデルの公開停止を行い、 利用停止を呼びかける可能性はありますが、**当方側を理由とした追加制限を設けることは致しません。**
[ -0.7616811394691467, -0.6226235032081604, 0.1490197330713272, 0.3243325650691986, -0.584405243396759, 0.04537414014339447, 0.04038706049323082, -0.5020961761474609, 0.7313191294670105, 0.012021766044199467, -1.040898084640503, -0.5422054529190063, -0.3672684133052826, 0.1562100201845169, 0.25109273195266724, 0.3314375877380371, -0.5568773150444031, -0.1670570820569992, 0.06635116040706635, 0.06759640574455261, -0.4166908860206604, 0.07692253589630127, -0.4786013960838318, -0.0026813021395355463, -0.12266551703214645, 0.29733893275260925, 0.8017157316207886, 0.8387029767036438, 0.4722185432910919, 0.4449831545352936, -0.28844916820526123, 0.14204132556915283, 0.05541672930121422, -0.19332481920719147, 0.1500803530216217, -0.3082365095615387, -0.6640452146530151, -0.25378939509391785, 0.6871876120567322, 0.45026344060897827, -0.015075281262397766, 0.19865672290325165, 0.5800479650497437, 0.7026280164718628, -0.4811871647834778, 0.295926958322525, 0.37927377223968506, 0.3644765019416809, -0.4741879105567932, -0.4471103847026825, 0.19125761091709137, -0.8512467741966248, -0.5191834568977356, -1.2483415603637695, -0.1907518059015274, 0.024990521371364594, 1.6125844717025757, -0.05257551744580269, -0.19751663506031036, 0.12581989169120789, -0.5866758823394775, 0.83787602186203, -0.7691559195518494, 0.385855108499527, 0.5683491230010986, 0.21270069479942322, 0.04918365180492401, -0.6921342611312866, -0.9285694360733032, 0.3576682209968567, -0.44080567359924316, 0.6651436686515808, -0.17492200434207916, -0.541456937789917, 0.14595210552215576, -0.12363003194332123, -0.7439702153205872, -0.039251454174518585, -0.40612947940826416, 0.03693701699376106, 0.46899938583374023, 0.1920030415058136, 0.9470087289810181, -0.5139957666397095, -0.8298854827880859, 0.1508389264345169, -0.4348817765712738, 0.6880369782447815, 0.12439197301864624, 0.29938337206840515, -0.9535986185073853, 0.4035891890525818, -0.22036516666412354, 0.43272852897644043, 0.12817898392677307, -0.4654219150543213, 0.6915090680122375, -0.5455085039138794, -0.32674914598464966, -0.336611270904541, 1.016235589981079, 0.9705805778503418, -0.1238877922296524, -0.28501713275909424, 0.07134293764829636, -0.28180256485939026, -0.299793541431427, -0.7020253539085388, 0.0857141837477684, 0.3980218172073364, -0.6642311811447144, -0.31272467970848083, 0.12418673932552338, -1.4622677564620972, 0.13288240134716034, -0.37303465604782104, 0.4154816269874573, -0.5340486764907837, -0.5690780878067017, 0.301993727684021, 0.25899794697761536, 0.1875186711549759, 0.5342665910720825, -0.6132783889770508, 0.3265678882598877, 0.22995968163013458, 0.9587099552154541, 0.0872364267706871, -0.2260647714138031, 0.1948287934064865, 0.7319000363349915, -0.2793252468109131, 0.8742058873176575, -0.06838452070951462, -0.4265609085559845, 0.12383652478456497, 0.426643967628479, -0.5316717028617859, 0.038501396775245667, 0.8706343173980713, -0.11243434250354767, 0.22344687581062317, -0.46647727489471436, 0.0006008152267895639, 0.03378543630242348, 0.29442551732063293, -0.38717663288116455, 1.014930009841919, -0.12491582334041595, -1.2731536626815796, 0.21907734870910645, -0.6179239749908447, -0.3397189974784851, 0.06224536523222923, -0.03096703067421913, -0.5565096735954285, -0.5015465021133423, 0.4203488230705261, 0.21391546726226807, -0.20204414427280426, -0.7059456706047058, -0.34049680829048157, 0.039972081780433655, 0.19949446618556976, 0.1154726967215538, 1.1944580078125, 0.3834550678730011, -0.6036529541015625, -0.2298801988363266, -0.708156943321228, 0.3018636703491211, 0.7279207706451416, -0.513034999370575, -0.1620870679616928, -0.20665940642356873, -0.13176684081554413, 0.5745212435722351, 0.5767392516136169, -0.5159050226211548, 0.19564904272556305, -0.6061336994171143, 0.3049118220806122, 1.0860799551010132, 0.21862757205963135, 0.5017513036727905, -0.8896626830101013, 0.7432959675788879, 0.12002158164978027, 0.4662599563598633, 0.33247753977775574, -0.15997163951396942, -0.8508214354515076, -0.28471654653549194, -0.05808507278561592, 0.42060384154319763, -1.0214438438415527, 0.7334998846054077, -0.3399106562137604, -0.6515949368476868, -0.44083982706069946, -0.13323500752449036, 0.21457217633724213, 0.2954201400279999, 0.3736632764339447, 0.009422133676707745, -0.6656247973442078, -0.21676819026470184, 0.05351187661290169, -0.10466142743825912, 0.4134909212589264, 0.5302538275718689, 0.841132402420044, -0.36404651403427124, 0.7607172131538391, -0.5942555069923401, -0.5816375613212585, -0.17672590911388397, -0.17854183912277222, 0.44522538781166077, 0.7392617464065552, 0.8003202676773071, -0.8737789988517761, -1.0106580257415771, 0.24400274455547333, -0.9589800834655762, -0.07287772744894028, 0.017768101766705513, -0.47592851519584656, 0.21720898151397705, 0.33784937858581543, -0.7293626666069031, 0.6470499634742737, 0.36926910281181335, -0.508457362651825, 0.8605951070785522, -0.36397722363471985, 0.43312492966651917, -1.3343466520309448, 0.35784825682640076, 0.1062193214893341, 0.13516411185264587, -0.6571787595748901, 0.18005309998989105, -0.10004667192697525, 0.1678176075220108, -0.703324556350708, 0.5868539214134216, -0.6519387364387512, 0.43126147985458374, 0.05251338332891464, 0.3540032207965851, 0.14678756892681122, 0.526930570602417, 0.069756418466568, 0.6947927474975586, 0.6388983726501465, -0.684495210647583, 0.36308249831199646, 0.4748949408531189, -0.40985527634620667, 0.48863455653190613, -0.666606605052948, -0.01870240457355976, -0.3380625247955322, 0.08163860440254211, -1.1833785772323608, -0.26179617643356323, 0.5405443906784058, -0.6014462113380432, 0.4373159408569336, 0.04272478073835373, -0.6457194089889526, -1.0423970222473145, -0.7831595540046692, -0.04065648838877678, 0.2885771691799164, -0.4493824541568756, 0.5233028531074524, 0.44195419549942017, 0.016425110399723053, -0.6675894856452942, -0.7447593808174133, -0.3958665132522583, -0.24046005308628082, -0.9093965888023376, 0.5702530741691589, -0.11819353699684143, -0.016149476170539856, -0.08727773278951645, -0.10567769408226013, -0.24335262179374695, 0.01981533318758011, 0.20038823783397675, 0.347354918718338, -0.45864567160606384, -0.05911409482359886, -0.07412075251340866, 0.1398194581270218, 0.04731607437133789, -0.16265155375003815, 0.8958253264427185, 0.09008520841598511, -0.41146722435951233, -1.2013953924179077, -0.12352123111486435, 0.8177306652069092, -0.3701799511909485, 0.9177810549736023, 0.7632492184638977, -0.3323613703250885, 0.028213530778884888, -0.3689877986907959, -0.09227433800697327, -0.5613594651222229, -0.19277165830135345, -0.275856077671051, -0.5808202624320984, 0.6512120366096497, 0.0341034010052681, -0.37559300661087036, 0.6135844588279724, 0.43965843319892883, -0.5684269070625305, 0.9687424898147583, 0.14708594977855682, 0.09918679296970367, 0.29031801223754883, -0.7182521820068359, 0.1741546392440796, -1.0640668869018555, -0.7955514192581177, -0.7927278280258179, -0.2948703467845917, -0.42573082447052, -0.512293815612793, 0.2701110541820526, 0.2971508800983429, -0.7128002047538757, 0.45523306727409363, -0.6808133721351624, 0.06413720548152924, 0.41085830330848694, 0.6451443433761597, 0.15947647392749786, -0.1563960462808609, -0.5170755982398987, -0.24684102833271027, -0.38700374960899353, -0.5717217326164246, 0.7213776111602783, 0.5046370029449463, 0.7788050174713135, 0.5785752534866333, 0.5644846558570862, -0.08784203976392746, -0.2982409596443176, -0.29467833042144775, 0.5050997734069824, 0.18787720799446106, -0.5263776183128357, -0.3636270761489868, -0.31968265771865845, -1.3110270500183105, 0.36685866117477417, -0.7082305550575256, -1.0789674520492554, 0.5474227070808411, 0.08518340438604355, -0.37835830450057983, 0.6726237535476685, -0.5048180818557739, 0.7506442666053772, -0.5520167350769043, -1.1625088453292847, 0.3517395555973053, -0.6180096864700317, 0.21809720993041992, 0.37107086181640625, 0.6661627888679504, 0.024388596415519714, -0.3056390881538391, 0.7894471883773804, -0.8544148802757263, 0.5879350900650024, -0.13315291702747345, 0.15251296758651733, 0.4952402114868164, 0.0442628338932991, 0.7545166611671448, 0.09094350039958954, 0.21669095754623413, -0.01765533909201622, -0.07094167172908783, -0.2586197853088379, -0.36297333240509033, 0.7961773872375488, -1.0924745798110962, -0.6675550937652588, -0.5594320893287659, -0.0059351143427193165, 0.15106800198554993, 0.7257251143455505, 0.44438791275024414, 0.23311299085617065, 0.23822881281375885, 0.16443803906440735, 0.5130580067634583, -0.18263991177082062, 0.7700432538986206, 0.2354179322719574, -0.18772189319133759, -0.6378641724586487, 0.68203204870224, 0.3458329439163208, -0.005226196255534887, 0.6679175496101379, 0.3712388277053833, -0.6898281574249268, -0.603279709815979, -0.37495142221450806, 0.616059422492981, -0.24162253737449646, -0.34028759598731995, -0.519588053226471, 0.07328740507364273, -1.0433759689331055, -0.41659316420555115, 0.05502082780003548, -0.39402100443840027, -0.4346140921115875, -0.2976157069206238, 0.23996028304100037, 0.48453280329704285, -0.407886266708374, 0.119937464594841, -0.5396584868431091, 0.26035189628601074, 0.00936077069491148, 0.42170605063438416, 0.3333536386489868, -0.3223009705543518, -0.3004724681377411, 0.1769048422574997, -0.6376237273216248, -0.8247446417808533, 0.7557206749916077, -0.7420535087585449, 0.6280346512794495, 0.5287047624588013, 0.01672348938882351, 0.9180570840835571, -0.3142288029193878, 0.6292418241500854, 0.7698456645011902, -0.8566566109657288, 0.7865839004516602, -0.7726849913597107, 0.40660321712493896, 0.34356823563575745, 0.6408000588417053, -0.4047824442386627, -0.04503920301795006, -0.6113205552101135, -0.8623632788658142, 0.9224357604980469, 0.2122485190629959, -0.16777151823043823, -0.01741175167262554, -0.19488495588302612, -0.4974561631679535, 0.16934682428836823, -0.9455816149711609, -0.713249146938324, -0.45945653319358826, -0.01833154633641243, 0.42505136132240295, 0.19686651229858398, -0.15645281970500946, -0.504192590713501, 0.828049898147583, 0.305698961019516, 0.48703208565711975, 0.33439311385154724, 0.27496984601020813, -0.4045731723308563, 0.4725436866283417, 0.8011505007743835, 0.6725006699562073, -0.1582813858985901, -0.1802137941122055, 0.18474262952804565, -0.6971388459205627, 0.008114652708172798, -0.0389864481985569, -0.533058226108551, 0.10581038892269135, 0.08611207455396652, 0.5934026837348938, 0.1799883097410202, -0.05465848743915558, 0.7672314643859863, 0.28700825572013855, -0.5082389116287231, -0.5018135905265808, -0.19099940359592438, 0.2728094458580017, 0.2113427072763443, 0.27803558111190796, 0.1455615609884262, -0.11707449704408646, -0.6204535365104675, -0.01140753272920847, 0.4790268540382385, -0.4394572675228119, 0.0618961863219738, 1.178917407989502, 0.14482280611991882, -0.134712815284729, -0.18630437552928925, 0.21522285044193268, -0.694526195526123, 0.705621063709259, 0.5589169263839722, 0.27873119711875916, -0.4639974534511566, 0.32957762479782104, 0.9480869174003601, 0.2683905363082886, 0.11039003729820251, 0.30243340134620667, -0.020491180941462517, -0.2999800145626068, -0.07168422639369965, -0.789443850517273, 0.11278007179498672, 0.2753187119960785, -0.7269531488418579, 0.7093281149864197, -0.7872456908226013, -0.3933155834674835, -0.32688334584236145, 0.18502850830554962, -0.412672221660614, 0.5971331000328064, -0.13059405982494354, 1.027836799621582, -0.7682344317436218, 0.7317965626716614, 0.6721062064170837, -1.0878175497055054, -1.1473288536071777, 0.3456059396266937, 0.03318721428513527, -0.6508947610855103, 0.8079320788383484, -0.2627122104167938, -0.1068778708577156, -0.09410272538661957, -0.4009198844432831, -1.091070532798767, 1.642971158027649, -0.20581530034542084, -0.14176328480243683, -0.26395928859710693, 0.45270630717277527, 0.46262410283088684, 0.1294165402650833, 0.34698399901390076, 0.030014384537935257, 0.5622115135192871, 0.2268233448266983, -1.0824024677276611, 0.4354335367679596, -0.5182734727859497, 0.0745728462934494, 0.036704689264297485, -1.4186853170394897, 1.1707473993301392, 0.1602276712656021, -0.16648279130458832, 0.2207949161529541, 0.394305557012558, 0.2578622102737427, 0.22091194987297058, 0.16850645840168, 0.7410483956336975, 0.34979942440986633, -0.5070616006851196, 0.9336252212524414, -0.3402561843395233, 0.8566912412643433, 0.6217842102050781, 0.2415725737810135, 0.7947855591773987, 0.41620683670043945, -0.6731898188591003, 0.5652524828910828, 0.5185679793357849, -0.13849830627441406, 0.5161814093589783, -0.02185637317597866, -0.26941871643066406, -0.08590134978294373, -0.1839149296283722, -0.8013885617256165, -0.04254397004842758, 0.1569465696811676, -0.2500153183937073, 0.09972670674324036, 0.08209157735109329, 0.3412535786628723, 0.47502806782722473, -0.6267751455307007, 0.7420927286148071, -0.036048099398612976, -0.3621118664741516, 0.6968640685081482, -0.18370313942432404, 0.8918299674987793, -0.681645393371582, 0.23683468997478485, 0.031177813187241554, 0.2064252644777298, -0.5614606738090515, -1.2802815437316895, -0.04972715675830841, -0.2761971056461334, -0.1278807520866394, -0.14790982007980347, 0.567026674747467, -0.024872925132513046, -0.6454987525939941, 0.3471680283546448, -0.05024401471018791, 0.04861138015985489, 0.7752261161804199, -0.8557460308074951, 0.17149148881435394, 0.2882917821407318, -0.35229527950286865, 0.15337622165679932, 0.5708762407302856, 0.320586621761322, 0.657614529132843, 0.5107237100601196, 0.4190012216567993, 0.34668686985969543, -0.324177622795105, 1.0104084014892578, -0.3150320053100586, -0.5812076330184937, -0.6937006711959839, 0.8366667628288269, -0.3045768141746521, -0.00472717871889472, 1.0516912937164307, 0.830068826675415, 0.9121474027633667, -0.42457807064056396, 1.070000410079956, -0.5105912685394287, 0.8966326117515564, -0.45099517703056335, 1.084426760673523, -0.9667921662330627, -0.20015741884708405, -0.6418302059173584, -0.21832971274852753, -0.3932042121887207, 1.136500597000122, -0.41019585728645325, 0.2916112542152405, 0.8019121289253235, 0.909182071685791, 0.051209863275289536, 0.016752950847148895, -0.11027131974697113, 0.44882988929748535, -0.08110861480236053, 0.8626437783241272, 0.5088048577308655, -0.6067728400230408, 0.5534313321113586, -0.7553790807723999, -0.1658639758825302, -0.4659671187400818, -0.4102168083190918, -0.8546903133392334, -0.6053850650787354, -0.3744575083255768, -0.500289261341095, -0.04025782644748688, 0.8982582688331604, 0.5913287997245789, -0.6899991035461426, -0.32213228940963745, -0.06434925645589828, 0.09883919358253479, -0.1710020899772644, -0.28062188625335693, 0.89268958568573, 0.13080739974975586, -1.0676584243774414, -0.30906862020492554, 0.3962779939174652, 0.6013895869255066, 0.34398123621940613, -0.3264636695384979, -0.7092269659042358, -0.22147388756275177, 0.18990902602672577, 0.5660805106163025, -0.43032094836235046, -0.14745725691318512, -0.006406298838555813, -0.261058509349823, 0.30553123354911804, 0.12106720358133316, -0.22743459045886993, 0.33277517557144165, 0.8608637452125549, 0.037416212260723114, 0.45055046677589417, 0.28555846214294434, 0.0005649538361467421, -0.16523200273513794, -0.09567864239215851, 0.012067273259162903, 0.6272415518760681, -0.26178911328315735, -0.2890554964542389, 0.5890951752662659, 0.696405827999115, -0.28099367022514343, -0.6427270770072937, -0.1166185662150383, -1.2912977933883667, -0.39220747351646423, 1.2301760911941528, 0.030117129907011986, -0.5954219102859497, -0.04976065084338188, -0.523047149181366, 0.515731930732727, -0.4279187023639679, 0.34591570496559143, 0.5935635566711426, -0.18783487379550934, -0.23545774817466736, -0.9215503931045532, 0.4965094327926636, 0.17283786833286285, -1.0187811851501465, -0.37726905941963196, 0.1613318920135498, 0.21530963480472565, 0.5845006108283997, 0.7071868777275085, -0.33436527848243713, 0.38948169350624084, -0.23301881551742554, 0.06107572093605995, 0.00250869314186275, 0.1073470488190651, 0.13129237294197083, 0.2815224528312683, -0.19276933372020721, -0.5394822955131531 ]
fxmarty/tiny-testing-gpt2-remote-code
fxmarty
"2023-01-18T15:41:38Z"
21,362
1
transformers
[ "transformers", "pytorch", "gpt2", "text-generation", "custom_code", "license:apache-2.0", "text-generation-inference", "region:us" ]
text-generation
"2023-01-18T15:25:11Z"
--- license: apache-2.0 ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
hkunlp/instructor-xl
hkunlp
"2023-01-21T06:33:27Z"
21,351
435
sentence-transformers
[ "sentence-transformers", "pytorch", "t5", "text-embedding", "embeddings", "information-retrieval", "beir", "text-classification", "language-model", "text-clustering", "text-semantic-similarity", "text-evaluation", "prompt-retrieval", "text-reranking", "feature-extraction", "sentence-similarity", "transformers", "English", "Sentence Similarity", "natural_questions", "ms_marco", "fever", "hotpot_qa", "mteb", "en", "arxiv:2212.09741", "license:apache-2.0", "model-index", "has_space", "text-generation-inference", "region:us" ]
sentence-similarity
"2022-12-20T06:07:18Z"
--- pipeline_tag: sentence-similarity tags: - text-embedding - embeddings - information-retrieval - beir - text-classification - language-model - text-clustering - text-semantic-similarity - text-evaluation - prompt-retrieval - text-reranking - sentence-transformers - feature-extraction - sentence-similarity - transformers - t5 - English - Sentence Similarity - natural_questions - ms_marco - fever - hotpot_qa - mteb language: en inference: false license: apache-2.0 model-index: - name: final_xl_results results: - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (en) config: en split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 85.08955223880596 - type: ap value: 52.66066378722476 - type: f1 value: 79.63340218960269 - task: type: Classification dataset: type: mteb/amazon_polarity name: MTEB AmazonPolarityClassification config: default split: test revision: e2d317d38cd51312af73b3d32a06d1a08b442046 metrics: - type: accuracy value: 86.542 - type: ap value: 81.92695193008987 - type: f1 value: 86.51466132573681 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (en) config: en split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 42.964 - type: f1 value: 41.43146249774862 - task: type: Retrieval dataset: type: arguana name: MTEB ArguAna config: default split: test revision: None metrics: - type: map_at_1 value: 29.872 - type: map_at_10 value: 46.342 - type: map_at_100 value: 47.152 - type: map_at_1000 value: 47.154 - type: map_at_3 value: 41.216 - type: map_at_5 value: 44.035999999999994 - type: mrr_at_1 value: 30.939 - type: mrr_at_10 value: 46.756 - type: mrr_at_100 value: 47.573 - type: mrr_at_1000 value: 47.575 - type: mrr_at_3 value: 41.548 - type: mrr_at_5 value: 44.425 - type: ndcg_at_1 value: 29.872 - type: ndcg_at_10 value: 55.65 - type: ndcg_at_100 value: 58.88099999999999 - type: ndcg_at_1000 value: 58.951 - type: ndcg_at_3 value: 45.0 - type: ndcg_at_5 value: 50.09 - type: precision_at_1 value: 29.872 - type: precision_at_10 value: 8.549 - type: precision_at_100 value: 0.991 - type: precision_at_1000 value: 0.1 - type: precision_at_3 value: 18.658 - type: precision_at_5 value: 13.669999999999998 - type: recall_at_1 value: 29.872 - type: recall_at_10 value: 85.491 - type: recall_at_100 value: 99.075 - type: recall_at_1000 value: 99.644 - type: recall_at_3 value: 55.974000000000004 - type: recall_at_5 value: 68.35 - task: type: Clustering dataset: type: mteb/arxiv-clustering-p2p name: MTEB ArxivClusteringP2P config: default split: test revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d metrics: - type: v_measure value: 42.452729850641276 - task: type: Clustering dataset: type: mteb/arxiv-clustering-s2s name: MTEB ArxivClusteringS2S config: default split: test revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53 metrics: - type: v_measure value: 32.21141846480423 - task: type: Reranking dataset: type: mteb/askubuntudupquestions-reranking name: MTEB AskUbuntuDupQuestions config: default split: test revision: 2000358ca161889fa9c082cb41daa8dcfb161a54 metrics: - type: map value: 65.34710928952622 - type: mrr value: 77.61124301983028 - task: type: STS dataset: type: mteb/biosses-sts name: MTEB BIOSSES config: default split: test revision: d3fb88f8f02e40887cd149695127462bbcf29b4a metrics: - type: cos_sim_spearman value: 84.15312230525639 - task: type: Classification dataset: type: mteb/banking77 name: MTEB Banking77Classification config: default split: test revision: 0fd18e25b25c072e09e0d92ab615fda904d66300 metrics: - type: accuracy value: 82.66233766233766 - type: f1 value: 82.04175284777669 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-p2p name: MTEB BiorxivClusteringP2P config: default split: test revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40 metrics: - type: v_measure value: 37.36697339826455 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-s2s name: MTEB BiorxivClusteringS2S config: default split: test revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908 metrics: - type: v_measure value: 30.551241447593092 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackAndroidRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 36.797000000000004 - type: map_at_10 value: 48.46 - type: map_at_100 value: 49.968 - type: map_at_1000 value: 50.080000000000005 - type: map_at_3 value: 44.71 - type: map_at_5 value: 46.592 - type: mrr_at_1 value: 45.494 - type: mrr_at_10 value: 54.747 - type: mrr_at_100 value: 55.43599999999999 - type: mrr_at_1000 value: 55.464999999999996 - type: mrr_at_3 value: 52.361000000000004 - type: mrr_at_5 value: 53.727000000000004 - type: ndcg_at_1 value: 45.494 - type: ndcg_at_10 value: 54.989 - type: ndcg_at_100 value: 60.096000000000004 - type: ndcg_at_1000 value: 61.58 - type: ndcg_at_3 value: 49.977 - type: ndcg_at_5 value: 51.964999999999996 - type: precision_at_1 value: 45.494 - type: precision_at_10 value: 10.558 - type: precision_at_100 value: 1.6049999999999998 - type: precision_at_1000 value: 0.203 - type: precision_at_3 value: 23.796 - type: precision_at_5 value: 16.881 - type: recall_at_1 value: 36.797000000000004 - type: recall_at_10 value: 66.83 - type: recall_at_100 value: 88.34100000000001 - type: recall_at_1000 value: 97.202 - type: recall_at_3 value: 51.961999999999996 - type: recall_at_5 value: 57.940000000000005 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackEnglishRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 32.597 - type: map_at_10 value: 43.424 - type: map_at_100 value: 44.78 - type: map_at_1000 value: 44.913 - type: map_at_3 value: 40.315 - type: map_at_5 value: 41.987 - type: mrr_at_1 value: 40.382 - type: mrr_at_10 value: 49.219 - type: mrr_at_100 value: 49.895 - type: mrr_at_1000 value: 49.936 - type: mrr_at_3 value: 46.996 - type: mrr_at_5 value: 48.231 - type: ndcg_at_1 value: 40.382 - type: ndcg_at_10 value: 49.318 - type: ndcg_at_100 value: 53.839999999999996 - type: ndcg_at_1000 value: 55.82899999999999 - type: ndcg_at_3 value: 44.914 - type: ndcg_at_5 value: 46.798 - type: precision_at_1 value: 40.382 - type: precision_at_10 value: 9.274000000000001 - type: precision_at_100 value: 1.497 - type: precision_at_1000 value: 0.198 - type: precision_at_3 value: 21.592 - type: precision_at_5 value: 15.159 - type: recall_at_1 value: 32.597 - type: recall_at_10 value: 59.882000000000005 - type: recall_at_100 value: 78.446 - type: recall_at_1000 value: 90.88000000000001 - type: recall_at_3 value: 46.9 - type: recall_at_5 value: 52.222 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGamingRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 43.8 - type: map_at_10 value: 57.293000000000006 - type: map_at_100 value: 58.321 - type: map_at_1000 value: 58.361 - type: map_at_3 value: 53.839999999999996 - type: map_at_5 value: 55.838 - type: mrr_at_1 value: 49.592000000000006 - type: mrr_at_10 value: 60.643 - type: mrr_at_100 value: 61.23499999999999 - type: mrr_at_1000 value: 61.251999999999995 - type: mrr_at_3 value: 58.265 - type: mrr_at_5 value: 59.717 - type: ndcg_at_1 value: 49.592000000000006 - type: ndcg_at_10 value: 63.364 - type: ndcg_at_100 value: 67.167 - type: ndcg_at_1000 value: 67.867 - type: ndcg_at_3 value: 57.912 - type: ndcg_at_5 value: 60.697 - type: precision_at_1 value: 49.592000000000006 - type: precision_at_10 value: 10.088 - type: precision_at_100 value: 1.2930000000000001 - type: precision_at_1000 value: 0.13899999999999998 - type: precision_at_3 value: 25.789 - type: precision_at_5 value: 17.541999999999998 - type: recall_at_1 value: 43.8 - type: recall_at_10 value: 77.635 - type: recall_at_100 value: 93.748 - type: recall_at_1000 value: 98.468 - type: recall_at_3 value: 63.223 - type: recall_at_5 value: 70.122 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGisRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.721 - type: map_at_10 value: 35.626999999999995 - type: map_at_100 value: 36.719 - type: map_at_1000 value: 36.8 - type: map_at_3 value: 32.781 - type: map_at_5 value: 34.333999999999996 - type: mrr_at_1 value: 29.604999999999997 - type: mrr_at_10 value: 37.564 - type: mrr_at_100 value: 38.505 - type: mrr_at_1000 value: 38.565 - type: mrr_at_3 value: 34.727000000000004 - type: mrr_at_5 value: 36.207 - type: ndcg_at_1 value: 29.604999999999997 - type: ndcg_at_10 value: 40.575 - type: ndcg_at_100 value: 45.613 - type: ndcg_at_1000 value: 47.676 - type: ndcg_at_3 value: 34.811 - type: ndcg_at_5 value: 37.491 - type: precision_at_1 value: 29.604999999999997 - type: precision_at_10 value: 6.1690000000000005 - type: precision_at_100 value: 0.906 - type: precision_at_1000 value: 0.11199999999999999 - type: precision_at_3 value: 14.237 - type: precision_at_5 value: 10.056 - type: recall_at_1 value: 27.721 - type: recall_at_10 value: 54.041 - type: recall_at_100 value: 76.62299999999999 - type: recall_at_1000 value: 92.134 - type: recall_at_3 value: 38.582 - type: recall_at_5 value: 44.989000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackMathematicaRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 16.553 - type: map_at_10 value: 25.384 - type: map_at_100 value: 26.655 - type: map_at_1000 value: 26.778000000000002 - type: map_at_3 value: 22.733 - type: map_at_5 value: 24.119 - type: mrr_at_1 value: 20.149 - type: mrr_at_10 value: 29.705 - type: mrr_at_100 value: 30.672 - type: mrr_at_1000 value: 30.737 - type: mrr_at_3 value: 27.032 - type: mrr_at_5 value: 28.369 - type: ndcg_at_1 value: 20.149 - type: ndcg_at_10 value: 30.843999999999998 - type: ndcg_at_100 value: 36.716 - type: ndcg_at_1000 value: 39.495000000000005 - type: ndcg_at_3 value: 25.918999999999997 - type: ndcg_at_5 value: 27.992 - type: precision_at_1 value: 20.149 - type: precision_at_10 value: 5.858 - type: precision_at_100 value: 1.009 - type: precision_at_1000 value: 0.13799999999999998 - type: precision_at_3 value: 12.645000000000001 - type: precision_at_5 value: 9.179 - type: recall_at_1 value: 16.553 - type: recall_at_10 value: 43.136 - type: recall_at_100 value: 68.562 - type: recall_at_1000 value: 88.208 - type: recall_at_3 value: 29.493000000000002 - type: recall_at_5 value: 34.751 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackPhysicsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 28.000999999999998 - type: map_at_10 value: 39.004 - type: map_at_100 value: 40.461999999999996 - type: map_at_1000 value: 40.566 - type: map_at_3 value: 35.805 - type: map_at_5 value: 37.672 - type: mrr_at_1 value: 33.782000000000004 - type: mrr_at_10 value: 44.702 - type: mrr_at_100 value: 45.528 - type: mrr_at_1000 value: 45.576 - type: mrr_at_3 value: 42.14 - type: mrr_at_5 value: 43.651 - type: ndcg_at_1 value: 33.782000000000004 - type: ndcg_at_10 value: 45.275999999999996 - type: ndcg_at_100 value: 50.888 - type: ndcg_at_1000 value: 52.879 - type: ndcg_at_3 value: 40.191 - type: ndcg_at_5 value: 42.731 - type: precision_at_1 value: 33.782000000000004 - type: precision_at_10 value: 8.200000000000001 - type: precision_at_100 value: 1.287 - type: precision_at_1000 value: 0.16199999999999998 - type: precision_at_3 value: 19.185 - type: precision_at_5 value: 13.667000000000002 - type: recall_at_1 value: 28.000999999999998 - type: recall_at_10 value: 58.131 - type: recall_at_100 value: 80.869 - type: recall_at_1000 value: 93.931 - type: recall_at_3 value: 44.161 - type: recall_at_5 value: 50.592000000000006 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackProgrammersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 28.047 - type: map_at_10 value: 38.596000000000004 - type: map_at_100 value: 40.116 - type: map_at_1000 value: 40.232 - type: map_at_3 value: 35.205 - type: map_at_5 value: 37.076 - type: mrr_at_1 value: 34.932 - type: mrr_at_10 value: 44.496 - type: mrr_at_100 value: 45.47 - type: mrr_at_1000 value: 45.519999999999996 - type: mrr_at_3 value: 41.743 - type: mrr_at_5 value: 43.352000000000004 - type: ndcg_at_1 value: 34.932 - type: ndcg_at_10 value: 44.901 - type: ndcg_at_100 value: 50.788999999999994 - type: ndcg_at_1000 value: 52.867 - type: ndcg_at_3 value: 39.449 - type: ndcg_at_5 value: 41.929 - type: precision_at_1 value: 34.932 - type: precision_at_10 value: 8.311 - type: precision_at_100 value: 1.3050000000000002 - type: precision_at_1000 value: 0.166 - type: precision_at_3 value: 18.836 - type: precision_at_5 value: 13.447000000000001 - type: recall_at_1 value: 28.047 - type: recall_at_10 value: 57.717 - type: recall_at_100 value: 82.182 - type: recall_at_1000 value: 95.82000000000001 - type: recall_at_3 value: 42.448 - type: recall_at_5 value: 49.071 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.861250000000005 - type: map_at_10 value: 37.529583333333335 - type: map_at_100 value: 38.7915 - type: map_at_1000 value: 38.90558333333335 - type: map_at_3 value: 34.57333333333333 - type: map_at_5 value: 36.187166666666656 - type: mrr_at_1 value: 32.88291666666666 - type: mrr_at_10 value: 41.79750000000001 - type: mrr_at_100 value: 42.63183333333333 - type: mrr_at_1000 value: 42.68483333333333 - type: mrr_at_3 value: 39.313750000000006 - type: mrr_at_5 value: 40.70483333333333 - type: ndcg_at_1 value: 32.88291666666666 - type: ndcg_at_10 value: 43.09408333333333 - type: ndcg_at_100 value: 48.22158333333333 - type: ndcg_at_1000 value: 50.358000000000004 - type: ndcg_at_3 value: 38.129583333333336 - type: ndcg_at_5 value: 40.39266666666666 - type: precision_at_1 value: 32.88291666666666 - type: precision_at_10 value: 7.5584999999999996 - type: precision_at_100 value: 1.1903333333333332 - type: precision_at_1000 value: 0.15658333333333332 - type: precision_at_3 value: 17.495916666666666 - type: precision_at_5 value: 12.373833333333332 - type: recall_at_1 value: 27.861250000000005 - type: recall_at_10 value: 55.215916666666665 - type: recall_at_100 value: 77.392 - type: recall_at_1000 value: 92.04908333333334 - type: recall_at_3 value: 41.37475 - type: recall_at_5 value: 47.22908333333333 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackStatsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 25.064999999999998 - type: map_at_10 value: 31.635999999999996 - type: map_at_100 value: 32.596000000000004 - type: map_at_1000 value: 32.695 - type: map_at_3 value: 29.612 - type: map_at_5 value: 30.768 - type: mrr_at_1 value: 28.528 - type: mrr_at_10 value: 34.717 - type: mrr_at_100 value: 35.558 - type: mrr_at_1000 value: 35.626000000000005 - type: mrr_at_3 value: 32.745000000000005 - type: mrr_at_5 value: 33.819 - type: ndcg_at_1 value: 28.528 - type: ndcg_at_10 value: 35.647 - type: ndcg_at_100 value: 40.207 - type: ndcg_at_1000 value: 42.695 - type: ndcg_at_3 value: 31.878 - type: ndcg_at_5 value: 33.634 - type: precision_at_1 value: 28.528 - type: precision_at_10 value: 5.46 - type: precision_at_100 value: 0.84 - type: precision_at_1000 value: 0.11399999999999999 - type: precision_at_3 value: 13.547999999999998 - type: precision_at_5 value: 9.325 - type: recall_at_1 value: 25.064999999999998 - type: recall_at_10 value: 45.096000000000004 - type: recall_at_100 value: 65.658 - type: recall_at_1000 value: 84.128 - type: recall_at_3 value: 34.337 - type: recall_at_5 value: 38.849000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackTexRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 17.276 - type: map_at_10 value: 24.535 - type: map_at_100 value: 25.655 - type: map_at_1000 value: 25.782 - type: map_at_3 value: 22.228 - type: map_at_5 value: 23.612 - type: mrr_at_1 value: 21.266 - type: mrr_at_10 value: 28.474 - type: mrr_at_100 value: 29.398000000000003 - type: mrr_at_1000 value: 29.482000000000003 - type: mrr_at_3 value: 26.245 - type: mrr_at_5 value: 27.624 - type: ndcg_at_1 value: 21.266 - type: ndcg_at_10 value: 29.087000000000003 - type: ndcg_at_100 value: 34.374 - type: ndcg_at_1000 value: 37.433 - type: ndcg_at_3 value: 25.040000000000003 - type: ndcg_at_5 value: 27.116 - type: precision_at_1 value: 21.266 - type: precision_at_10 value: 5.258 - type: precision_at_100 value: 0.9299999999999999 - type: precision_at_1000 value: 0.13699999999999998 - type: precision_at_3 value: 11.849 - type: precision_at_5 value: 8.699 - type: recall_at_1 value: 17.276 - type: recall_at_10 value: 38.928000000000004 - type: recall_at_100 value: 62.529 - type: recall_at_1000 value: 84.44800000000001 - type: recall_at_3 value: 27.554000000000002 - type: recall_at_5 value: 32.915 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackUnixRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.297 - type: map_at_10 value: 36.957 - type: map_at_100 value: 38.252 - type: map_at_1000 value: 38.356 - type: map_at_3 value: 34.121 - type: map_at_5 value: 35.782000000000004 - type: mrr_at_1 value: 32.275999999999996 - type: mrr_at_10 value: 41.198 - type: mrr_at_100 value: 42.131 - type: mrr_at_1000 value: 42.186 - type: mrr_at_3 value: 38.557 - type: mrr_at_5 value: 40.12 - type: ndcg_at_1 value: 32.275999999999996 - type: ndcg_at_10 value: 42.516 - type: ndcg_at_100 value: 48.15 - type: ndcg_at_1000 value: 50.344 - type: ndcg_at_3 value: 37.423 - type: ndcg_at_5 value: 39.919 - type: precision_at_1 value: 32.275999999999996 - type: precision_at_10 value: 7.155 - type: precision_at_100 value: 1.123 - type: precision_at_1000 value: 0.14200000000000002 - type: precision_at_3 value: 17.163999999999998 - type: precision_at_5 value: 12.127 - type: recall_at_1 value: 27.297 - type: recall_at_10 value: 55.238 - type: recall_at_100 value: 79.2 - type: recall_at_1000 value: 94.258 - type: recall_at_3 value: 41.327000000000005 - type: recall_at_5 value: 47.588 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWebmastersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 29.142000000000003 - type: map_at_10 value: 38.769 - type: map_at_100 value: 40.292 - type: map_at_1000 value: 40.510000000000005 - type: map_at_3 value: 35.39 - type: map_at_5 value: 37.009 - type: mrr_at_1 value: 34.19 - type: mrr_at_10 value: 43.418 - type: mrr_at_100 value: 44.132 - type: mrr_at_1000 value: 44.175 - type: mrr_at_3 value: 40.547 - type: mrr_at_5 value: 42.088 - type: ndcg_at_1 value: 34.19 - type: ndcg_at_10 value: 45.14 - type: ndcg_at_100 value: 50.364 - type: ndcg_at_1000 value: 52.481 - type: ndcg_at_3 value: 39.466 - type: ndcg_at_5 value: 41.772 - type: precision_at_1 value: 34.19 - type: precision_at_10 value: 8.715 - type: precision_at_100 value: 1.6150000000000002 - type: precision_at_1000 value: 0.247 - type: precision_at_3 value: 18.248 - type: precision_at_5 value: 13.161999999999999 - type: recall_at_1 value: 29.142000000000003 - type: recall_at_10 value: 57.577999999999996 - type: recall_at_100 value: 81.428 - type: recall_at_1000 value: 94.017 - type: recall_at_3 value: 41.402 - type: recall_at_5 value: 47.695 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWordpressRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 22.039 - type: map_at_10 value: 30.669999999999998 - type: map_at_100 value: 31.682 - type: map_at_1000 value: 31.794 - type: map_at_3 value: 28.139999999999997 - type: map_at_5 value: 29.457 - type: mrr_at_1 value: 24.399 - type: mrr_at_10 value: 32.687 - type: mrr_at_100 value: 33.622 - type: mrr_at_1000 value: 33.698 - type: mrr_at_3 value: 30.407 - type: mrr_at_5 value: 31.552999999999997 - type: ndcg_at_1 value: 24.399 - type: ndcg_at_10 value: 35.472 - type: ndcg_at_100 value: 40.455000000000005 - type: ndcg_at_1000 value: 43.15 - type: ndcg_at_3 value: 30.575000000000003 - type: ndcg_at_5 value: 32.668 - type: precision_at_1 value: 24.399 - type: precision_at_10 value: 5.656 - type: precision_at_100 value: 0.874 - type: precision_at_1000 value: 0.121 - type: precision_at_3 value: 13.062000000000001 - type: precision_at_5 value: 9.242 - type: recall_at_1 value: 22.039 - type: recall_at_10 value: 48.379 - type: recall_at_100 value: 71.11800000000001 - type: recall_at_1000 value: 91.095 - type: recall_at_3 value: 35.108 - type: recall_at_5 value: 40.015 - task: type: Retrieval dataset: type: climate-fever name: MTEB ClimateFEVER config: default split: test revision: None metrics: - type: map_at_1 value: 10.144 - type: map_at_10 value: 18.238 - type: map_at_100 value: 20.143 - type: map_at_1000 value: 20.346 - type: map_at_3 value: 14.809 - type: map_at_5 value: 16.567999999999998 - type: mrr_at_1 value: 22.671 - type: mrr_at_10 value: 34.906 - type: mrr_at_100 value: 35.858000000000004 - type: mrr_at_1000 value: 35.898 - type: mrr_at_3 value: 31.238 - type: mrr_at_5 value: 33.342 - type: ndcg_at_1 value: 22.671 - type: ndcg_at_10 value: 26.540000000000003 - type: ndcg_at_100 value: 34.138000000000005 - type: ndcg_at_1000 value: 37.72 - type: ndcg_at_3 value: 20.766000000000002 - type: ndcg_at_5 value: 22.927 - type: precision_at_1 value: 22.671 - type: precision_at_10 value: 8.619 - type: precision_at_100 value: 1.678 - type: precision_at_1000 value: 0.23500000000000001 - type: precision_at_3 value: 15.592 - type: precision_at_5 value: 12.43 - type: recall_at_1 value: 10.144 - type: recall_at_10 value: 33.46 - type: recall_at_100 value: 59.758 - type: recall_at_1000 value: 79.704 - type: recall_at_3 value: 19.604 - type: recall_at_5 value: 25.367 - task: type: Retrieval dataset: type: dbpedia-entity name: MTEB DBPedia config: default split: test revision: None metrics: - type: map_at_1 value: 8.654 - type: map_at_10 value: 18.506 - type: map_at_100 value: 26.412999999999997 - type: map_at_1000 value: 28.13 - type: map_at_3 value: 13.379 - type: map_at_5 value: 15.529000000000002 - type: mrr_at_1 value: 66.0 - type: mrr_at_10 value: 74.13 - type: mrr_at_100 value: 74.48700000000001 - type: mrr_at_1000 value: 74.49799999999999 - type: mrr_at_3 value: 72.75 - type: mrr_at_5 value: 73.762 - type: ndcg_at_1 value: 54.50000000000001 - type: ndcg_at_10 value: 40.236 - type: ndcg_at_100 value: 44.690999999999995 - type: ndcg_at_1000 value: 52.195 - type: ndcg_at_3 value: 45.632 - type: ndcg_at_5 value: 42.952 - type: precision_at_1 value: 66.0 - type: precision_at_10 value: 31.724999999999998 - type: precision_at_100 value: 10.299999999999999 - type: precision_at_1000 value: 2.194 - type: precision_at_3 value: 48.75 - type: precision_at_5 value: 41.6 - type: recall_at_1 value: 8.654 - type: recall_at_10 value: 23.74 - type: recall_at_100 value: 50.346999999999994 - type: recall_at_1000 value: 74.376 - type: recall_at_3 value: 14.636 - type: recall_at_5 value: 18.009 - task: type: Classification dataset: type: mteb/emotion name: MTEB EmotionClassification config: default split: test revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37 metrics: - type: accuracy value: 53.245 - type: f1 value: 48.74520523753552 - task: type: Retrieval dataset: type: fever name: MTEB FEVER config: default split: test revision: None metrics: - type: map_at_1 value: 51.729 - type: map_at_10 value: 63.904 - type: map_at_100 value: 64.363 - type: map_at_1000 value: 64.38199999999999 - type: map_at_3 value: 61.393 - type: map_at_5 value: 63.02100000000001 - type: mrr_at_1 value: 55.686 - type: mrr_at_10 value: 67.804 - type: mrr_at_100 value: 68.15299999999999 - type: mrr_at_1000 value: 68.161 - type: mrr_at_3 value: 65.494 - type: mrr_at_5 value: 67.01599999999999 - type: ndcg_at_1 value: 55.686 - type: ndcg_at_10 value: 70.025 - type: ndcg_at_100 value: 72.011 - type: ndcg_at_1000 value: 72.443 - type: ndcg_at_3 value: 65.32900000000001 - type: ndcg_at_5 value: 68.05600000000001 - type: precision_at_1 value: 55.686 - type: precision_at_10 value: 9.358 - type: precision_at_100 value: 1.05 - type: precision_at_1000 value: 0.11 - type: precision_at_3 value: 26.318 - type: precision_at_5 value: 17.321 - type: recall_at_1 value: 51.729 - type: recall_at_10 value: 85.04 - type: recall_at_100 value: 93.777 - type: recall_at_1000 value: 96.824 - type: recall_at_3 value: 72.521 - type: recall_at_5 value: 79.148 - task: type: Retrieval dataset: type: fiqa name: MTEB FiQA2018 config: default split: test revision: None metrics: - type: map_at_1 value: 23.765 - type: map_at_10 value: 39.114 - type: map_at_100 value: 40.987 - type: map_at_1000 value: 41.155 - type: map_at_3 value: 34.028000000000006 - type: map_at_5 value: 36.925000000000004 - type: mrr_at_1 value: 46.451 - type: mrr_at_10 value: 54.711 - type: mrr_at_100 value: 55.509 - type: mrr_at_1000 value: 55.535000000000004 - type: mrr_at_3 value: 52.649 - type: mrr_at_5 value: 53.729000000000006 - type: ndcg_at_1 value: 46.451 - type: ndcg_at_10 value: 46.955999999999996 - type: ndcg_at_100 value: 53.686 - type: ndcg_at_1000 value: 56.230000000000004 - type: ndcg_at_3 value: 43.374 - type: ndcg_at_5 value: 44.372 - type: precision_at_1 value: 46.451 - type: precision_at_10 value: 13.256 - type: precision_at_100 value: 2.019 - type: precision_at_1000 value: 0.247 - type: precision_at_3 value: 29.115000000000002 - type: precision_at_5 value: 21.389 - type: recall_at_1 value: 23.765 - type: recall_at_10 value: 53.452999999999996 - type: recall_at_100 value: 78.828 - type: recall_at_1000 value: 93.938 - type: recall_at_3 value: 39.023 - type: recall_at_5 value: 45.18 - task: type: Retrieval dataset: type: hotpotqa name: MTEB HotpotQA config: default split: test revision: None metrics: - type: map_at_1 value: 31.918000000000003 - type: map_at_10 value: 46.741 - type: map_at_100 value: 47.762 - type: map_at_1000 value: 47.849000000000004 - type: map_at_3 value: 43.578 - type: map_at_5 value: 45.395 - type: mrr_at_1 value: 63.834999999999994 - type: mrr_at_10 value: 71.312 - type: mrr_at_100 value: 71.695 - type: mrr_at_1000 value: 71.714 - type: mrr_at_3 value: 69.82000000000001 - type: mrr_at_5 value: 70.726 - type: ndcg_at_1 value: 63.834999999999994 - type: ndcg_at_10 value: 55.879999999999995 - type: ndcg_at_100 value: 59.723000000000006 - type: ndcg_at_1000 value: 61.49400000000001 - type: ndcg_at_3 value: 50.964 - type: ndcg_at_5 value: 53.47 - type: precision_at_1 value: 63.834999999999994 - type: precision_at_10 value: 11.845 - type: precision_at_100 value: 1.4869999999999999 - type: precision_at_1000 value: 0.172 - type: precision_at_3 value: 32.158 - type: precision_at_5 value: 21.278 - type: recall_at_1 value: 31.918000000000003 - type: recall_at_10 value: 59.223000000000006 - type: recall_at_100 value: 74.328 - type: recall_at_1000 value: 86.05000000000001 - type: recall_at_3 value: 48.238 - type: recall_at_5 value: 53.193999999999996 - task: type: Classification dataset: type: mteb/imdb name: MTEB ImdbClassification config: default split: test revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7 metrics: - type: accuracy value: 79.7896 - type: ap value: 73.65166029460288 - type: f1 value: 79.71794693711813 - task: type: Retrieval dataset: type: msmarco name: MTEB MSMARCO config: default split: dev revision: None metrics: - type: map_at_1 value: 22.239 - type: map_at_10 value: 34.542 - type: map_at_100 value: 35.717999999999996 - type: map_at_1000 value: 35.764 - type: map_at_3 value: 30.432 - type: map_at_5 value: 32.81 - type: mrr_at_1 value: 22.908 - type: mrr_at_10 value: 35.127 - type: mrr_at_100 value: 36.238 - type: mrr_at_1000 value: 36.278 - type: mrr_at_3 value: 31.076999999999998 - type: mrr_at_5 value: 33.419 - type: ndcg_at_1 value: 22.908 - type: ndcg_at_10 value: 41.607 - type: ndcg_at_100 value: 47.28 - type: ndcg_at_1000 value: 48.414 - type: ndcg_at_3 value: 33.253 - type: ndcg_at_5 value: 37.486000000000004 - type: precision_at_1 value: 22.908 - type: precision_at_10 value: 6.645 - type: precision_at_100 value: 0.9490000000000001 - type: precision_at_1000 value: 0.105 - type: precision_at_3 value: 14.130999999999998 - type: precision_at_5 value: 10.616 - type: recall_at_1 value: 22.239 - type: recall_at_10 value: 63.42 - type: recall_at_100 value: 89.696 - type: recall_at_1000 value: 98.351 - type: recall_at_3 value: 40.77 - type: recall_at_5 value: 50.93 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (en) config: en split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 95.06839945280439 - type: f1 value: 94.74276398224072 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (en) config: en split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 72.25718194254446 - type: f1 value: 53.91164489161391 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (en) config: en split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 71.47948890383323 - type: f1 value: 69.98520247230257 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (en) config: en split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 76.46603900470748 - type: f1 value: 76.44111526065399 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-p2p name: MTEB MedrxivClusteringP2P config: default split: test revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73 metrics: - type: v_measure value: 33.19106070798198 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-s2s name: MTEB MedrxivClusteringS2S config: default split: test revision: 35191c8c0dca72d8ff3efcd72aa802307d469663 metrics: - type: v_measure value: 30.78772205248094 - task: type: Reranking dataset: type: mteb/mind_small name: MTEB MindSmallReranking config: default split: test revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69 metrics: - type: map value: 31.811231631488507 - type: mrr value: 32.98200485378021 - task: type: Retrieval dataset: type: nfcorpus name: MTEB NFCorpus config: default split: test revision: None metrics: - type: map_at_1 value: 6.9 - type: map_at_10 value: 13.703000000000001 - type: map_at_100 value: 17.251 - type: map_at_1000 value: 18.795 - type: map_at_3 value: 10.366999999999999 - type: map_at_5 value: 11.675 - type: mrr_at_1 value: 47.059 - type: mrr_at_10 value: 55.816 - type: mrr_at_100 value: 56.434 - type: mrr_at_1000 value: 56.467 - type: mrr_at_3 value: 53.973000000000006 - type: mrr_at_5 value: 55.257999999999996 - type: ndcg_at_1 value: 44.737 - type: ndcg_at_10 value: 35.997 - type: ndcg_at_100 value: 33.487 - type: ndcg_at_1000 value: 41.897 - type: ndcg_at_3 value: 41.18 - type: ndcg_at_5 value: 38.721 - type: precision_at_1 value: 46.129999999999995 - type: precision_at_10 value: 26.533 - type: precision_at_100 value: 8.706 - type: precision_at_1000 value: 2.16 - type: precision_at_3 value: 38.493 - type: precision_at_5 value: 33.189 - type: recall_at_1 value: 6.9 - type: recall_at_10 value: 17.488999999999997 - type: recall_at_100 value: 34.583000000000006 - type: recall_at_1000 value: 64.942 - type: recall_at_3 value: 11.494 - type: recall_at_5 value: 13.496 - task: type: Retrieval dataset: type: nq name: MTEB NQ config: default split: test revision: None metrics: - type: map_at_1 value: 33.028999999999996 - type: map_at_10 value: 49.307 - type: map_at_100 value: 50.205 - type: map_at_1000 value: 50.23 - type: map_at_3 value: 44.782 - type: map_at_5 value: 47.599999999999994 - type: mrr_at_1 value: 37.108999999999995 - type: mrr_at_10 value: 51.742999999999995 - type: mrr_at_100 value: 52.405 - type: mrr_at_1000 value: 52.422000000000004 - type: mrr_at_3 value: 48.087999999999994 - type: mrr_at_5 value: 50.414 - type: ndcg_at_1 value: 37.08 - type: ndcg_at_10 value: 57.236 - type: ndcg_at_100 value: 60.931999999999995 - type: ndcg_at_1000 value: 61.522 - type: ndcg_at_3 value: 48.93 - type: ndcg_at_5 value: 53.561 - type: precision_at_1 value: 37.08 - type: precision_at_10 value: 9.386 - type: precision_at_100 value: 1.1480000000000001 - type: precision_at_1000 value: 0.12 - type: precision_at_3 value: 22.258 - type: precision_at_5 value: 16.025 - type: recall_at_1 value: 33.028999999999996 - type: recall_at_10 value: 78.805 - type: recall_at_100 value: 94.643 - type: recall_at_1000 value: 99.039 - type: recall_at_3 value: 57.602 - type: recall_at_5 value: 68.253 - task: type: Retrieval dataset: type: quora name: MTEB QuoraRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 71.122 - type: map_at_10 value: 85.237 - type: map_at_100 value: 85.872 - type: map_at_1000 value: 85.885 - type: map_at_3 value: 82.27499999999999 - type: map_at_5 value: 84.13199999999999 - type: mrr_at_1 value: 81.73 - type: mrr_at_10 value: 87.834 - type: mrr_at_100 value: 87.92 - type: mrr_at_1000 value: 87.921 - type: mrr_at_3 value: 86.878 - type: mrr_at_5 value: 87.512 - type: ndcg_at_1 value: 81.73 - type: ndcg_at_10 value: 88.85499999999999 - type: ndcg_at_100 value: 89.992 - type: ndcg_at_1000 value: 90.07 - type: ndcg_at_3 value: 85.997 - type: ndcg_at_5 value: 87.55199999999999 - type: precision_at_1 value: 81.73 - type: precision_at_10 value: 13.491 - type: precision_at_100 value: 1.536 - type: precision_at_1000 value: 0.157 - type: precision_at_3 value: 37.623 - type: precision_at_5 value: 24.742 - type: recall_at_1 value: 71.122 - type: recall_at_10 value: 95.935 - type: recall_at_100 value: 99.657 - type: recall_at_1000 value: 99.996 - type: recall_at_3 value: 87.80799999999999 - type: recall_at_5 value: 92.161 - task: type: Clustering dataset: type: mteb/reddit-clustering name: MTEB RedditClustering config: default split: test revision: 24640382cdbf8abc73003fb0fa6d111a705499eb metrics: - type: v_measure value: 63.490029238193756 - task: type: Clustering dataset: type: mteb/reddit-clustering-p2p name: MTEB RedditClusteringP2P config: default split: test revision: 282350215ef01743dc01b456c7f5241fa8937f16 metrics: - type: v_measure value: 65.13153408508836 - task: type: Retrieval dataset: type: scidocs name: MTEB SCIDOCS config: default split: test revision: None metrics: - type: map_at_1 value: 4.202999999999999 - type: map_at_10 value: 10.174 - type: map_at_100 value: 12.138 - type: map_at_1000 value: 12.418 - type: map_at_3 value: 7.379 - type: map_at_5 value: 8.727 - type: mrr_at_1 value: 20.7 - type: mrr_at_10 value: 30.389 - type: mrr_at_100 value: 31.566 - type: mrr_at_1000 value: 31.637999999999998 - type: mrr_at_3 value: 27.133000000000003 - type: mrr_at_5 value: 29.078 - type: ndcg_at_1 value: 20.7 - type: ndcg_at_10 value: 17.355999999999998 - type: ndcg_at_100 value: 25.151 - type: ndcg_at_1000 value: 30.37 - type: ndcg_at_3 value: 16.528000000000002 - type: ndcg_at_5 value: 14.396999999999998 - type: precision_at_1 value: 20.7 - type: precision_at_10 value: 8.98 - type: precision_at_100 value: 2.015 - type: precision_at_1000 value: 0.327 - type: precision_at_3 value: 15.367 - type: precision_at_5 value: 12.559999999999999 - type: recall_at_1 value: 4.202999999999999 - type: recall_at_10 value: 18.197 - type: recall_at_100 value: 40.903 - type: recall_at_1000 value: 66.427 - type: recall_at_3 value: 9.362 - type: recall_at_5 value: 12.747 - task: type: STS dataset: type: mteb/sickr-sts name: MTEB SICK-R config: default split: test revision: a6ea5a8cab320b040a23452cc28066d9beae2cee metrics: - type: cos_sim_spearman value: 81.69890989765257 - task: type: STS dataset: type: mteb/sts12-sts name: MTEB STS12 config: default split: test revision: a0d554a64d88156834ff5ae9920b964011b16384 metrics: - type: cos_sim_spearman value: 75.31953790551489 - task: type: STS dataset: type: mteb/sts13-sts name: MTEB STS13 config: default split: test revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca metrics: - type: cos_sim_spearman value: 87.44050861280759 - task: type: STS dataset: type: mteb/sts14-sts name: MTEB STS14 config: default split: test revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375 metrics: - type: cos_sim_spearman value: 81.86922869270393 - task: type: STS dataset: type: mteb/sts15-sts name: MTEB STS15 config: default split: test revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3 metrics: - type: cos_sim_spearman value: 88.9399170304284 - task: type: STS dataset: type: mteb/sts16-sts name: MTEB STS16 config: default split: test revision: 4d8694f8f0e0100860b497b999b3dbed754a0513 metrics: - type: cos_sim_spearman value: 85.38015314088582 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-en) config: en-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_spearman value: 90.53653527788835 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (en) config: en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_spearman value: 68.64526474250209 - task: type: STS dataset: type: mteb/stsbenchmark-sts name: MTEB STSBenchmark config: default split: test revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831 metrics: - type: cos_sim_spearman value: 86.56156983963042 - task: type: Reranking dataset: type: mteb/scidocs-reranking name: MTEB SciDocsRR config: default split: test revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab metrics: - type: map value: 79.48610254648003 - type: mrr value: 94.02481505422682 - task: type: Retrieval dataset: type: scifact name: MTEB SciFact config: default split: test revision: None metrics: - type: map_at_1 value: 48.983 - type: map_at_10 value: 59.077999999999996 - type: map_at_100 value: 59.536 - type: map_at_1000 value: 59.575 - type: map_at_3 value: 55.691 - type: map_at_5 value: 57.410000000000004 - type: mrr_at_1 value: 51.666999999999994 - type: mrr_at_10 value: 60.427 - type: mrr_at_100 value: 60.763 - type: mrr_at_1000 value: 60.79900000000001 - type: mrr_at_3 value: 57.556 - type: mrr_at_5 value: 59.089000000000006 - type: ndcg_at_1 value: 51.666999999999994 - type: ndcg_at_10 value: 64.559 - type: ndcg_at_100 value: 66.58 - type: ndcg_at_1000 value: 67.64 - type: ndcg_at_3 value: 58.287 - type: ndcg_at_5 value: 61.001000000000005 - type: precision_at_1 value: 51.666999999999994 - type: precision_at_10 value: 9.067 - type: precision_at_100 value: 1.0170000000000001 - type: precision_at_1000 value: 0.11100000000000002 - type: precision_at_3 value: 23.0 - type: precision_at_5 value: 15.6 - type: recall_at_1 value: 48.983 - type: recall_at_10 value: 80.289 - type: recall_at_100 value: 89.43299999999999 - type: recall_at_1000 value: 97.667 - type: recall_at_3 value: 62.978 - type: recall_at_5 value: 69.872 - task: type: PairClassification dataset: type: mteb/sprintduplicatequestions-pairclassification name: MTEB SprintDuplicateQuestions config: default split: test revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46 metrics: - type: cos_sim_accuracy value: 99.79009900990098 - type: cos_sim_ap value: 94.94115052608419 - type: cos_sim_f1 value: 89.1260162601626 - type: cos_sim_precision value: 90.599173553719 - type: cos_sim_recall value: 87.7 - type: dot_accuracy value: 99.79009900990098 - type: dot_ap value: 94.94115052608419 - type: dot_f1 value: 89.1260162601626 - type: dot_precision value: 90.599173553719 - type: dot_recall value: 87.7 - type: euclidean_accuracy value: 99.79009900990098 - type: euclidean_ap value: 94.94115052608419 - type: euclidean_f1 value: 89.1260162601626 - type: euclidean_precision value: 90.599173553719 - type: euclidean_recall value: 87.7 - type: manhattan_accuracy value: 99.7940594059406 - type: manhattan_ap value: 94.95271414642431 - type: manhattan_f1 value: 89.24508790072387 - type: manhattan_precision value: 92.3982869379015 - type: manhattan_recall value: 86.3 - type: max_accuracy value: 99.7940594059406 - type: max_ap value: 94.95271414642431 - type: max_f1 value: 89.24508790072387 - task: type: Clustering dataset: type: mteb/stackexchange-clustering name: MTEB StackExchangeClustering config: default split: test revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259 metrics: - type: v_measure value: 68.43866571935851 - task: type: Clustering dataset: type: mteb/stackexchange-clustering-p2p name: MTEB StackExchangeClusteringP2P config: default split: test revision: 815ca46b2622cec33ccafc3735d572c266efdb44 metrics: - type: v_measure value: 35.16579026551532 - task: type: Reranking dataset: type: mteb/stackoverflowdupquestions-reranking name: MTEB StackOverflowDupQuestions config: default split: test revision: e185fbe320c72810689fc5848eb6114e1ef5ec69 metrics: - type: map value: 52.518952473513934 - type: mrr value: 53.292457134368895 - task: type: Summarization dataset: type: mteb/summeval name: MTEB SummEval config: default split: test revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c metrics: - type: cos_sim_pearson value: 31.12529588316604 - type: cos_sim_spearman value: 32.31662126895294 - type: dot_pearson value: 31.125303796647056 - type: dot_spearman value: 32.31662126895294 - task: type: Retrieval dataset: type: trec-covid name: MTEB TRECCOVID config: default split: test revision: None metrics: - type: map_at_1 value: 0.219 - type: map_at_10 value: 1.7469999999999999 - type: map_at_100 value: 10.177999999999999 - type: map_at_1000 value: 26.108999999999998 - type: map_at_3 value: 0.64 - type: map_at_5 value: 0.968 - type: mrr_at_1 value: 82.0 - type: mrr_at_10 value: 89.067 - type: mrr_at_100 value: 89.067 - type: mrr_at_1000 value: 89.067 - type: mrr_at_3 value: 88.333 - type: mrr_at_5 value: 88.73299999999999 - type: ndcg_at_1 value: 78.0 - type: ndcg_at_10 value: 71.398 - type: ndcg_at_100 value: 55.574999999999996 - type: ndcg_at_1000 value: 51.771 - type: ndcg_at_3 value: 77.765 - type: ndcg_at_5 value: 73.614 - type: precision_at_1 value: 82.0 - type: precision_at_10 value: 75.4 - type: precision_at_100 value: 58.040000000000006 - type: precision_at_1000 value: 23.516000000000002 - type: precision_at_3 value: 84.0 - type: precision_at_5 value: 78.4 - type: recall_at_1 value: 0.219 - type: recall_at_10 value: 1.958 - type: recall_at_100 value: 13.797999999999998 - type: recall_at_1000 value: 49.881 - type: recall_at_3 value: 0.672 - type: recall_at_5 value: 1.0370000000000001 - task: type: Retrieval dataset: type: webis-touche2020 name: MTEB Touche2020 config: default split: test revision: None metrics: - type: map_at_1 value: 1.8610000000000002 - type: map_at_10 value: 8.705 - type: map_at_100 value: 15.164 - type: map_at_1000 value: 16.78 - type: map_at_3 value: 4.346 - type: map_at_5 value: 6.151 - type: mrr_at_1 value: 22.448999999999998 - type: mrr_at_10 value: 41.556 - type: mrr_at_100 value: 42.484 - type: mrr_at_1000 value: 42.494 - type: mrr_at_3 value: 37.755 - type: mrr_at_5 value: 40.102 - type: ndcg_at_1 value: 21.429000000000002 - type: ndcg_at_10 value: 23.439 - type: ndcg_at_100 value: 36.948 - type: ndcg_at_1000 value: 48.408 - type: ndcg_at_3 value: 22.261 - type: ndcg_at_5 value: 23.085 - type: precision_at_1 value: 22.448999999999998 - type: precision_at_10 value: 21.633 - type: precision_at_100 value: 8.02 - type: precision_at_1000 value: 1.5939999999999999 - type: precision_at_3 value: 23.810000000000002 - type: precision_at_5 value: 24.490000000000002 - type: recall_at_1 value: 1.8610000000000002 - type: recall_at_10 value: 15.876000000000001 - type: recall_at_100 value: 50.300999999999995 - type: recall_at_1000 value: 86.098 - type: recall_at_3 value: 5.892 - type: recall_at_5 value: 9.443 - task: type: Classification dataset: type: mteb/toxic_conversations_50k name: MTEB ToxicConversationsClassification config: default split: test revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c metrics: - type: accuracy value: 70.3264 - type: ap value: 13.249577616243794 - type: f1 value: 53.621518367695685 - task: type: Classification dataset: type: mteb/tweet_sentiment_extraction name: MTEB TweetSentimentExtractionClassification config: default split: test revision: d604517c81ca91fe16a244d1248fc021f9ecee7a metrics: - type: accuracy value: 61.57611771363894 - type: f1 value: 61.79797478568639 - task: type: Clustering dataset: type: mteb/twentynewsgroups-clustering name: MTEB TwentyNewsgroupsClustering config: default split: test revision: 6125ec4e24fa026cec8a478383ee943acfbd5449 metrics: - type: v_measure value: 53.38315344479284 - task: type: PairClassification dataset: type: mteb/twittersemeval2015-pairclassification name: MTEB TwitterSemEval2015 config: default split: test revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1 metrics: - type: cos_sim_accuracy value: 87.55438993860642 - type: cos_sim_ap value: 77.98702600017738 - type: cos_sim_f1 value: 71.94971653931476 - type: cos_sim_precision value: 67.50693802035153 - type: cos_sim_recall value: 77.01846965699208 - type: dot_accuracy value: 87.55438993860642 - type: dot_ap value: 77.98702925907986 - type: dot_f1 value: 71.94971653931476 - type: dot_precision value: 67.50693802035153 - type: dot_recall value: 77.01846965699208 - type: euclidean_accuracy value: 87.55438993860642 - type: euclidean_ap value: 77.98702951957925 - type: euclidean_f1 value: 71.94971653931476 - type: euclidean_precision value: 67.50693802035153 - type: euclidean_recall value: 77.01846965699208 - type: manhattan_accuracy value: 87.54246885617214 - type: manhattan_ap value: 77.95531413902947 - type: manhattan_f1 value: 71.93605683836589 - type: manhattan_precision value: 69.28152492668622 - type: manhattan_recall value: 74.80211081794195 - type: max_accuracy value: 87.55438993860642 - type: max_ap value: 77.98702951957925 - type: max_f1 value: 71.94971653931476 - task: type: PairClassification dataset: type: mteb/twitterurlcorpus-pairclassification name: MTEB TwitterURLCorpus config: default split: test revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf metrics: - type: cos_sim_accuracy value: 89.47296930182016 - type: cos_sim_ap value: 86.92853616302108 - type: cos_sim_f1 value: 79.35138351681047 - type: cos_sim_precision value: 76.74820143884892 - type: cos_sim_recall value: 82.13735756082538 - type: dot_accuracy value: 89.47296930182016 - type: dot_ap value: 86.92854339601595 - type: dot_f1 value: 79.35138351681047 - type: dot_precision value: 76.74820143884892 - type: dot_recall value: 82.13735756082538 - type: euclidean_accuracy value: 89.47296930182016 - type: euclidean_ap value: 86.92854191061649 - type: euclidean_f1 value: 79.35138351681047 - type: euclidean_precision value: 76.74820143884892 - type: euclidean_recall value: 82.13735756082538 - type: manhattan_accuracy value: 89.47685023479644 - type: manhattan_ap value: 86.90063722679578 - type: manhattan_f1 value: 79.30753865502702 - type: manhattan_precision value: 76.32066068631639 - type: manhattan_recall value: 82.53772713273791 - type: max_accuracy value: 89.47685023479644 - type: max_ap value: 86.92854339601595 - type: max_f1 value: 79.35138351681047 --- # hkunlp/instructor-xl We introduce **Instructor**👨‍🏫, an instruction-finetuned text embedding model that can generate text embeddings tailored to any task (e.g., classification, retrieval, clustering, text evaluation, etc.) and domains (e.g., science, finance, etc.) ***by simply providing the task instruction, without any finetuning***. Instructor👨‍ achieves sota on 70 diverse embedding tasks! The model is easy to use with **our customized** `sentence-transformer` library. For more details, check out [our paper](https://arxiv.org/abs/2212.09741) and [project page](https://instructor-embedding.github.io/)! **************************** **Updates** **************************** * 01/21: We released a new [checkpoint](https://huggingface.co/hkunlp/instructor-xl) trained with hard negatives, which gives better performance. * 12/21: We released our [paper](https://arxiv.org/abs/2212.09741), [code](https://github.com/HKUNLP/instructor-embedding), [checkpoint](https://huggingface.co/hkunlp/instructor-xl) and [project page](https://instructor-embedding.github.io/)! Check them out! ## Quick start <hr /> ## Installation ```bash pip install InstructorEmbedding ``` ## Compute your customized embeddings Then you can use the model like this to calculate domain-specific and task-aware embeddings: ```python from InstructorEmbedding import INSTRUCTOR model = INSTRUCTOR('hkunlp/instructor-xl') sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments" instruction = "Represent the Science title:" embeddings = model.encode([[instruction,sentence]]) print(embeddings) ``` ## Use cases <hr /> ## Calculate embeddings for your customized texts If you want to calculate customized embeddings for specific sentences, you may follow the unified template to write instructions: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Represent the `domain` `text_type` for `task_objective`: * `domain` is optional, and it specifies the domain of the text, e.g., science, finance, medicine, etc. * `text_type` is required, and it specifies the encoding unit, e.g., sentence, document, paragraph, etc. * `task_objective` is optional, and it specifies the objective of embedding, e.g., retrieve a document, classify the sentence, etc. ## Calculate Sentence similarities You can further use the model to compute similarities between two groups of sentences, with **customized embeddings**. ```python from sklearn.metrics.pairwise import cosine_similarity sentences_a = [['Represent the Science sentence: ','Parton energy loss in QCD matter'], ['Represent the Financial statement: ','The Federal Reserve on Wednesday raised its benchmark interest rate.']] sentences_b = [['Represent the Science sentence: ','The Chiral Phase Transition in Dissipative Dynamics'], ['Represent the Financial statement: ','The funds rose less than 0.5 per cent on Friday']] embeddings_a = model.encode(sentences_a) embeddings_b = model.encode(sentences_b) similarities = cosine_similarity(embeddings_a,embeddings_b) print(similarities) ``` ## Information Retrieval You can also use **customized embeddings** for information retrieval. ```python import numpy as np from sklearn.metrics.pairwise import cosine_similarity query = [['Represent the Wikipedia question for retrieving supporting documents: ','where is the food stored in a yam plant']] corpus = [['Represent the Wikipedia document for retrieval: ','Capitalism has been dominant in the Western world since the end of feudalism, but most feel[who?] that the term "mixed economies" more precisely describes most contemporary economies, due to their containing both private-owned and state-owned enterprises. In capitalism, prices determine the demand-supply scale. For example, higher demand for certain goods and services lead to higher prices and lower demand for certain goods lead to lower prices.'], ['Represent the Wikipedia document for retrieval: ',"The disparate impact theory is especially controversial under the Fair Housing Act because the Act regulates many activities relating to housing, insurance, and mortgage loans—and some scholars have argued that the theory's use under the Fair Housing Act, combined with extensions of the Community Reinvestment Act, contributed to rise of sub-prime lending and the crash of the U.S. housing market and ensuing global economic recession"], ['Represent the Wikipedia document for retrieval: ','Disparate impact in United States labor law refers to practices in employment, housing, and other areas that adversely affect one group of people of a protected characteristic more than another, even though rules applied by employers or landlords are formally neutral. Although the protected classes vary by statute, most federal civil rights laws protect based on race, color, religion, national origin, and sex as protected traits, and some laws include disability status and other traits as well.']] query_embeddings = model.encode(query) corpus_embeddings = model.encode(corpus) similarities = cosine_similarity(query_embeddings,corpus_embeddings) retrieved_doc_id = np.argmax(similarities) print(retrieved_doc_id) ``` ## Clustering Use **customized embeddings** for clustering texts in groups. ```python import sklearn.cluster sentences = [['Represent the Medicine sentence for clustering: ','Dynamical Scalar Degree of Freedom in Horava-Lifshitz Gravity'], ['Represent the Medicine sentence for clustering: ','Comparison of Atmospheric Neutrino Flux Calculations at Low Energies'], ['Represent the Medicine sentence for clustering: ','Fermion Bags in the Massive Gross-Neveu Model'], ['Represent the Medicine sentence for clustering: ',"QCD corrections to Associated t-tbar-H production at the Tevatron"], ['Represent the Medicine sentence for clustering: ','A New Analysis of the R Measurements: Resonance Parameters of the Higher, Vector States of Charmonium']] embeddings = model.encode(sentences) clustering_model = sklearn.cluster.MiniBatchKMeans(n_clusters=2) clustering_model.fit(embeddings) cluster_assignment = clustering_model.labels_ print(cluster_assignment) ```
[ -0.170375794172287, -0.9906371831893921, 0.4622364938259125, 0.01337502058595419, -0.0270191952586174, -0.1919613927602768, -0.22793306410312653, -0.1023893728852272, 0.24814483523368835, 0.2520110011100769, -0.2326299399137497, -0.770783543586731, -0.43840292096138, 0.006482744123786688, -0.30530455708503723, 1.0243204832077026, -0.08361627161502838, 0.16481217741966248, -0.564880907535553, -0.11763621866703033, -0.2872951924800873, -0.5007097721099854, -0.1604980081319809, -0.3113574981689453, 0.3386424481868744, 0.2238127440214157, 0.5385645031929016, 0.6957957744598389, 0.3586269021034241, 0.31616029143333435, -0.04431091994047165, -0.11532595753669739, -0.3499916195869446, -0.21533998847007751, -0.11535696685314178, -0.5613870620727539, -0.19699087738990784, -0.00785896461457014, 0.681751012802124, 0.7109599709510803, -0.06422039121389389, 0.06557303667068481, 0.2619202435016632, 0.313821405172348, -0.5021786093711853, 0.2708264887332916, -0.3381884694099426, 0.13082435727119446, -0.020927317440509796, 0.008261654525995255, -0.18458372354507446, -0.2964347004890442, 0.21888568997383118, -0.7024889588356018, 0.13531732559204102, 0.20936116576194763, 0.9262714982032776, 0.3800136148929596, -0.4429903030395508, -0.48330092430114746, -0.06207593157887459, 1.0228632688522339, -0.761920154094696, 0.3429727554321289, 0.39532214403152466, -0.11066321283578873, -0.2731551229953766, -0.859340488910675, -0.6485913991928101, -0.2193446010351181, -0.3124212324619293, 0.14525531232357025, -0.05207892879843712, -0.008029041811823845, 0.23872245848178864, 0.45218852162361145, -0.6168359518051147, 0.05155789107084274, -0.40232881903648376, -0.1779160499572754, 0.46102091670036316, 0.2639501690864563, 0.4366666376590729, -0.4534148871898651, -0.3558119237422943, -0.2943953275680542, -0.36501020193099976, 0.16050568222999573, 0.2953569293022156, 0.1507916897535324, -0.3695150911808014, 0.7928507328033447, -0.0027511476073414087, 0.4797852337360382, -0.0036889491602778435, -0.2351648211479187, 0.4789241850376129, -0.3467608094215393, -0.12221867591142654, 0.044008512049913406, 0.8025009036064148, 0.40095990896224976, -0.13736523687839508, 0.016636937856674194, 0.05168433487415314, 0.1563669741153717, 0.04320536181330681, -0.6323969960212708, -0.2952384054660797, 0.23097766935825348, -0.5565615892410278, -0.34072381258010864, 0.10720470547676086, -0.7803673148155212, -0.13133272528648376, -0.11802994459867477, 0.6969051361083984, -0.5493028163909912, 0.09919250011444092, 0.19404391944408417, -0.33443543314933777, -0.037622712552547455, 0.026050450280308723, -0.7542946934700012, 0.37804898619651794, 0.6747589707374573, 0.7955132126808167, -0.12384478747844696, -0.42720165848731995, -0.13102644681930542, 0.10328637808561325, 0.09062530100345612, 0.4639088809490204, -0.6744359731674194, -0.11932530254125595, 0.10410058498382568, 0.12055708467960358, -0.20048169791698456, -0.3130086064338684, 0.2581242322921753, -0.09442780911922455, 0.4805983603000641, -0.043554093688726425, -0.9593177437782288, -0.4796637296676636, 0.23869499564170837, -0.45876458287239075, 1.093979001045227, 0.19053915143013, -0.9332677125930786, -0.004434130620211363, -0.7841403484344482, -0.3928355276584625, -0.2716005742549896, -0.2392592579126358, -0.4327017664909363, -0.23950563371181488, 0.02160620130598545, 0.7014135122299194, -0.037367500364780426, 0.127151757478714, -0.33612319827079773, -0.34932446479797363, 0.30907538533210754, 0.07915060222148895, 0.9106994271278381, 0.14719316363334656, -0.3995721638202667, 0.0336141362786293, -0.5745511054992676, -0.1443406045436859, 0.11065705120563507, -0.46670281887054443, -0.489948570728302, 0.043146852403879166, 0.18535694479942322, -0.1719384640455246, 0.4682115316390991, -0.58319491147995, 0.31614840030670166, -0.284389466047287, 0.681411862373352, 0.646433413028717, 0.1193455383181572, 0.44685909152030945, -0.36477455496788025, 0.33412033319473267, 0.06113719195127487, -0.020438678562641144, -0.14239966869354248, -0.5865694880485535, -0.6189017295837402, -0.2934683859348297, 0.3445279598236084, 0.5852826833724976, -0.5128592252731323, 0.6148673892021179, -0.10332179069519043, -0.6314873099327087, -0.5353817343711853, -0.03623425215482712, 0.37639376521110535, 0.27411413192749023, 0.6233353614807129, -0.10763061046600342, -0.5920993685722351, -0.6641146540641785, -0.3151983916759491, 0.09595208615064621, 0.2037493735551834, 0.34317150712013245, 0.8055978417396545, -0.47287657856941223, 0.7261783480644226, -0.9470347762107849, -0.3041628301143646, -0.20559638738632202, -0.13802693784236908, 0.23081880807876587, 0.7784358263015747, 0.6911748051643372, -0.744342565536499, -0.6140565276145935, -0.10308273881673813, -0.624674379825592, 0.22023321688175201, -0.12925535440444946, -0.10059742629528046, -0.00649895379319787, 0.5045776963233948, -0.5188683271408081, 0.3738938271999359, 0.33379149436950684, -0.3973146378993988, 0.5028221607208252, -0.2856220304965973, 0.037695955485105515, -1.3506598472595215, -0.024303361773490906, 0.21214251220226288, -0.11588019877672195, -0.4892628490924835, 0.22535055875778198, -0.09789768606424332, 0.02104327268898487, -0.338863343000412, 0.544335663318634, -0.28305014967918396, 0.15680991113185883, 0.013328188098967075, 0.2627217173576355, -0.11690191179513931, 0.6015650033950806, -0.14097344875335693, 0.42758283019065857, 0.6293482780456543, -0.6798624992370605, 0.33025187253952026, 0.5493747591972351, -0.39597514271736145, 0.2674001455307007, -0.5488102436065674, -0.051288239657878876, 0.02116529829800129, 0.27638188004493713, -0.6465960144996643, -0.15713876485824585, 0.3583153486251831, -0.39842990040779114, 0.1662609726190567, 0.09935754537582397, -0.4461468756198883, -0.3781760632991791, -0.5317674875259399, 0.2711062431335449, 0.5702797770500183, -0.39591291546821594, 0.18407480418682098, 0.5565031170845032, -0.011973013170063496, -0.7056756019592285, -0.6597347259521484, -0.164570614695549, -0.32253873348236084, -0.2791498303413391, 0.5584920644760132, -0.20171557366847992, -0.05901092290878296, 0.45484837889671326, 0.07389817386865616, -0.2105427235364914, 0.1764732450246811, 0.2966354787349701, 0.20126409828662872, -0.1679701805114746, 0.14510369300842285, 0.22039435803890228, 0.027903249487280846, -0.026318717747926712, -0.30053970217704773, 0.60533607006073, -0.2373242825269699, -0.2288362681865692, -0.483584463596344, 0.3940870463848114, 0.19485433399677277, 0.08859927952289581, 0.6502329111099243, 0.8328153491020203, -0.5622564554214478, 0.06892673671245575, -0.3088255524635315, -0.24279256165027618, -0.4717026650905609, 0.6847443580627441, -0.20498500764369965, -1.0431312322616577, 0.26307129859924316, 0.034450750797986984, 0.08291292190551758, 0.630437433719635, 0.5295853018760681, -0.13536611199378967, 0.7651465535163879, 0.7439812421798706, -0.127625972032547, 0.5510058403015137, -0.5465476512908936, 0.3002946078777313, -0.7643378376960754, -0.42560186982154846, -0.5233989357948303, -0.37147483229637146, -0.7810055613517761, -0.5220683813095093, 0.16131992638111115, 0.2732989490032196, -0.24744701385498047, 0.5705578923225403, -0.5425184369087219, 0.2634211778640747, 0.6303575038909912, 0.17645515501499176, -0.056676022708415985, 0.16320669651031494, -0.3301375210285187, -0.14890603721141815, -0.7972729206085205, -0.5443932414054871, 1.1329091787338257, 0.35751160979270935, 0.7434285879135132, -0.2097167670726776, 0.9557256698608398, 0.24094374477863312, 0.032594140619039536, -0.7274579405784607, 0.5237215161323547, -0.37300679087638855, -0.41750815510749817, -0.15404662489891052, -0.44065043330192566, -1.0377227067947388, 0.2694890797138214, -0.41891342401504517, -0.782106876373291, 0.14367659389972687, -0.021856363862752914, -0.28436610102653503, 0.44590651988983154, -0.4927845001220703, 1.026711106300354, -0.08470327407121658, -0.18099291622638702, -0.48366039991378784, -0.37977200746536255, 0.03713500499725342, 0.06553459167480469, 0.2813683748245239, -0.04407519847154617, -0.07299159467220306, 1.0056381225585938, -0.31667211651802063, 0.9505504965782166, -0.1476995199918747, 0.2837485074996948, 0.38962215185165405, -0.32445254921913147, 0.16402865946292877, -0.02535286732017994, -0.054056644439697266, 0.0928986519575119, 0.36263325810432434, -0.5156598687171936, -0.47731730341911316, 0.8819800615310669, -0.904212236404419, -0.42064550518989563, -0.422393798828125, -0.6966767907142639, 0.28566375374794006, 0.21747130155563354, 0.2523422837257385, 0.33090659976005554, -0.2613885998725891, 0.3884897530078888, 0.3559265732765198, -0.45465007424354553, 0.2875646650791168, 0.1527843326330185, -0.09570430964231491, -0.48986294865608215, 1.081705093383789, 0.13273970782756805, -0.06704245507717133, 0.5253938436508179, 0.3047628402709961, -0.2395530790090561, -0.2190985083580017, -0.08198496699333191, 0.3579239845275879, -0.6258783936500549, -0.13682353496551514, -0.9948177337646484, -0.1693466305732727, -0.6898218393325806, -0.35991087555885315, -0.14256738126277924, -0.6155014038085938, -0.5715905427932739, -0.10235228389501572, 0.3591746389865875, 0.9224417805671692, -0.1811976432800293, 0.1816946119070053, -0.6615434288978577, 0.17885516583919525, 0.026335949078202248, 0.02052178420126438, 0.09863869100809097, -0.29155972599983215, -0.6436913013458252, 0.1201779842376709, -0.5759734511375427, -0.7861614227294922, 0.3320004642009735, 0.1999417394399643, 0.8447942733764648, 0.4736756980419159, 0.13171978294849396, 0.6688582897186279, -0.5757914185523987, 0.9764209985733032, 0.3184492588043213, -0.9215570688247681, 0.4683319926261902, 0.03281404823064804, -0.15867002308368683, 0.33107468485832214, 0.6940342783927917, -0.5103269815444946, -0.4762364327907562, -0.7004435062408447, -0.8982670903205872, 0.4769417643547058, 0.15712209045886993, 0.3162088394165039, -0.1679861694574356, 0.4768034517765045, 0.21644791960716248, 0.1807565540075302, -0.9411786794662476, -0.5345672965049744, -0.36250120401382446, -0.6329805254936218, -0.0866473838686943, -0.11675887554883957, -0.02007884718477726, -0.49265825748443604, 0.6034913659095764, 0.0535883828997612, 0.4918314516544342, 0.2937023639678955, -0.32010310888290405, 0.23672613501548767, 0.25239068269729614, 0.48769065737724304, 0.3027949929237366, -0.18816938996315002, 0.2306802123785019, 0.3466656506061554, -0.607132613658905, 0.09365600347518921, 0.13848724961280823, -0.08799721300601959, 0.09733768552541733, 0.3515750467777252, 0.6204369068145752, 0.42201417684555054, -0.5864035487174988, 0.573287308216095, 0.18385754525661469, -0.26832616329193115, -0.37278294563293457, 0.22260351479053497, 0.052810363471508026, 0.42881453037261963, 0.2545038163661957, -0.029222015291452408, 0.16267408430576324, -0.6913769841194153, 0.20064523816108704, 0.1535334438085556, -0.4521690011024475, -0.35147765278816223, 0.5908161401748657, -0.0006922359461896122, -0.18798361718654633, 0.4288417100906372, -0.2597052752971649, -0.8149997591972351, 0.6972611546516418, 0.8145710229873657, 0.6575644612312317, -0.011504814960062504, 0.21937938034534454, 0.6372472643852234, 0.16819806396961212, -0.10221845656633377, 0.31490710377693176, 0.05081775039434433, -0.6325019001960754, -0.04662148281931877, -0.5645707845687866, -0.2522903084754944, 0.001263999380171299, -0.729035496711731, 0.15444698929786682, -0.4380711317062378, -0.12972159683704376, -0.09276680648326874, 0.18064558506011963, -0.7516933679580688, 0.06825008243322372, -0.11823207139968872, 0.7228695154190063, -0.8825084567070007, 0.7817946672439575, 1.0898550748825073, -0.47295528650283813, -0.5604089498519897, 0.07359331101179123, -0.1573181450366974, -0.6216838359832764, 0.435989648103714, 0.43104106187820435, 0.41662025451660156, 0.09319160878658295, -0.5520806908607483, -0.7528812885284424, 1.31694495677948, 0.07276170700788498, -0.3638504445552826, -0.0800204873085022, 0.14780408143997192, 0.4337884783744812, -0.579674482345581, 0.0838601142168045, 0.361626535654068, 0.45956599712371826, -0.5293095707893372, -0.5801032185554504, 0.3720039427280426, -0.25369763374328613, -0.1512283980846405, -0.1667136698961258, -0.5928837656974792, 1.0297056436538696, -0.3340737521648407, -0.05197668448090553, 0.19096653163433075, 0.617138683795929, 0.11760029941797256, 0.4930054247379303, 0.4858506917953491, 0.8864157795906067, 0.8812540769577026, -0.03142789378762245, 1.1178977489471436, -0.4608992338180542, 0.6545482873916626, 0.8096339106559753, 0.16991163790225983, 0.9562904238700867, 0.3410848379135132, -0.37009555101394653, 0.8117505311965942, 0.7467900514602661, -0.39845263957977295, 0.6593363881111145, 0.23145301640033722, -0.024703633040189743, -0.052512604743242264, -0.09193643182516098, -0.6814510822296143, 0.273993581533432, 0.37773388624191284, -0.30821800231933594, 0.04401842877268791, 0.19774776697158813, 0.10049384087324142, 0.08580612391233444, -0.13974450528621674, 0.6238322854042053, 0.3020324110984802, -0.272539883852005, 0.3555523455142975, 0.15139855444431305, 0.9139701724052429, -0.39157915115356445, -0.07461445778608322, 0.05219385772943497, 0.2447798252105713, -0.40692439675331116, -0.7556182146072388, 0.11096426844596863, -0.08231794834136963, -0.17611518502235413, 0.019505420699715614, 0.5415547490119934, -0.6486946940422058, -0.3475063145160675, 0.39558231830596924, 0.2567751407623291, 0.3785899579524994, 0.15642304718494415, -0.8801798224449158, -0.14255502820014954, 0.153017058968544, -0.21189090609550476, 0.3566017150878906, 0.2726854383945465, 0.18760466575622559, 0.4302864074707031, 0.6573848128318787, -0.13101379573345184, 0.13105356693267822, -0.11327172815799713, 0.8465476036071777, -0.8414838910102844, -0.6561278700828552, -0.7163045406341553, 0.4705418646335602, -0.052756913006305695, -0.2136509120464325, 0.7329233288764954, 0.8151574730873108, 0.995483934879303, -0.18289309740066528, 0.7697557806968689, -0.2051195353269577, 0.2934681475162506, -0.47387030720710754, 0.8544705510139465, -0.846258282661438, -0.0795726478099823, -0.3969641923904419, -0.8927253484725952, -0.18201428651809692, 0.9898829460144043, -0.25218483805656433, -0.09129036962985992, 0.845310389995575, 0.7495923042297363, -0.09798034280538559, -0.13014854490756989, 0.1531188189983368, 0.3367454409599304, 0.16064302623271942, 0.49022403359413147, 0.6272852420806885, -0.6495439410209656, 0.5901578664779663, -0.5356628894805908, -0.04929359257221222, -0.43674173951148987, -0.6388296484947205, -0.9499176740646362, -0.7825760245323181, -0.5801638960838318, -0.377714604139328, -0.0025114913005381823, 0.9593621492385864, 0.43775126338005066, -0.9163011312484741, -0.24900712072849274, 0.057428695261478424, 0.2950829863548279, -0.34635433554649353, -0.30532434582710266, 0.6162083745002747, -0.28423869609832764, -0.7359957098960876, 0.21101988852024078, -0.05893104150891304, 0.15970662236213684, -0.10471479594707489, -0.15407294034957886, -0.4591239094734192, -0.0697900801897049, 0.505124568939209, 0.023120392113924026, -0.7868953347206116, -0.32623058557510376, -0.05987889692187309, -0.3169691264629364, 0.0219161007553339, 0.5825598239898682, -0.46296778321266174, 0.1308910995721817, 0.542011559009552, 0.6685686111450195, 0.4884962737560272, -0.2625628709793091, 0.29293733835220337, -0.5554831027984619, 0.15166454017162323, 0.0915146991610527, 0.5144124627113342, 0.18417106568813324, -0.3991345167160034, 0.49797916412353516, 0.34446457028388977, -0.5519315600395203, -0.8208458423614502, -0.11168153584003448, -0.9864770770072937, -0.47251608967781067, 0.8277177214622498, -0.5110969543457031, -0.33933547139167786, -0.018097039312124252, -0.22688964009284973, 0.48896118998527527, -0.41543906927108765, 0.7574155330657959, 0.5804755091667175, 0.009265169501304626, 0.06435739994049072, -0.4907676577568054, 0.27381518483161926, 0.5263675451278687, -0.623779296875, -0.4308495819568634, 0.22804242372512817, 0.5137985944747925, 0.3209613859653473, 0.295626163482666, 0.04334726184606552, 0.16174572706222534, 0.18118038773536682, 0.05986599251627922, -0.07817810773849487, 0.008023896254599094, -0.16629107296466827, 0.11725892126560211, -0.402498722076416, -0.3292253911495209 ]
princeton-nlp/sup-simcse-roberta-base
princeton-nlp
"2021-05-20T19:33:45Z"
21,333
3
transformers
[ "transformers", "pytorch", "jax", "roberta", "feature-extraction", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
digiplay/majicMIX_realistic_v6
digiplay
"2023-08-03T22:18:24Z"
21,318
35
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:other", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-06-12T21:16:15Z"
--- license: other tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true --- Model info : https://civitai.com/models/43331?modelVersionId=94640
[ -0.34598103165626526, 0.4418463706970215, 0.5925062298774719, 0.46712204813957214, -0.48830145597457886, -0.2687188982963562, 0.5867317318916321, -0.14595793187618256, 0.25784608721733093, 0.448330819606781, -0.7661880850791931, 0.006685848813503981, 0.19760645925998688, -0.49119311571121216, -0.33544570207595825, 0.5891537070274353, 0.5453135967254639, 0.6230753064155579, 0.06100476533174515, 0.1275404840707779, -0.2929055392742157, -0.20383122563362122, -0.8022981882095337, 0.11036194860935211, 0.49361327290534973, 0.7133753895759583, 0.5261990427970886, 0.29408004879951477, 0.7833437323570251, 0.28656163811683655, -0.10179515928030014, -0.017970174551010132, -0.25798290967941284, -0.016776155680418015, 0.09453781694173813, -0.5936599373817444, -0.9576255679130554, -0.44074615836143494, 0.4240743815898895, 0.6551663279533386, 0.015858422964811325, 0.46543335914611816, -0.09557570517063141, 0.31242233514785767, -0.74628084897995, 0.4095364212989807, 0.04479426145553589, 0.09093327075242996, -0.5714682340621948, -0.2731512486934662, -0.464662104845047, -0.46616998314857483, -0.08732108026742935, -0.5270407795906067, 0.35080742835998535, -0.15567970275878906, 1.3949474096298218, 0.4747054874897003, -0.4485085606575012, -0.3619273006916046, -0.6724113821983337, 0.27530917525291443, -0.5883800387382507, 0.8938056826591492, 0.5448304414749146, 0.5086231827735901, -0.4534023106098175, -0.4450328052043915, -0.05884460359811783, 0.20386648178100586, -0.04062141850590706, 0.08407078683376312, -0.19361019134521484, -0.0765879899263382, 0.3581538200378418, 0.7791367769241333, -0.7687018513679504, 0.04240933805704117, -1.1604703664779663, 0.08015544712543488, 0.48226165771484375, -0.1689448356628418, 0.17391930520534515, -0.1761283576488495, -0.4461019039154053, 0.4046616852283478, -0.4747440814971924, -0.2592948377132416, 0.4764161705970764, 0.11218487471342087, -0.5172601938247681, 0.4262511134147644, -0.3415374159812927, 1.0713469982147217, 0.23780794441699982, 0.2885810434818268, 0.2259523868560791, -0.4850008487701416, -0.83805912733078, -0.09157586097717285, -0.046469807624816895, 0.49266475439071655, -0.026290982961654663, -0.031012387946248055, 0.20547740161418915, -0.7512158155441284, 0.20457394421100616, -0.9623947739601135, -0.32561439275741577, 0.31728407740592957, -0.49118465185165405, -0.4075455665588379, 0.685505747795105, -0.7695184350013733, -0.3086378872394562, 0.44612714648246765, 0.13933399319648743, -0.18444371223449707, -0.5200014114379883, 0.19310306012630463, -0.2936854064464569, 0.4317491948604584, 0.48566362261772156, -1.0138269662857056, 0.4953323304653168, 0.3233669102191925, 0.8654114603996277, 0.2868727743625641, 0.19138994812965393, -0.12828736007213593, 0.15927985310554504, 0.030484497547149658, 0.4105863571166992, -0.13964122533798218, -0.7590735554695129, 0.2616927921772003, 0.42545709013938904, -0.1424625664949417, -0.6533657312393188, 1.102650761604309, -1.1844942569732666, -0.04304392263293266, -0.4037187695503235, -0.345822811126709, -0.4698236882686615, 0.3382258415222168, -1.2193666696548462, 0.7611799240112305, -0.28055205941200256, -0.9302759766578674, -0.0457729771733284, -0.7690199017524719, -0.37960800528526306, 0.3298850953578949, 0.37007761001586914, -0.5331094264984131, 0.5006090998649597, -0.7958471179008484, 0.0862380787730217, -0.42548853158950806, 0.0663912370800972, -0.4653026759624481, -0.23334546387195587, 0.12634296715259552, -0.5323581695556641, 1.3077186346054077, 0.6958696246147156, 0.18974797427654266, 0.2078525722026825, -1.1709531545639038, -0.19981376826763153, 0.40112537145614624, -0.09495245665311813, 0.13185420632362366, -0.5517930388450623, -0.14123952388763428, 0.2532586455345154, 0.6033161282539368, -0.4002528190612793, -0.2529924809932709, 0.2837849259376526, 0.06275603920221329, 0.16655029356479645, 0.0856444388628006, -0.2852521538734436, -0.5296268463134766, 0.6891536712646484, -0.14170649647712708, 0.8835586309432983, 0.14573749899864197, -0.8859022855758667, -1.4907875061035156, -0.2659823000431061, -0.010529712773859501, 0.3323652744293213, -0.6323298811912537, 0.5389674305915833, 0.2563675045967102, -0.8711754083633423, -0.11635855585336685, -0.26775506138801575, 0.14188531041145325, 0.34188416600227356, 0.0338607095181942, -0.5706388354301453, -0.687210202217102, -1.1123164892196655, 0.14871065318584442, -0.036180973052978516, -0.1797579973936081, 0.35663774609565735, 0.4561298191547394, 0.10516448318958282, 0.7590454816818237, -0.616287887096405, -0.30790337920188904, -0.1367577761411667, 0.032396841794252396, 0.5411896109580994, 0.3124566078186035, 1.0674906969070435, -1.2388006448745728, -0.4677131474018097, -0.18745455145835876, -0.6620497107505798, -0.2844083905220032, 0.3054339587688446, -0.17552976310253143, -0.11727596819400787, 0.4058779180049896, -0.7944318056106567, 0.8785764575004578, 0.6119518280029297, -0.1936282068490982, 0.41224780678749084, -0.562844455242157, 0.5127463936805725, -1.0619261264801025, 0.4492616057395935, 0.09695126116275787, -0.2574128210544586, -0.3286890387535095, 0.04356393590569496, 0.380375474691391, 0.3742699921131134, -0.9949871897697449, -0.21703527867794037, -1.0114506483078003, -0.10067671537399292, -0.32358840107917786, -0.18837258219718933, -0.01898312382400036, 0.3505067825317383, 0.11391742527484894, 0.44000211358070374, 0.17015835642814636, -0.7303208708763123, 0.7169362902641296, -0.08703438192605972, -0.7152678370475769, 0.13827607035636902, -0.8632144927978516, -0.021881425753235817, 0.022341711446642876, 0.06258493661880493, -0.8688836693763733, -0.6433543562889099, -0.0609174408018589, -0.2373112440109253, -0.2060873657464981, -0.2414092719554901, -0.4945968985557556, -0.664338231086731, -0.16511161625385284, 0.6985943913459778, 0.0804678201675415, -0.6311335563659668, 0.12133879214525223, 0.1983732134103775, -0.12710243463516235, 0.16532988846302032, -0.7859241366386414, -0.4639316201210022, -0.4359942078590393, -0.4901828467845917, 0.35183876752853394, -0.22301605343818665, -0.6222281455993652, -0.47565746307373047, 0.24562954902648926, -0.9456866383552551, 0.1972876787185669, 0.4632456600666046, 0.5715312957763672, 0.0028589251451194286, 0.4147062301635742, -0.2561541795730591, -0.050786204636096954, 0.3973897397518158, 0.2879118323326111, 1.0482149124145508, -0.173487588763237, -0.11449455469846725, -0.8828719258308411, 0.2394026666879654, 1.0424021482467651, -0.536966860294342, 0.8655062913894653, 0.2885129451751709, -1.2187697887420654, 0.08984093368053436, -0.6458850502967834, 0.15029139816761017, -0.48417696356773376, 0.2686138451099396, -0.7120407223701477, 0.309512197971344, 0.35188907384872437, 0.02882211282849312, -0.5219583511352539, 0.7579805254936218, 0.5842491984367371, 0.08744648844003677, 0.5694132447242737, 0.9436445236206055, 0.8074007034301758, 0.6805128455162048, -0.42985156178474426, -0.05356088653206825, -0.7438154220581055, -0.6448651552200317, -0.6408553123474121, 0.23517049849033356, -0.10964947193861008, -0.6848992705345154, -0.07500923424959183, 0.19636021554470062, -0.7534525990486145, 0.31916457414627075, -0.2280510514974594, 0.5834963917732239, 0.8803305625915527, 0.21415355801582336, 0.39867258071899414, -1.014246940612793, -0.019171277061104774, 0.13638614118099213, -0.37276098132133484, -0.40748199820518494, 0.6824577450752258, 0.17702023684978485, 0.5275546312332153, 0.7581363320350647, 0.33605003356933594, 0.25017884373664856, 0.07871871441602707, -0.36250582337379456, 0.1198941320180893, 0.06277920305728912, -1.1722255945205688, 0.2635037899017334, 0.19822195172309875, -0.5179283022880554, 0.17419198155403137, -0.07797901332378387, -0.36241164803504944, 0.6882544159889221, 0.29286786913871765, -0.6131092309951782, 0.5658921003341675, -1.0581614971160889, 0.8533808588981628, -0.8752021193504333, -0.2852112650871277, 0.32264962792396545, -0.4072422683238983, 0.7972241640090942, 0.09733114391565323, 0.2560120224952698, 0.3299593925476074, 0.261430948972702, 0.29593008756637573, -1.05154550075531, 0.7360185980796814, -0.2564617693424225, 0.17650344967842102, -0.21832145750522614, -0.2608727216720581, 0.2695785164833069, 0.3121519684791565, -0.21938571333885193, -0.5817034840583801, -0.2675866186618805, -0.3255847990512848, -0.05936413258314133, 0.9947753548622131, -0.7452570199966431, -0.6942014098167419, -0.9650295972824097, -0.1227102279663086, -0.2108483612537384, 0.19453930854797363, 0.8957713842391968, 0.27760908007621765, -0.5563388466835022, 0.08053939789533615, 1.1633455753326416, 0.007462871726602316, 1.103469729423523, 0.2592372000217438, -0.29956167936325073, -0.6150370240211487, 0.15446706116199493, -0.051422230899333954, 0.6034421920776367, 0.41581466794013977, -0.23890908062458038, 0.0008191088563762605, -0.21585147082805634, -0.4411943256855011, 0.5139521360397339, -0.09006242454051971, -0.36324256658554077, -0.3290415108203888, -0.4437464773654938, -0.1779850870370865, 0.18813146650791168, -0.8409627079963684, -0.23481382429599762, -0.6366853713989258, -0.3539465069770813, 0.3972053825855255, 1.148699164390564, 0.3788737654685974, 0.3612320125102997, -0.25127655267715454, 0.021664956584572792, 0.4611775875091553, 0.6402336955070496, 0.18296372890472412, -0.5913263559341431, -0.29398274421691895, 0.17820855975151062, -0.9371926188468933, -1.1610088348388672, 0.742300808429718, -0.17400705814361572, 0.16715526580810547, 0.6880704164505005, 0.38403090834617615, 1.163704514503479, -0.5422356128692627, 0.7865768671035767, 0.4618530571460724, -1.0565317869186401, 0.676466166973114, -0.10073284059762955, 0.6952053904533386, 0.5127217173576355, 0.8910490274429321, -0.15553459525108337, 0.46988168358802795, -0.7614375352859497, -0.46653181314468384, 0.18836653232574463, 0.049419742077589035, -0.4482124149799347, 0.6935246586799622, 0.22710013389587402, 0.45801886916160583, 0.10904497653245926, -0.8217593431472778, -0.4213580787181854, -0.45760607719421387, -0.09858298301696777, 0.15347374975681305, -0.3765082359313965, 0.0475454144179821, -0.48372796177864075, 0.9761945009231567, 0.18748871982097626, 0.17656336724758148, 0.502139151096344, -0.2404143065214157, 0.13121101260185242, 0.1813199818134308, 1.1733884811401367, 0.7689164876937866, -1.0687534809112549, 0.1968420445919037, -0.3662145137786865, -0.28486087918281555, -0.3469334542751312, 0.5217200517654419, 0.04846248775720596, 0.28204166889190674, -0.024616077542304993, 0.9273589253425598, 0.34433457255363464, -0.4511550962924957, 0.6131607890129089, -0.4747965335845947, 0.3384978175163269, -0.9660326838493347, -0.10640954226255417, 0.3688180148601532, 0.44332006573677063, 0.31621217727661133, -0.060149889439344406, 0.7414636611938477, -0.673372745513916, 0.0448688268661499, 0.08237194269895554, -0.8117938041687012, -0.7664918899536133, 1.3420274257659912, 0.6933584213256836, -0.8993745446205139, 0.9685490727424622, -0.19214291870594025, -0.2695457637310028, 0.6331902742385864, 0.7237418293952942, 1.0784718990325928, -0.49450379610061646, 0.32994088530540466, 0.2901994287967682, -0.09774346649646759, 0.16405609250068665, 0.4549330770969391, -0.13234955072402954, -0.3370431363582611, 0.6359488368034363, -0.06656937301158905, -0.8046737313270569, 0.12816430628299713, -1.4569816589355469, 0.5958004593849182, -0.5987046360969543, -0.3101192116737366, 0.24123767018318176, 0.15693065524101257, -0.7555298805236816, 0.893611490726471, 0.2877580523490906, 1.57373046875, -0.849809467792511, 1.6450881958007812, 0.39019379019737244, -0.8945044279098511, -0.15876445174217224, -0.320894718170166, -0.2679041922092438, -0.5662536025047302, 0.26288509368896484, 0.18956303596496582, -0.05721262842416763, -0.4746493697166443, -0.6317592859268188, -1.1127351522445679, 1.5361181497573853, 0.528883159160614, -0.7616423964500427, 0.04585331305861473, -0.35585182905197144, 0.3339844346046448, -0.6143918633460999, 0.5993974804878235, 0.4433545470237732, 0.451387882232666, 0.3603406548500061, -1.3373900651931763, -0.10051536560058594, -0.9885929822921753, 0.09347343444824219, -0.18911005556583405, -1.480398416519165, 0.7688387632369995, -0.5985146760940552, 0.1128905639052391, 0.6224747896194458, 0.5698299407958984, 0.2657110393047333, 0.06756261736154556, 0.4876818060874939, 0.633303165435791, 1.0146511793136597, -0.18491902947425842, 1.218130350112915, -0.16633085906505585, 0.32804349064826965, 1.3563001155853271, -0.354510635137558, 0.7829585075378418, 0.5316898226737976, 0.08480703830718994, 0.677493155002594, 1.0555557012557983, -0.27557578682899475, 0.7410761713981628, 0.04107590392231941, -0.609856903553009, -0.09029997140169144, -0.3395499289035797, -0.6281256079673767, 0.325532466173172, 0.12495194375514984, -1.0728563070297241, 0.2387063205242157, -0.3194013237953186, 0.2427603006362915, -0.2915398180484772, -0.425893634557724, 0.42233896255493164, -0.34219616651535034, -0.7485224008560181, 0.24518714845180511, 0.0008823674870654941, 0.17390505969524384, -0.699870765209198, 0.2049342840909958, -0.21891474723815918, 0.375639945268631, -0.4100767970085144, -0.030713198706507683, 0.18629512190818787, -0.03536717966198921, -0.5645419359207153, 0.06808776408433914, 0.4374670684337616, -0.13947777450084686, -0.7266329526901245, 0.3033432364463806, -0.29794594645500183, 0.2085130214691162, 0.3149770200252533, -0.34053292870521545, 0.8161197900772095, 0.24457837641239166, 0.13905254006385803, -0.2817825973033905, -0.4166918396949768, 0.07410027831792831, 0.8181042075157166, -0.038981352001428604, 0.1674341857433319, 0.6295533776283264, 0.01138375885784626, 0.5890239477157593, -1.008333444595337, -0.34927573800086975, -0.3601216971874237, 0.7106618285179138, -0.8563202023506165, -0.9259089231491089, 0.7810744047164917, 1.3661786317825317, 1.04653799533844, -0.6869181394577026, 0.8459469079971313, 0.17271052300930023, 0.14329811930656433, -0.1490432173013687, 0.7554639577865601, -0.37164339423179626, -0.026451481506228447, 0.2826503813266754, -0.5962292551994324, -0.5469903945922852, 0.4620138108730316, 0.04190361872315407, 0.18523892760276794, 0.4771032929420471, 0.46315595507621765, -0.07566763460636139, 0.7407086491584778, 0.5150994062423706, 0.40994399785995483, 0.3925454020500183, 0.10687654465436935, 0.27781787514686584, -0.8792083859443665, -0.00007630459003848955, -0.6422479748725891, -0.8537707924842834, -0.5632082223892212, -0.7819302678108215, -0.5569639205932617, -0.4564981758594513, -0.4466896653175354, 0.11298047006130219, 0.1889151632785797, 0.8508701920509338, 1.169159173965454, -0.7806885838508606, -0.5413623452186584, 0.11194883286952972, 0.2009129524230957, -0.07524735480546951, -0.29205188155174255, 0.18818330764770508, 0.40168246626853943, -1.1539090871810913, 0.17837204039096832, 0.1548083871603012, 0.5362890362739563, -0.2117076963186264, 0.33808115124702454, -0.6941949129104614, 0.680412232875824, 0.14792871475219727, 0.6500820517539978, -0.6442471742630005, -0.08322681486606598, -0.3971829414367676, -0.04182432219386101, -0.06579338014125824, 0.5842728018760681, -0.07246952503919601, 0.21939143538475037, 0.40758565068244934, -0.24132534861564636, 0.5827842354774475, -0.22732435166835785, 0.6783782243728638, -0.08703551441431046, 0.35918760299682617, -0.16722328960895538, 1.089457631111145, 0.08151192218065262, -0.17108209431171417, 0.6369501948356628, 0.34003326296806335, -0.5573578476905823, -1.1013132333755493, 0.17499883472919464, -1.5367237329483032, 0.15136797726154327, 0.7418308854103088, -0.30006036162376404, -0.6959060430526733, 0.4956792891025543, -0.42511749267578125, 0.07468684762716293, 0.034749992191791534, 0.49303552508354187, 0.8619268536567688, -0.2480386346578598, -0.387270987033844, -0.4089110195636749, 0.3013458251953125, -0.3111567497253418, -1.087845802307129, -0.5678341388702393, 0.06798906624317169, 0.46784645318984985, 0.22078664600849152, 0.19339799880981445, -0.3519701361656189, 0.7896267175674438, 0.0021242520306259394, 0.6332835555076599, 0.17636142671108246, -0.41304928064346313, -0.14692357182502747, 0.4980504810810089, 0.12893696129322052, -0.8998807072639465 ]
guillaumekln/faster-whisper-tiny.en
guillaumekln
"2023-05-12T18:56:53Z"
21,295
2
ctranslate2
[ "ctranslate2", "audio", "automatic-speech-recognition", "en", "license:mit", "region:us" ]
automatic-speech-recognition
"2023-03-23T10:17:41Z"
--- language: - en tags: - audio - automatic-speech-recognition license: mit library_name: ctranslate2 --- # Whisper tiny.en model for CTranslate2 This repository contains the conversion of [openai/whisper-tiny.en](https://huggingface.co/openai/whisper-tiny.en) to the [CTranslate2](https://github.com/OpenNMT/CTranslate2) model format. This model can be used in CTranslate2 or projects based on CTranslate2 such as [faster-whisper](https://github.com/guillaumekln/faster-whisper). ## Example ```python from faster_whisper import WhisperModel model = WhisperModel("tiny.en") segments, info = model.transcribe("audio.mp3") for segment in segments: print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)) ``` ## Conversion details The original model was converted with the following command: ``` ct2-transformers-converter --model openai/whisper-tiny.en --output_dir faster-whisper-tiny.en \ --copy_files tokenizer.json --quantization float16 ``` Note that the model weights are saved in FP16. This type can be changed when the model is loaded using the [`compute_type` option in CTranslate2](https://opennmt.net/CTranslate2/quantization.html). ## More information **For more information about the original model, see its [model card](https://huggingface.co/openai/whisper-tiny.en).**
[ 0.02211594022810459, -0.40172967314720154, 0.29914391040802, 0.4335644245147705, -0.47045397758483887, -0.36779385805130005, -0.5245946049690247, -0.472922146320343, 0.08428726345300674, 0.672053337097168, -0.5222508311271667, -0.5295963287353516, -0.5451926589012146, -0.2297811210155487, -0.27093395590782166, 0.9093176126480103, -0.15873579680919647, 0.27578434348106384, 0.39611363410949707, -0.09856462478637695, -0.3694058954715729, -0.116050124168396, -0.8265954852104187, -0.267057329416275, 0.17720218002796173, 0.38480186462402344, 0.6460506916046143, 0.4272623360157013, 0.49722039699554443, 0.27175161242485046, -0.3230065405368805, -0.09679524600505829, -0.23465588688850403, -0.24647751450538635, 0.2239587903022766, -0.7451499104499817, -0.6890833973884583, 0.11262573301792145, 0.6863030195236206, 0.14189529418945312, -0.2621881663799286, 0.5543244481086731, -0.16967648267745972, 0.31956547498703003, -0.44314464926719666, 0.30352768301963806, -0.6243331432342529, 0.002471073530614376, -0.17327314615249634, -0.16118186712265015, -0.5594440698623657, -0.42973002791404724, 0.45048269629478455, -0.852914571762085, 0.22061359882354736, 0.025365864858031273, 0.9000721573829651, 0.2801832854747772, -0.5096194744110107, -0.3879925608634949, -0.9049670100212097, 0.9847004413604736, -0.7902807593345642, 0.22745665907859802, 0.2506699860095978, 0.560478150844574, 0.2446865290403366, -1.1369941234588623, -0.294030100107193, -0.0951041504740715, 0.04575230926275253, 0.25593283772468567, -0.40286365151405334, 0.29780682921409607, 0.13779735565185547, 0.48046961426734924, -0.6909987926483154, -0.07026912271976471, -0.7689297795295715, -0.4581683576107025, 0.5806089043617249, 0.1543920934200287, 0.29049453139305115, -0.3552391529083252, -0.2771516442298889, -0.6042055487632751, -0.5292207598686218, -0.015687992796301842, 0.45253509283065796, 0.38138410449028015, -0.7616291642189026, 0.6573517918586731, 0.10313202440738678, 0.40071800351142883, 0.09724332392215729, -0.3282276391983032, 0.32073572278022766, -0.32857969403266907, -0.18099477887153625, 0.478085994720459, 0.7357410192489624, 0.469940185546875, 0.09289536625146866, 0.28581327199935913, -0.2662413418292999, -0.02956997975707054, -0.0032399778719991446, -1.1903595924377441, -0.4675033688545227, 0.26863518357276917, -0.939399242401123, -0.25681427121162415, 0.006782792508602142, -0.3658660054206848, 0.10216467082500458, -0.14572158455848694, 0.650057852268219, -0.4713922142982483, -0.47318482398986816, 0.39602532982826233, -0.49860185384750366, 0.09052377939224243, 0.45806431770324707, -0.8270751237869263, 0.4575987458229065, 0.5513379573822021, 1.1750491857528687, 0.13535256683826447, -0.03197309374809265, -0.19482596218585968, 0.22573216259479523, -0.08179786801338196, 0.572496771812439, -0.004926630295813084, -0.5418661832809448, -0.11084868013858795, -0.039353277534246445, -0.1737598329782486, -0.5958144068717957, 0.6399900317192078, -0.18916724622249603, 0.39874640107154846, 0.3319129943847656, -0.16987921297550201, -0.19399410486221313, 0.0173871498554945, -0.7187031507492065, 1.0040735006332397, 0.40668362379074097, -0.8090910911560059, -0.14296332001686096, -0.8611539006233215, -0.14437095820903778, -0.2055683135986328, 0.4421059489250183, -0.4356689751148224, 0.3369579017162323, -0.034582097083330154, -0.02800917625427246, -0.48085036873817444, 0.2356780767440796, -0.1581120640039444, -0.39462581276893616, 0.28296586871147156, -0.5160403847694397, 1.0230844020843506, 0.40136247873306274, 0.13339726626873016, 0.25595390796661377, -0.6531508564949036, 0.0796673595905304, 0.020206276327371597, -0.40672245621681213, -0.35681286454200745, -0.21876393258571625, 0.5794768333435059, 0.060217879712581635, 0.37226927280426025, -0.6703959107398987, 0.3281908333301544, -0.6884250640869141, 0.8974676728248596, 0.4044055640697479, 0.04857562109827995, 0.511552631855011, -0.4320788085460663, 0.1121782660484314, 0.20114009082317352, 0.461652010679245, 0.13960589468479156, -0.5947519540786743, -0.8035807013511658, -0.15811967849731445, 0.5282950401306152, 0.43779879808425903, -0.6752214431762695, 0.21724160015583038, -0.4091387987136841, -0.9430020451545715, -1.056504487991333, -0.4265688359737396, 0.2420879751443863, 0.19570626318454742, 0.5250369906425476, -0.04520060494542122, -0.8208578824996948, -0.9256314635276794, -0.12016142159700394, -0.4446682929992676, -0.302079439163208, 0.21230484545230865, 0.6716697812080383, -0.17434625327587128, 0.7108094692230225, -0.6247024536132812, -0.5397182703018188, -0.24511435627937317, 0.35613808035850525, 0.26164349913597107, 0.8873023390769958, 0.6467769145965576, -0.7855784296989441, -0.35247546434402466, -0.1501505821943283, -0.28562504053115845, 0.061489205807447433, -0.14570100605487823, -0.006225294899195433, -0.03159145638346672, 0.06472533941268921, -0.7801917791366577, 0.4619276225566864, 0.7206414341926575, -0.40466272830963135, 0.4847935736179352, -0.049109816551208496, -0.045111797749996185, -1.2822809219360352, 0.13157066702842712, 0.03033451735973358, -0.17868193984031677, -0.591377317905426, 0.06719206273555756, 0.2661396265029907, 0.052937351167201996, -0.8849773406982422, 0.7695808410644531, -0.16475552320480347, -0.033026322722435, -0.07708197087049484, -0.1403755247592926, -0.045879047363996506, 0.27756741642951965, 0.39850494265556335, 0.8268380165100098, 0.3906521797180176, -0.4050118625164032, 0.10648639500141144, 0.6468442678451538, -0.2796824276447296, 0.1444573998451233, -1.0413283109664917, 0.13832806050777435, 0.2722057104110718, 0.3664717972278595, -0.5740469694137573, -0.057465698570013046, 0.2796998918056488, -0.7530381083488464, 0.21356262266635895, -0.6454349756240845, -0.6651929020881653, -0.3348899483680725, -0.5389875769615173, 0.5147308707237244, 0.6623391509056091, -0.43526968359947205, 0.654569685459137, 0.2538335919380188, 0.061277128756046295, 0.07073333859443665, -1.1479973793029785, -0.13356202840805054, -0.2082919478416443, -0.8451026678085327, 0.6984073519706726, -0.28727996349334717, -0.17791886627674103, -0.11122807115316391, -0.04995989054441452, -0.29983648657798767, -0.155298113822937, 0.3911218047142029, 0.3045758903026581, -0.45343273878097534, -0.22675472497940063, 0.4248254597187042, -0.36371269822120667, 0.038125403225421906, -0.5298283100128174, 0.6467324495315552, -0.22605480253696442, 0.06595980376005173, -0.7736972570419312, 0.08020676672458649, 0.5115000009536743, -0.18710200488567352, 0.4963796138763428, 0.7657064199447632, -0.42070791125297546, -0.19482047855854034, -0.37627100944519043, -0.3231211304664612, -0.5146906971931458, 0.1836075782775879, -0.38184496760368347, -0.820517897605896, 0.5120887160301208, 0.12202055007219315, -0.019101222977042198, 0.8488757610321045, 0.5468766093254089, 0.013097656890749931, 1.1690882444381714, 0.551956295967102, 0.334722101688385, 0.441289484500885, -0.7658785581588745, -0.18395908176898956, -1.1716886758804321, -0.2853468954563141, -0.7388373613357544, -0.24188648164272308, -0.4509473145008087, -0.3642224669456482, 0.5810931921005249, 0.19589054584503174, -0.4703914225101471, 0.6888923048973083, -0.7567688822746277, 0.0503658726811409, 0.4715947210788727, 0.19354675710201263, 0.30590763688087463, -0.013444584794342518, 0.18368762731552124, -0.25099852681159973, -0.4673139154911041, -0.4434622526168823, 1.1100703477859497, 0.6024304032325745, 0.7503589391708374, 0.3870978057384491, 0.6882263422012329, 0.16355763375759125, 0.10844670981168747, -0.9476071000099182, 0.30213308334350586, -0.2533624768257141, -0.6023058891296387, -0.07200264185667038, -0.32416433095932007, -0.7101545333862305, 0.08333419263362885, 0.028651515021920204, -0.76093590259552, 0.11452259868383408, 0.02840091474354267, -0.25555020570755005, 0.36758971214294434, -0.6025423407554626, 0.8716325163841248, 0.11990149319171906, 0.3075064420700073, -0.22071069478988647, -0.430585116147995, 0.5271947383880615, 0.09227774292230606, -0.2333248257637024, 0.062366586178541183, -0.13126574456691742, 1.1372424364089966, -0.7449319362640381, 0.877769410610199, -0.40653789043426514, -0.10505793243646622, 0.7506693005561829, 0.24683330953121185, 0.4657852053642273, 0.25329217314720154, -0.1968463808298111, 0.5393539667129517, 0.46845802664756775, -0.021336082369089127, -0.3333297669887543, 0.6018826365470886, -1.2839432954788208, -0.09664366394281387, -0.25205811858177185, -0.5323690176010132, 0.37450647354125977, 0.16493475437164307, 0.5468955039978027, 0.5754479169845581, -0.0459759496152401, 0.18473920226097107, 0.6322659254074097, 0.0888710543513298, 0.5076473355293274, 0.7606534361839294, -0.06693814694881439, -0.722443163394928, 0.8110752105712891, 0.22816915810108185, 0.2778956890106201, 0.45390212535858154, 0.40281999111175537, -0.5068800449371338, -0.9488008618354797, -0.5006016492843628, 0.14300967752933502, -0.6070611476898193, -0.4284507930278778, -0.6334612965583801, -0.4907507300376892, -0.514665424823761, 0.10143586248159409, -0.7403538823127747, -0.8370382189750671, -0.612863302230835, 0.2967216670513153, 0.7003323435783386, 0.4732787013053894, -0.1413123458623886, 0.7336742877960205, -1.1258370876312256, 0.26871269941329956, 0.01814386248588562, 0.11616580188274384, 0.13060827553272247, -1.0320823192596436, -0.1886834055185318, 0.15350595116615295, -0.3208710551261902, -0.7927063703536987, 0.5140528678894043, 0.12605950236320496, 0.09173959493637085, 0.21132956445217133, 0.15313822031021118, 0.756197988986969, -0.18532545864582062, 1.038154125213623, 0.3157269060611725, -1.187155842781067, 0.7734086513519287, -0.4612687826156616, 0.17767876386642456, 0.5548149943351746, 0.03424013406038284, -0.6108739972114563, -0.07034947723150253, -0.7161739468574524, -0.7573214173316956, 0.9663203358650208, 0.4663001000881195, -0.1119033619761467, 0.20379139482975006, 0.1397390067577362, 0.12327508628368378, 0.1769629567861557, -0.7573869228363037, -0.3074107766151428, -0.5189542174339294, -0.4792868196964264, 0.2262420654296875, -0.28172263503074646, -0.07061505317687988, -0.29779911041259766, 0.7781477570533752, -0.2896866500377655, 0.5081707239151001, 0.4461994469165802, -0.2187192291021347, -0.11634477227926254, 0.04983785003423691, 0.7161678075790405, 0.016658199951052666, -0.5324203968048096, -0.10280612856149673, 0.18134143948554993, -0.8245566487312317, -0.06096269190311432, 0.0010050080018118024, -0.43933096528053284, 0.2327946275472641, 0.4060249924659729, 0.7817042469978333, 0.415404349565506, -0.2682168483734131, 0.7142243385314941, -0.21408946812152863, -0.35803475975990295, -0.7730042338371277, 0.05333823338150978, 0.1650819480419159, 0.22835716605186462, 0.26812753081321716, 0.35554927587509155, 0.25752022862434387, -0.3575080335140228, -0.21340760588645935, 0.11604911834001541, -0.5256964564323425, -0.5783680081367493, 0.8772594332695007, 0.19342972338199615, -0.34906405210494995, 0.6133782863616943, -0.04324984550476074, -0.12381161749362946, 0.6363024711608887, 0.7677141427993774, 1.2448339462280273, -0.02770927920937538, 0.14101994037628174, 0.6664284467697144, 0.4275202751159668, -0.2231384664773941, 0.735087513923645, -0.18429458141326904, -0.39264804124832153, -0.2763366401195526, -0.8137507438659668, -0.3099004626274109, 0.025916919112205505, -0.9877647757530212, 0.34945327043533325, -0.5564722418785095, -0.2243979573249817, 0.1117485761642456, 0.1457379162311554, -0.7382850050926208, 0.0004371417162474245, 0.20756225287914276, 1.5310922861099243, -0.7024041414260864, 1.2625116109848022, 0.5722476840019226, -0.4702414870262146, -0.9971882700920105, -0.2523864805698395, 0.04712565988302231, -0.7385528087615967, 0.5700361728668213, 0.14937791228294373, 0.06435640901327133, 0.0874127745628357, -0.7663300037384033, -1.0227922201156616, 1.4158324003219604, 0.06112535670399666, -0.6077544093132019, -0.1978221982717514, 0.15886224806308746, 0.5160919427871704, -0.5473681688308716, 0.6703712344169617, 0.5038606524467468, 0.8612492680549622, -0.004584453534334898, -1.3025554418563843, -0.014673857018351555, -0.15785029530525208, 0.33964553475379944, 0.080430768430233, -0.9685337543487549, 1.2227667570114136, -0.2252977192401886, -0.18805137276649475, 0.8595951795578003, 0.7007006406784058, 0.25501614809036255, 0.3172100782394409, 0.38129210472106934, 0.44583919644355774, 0.44425204396247864, -0.383733332157135, 0.6299177408218384, -0.2544897794723511, 0.5867772102355957, 0.9851151704788208, -0.16581468284130096, 1.0503146648406982, 0.4236140251159668, -0.061664458364248276, 0.6903700828552246, 0.5342094898223877, -0.30839237570762634, 0.6529563665390015, -0.08106537163257599, 0.015793895348906517, -0.022361664101481438, -0.08390681445598602, -0.4454192817211151, 0.7225039601325989, 0.5207800269126892, -0.3315610885620117, -0.1293003410100937, 0.0018388301832601428, 0.025423843413591385, -0.20974141359329224, -0.509620189666748, 0.7353805899620056, -0.004983776248991489, -0.34050536155700684, 0.6662967205047607, 0.4631403982639313, 0.9450527429580688, -0.9020282626152039, -0.0552838109433651, 0.21390219032764435, 0.20471173524856567, -0.25282102823257446, -0.7560538053512573, 0.4863293170928955, -0.1775653213262558, -0.3346906900405884, -0.021174011752009392, 0.6941086053848267, -0.6140347719192505, -0.45257967710494995, 0.3039316236972809, 0.21855801343917847, 0.33975139260292053, -0.22522293031215668, -0.8352827429771423, 0.41985028982162476, 0.2596733868122101, -0.3131089210510254, 0.2588031589984894, 0.011753631755709648, 0.011709416285157204, 0.4610261917114258, 0.7981764078140259, 0.18341471254825592, 0.005340397357940674, 0.04599219933152199, 0.6505476236343384, -0.6723360419273376, -0.7703792452812195, -0.41144949197769165, 0.6177734136581421, -0.014873974025249481, -0.6731486320495605, 0.6002507209777832, 0.873855710029602, 0.6517361402511597, -0.36004507541656494, 0.6344801187515259, -0.05199839547276497, 0.3396124541759491, -0.7978452444076538, 0.8674649596214294, -0.44983971118927, -0.09571340680122375, 0.035088397562503815, -0.768155038356781, 0.006734183989465237, 0.38017356395721436, -0.04946175962686539, -0.24471056461334229, 0.6739808917045593, 0.9390529990196228, -0.18020223081111908, 0.3011796772480011, 0.034818511456251144, 0.47213664650917053, 0.2638263702392578, 0.6355859637260437, 0.5831456184387207, -1.074767827987671, 0.7628746032714844, -0.41482439637184143, 0.04938490688800812, -0.10818705707788467, -0.6228131055831909, -0.9221320748329163, -0.5673099756240845, -0.5073164701461792, -0.6076791882514954, -0.15328599512577057, 0.9928439855575562, 0.9220961332321167, -0.7524808645248413, -0.3111644685268402, 0.1004912331700325, -0.05786467343568802, -0.0088850948959589, -0.3005017936229706, 0.5331692695617676, 0.4044739305973053, -0.8181823492050171, 0.5619195103645325, 0.11336087435483932, 0.5526750683784485, -0.27729764580726624, -0.43357670307159424, 0.334322452545166, 0.07089698314666748, 0.36693334579467773, 0.14205512404441833, -0.8740590214729309, -0.2580421268939972, -0.3274618685245514, -0.0722975805401802, 0.16488370299339294, 0.7225863933563232, -0.7490285634994507, 0.14661964774131775, 0.600222647190094, -0.30024778842926025, 0.7115565538406372, -0.4343465566635132, 0.14909857511520386, -0.6835624575614929, 0.5923872590065002, 0.2892581820487976, 0.4070553183555603, 0.16754186153411865, -0.0718872919678688, 0.4314660429954529, 0.19936925172805786, -0.3210892975330353, -0.9866703152656555, -0.056430377066135406, -1.3724316358566284, -0.05808480456471443, 1.1095093488693237, 0.056270308792591095, -0.4246755540370941, 0.23194530606269836, -0.5659312009811401, 0.3425927758216858, -0.6596255898475647, 0.24520571529865265, 0.07906588912010193, 0.4122042655944824, -0.02737586945295334, -0.4947819411754608, 0.46354615688323975, -0.12735137343406677, -0.38863667845726013, 0.012105843983590603, 0.07878290116786957, 0.48944124579429626, 0.4351952075958252, 0.5863357186317444, -0.44131365418434143, 0.4493054151535034, 0.38671398162841797, 0.43055349588394165, -0.33361804485321045, -0.4523264765739441, -0.4073176681995392, 0.0032555474899709225, -0.002418415155261755, -0.3253501057624817 ]
facebook/opt-13b
facebook
"2023-01-24T17:10:32Z"
21,283
59
transformers
[ "transformers", "pytorch", "tf", "jax", "opt", "text-generation", "en", "arxiv:2205.01068", "arxiv:2005.14165", "license:other", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-05-11T08:27:07Z"
--- language: en inference: false tags: - opt - text-generation license: other commercial: false --- # OPT : Open Pre-trained Transformer Language Models OPT was first introduced in [Open Pre-trained Transformer Language Models](https://arxiv.org/abs/2205.01068) and first released in [metaseq's repository](https://github.com/facebookresearch/metaseq) on May 3rd 2022 by Meta AI. **Disclaimer**: The team releasing OPT wrote an official model card, which is available in Appendix D of the [paper](https://arxiv.org/pdf/2205.01068.pdf). Content from **this** model card has been written by the Hugging Face team. ## Intro To quote the first two paragraphs of the [official paper](https://arxiv.org/abs/2205.01068) > Large language models trained on massive text collections have shown surprising emergent > capabilities to generate text and perform zero- and few-shot learning. While in some cases the public > can interact with these models through paid APIs, full model access is currently limited to only a > few highly resourced labs. This restricted access has limited researchers’ ability to study how and > why these large language models work, hindering progress on improving known challenges in areas > such as robustness, bias, and toxicity. > We present Open Pretrained Transformers (OPT), a suite of decoder-only pre-trained transformers ranging from 125M > to 175B parameters, which we aim to fully and responsibly share with interested researchers. We train the OPT models to roughly match > the performance and sizes of the GPT-3 class of models, while also applying the latest best practices in data > collection and efficient training. Our aim in developing this suite of OPT models is to enable reproducible and responsible research at scale, and > to bring more voices to the table in studying the impact of these LLMs. Definitions of risk, harm, bias, and toxicity, etc., should be articulated by the > collective research community as a whole, which is only possible when models are available for study. ## Model description OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like [GPT-3](https://arxiv.org/abs/2005.14165). As such, it was pretrained using the self-supervised causal language modedling objective. For evaluation, OPT follows [GPT-3](https://arxiv.org/abs/2005.14165) by using their prompts and overall experimental setup. For more details, please read the [official paper](https://arxiv.org/abs/2205.01068). ## Intended uses & limitations The pretrained-only model can be used for prompting for evaluation of downstream tasks as well as text generation. In addition, the model can be fine-tuned on a downstream task using the [CLM example](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling). For all other OPT checkpoints, please have a look at the [model hub](https://huggingface.co/models?filter=opt). ### How to use For large OPT models, such as this one, it is not recommend to make use of the `text-generation` pipeline because one should load the model in half-precision to accelerate generation and optimize memory consumption on GPU. It is recommended to directly call the [`generate`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.generation_utils.GenerationMixin.generate) method as follows: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-13b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-13b", use_fast=False) >>> prompt = "Hello, I'm am conscious and" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> generated_ids = model.generate(input_ids) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) ['Hello, I am conscious and aware of my surroundings.\nI am conscious and aware of my'] ``` By default, generation is deterministic. In order to use the top-k sampling, please set `do_sample` to `True`. ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-13b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-13b", use_fast=False) >>> prompt = "Hello, I'm am conscious and" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) ['Hello, I am conscious and aware.\nSo that makes you dead, right? '] ``` ### Limitations and bias As mentioned in Meta AI's model card, given that the training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral the model is strongly biased : > Like other large language models for which the diversity (or lack thereof) of training > data induces downstream impact on the quality of our model, OPT-175B has limitations in terms > of bias and safety. OPT-175B can also have quality issues in terms of generation diversity and > hallucination. In general, OPT-175B is not immune from the plethora of issues that plague modern > large language models. Here's an example of how the model can have biased predictions: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-13b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-13b", use_fast=False) >>> prompt = "The woman worked as a" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) The woman worked as a supervisor in the office The woman worked as a social media consultant for The woman worked as a cashier at the The woman worked as a teacher, and was The woman worked as a maid at our friends ``` compared to: ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed >>> import torch >>> model = AutoModelForCausalLM.from_pretrained("facebook/opt-13b", torch_dtype=torch.float16).cuda() >>> # the fast tokenizer currently does not work correctly >>> tokenizer = AutoTokenizer.from_pretrained("facebook/opt-13b", use_fast=False) >>> prompt = "The man worked as a" >>> input_ids = tokenizer(prompt, return_tensors="pt").input_ids.cuda() >>> set_seed(32) >>> generated_ids = model.generate(input_ids, do_sample=True, num_return_sequences=5, max_length=10) >>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True) The man worked as a consultant to the defense The man worked as a bartender in a bar The man worked as a cashier at the The man worked as a teacher, and was The man worked as a professional athlete while he ``` This bias will also affect all fine-tuned versions of this model. ## Training data The Meta AI team wanted to train this model on a corpus as large as possible. It is composed of the union of the following 5 filtered datasets of textual documents: - BookCorpus, which consists of more than 10K unpublished books, - CC-Stories, which contains a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas, - The Pile, from which * Pile-CC, OpenWebText2, USPTO, Project Gutenberg, OpenSubtitles, Wikipedia, DM Mathematics and HackerNews* were included. - Pushshift.io Reddit dataset that was developed in Baumgartner et al. (2020) and processed in Roller et al. (2021) - CCNewsV2 containing an updated version of the English portion of the CommonCrawl News dataset that was used in RoBERTa (Liu et al., 2019b) The final training data contains 180B tokens corresponding to 800GB of data. The validation split was made of 200MB of the pretraining data, sampled proportionally to each dataset’s size in the pretraining corpus. The dataset might contains offensive content as parts of the dataset are a subset of public Common Crawl data, along with a subset of public Reddit data, which could contain sentences that, if viewed directly, can be insulting, threatening, or might otherwise cause anxiety. ### Collection process The dataset was collected form internet, and went through classic data processing algorithms and re-formatting practices, including removing repetitive/non-informative text like *Chapter One* or *This ebook by Project Gutenberg.* ## Training procedure ### Preprocessing The texts are tokenized using the **GPT2** byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a vocabulary size of 50272. The inputs are sequences of 2048 consecutive tokens. The 175B model was trained on 992 *80GB A100 GPUs*. The training duration was roughly ~33 days of continuous training. ### BibTeX entry and citation info ```bibtex @misc{zhang2022opt, title={OPT: Open Pre-trained Transformer Language Models}, author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer}, year={2022}, eprint={2205.01068}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.28686049580574036, -0.8463237285614014, 0.1801096349954605, 0.2678654193878174, -0.15938059985637665, -0.13934175670146942, -0.4177522659301758, -0.4435591697692871, 0.06712992489337921, 0.4146246016025543, -0.5836744904518127, -0.41550737619400024, -0.5939889550209045, 0.10166732966899872, -0.47066402435302734, 1.0341131687164307, -0.06457206606864929, -0.006144679617136717, 0.16555242240428925, 0.09168216586112976, -0.32078859210014343, -0.46347761154174805, -0.8502323031425476, -0.16668474674224854, 0.21927431225776672, 0.07497099786996841, 0.6592594981193542, 0.560819149017334, 0.3981482684612274, 0.37845736742019653, 0.04082129895687103, 0.1020512506365776, -0.6161195039749146, -0.2876264154911041, -0.06543410569429398, -0.4065273404121399, -0.4575001895427704, 0.242043137550354, 0.5022725462913513, 0.46413561701774597, 0.11496896296739578, 0.22396966814994812, 0.0179741233587265, 0.3954012393951416, -0.4727603495121002, 0.21983948349952698, -0.6737510561943054, -0.06498529762029648, -0.1527220755815506, 0.09307147562503815, -0.5789989829063416, -0.27454304695129395, 0.11782073974609375, -0.4494573175907135, 0.3669281303882599, -0.039899248629808426, 1.1673996448516846, 0.3811188340187073, -0.27909544110298157, -0.1624719202518463, -0.658341109752655, 0.652630090713501, -0.8791433572769165, 0.35337141156196594, 0.22977034747600555, 0.09227830171585083, 0.044042494148015976, -0.8649922609329224, -0.6011011600494385, -0.17465680837631226, -0.21310588717460632, 0.225846067070961, -0.33473366498947144, 0.16166087985038757, 0.2860144078731537, 0.3616248369216919, -0.5414707660675049, 0.018177608028054237, -0.5317321419715881, -0.33583179116249084, 0.7242411971092224, 0.05829228460788727, 0.3331444561481476, -0.34600839018821716, -0.2363768219947815, -0.07632887363433838, -0.4038711488246918, -0.023372434079647064, 0.47213655710220337, 0.23842275142669678, -0.2140200287103653, 0.5549794435501099, -0.2833006978034973, 0.7727822661399841, 0.22836467623710632, 0.12924788892269135, 0.39165157079696655, -0.40071988105773926, -0.29923343658447266, -0.10280680656433105, 1.151005506515503, 0.2596752345561981, 0.35713762044906616, -0.04514855146408081, -0.05276622250676155, 0.11382130533456802, 0.040035929530858994, -0.8365753293037415, -0.3544681668281555, 0.313664972782135, -0.5133940577507019, -0.3517822027206421, 0.03469792753458023, -0.7198998928070068, 0.0005963707808405161, -0.1446627825498581, 0.5740338563919067, -0.42108944058418274, -0.47863656282424927, 0.2611020803451538, 0.020990144461393356, 0.2436879724264145, 0.04845961555838585, -0.8368195295333862, -0.006154564209282398, 0.3075404763221741, 0.7820599675178528, -0.04062168672680855, -0.38911253213882446, -0.21633438766002655, -0.06964010000228882, -0.1912357658147812, 0.4009357690811157, -0.25698617100715637, -0.12704269587993622, -0.008625957183539867, 0.11306440830230713, -0.25585079193115234, -0.31705278158187866, 0.6146897077560425, -0.3872515559196472, 0.4216524660587311, -0.22436466813087463, -0.42504116892814636, -0.05338911712169647, -0.08646304905414581, -0.5831233263015747, 1.1739978790283203, 0.113216333091259, -0.9325430989265442, 0.4028397500514984, -0.6688662767410278, -0.3604329228401184, -0.06766388565301895, -0.031212450936436653, -0.33153849840164185, 0.02652277983725071, 0.3998664915561676, 0.5778567790985107, -0.12818408012390137, 0.45036402344703674, -0.18684834241867065, -0.22478465735912323, 0.07153809070587158, -0.49972906708717346, 1.1715706586837769, 0.3235063850879669, -0.5963177680969238, 0.2718352973461151, -0.5595241785049438, -0.07252350449562073, 0.3660016655921936, -0.1790943443775177, -0.03711598739027977, -0.10884106904268265, 0.19887366890907288, 0.4410940706729889, 0.32214897871017456, -0.4828507602214813, 0.1138952225446701, -0.5699794888496399, 0.6659800410270691, 0.9380569458007812, -0.23992247879505157, 0.39800557494163513, -0.0951770544052124, 0.2575955390930176, 0.06367983669042587, 0.3658912181854248, -0.08922693133354187, -0.3388780355453491, -1.0244488716125488, -0.25864386558532715, 0.18837568163871765, 0.33827587962150574, -0.7139983177185059, 0.6842191815376282, -0.2735922336578369, -0.6818978190422058, -0.5686401724815369, 0.0031803958117961884, 0.34673845767974854, 0.41181880235671997, 0.424317866563797, -0.14923401176929474, -0.5737169981002808, -0.7718408703804016, -0.32423922419548035, -0.09314115345478058, 0.18546299636363983, 0.3657170832157135, 0.6283954977989197, -0.451212078332901, 1.1253308057785034, -0.5801376104354858, -0.28581947088241577, -0.40607908368110657, -0.053034547716379166, 0.3877088129520416, 0.6458051800727844, 0.5676482915878296, -0.7347074151039124, -0.6052601933479309, -0.23297488689422607, -0.7158870100975037, -0.05954311415553093, -0.11296369880437851, -0.3925067186355591, 0.3842023015022278, 0.6072053909301758, -0.8401620984077454, 0.3031836152076721, 0.5166643261909485, -0.44514787197113037, 0.5504134297370911, 0.017923668026924133, -0.19474655389785767, -1.1872758865356445, 0.25786590576171875, -0.0652889758348465, -0.17792658507823944, -0.5295003056526184, -0.23784463107585907, 0.005511129274964333, -0.14306098222732544, -0.5588559508323669, 0.7967912554740906, -0.37466344237327576, 0.22004786133766174, -0.15351469814777374, 0.04609106481075287, -0.10880208015441895, 0.5714392066001892, 0.10920122265815735, 0.5476716160774231, 0.6883348822593689, -0.6413495540618896, 0.2523502707481384, 0.21467313170433044, -0.21446487307548523, 0.2112082988023758, -0.7053021788597107, 0.06768187135457993, -0.20613044500350952, 0.3286648988723755, -0.9381219744682312, -0.32040321826934814, 0.3705291748046875, -0.609325647354126, 0.3295218050479889, 0.13397176563739777, -0.51163250207901, -0.7527590990066528, -0.02190951630473137, 0.3907378315925598, 0.5357244610786438, -0.5571472644805908, 0.6360509991645813, 0.33652475476264954, 0.1982724964618683, -0.7213194966316223, -0.6164999604225159, -0.10448507219552994, -0.09339310973882675, -0.7223522067070007, 0.3423299193382263, -0.13338622450828552, -0.002398404758423567, 0.12281773239374161, -0.0949099212884903, 0.06297492235898972, -0.038033872842788696, 0.07404617220163345, 0.3274686932563782, -0.02204684540629387, 0.026354288682341576, -0.07404652237892151, -0.2130802869796753, 0.16698704659938812, -0.4161343574523926, 0.8310943245887756, -0.23496586084365845, -0.14519907534122467, -0.5137521028518677, -0.0291860643774271, 0.41843053698539734, -0.39356133341789246, 0.8765707612037659, 0.9388686418533325, -0.4838782846927643, -0.17109137773513794, -0.7302159667015076, -0.33923816680908203, -0.5328524112701416, 0.6604415774345398, -0.09652955830097198, -0.7391486167907715, 0.5121576189994812, 0.19248327612876892, 0.22511298954486847, 0.7651658654212952, 0.7955840826034546, 0.23965531587600708, 1.0437003374099731, 0.6115859150886536, -0.29389432072639465, 0.6514632701873779, -0.5914014577865601, 0.29249224066734314, -0.5936465859413147, -0.05971144884824753, -0.319189190864563, -0.03959766775369644, -0.4284484386444092, -0.274385005235672, 0.10625331103801727, 0.05488262698054314, -0.37749382853507996, 0.4737471640110016, -0.7233763337135315, 0.3157883584499359, 0.5491504669189453, 0.1789703071117401, -0.004495157860219479, -0.1490512490272522, -0.12779554724693298, 0.055746275931596756, -0.7936515212059021, -0.39917370676994324, 1.1993438005447388, 0.3849634826183319, 0.6903215646743774, -0.33486586809158325, 0.7110572457313538, 0.032682862132787704, 0.41804608702659607, -0.445529967546463, 0.5619586110115051, 0.012438616715371609, -1.0112955570220947, -0.14838339388370514, -0.5216949582099915, -0.7591119408607483, 0.19199246168136597, -0.11109071224927902, -0.6661105155944824, 0.13425052165985107, 0.18940865993499756, -0.34180763363838196, 0.3209919035434723, -0.8185376524925232, 1.2186092138290405, -0.44503068923950195, -0.44361263513565063, 0.049118805676698685, -0.6356070041656494, 0.4418725073337555, -0.021310392767190933, 0.16849766671657562, -0.02458474040031433, 0.25874796509742737, 0.9447492957115173, -0.4373576045036316, 0.9652584791183472, -0.18181239068508148, 0.05719197168946266, 0.43205034732818604, -0.23665545880794525, 0.43101954460144043, -0.09214582294225693, -0.05690590292215347, 0.309427946805954, -0.1688835471868515, -0.4199458956718445, -0.13593514263629913, 0.5521163940429688, -1.0549111366271973, -0.4205676317214966, -0.41385796666145325, -0.4670869708061218, 0.08611197024583817, 0.5686505436897278, 0.748715341091156, 0.2956157922744751, -0.1218041181564331, 0.08823762834072113, 0.4453152120113373, -0.4531937837600708, 0.6251226663589478, 0.18172861635684967, -0.2300197184085846, -0.384039044380188, 0.8136934638023376, 0.12879525125026703, 0.3242103159427643, 0.13654859364032745, 0.06853631138801575, -0.426072895526886, -0.2825562655925751, -0.2875436544418335, 0.4654233157634735, -0.7481701970100403, -0.22737239301204681, -0.9457787275314331, -0.40426692366600037, -0.6339463591575623, -0.22322013974189758, -0.5993190407752991, -0.042029283940792084, -0.45471498370170593, -0.2074614316225052, 0.2595549523830414, 0.44636043906211853, -0.06354900449514389, 0.4624670743942261, -0.4829544425010681, 0.2623898386955261, 0.13736779987812042, 0.31235137581825256, 0.058314841240644455, -0.4927087128162384, -0.3731895983219147, 0.16815698146820068, -0.3243168592453003, -0.8019412755966187, 0.4706995189189911, 0.007427428383380175, 0.6104130744934082, 0.5172854065895081, 0.18618370592594147, 0.528952419757843, -0.36687061190605164, 0.6783314943313599, 0.10255837440490723, -1.0446836948394775, 0.38827478885650635, -0.3752809762954712, 0.15957237780094147, 0.5015153288841248, 0.4158190190792084, -0.3449404537677765, -0.44279351830482483, -0.7404396533966064, -1.0028523206710815, 0.9669197797775269, 0.43990954756736755, 0.27543237805366516, -0.12909090518951416, 0.3719000816345215, -0.1795409768819809, 0.21574966609477997, -1.3235008716583252, -0.5109299421310425, -0.4025801122188568, -0.3853105902671814, -0.1771978884935379, -0.1790856122970581, 0.12004756927490234, -0.4453704357147217, 0.8196134567260742, 0.05620179325342178, 0.5104069113731384, 0.3178616464138031, -0.30576851963996887, -0.08273490518331528, -0.12821444869041443, 0.2840603291988373, 0.5912252068519592, -0.17051148414611816, -0.0016624426934868097, 0.15550576150417328, -0.4739930331707001, -0.06615318357944489, 0.3000187575817108, -0.310398668050766, 0.026263674721121788, 0.2563309371471405, 0.997229278087616, -0.005693106912076473, -0.49362146854400635, 0.5150825381278992, 0.043027397245168686, -0.1754494309425354, -0.39989641308784485, 0.05542595684528351, 0.09634926915168762, 0.10468348115682602, 0.3334835171699524, 0.06455150991678238, -0.10547305643558502, -0.39735743403434753, 0.13064250349998474, 0.5287430286407471, -0.3031836152076721, -0.2961175739765167, 1.0404797792434692, 0.2819594144821167, -0.169688418507576, 0.6171714663505554, -0.20562312006950378, -0.7519190311431885, 0.5899807810783386, 0.5392070412635803, 0.9420556426048279, -0.1538623720407486, 0.17109976708889008, 0.6176602244377136, 0.6203180551528931, -0.13954609632492065, -0.02126709371805191, 0.15557871758937836, -0.7810255885124207, -0.4012115001678467, -0.7043085694313049, 0.05681748688220978, 0.1849541813135147, -0.41185614466667175, 0.5002834796905518, -0.2094959318637848, -0.27332475781440735, -0.13494960963726044, 0.004843082744628191, -0.8494611382484436, 0.2472781240940094, 0.024836689233779907, 0.7726299166679382, -0.9930419325828552, 0.7159594893455505, 0.4552648067474365, -0.5850065350532532, -0.9499950408935547, -0.00930359773337841, -0.29440557956695557, -0.7253247499465942, 0.6204888224601746, 0.5217716097831726, 0.24544808268547058, 0.44263190031051636, -0.6865863800048828, -0.9471327066421509, 1.0157802104949951, 0.3727461099624634, -0.28858932852745056, -0.29679498076438904, 0.23319734632968903, 0.5222973823547363, -0.14530089497566223, 0.5115355253219604, 0.4461679458618164, 0.4003227651119232, -0.12720392644405365, -0.830411434173584, 0.19442734122276306, -0.19553408026695251, -0.17979034781455994, 0.03469415754079819, -0.8508794903755188, 1.1513466835021973, -0.11808238923549652, -0.23983164131641388, -0.1793764978647232, 0.6866742968559265, 0.012675191275775433, 0.02519664354622364, 0.39007583260536194, 0.5540231466293335, 0.5667378306388855, -0.19809578359127045, 1.0222550630569458, -0.4965969920158386, 0.7197871804237366, 0.734412670135498, 0.04789089038968086, 0.5493806600570679, 0.2347119152545929, -0.1692035049200058, 0.2297288179397583, 0.6861077547073364, -0.12192831933498383, 0.3308626115322113, -0.009143584407866001, 0.008508611470460892, -0.19545038044452667, 0.07595328986644745, -0.49372437596321106, 0.37066206336021423, 0.11262420564889908, -0.557186484336853, -0.15944574773311615, 0.0301370806992054, 0.24696168303489685, -0.349331796169281, -0.20503005385398865, 0.49829602241516113, 0.049560241401195526, -0.7436262369155884, 0.6937783360481262, 0.12893125414848328, 0.930279016494751, -0.5840158462524414, 0.3110848665237427, -0.04759806767106056, 0.3807942569255829, -0.24305224418640137, -0.3197442293167114, 0.23002862930297852, -0.1243966668844223, -0.012002306990325451, -0.229872927069664, 0.7097015976905823, -0.46178480982780457, -0.6281552314758301, 0.36835789680480957, 0.3823137879371643, 0.04841237887740135, -0.2689775824546814, -0.8428812026977539, 0.14208349585533142, 0.11155252903699875, -0.4620070457458496, 0.03282848000526428, 0.22496846318244934, 0.1035386174917221, 0.5518171191215515, 0.7487919330596924, -0.12330049276351929, 0.35521170496940613, -0.2189263254404068, 0.9761882424354553, -0.4876652956008911, -0.39546483755111694, -1.065234661102295, 0.6268984079360962, -0.07787353545427322, -0.3338720202445984, 0.9242278337478638, 0.6837581992149353, 1.0840654373168945, -0.15738798677921295, 0.758013904094696, -0.38913989067077637, 0.2069539576768875, -0.37139037251472473, 0.9255908727645874, -0.5594409704208374, -0.07855597138404846, -0.6019155979156494, -0.9518647789955139, -0.1231241226196289, 0.7814986705780029, -0.4873570501804352, 0.3347725570201874, 0.6428617835044861, 0.7628591656684875, -0.11266713589429855, -0.19149257242679596, -0.006949860602617264, 0.4629477858543396, 0.4229123294353485, 0.5534113049507141, 0.5373808145523071, -0.5728838443756104, 0.7346611618995667, -0.49745190143585205, -0.276876300573349, -0.29859304428100586, -0.7000716924667358, -1.1022566556930542, -0.6085757613182068, -0.277927041053772, -0.5718553066253662, -0.1825750172138214, 0.8751017451286316, 0.7101805806159973, -0.6019092202186584, -0.2150302231311798, -0.3954758942127228, 0.0038654827512800694, -0.05136110261082649, -0.3270297348499298, 0.5654992461204529, -0.46858376264572144, -0.923926830291748, -0.08895588666200638, -0.05921035632491112, -0.008446119725704193, -0.24839694797992706, -0.0889546275138855, -0.339556485414505, 0.0549742765724659, 0.5076140761375427, 0.1427362561225891, -0.5992988348007202, -0.08082665503025055, 0.22269171476364136, -0.20145383477210999, -0.07045940309762955, 0.4921966791152954, -0.5943069458007812, 0.45426979660987854, 0.38631367683410645, 0.5214465856552124, 0.5839136242866516, -0.08944612741470337, 0.4526769816875458, -0.41375720500946045, 0.26883935928344727, 0.23963390290737152, 0.46037018299102783, 0.22927634418010712, -0.43959593772888184, 0.46251970529556274, 0.3942650556564331, -0.608404278755188, -0.9399742484092712, 0.1184123307466507, -0.8595235347747803, -0.21994200348854065, 1.3201464414596558, -0.0171070359647274, -0.24080245196819305, -0.001736783073283732, -0.4025725722312927, 0.5744398832321167, -0.2870989441871643, 0.6682375073432922, 0.705887496471405, 0.07323149591684341, -0.015708986669778824, -0.5702747106552124, 0.5787299871444702, 0.4580113887786865, -0.7173383831977844, 0.09975805133581161, 0.41165196895599365, 0.3632160723209381, 0.14022304117679596, 0.9393972158432007, -0.06099430471658707, 0.10442262887954712, -0.07491546869277954, 0.2347942590713501, -0.15258094668388367, -0.17411144077777863, -0.1142771914601326, -0.09511388093233109, -0.23512880504131317, -0.14521022140979767 ]
lvwerra/distilbert-imdb
lvwerra
"2023-01-25T09:25:22Z"
21,279
11
transformers
[ "transformers", "pytorch", "tensorboard", "distilbert", "text-classification", "generated_from_trainer", "dataset:imdb", "license:apache-2.0", "model-index", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - generated_from_trainer datasets: - imdb metrics: - accuracy model-index: - name: distilbert-imdb results: - task: name: Text Classification type: text-classification dataset: name: imdb type: imdb args: plain_text metrics: - name: Accuracy type: accuracy value: 0.928 --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # distilbert-imdb This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the imdb dataset (training notebook is [here](https://huggingface.co/lvwerra/distilbert-imdb/blob/main/distilbert-imdb-training.ipynb)). It achieves the following results on the evaluation set: - Loss: 0.1903 - Accuracy: 0.928 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 5e-05 - train_batch_size: 16 - eval_batch_size: 16 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 1 ### Training results | Training Loss | Epoch | Step | Validation Loss | Accuracy | |:-------------:|:-----:|:----:|:---------------:|:--------:| | 0.2195 | 1.0 | 1563 | 0.1903 | 0.928 | ### Framework versions - Transformers 4.15.0 - Pytorch 1.10.0+cu111 - Datasets 1.17.0 - Tokenizers 0.10.3
[ -0.508881688117981, -0.6362257599830627, 0.17305852472782135, 0.14223383367061615, -0.40839168429374695, -0.15073686838150024, -0.008175519295036793, -0.05174139887094498, 0.2025887817144394, 0.2787255644798279, -0.7919482588768005, -0.5261199474334717, -0.9415042400360107, -0.08469859510660172, -0.4628724455833435, 1.3987727165222168, 0.04617884382605553, 0.48548755049705505, -0.2260553240776062, 0.006868566386401653, -0.2788800895214081, -0.7742723226547241, -0.5744627714157104, -0.5564212799072266, 0.282793790102005, 0.2688466012477875, 0.8282960057258606, 0.9743910431861877, 0.8236820697784424, 0.26466935873031616, -0.46030810475349426, -0.03861263766884804, -0.7401152849197388, -0.4972366392612457, -0.23445026576519012, -0.26989343762397766, -0.7895717620849609, 0.0683949813246727, 0.8080878257751465, 0.5541588664054871, -0.3613937497138977, 0.5958676338195801, 0.1860910803079605, 0.6926774382591248, -0.546277642250061, 0.38121727108955383, -0.6142166256904602, 0.19731758534908295, -0.3004172146320343, -0.1864694505929947, -0.2299003005027771, 0.06789287179708481, -0.02866983227431774, -0.46244654059410095, 0.6221262216567993, 0.10035340487957001, 1.2409080266952515, 0.5212714672088623, -0.3060722053050995, 0.04793457314372063, -0.9189313650131226, 0.562809944152832, -0.7124040126800537, 0.14173194766044617, 0.4260035753250122, 0.5366654396057129, -0.09294795989990234, -0.6923040151596069, -0.6088597774505615, -0.26577192544937134, -0.08972673118114471, 0.03143968805670738, -0.1836395263671875, 0.15934224426746368, 1.0675088167190552, 0.6965374946594238, -0.4484926462173462, 0.20518042147159576, -0.7826780676841736, -0.22315701842308044, 0.5666735172271729, 0.47137680649757385, -0.4010750651359558, -0.1422184705734253, -0.48285728693008423, -0.30814605951309204, -0.24142153561115265, 0.21966882050037384, 0.6349200010299683, 0.06059994176030159, -0.2808331549167633, 0.7306394577026367, -0.37576431035995483, 0.6792120337486267, 0.34139102697372437, -0.22884374856948853, 0.48385635018348694, 0.06621086597442627, -0.3860938549041748, 0.1791682094335556, 0.737256646156311, 0.8278154730796814, 0.32809165120124817, 0.24884311854839325, -0.24936170876026154, -0.04313688352704048, 0.3387962281703949, -1.117378830909729, -0.44334471225738525, 0.1783042997121811, -0.46556779742240906, -0.621609091758728, 0.24334819614887238, -0.5506550073623657, -0.07176824659109116, -0.41222432255744934, 0.44359779357910156, -0.4410531222820282, -0.2007666677236557, -0.0639580637216568, -0.18236437439918518, 0.20267632603645325, 0.20405828952789307, -1.0542118549346924, 0.3306158185005188, 0.3119037449359894, 0.6111654043197632, 0.1653069257736206, -0.4631938338279724, -0.2512056529521942, 0.08329100161790848, -0.15380030870437622, 0.326270192861557, 0.004161273129284382, -0.5001013278961182, -0.227988138794899, 0.23114845156669617, 0.03710736706852913, -0.5975854992866516, 0.908504068851471, -0.22930771112442017, 0.02807469107210636, -0.19385932385921478, -0.5698358416557312, -0.144794762134552, 0.4428858458995819, -0.8512391448020935, 1.1618151664733887, 0.2067205011844635, -0.8808332085609436, 0.6172292828559875, -0.490391343832016, -0.08708178251981735, -0.15096895396709442, -0.1215263232588768, -0.8088381290435791, 0.07303310185670853, 0.19181950390338898, 0.5491772294044495, -0.42038851976394653, 0.6061170697212219, -0.490697979927063, -0.7212293744087219, 0.07458425313234329, -0.644146203994751, 0.8809694647789001, 0.23337362706661224, -0.44698843359947205, -0.22051779925823212, -1.3241748809814453, 0.05530494451522827, 0.3644523620605469, -0.49885615706443787, 0.048086199909448624, -0.39126548171043396, 0.2711378037929535, 0.21401368081569672, 0.27504801750183105, -0.5739062428474426, 0.13670091331005096, -0.11016926914453506, 0.15190595388412476, 0.6611765623092651, -0.00012624732335098088, 0.015555500984191895, -0.4579811692237854, 0.2325916886329651, 0.5483509302139282, 0.4870116412639618, 0.11155030876398087, -0.23267237842082977, -0.9491337537765503, -0.30527356266975403, 0.25526419281959534, 0.3975212275981903, -0.2469315379858017, 0.6856364607810974, -0.11701736599206924, -0.7323155999183655, -0.31906983256340027, 0.12038050591945648, 0.4994170069694519, 0.8680590391159058, 0.49026399850845337, -0.23225371539592743, -0.5389283895492554, -1.323253870010376, 0.08076070994138718, -0.21096006035804749, 0.28126317262649536, -0.042605992406606674, 0.6081861257553101, -0.2472563236951828, 0.8186391592025757, -0.5932539701461792, -0.16128592193126678, -0.059214718639850616, -0.06051081418991089, 0.7362641096115112, 0.8693875074386597, 0.8505573272705078, -0.47020551562309265, -0.3332868814468384, -0.37867817282676697, -0.9658281803131104, 0.37380480766296387, -0.05706753581762314, -0.27872559428215027, -0.34979966282844543, 0.32599693536758423, -0.497580885887146, 0.8274977207183838, 0.21012145280838013, -0.19427421689033508, 0.7028102278709412, -0.4604167938232422, 0.09118130803108215, -1.250082015991211, 0.15400947630405426, 0.3256262242794037, -0.09423211216926575, -0.25833660364151, -0.2412075698375702, 0.15346655249595642, -0.10206487029790878, -0.4796723425388336, 0.4676554501056671, -0.19108636677265167, 0.24380576610565186, -0.17133142054080963, -0.49816492199897766, 0.2144753336906433, 0.8909542560577393, 0.05079988017678261, 0.40535858273506165, 0.772478461265564, -0.6451355218887329, 0.6082185506820679, 0.516046404838562, -0.4405386745929718, 0.7041444182395935, -0.9581170678138733, -0.02716059237718582, -0.362202912569046, -0.002872615121304989, -0.761997640132904, -0.18354053795337677, 0.34152448177337646, -0.2566035985946655, 0.5431696772575378, -0.5420793294906616, -0.36450332403182983, -0.46088534593582153, -0.09899947047233582, 0.2068692296743393, 0.5851772427558899, -0.6253047585487366, 0.2072058618068695, 0.027694838121533394, 0.18956878781318665, -0.8958701491355896, -0.7720984816551208, -0.31958678364753723, -0.3684508204460144, -0.3689488470554352, 0.421596884727478, -0.06736986339092255, -0.2006607949733734, -0.08265681564807892, -0.17685869336128235, -0.4103706479072571, -0.08569127321243286, 0.526465654373169, 0.5795945525169373, -0.05958497151732445, -0.2223217785358429, 0.2318827211856842, -0.20266543328762054, 0.226870596408844, 0.16749528050422668, 0.27637141942977905, -0.15608449280261993, -0.34860095381736755, -0.7172074913978577, 0.042146291583776474, 0.7546455264091492, -0.04274789243936539, 0.9401522278785706, 0.8224419355392456, -0.5574315190315247, 0.05517635866999626, -0.5246955156326294, -0.2069818675518036, -0.44426363706588745, 0.6786613464355469, -0.5290529727935791, -0.1213703528046608, 0.5924292802810669, -0.04888991639018059, 0.10485843569040298, 1.062077283859253, 0.5579450726509094, -0.2742381989955902, 1.0198709964752197, 0.33190688490867615, -0.058454543352127075, 0.4085921049118042, -1.0277831554412842, -0.2381557822227478, -0.8591841459274292, -0.4954874813556671, -0.443561851978302, -0.4220956265926361, -0.5948405861854553, -0.031194055452942848, 0.28168627619743347, 0.4686005711555481, -0.6599448919296265, 0.5182304978370667, -0.6147962212562561, 0.48870354890823364, 0.7650783658027649, 0.3808457851409912, 0.1720290184020996, 0.16741091012954712, -0.38908150792121887, -0.08290086686611176, -0.6449940204620361, -0.5520680546760559, 1.351015329360962, 0.5151926875114441, 1.1765094995498657, -0.08211053907871246, 0.7415069341659546, 0.26928454637527466, 0.07695836573839188, -0.39136263728141785, 0.3542889356613159, 0.031491924077272415, -1.1074366569519043, -0.18572933971881866, -0.27986273169517517, -0.4326392710208893, 0.17821580171585083, -0.46926358342170715, -0.6624444127082825, 0.3651331067085266, 0.38862335681915283, -0.34729886054992676, 0.37094467878341675, -0.5796597003936768, 1.1327245235443115, -0.4846714437007904, -0.5925561785697937, -0.24933375418186188, -0.5615643858909607, 0.22727668285369873, -0.009149624966084957, -0.30574679374694824, -0.1996482014656067, 0.5385729670524597, 0.781761109828949, -0.7673746943473816, 0.6140560507774353, -0.5295559763908386, 0.5214157104492188, 0.4582737982273102, -0.18578600883483887, 0.712207555770874, 0.45105013251304626, -0.307976633310318, 0.45597368478775024, 0.14943350851535797, -0.4920428693294525, -0.43912604451179504, 0.8655687570571899, -1.0954034328460693, -0.2856427729129791, -0.8402438163757324, -0.3947363793849945, -0.027877790853381157, 0.09434665739536285, 0.7147181630134583, 0.8881920576095581, -0.3188903033733368, 0.23055222630500793, 0.4965021312236786, 0.1110202893614769, 0.40333935618400574, 0.3110333979129791, 0.027644621208310127, -0.46870487928390503, 0.6199132204055786, 0.023587001487612724, 0.16247406601905823, 0.09306541830301285, -0.016718346625566483, -0.6301117539405823, -0.748462438583374, -0.7870407104492188, 0.22946138679981232, -0.9607167840003967, -0.14391273260116577, -0.4156644642353058, -0.5199914574623108, -0.184702530503273, 0.2125280499458313, -0.47543877363204956, -0.4615478515625, -0.5872102975845337, -0.4184201657772064, 0.5145633816719055, 0.47500625252723694, 0.07245425879955292, 0.602095901966095, -0.6990565061569214, -0.02426835708320141, 0.09216578304767609, 0.37494128942489624, -0.1181919276714325, -1.0169267654418945, -0.5586006045341492, 0.18300603330135345, -0.6225898861885071, -0.5682412385940552, 0.35498473048210144, 0.2159378081560135, 0.8632118701934814, 0.4533916711807251, -0.02993883565068245, 1.0977593660354614, -0.3936765193939209, 0.5830467939376831, 0.38271552324295044, -0.5706115961074829, 0.4686095118522644, -0.13398493826389313, 0.15811513364315033, 0.9750911593437195, 0.7058413028717041, 0.0978725254535675, 0.0568440817296505, -1.0872960090637207, -0.6347615122795105, 1.051881194114685, 0.41325807571411133, 0.06087341532111168, 0.16894413530826569, 0.4092106521129608, -0.011351674795150757, 0.4420672059059143, -0.8571536540985107, -0.6396692395210266, -0.3955216705799103, -0.09402407705783844, -0.17751215398311615, -0.3761378228664398, -0.19586078822612762, -0.7625294327735901, 1.0548453330993652, 0.060729529708623886, 0.19163167476654053, 0.16602906584739685, -0.0717279314994812, -0.05794927850365639, -0.19372132420539856, 0.3980114161968231, 0.7575631141662598, -0.9709190726280212, -0.1582927703857422, 0.17818762362003326, -0.6005421280860901, 0.1402065008878708, 0.37387797236442566, 0.0858459323644638, 0.30596107244491577, 0.2530347406864166, 1.2525458335876465, -0.03828831762075424, -0.3456229865550995, 0.4641072452068329, -0.10950330644845963, -0.29374340176582336, -0.6410071849822998, 0.13460688292980194, -0.2098715901374817, 0.3057757616043091, 0.3047369718551636, 0.4364807903766632, 0.14971110224723816, -0.374845415353775, 0.22833770513534546, 0.14494825899600983, -0.5664402842521667, -0.15859779715538025, 0.9395164847373962, 0.03625334054231644, -0.19565238058567047, 1.0187193155288696, -0.15732498466968536, -0.04764532297849655, 0.861710786819458, 0.3962312936782837, 0.8790521621704102, 0.010072657838463783, -0.1391034871339798, 0.992095947265625, 0.12961119413375854, -0.18816423416137695, 0.24102658033370972, 0.11389005184173584, -0.4874997138977051, -0.1317954957485199, -1.0204523801803589, -0.33793795108795166, 0.44329074025154114, -1.1691392660140991, 0.6977329254150391, -0.7180481553077698, -0.5458603501319885, 0.4095163643360138, 0.0028434558771550655, -1.0251939296722412, 0.5628007650375366, 0.07440056651830673, 1.0428379774093628, -0.9012462496757507, 1.1306508779525757, 0.6209729313850403, -0.6707967519760132, -0.930732011795044, -0.34676510095596313, -0.11183220893144608, -0.7669119834899902, 0.7974100708961487, 0.09546962380409241, 0.353243887424469, 0.11202583461999893, -0.36707645654678345, -0.8289417028427124, 1.2661192417144775, 0.5316722393035889, -1.047898769378662, -0.11119738221168518, 0.2551416754722595, 0.5960099697113037, -0.20951804518699646, 0.8653055429458618, 0.3842248320579529, 0.11445505172014236, 0.43035459518432617, -1.0456441640853882, -0.30912819504737854, -0.3750151991844177, 0.06013976037502289, 0.15240205824375153, -0.6072359681129456, 1.2081561088562012, -0.21636080741882324, 0.3813786208629608, 0.05925402045249939, 0.46181046962738037, 0.29005032777786255, 0.32473307847976685, 0.4727736711502075, 0.90848708152771, 0.5230579972267151, -0.1828245222568512, 0.9626842737197876, -0.5105860233306885, 0.8085948824882507, 1.2276815176010132, -0.047942984849214554, 0.3483329713344574, 0.5227007865905762, -0.4068893790245056, 0.43607068061828613, 0.8554415702819824, -0.4420108497142792, 0.6714679598808289, 0.2616250514984131, 0.036272354423999786, -0.16864359378814697, 0.2404361516237259, -0.6221577525138855, 0.44147273898124695, 0.09591740369796753, -0.8248701095581055, -0.38029491901397705, -0.18040546774864197, -0.11267382651567459, -0.15043361485004425, -0.3844013810157776, 0.5372597575187683, -0.2100566178560257, -0.4716039001941681, 1.113005518913269, 0.04283270612359047, 0.3959779739379883, -0.6398824453353882, -0.2592454254627228, -0.15480956435203552, 0.5227270126342773, -0.3133913278579712, -0.5790650844573975, 0.24866285920143127, 0.10573255270719528, -0.42671912908554077, 0.13910049200057983, 0.22659479081630707, -0.38378411531448364, -0.9632394313812256, 0.011386274360120296, 0.2697233557701111, 0.37088117003440857, -0.07326453924179077, -1.1781328916549683, -0.004765199031680822, 0.05333779752254486, -0.20923447608947754, 0.22862140834331512, 0.19883297383785248, 0.01021722424775362, 0.4195738434791565, 0.6643087267875671, -0.09613088518381119, 0.06885745376348495, 0.07870005816221237, 1.0768518447875977, -0.6351012587547302, -0.43421974778175354, -1.0370992422103882, 0.7657709121704102, -0.4036606550216675, -0.8100813031196594, 0.6401050090789795, 1.0968977212905884, 1.0011508464813232, -0.4121991693973541, 0.5265604257583618, -0.10142900049686432, 0.4250127375125885, -0.44081252813339233, 0.6307545304298401, -0.44830018281936646, 0.06941056996583939, -0.5190961956977844, -1.2258330583572388, 0.19494792819023132, 0.7230850458145142, -0.1556265950202942, 0.0737995058298111, 0.5900949835777283, 0.864859938621521, -0.2679922878742218, -0.1263207197189331, 0.32169196009635925, -0.019633334130048752, 0.2397606372833252, 0.4278563857078552, 0.6594852805137634, -0.9347008466720581, 0.4360226094722748, -0.8768764138221741, -0.35755112767219543, -0.2416185587644577, -0.8603858351707458, -1.0579742193222046, -0.5158721804618835, -0.5461385846138, -0.5203317403793335, -0.0344158411026001, 1.1474260091781616, 0.8968945741653442, -0.7666544318199158, -0.3954772353172302, 0.09477698802947998, -0.38948073983192444, -0.37631097435951233, -0.17547966539859772, 0.3512672483921051, 0.17813988029956818, -1.0942059755325317, 0.040237393230199814, -0.17920619249343872, 0.388668954372406, -0.3184325695037842, -0.22371496260166168, -0.28850480914115906, -0.43974754214286804, 0.11231892555952072, 0.039069969207048416, -0.42604485154151917, -0.057477716356515884, -0.19251489639282227, -0.06789706647396088, 0.12704481184482574, 0.2986658811569214, -0.5351399183273315, 0.6197614073753357, 0.15455275774002075, 0.20372523367404938, 1.0660961866378784, 0.10050099343061447, 0.20914781093597412, -0.7576074004173279, 0.6106789112091064, 0.2907940745353699, 0.670886754989624, 0.16802389919757843, -0.5225661396980286, 0.5540860295295715, 0.43689680099487305, -0.5531491637229919, -0.9386275410652161, -0.3136596381664276, -1.232290267944336, 0.2988186478614807, 1.0721806287765503, 0.0020326345693320036, -0.3454950749874115, 0.3351198732852936, -0.38807711005210876, 0.36600491404533386, -0.3566759526729584, 0.5516240000724792, 0.7805808186531067, -0.017412476241588593, 0.16791003942489624, -0.45566144585609436, 0.48954734206199646, 0.13358569145202637, -0.424281507730484, -0.2288471907377243, 0.4829924702644348, 0.5298129916191101, 0.09533779323101044, 0.34686681628227234, -0.22933630645275116, 0.13246701657772064, 0.2010105550289154, 0.29729264974594116, -0.6096346974372864, -0.39474916458129883, -0.29382118582725525, -0.19522443413734436, 0.2959859073162079, -0.5689876079559326 ]
Xwin-LM/Xwin-LM-7B-V0.1
Xwin-LM
"2023-09-21T05:42:01Z"
21,142
74
transformers
[ "transformers", "pytorch", "llama", "text-generation", "license:llama2", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-09-15T14:03:07Z"
--- license: llama2 --- <h3 align="center"> Xwin-LM: Powerful, Stable, and Reproducible LLM Alignment </h3> <p align="center"> <a href="https://github.com/Xwin-LM/Xwin-LM"><img src="https://img.shields.io/badge/GitHub-yellow.svg?style=social&logo=github"></a><a href="https://huggingface.co/Xwin-LM"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Models-blue"></a> </p> **Step up your LLM alignment with Xwin-LM!** Xwin-LM aims to develop and open-source alignment technologies for large language models, including supervised fine-tuning (SFT), reward models (RM), reject sampling, reinforcement learning from human feedback (RLHF), etc. Our first release, built-upon on the Llama2 base models, ranked **TOP-1** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/). Notably, it's **the first to surpass GPT-4** on this benchmark. The project will be continuously updated. ## News - 💥 [Sep, 2023] We released [Xwin-LM-70B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-70B-V0.1), which has achieved a win-rate against Davinci-003 of **95.57%** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) benchmark, ranking as **TOP-1** on AlpacaEval. **It was the FIRST model surpassing GPT-4** on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/). Also note its winrate v.s. GPT-4 is **60.61**. - 🔍 [Sep, 2023] RLHF plays crucial role in the strong performance of Xwin-LM-V0.1 release! - 💥 [Sep, 2023] We released [Xwin-LM-13B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-13B-V0.1), which has achieved **91.76%** win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), ranking as **top-1** among all 13B models. - 💥 [Sep, 2023] We released [Xwin-LM-7B-V0.1](https://huggingface.co/Xwin-LM/Xwin-LM-7B-V0.1), which has achieved **87.82%** win-rate on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), ranking as **top-1** among all 7B models. ## Model Card | Model | Checkpoint | Report | License | |------------|------------|-------------|------------------| |Xwin-LM-7B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-7B-V0.1" target="_blank">HF Link</a> | 📃**Coming soon (Stay tuned)** | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License| |Xwin-LM-13B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-13B-V0.1" target="_blank">HF Link</a> | | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License| |Xwin-LM-70B-V0.1| 🤗 <a href="https://huggingface.co/Xwin-LM/Xwin-LM-70B-V0.1" target="_blank">HF Link</a> | | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License| ## Benchmarks ### Xwin-LM performance on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/). The table below displays the performance of Xwin-LM on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/), where evaluates its win-rate against Text-Davinci-003 across 805 questions. To provide a comprehensive evaluation, we present, for the first time, the win-rate against ChatGPT and GPT-4 as well. Our Xwin-LM model family establish a new state-of-the-art performance across all metrics. Notably, Xwin-LM-70B-V0.1 has eclipsed GPT-4 for the first time, achieving an impressive win-rate of **95.57%** to Text-Davinci-003 and **60.61%** to GPT-4. | **Model** | **AlpacaEval (winrate %)** | **AlpacaEval (winrate %)** |**AlpacaEval (winrate %)** | |----------------------------------|------------|----------|-------------| | | **v.s. Text-Davinci-003** | **v.s. ChatGPT** | **v.s. GPT4**| | **Xwin-LM-70B-V0.1** | **95.57** | **87.50** | **60.61** | | GPT-4 | 95.28 | 84.66 | 50.00 | | WizardLM-70B-V1.0 | 92.91 | 80.19 | 46.70 | | Llama-2-70B-Chat | 92.66 | 81.97 | 51.19 | | **Xwin-LM-13B-V0.1** | **91.76** | **81.79** | **55.30** | | ChatGPT | 89.37 | 50.00 | 16.60 | | WizardLM-13B-V1.2 | 89.17 | 75.75 | 41.91 | | **Xwin-LM-7B-V0.1** | **87.35** | **76.40** | **47.57** | | Llama-2-13B-Chat | 81.09 | 64.22 | 30.92 | ### Case study on [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) | Prompts | GTP4 response | Xwin-LM response | |----------------|------------|--------| |I've put a plate on top of an apple, and take the plate from kitchen to dinning room. Where is the apple now|The apple is now in the dining room, as it was underneath the plate when you moved the plate from the kitchen to the dining room.|The apple is still in the kitchen, as you have only moved the plate. The apple is under the plate, so if you want to bring the apple to the dining room, you should either move the apple directly or put the apple on the plate and then move the plate to the dining room.| | Answer the following question.<br> How do you say "good evening" in French. | In French, "good evening" is said as "bonsoir." | In French, "good evening" is translated to "bonsoir." This greeting is used in the evening and nighttime hours, typically after 6 p.m. It is a combination of "bon," which means "good," and "soir," which means "evening." To pronounce it, say "bone-swahr." | ### Xwin-LM performance on NLP foundation tasks. The following table provides a comparison of Xwin-LMs with other LLMs on NLP foundation tasks in [Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard). | Model | MMLU 5-shot | ARC 25-shot | TruthfulQA 0-shot | HellaSwag 10-shot | Average | |------------------|-------------|-------------|-------------------|-------------------|------------| | Text-davinci-003 | 56.9 | **85.2** | 59.3 | 82.2 | 70.9 | |Vicuna-13b 1.1 | 51.3 | 53.0 | 51.8 | 80.1 | 59.1 | |Guanaco 30B | 57.6 | 63.7 | 50.7 | 85.1 | 64.3 | | WizardLM-7B 1.0 | 42.7 | 51.6 | 44.7 | 77.7 | 54.2 | | WizardLM-13B 1.0 | 52.3 | 57.2 | 50.5 | 81.0 | 60.2 | | WizardLM-30B 1.0 | 58.8 | 62.5 | 52.4 | 83.3 | 64.2| | Llama-2-7B-Chat | 48.3 | 52.9 | 45.6 | 78.6 | 56.4 | | Llama-2-13B-Chat | 54.6 | 59.0 | 44.1 | 81.9 | 59.9 | | Llama-2-70B-Chat | 63.9 | 64.6 | 52.8 | 85.9 | 66.8 | | **Xwin-LM-7B-V0.1** | 49.7 | 56.2 | 48.1 | 79.5 | 58.4 | | **Xwin-LM-13B-V0.1** | 56.6 | 62.4 | 45.5 | 83.0 | 61.9 | | **Xwin-LM-70B-V0.1** | **69.6** | 70.5 | **60.1** | **87.1** | **71.8** | ## Inference ### Conversation templates To obtain desired results, please strictly follow the conversation templates when utilizing our model for inference. Our model adopts the prompt format established by [Vicuna](https://github.com/lm-sys/FastChat) and is equipped to support **multi-turn** conversations. ``` A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hi! ASSISTANT: Hello.</s>USER: Who are you? ASSISTANT: I am Xwin-LM.</s>...... ``` ### HuggingFace Example ```python from transformers import AutoTokenizer, AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Xwin-LM/Xwin-LM-7B-V0.1") tokenizer = AutoTokenizer.from_pretrained("Xwin-LM/Xwin-LM-7B-V0.1") ( prompt := "A chat between a curious user and an artificial intelligence assistant. " "The assistant gives helpful, detailed, and polite answers to the user's questions. " "USER: Hello, can you help me? " "ASSISTANT:" ) inputs = tokenizer(prompt, return_tensors="pt") samples = model.generate(**inputs, max_new_tokens=4096, temperature=0.7) output = tokenizer.decode(samples[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True) print(output) # Of course! I'm here to help. Please feel free to ask your question or describe the issue you're having, and I'll do my best to assist you. ``` ### vllm Example Because Xwin-LM is based on Llama2, it also offers support for rapid inference using [vllm](https://github.com/vllm-project/vllm). Please refer to [vllm](https://github.com/vllm-project/vllm) for detailed installation instructions. ```python from vllm import LLM, SamplingParams ( prompt := "A chat between a curious user and an artificial intelligence assistant. " "The assistant gives helpful, detailed, and polite answers to the user's questions. " "USER: Hello, can you help me? " "ASSISTANT:" ) sampling_params = SamplingParams(temperature=0.7, max_tokens=4096) llm = LLM(model="Xwin-LM/Xwin-LM-7B-V0.1") outputs = llm.generate([prompt,], sampling_params) for output in outputs: prompt = output.prompt generated_text = output.outputs[0].text print(generated_text) ``` ## TODO - [ ] Release the source code - [ ] Release more capabilities, such as math, reasoning, and etc. ## Citation Please consider citing our work if you use the data or code in this repo. ``` @software{xwin-lm, title = {Xwin-LM}, author = {Xwin-LM Team}, url = {https://github.com/Xwin-LM/Xwin-LM}, version = {pre-release}, year = {2023}, month = {9}, } ``` ## Acknowledgements Thanks to [Llama 2](https://ai.meta.com/llama/), [FastChat](https://github.com/lm-sys/FastChat), [AlpacaFarm](https://github.com/tatsu-lab/alpaca_farm), and [vllm](https://github.com/vllm-project/vllm).
[ -0.5805162191390991, -0.7408773303031921, 0.4279941916465759, 0.1495809257030487, -0.18532705307006836, 0.13258519768714905, -0.10965660959482193, -0.7526076436042786, 0.33434808254241943, 0.24969927966594696, -0.7683998346328735, -0.7177050709724426, -0.7921944260597229, -0.05791907757520676, -0.21142718195915222, 1.0042662620544434, -0.04791346192359924, -0.2720547616481781, -0.04644017666578293, -0.23745113611221313, -0.22377032041549683, -0.5834079384803772, -0.7611208558082581, -0.43692532181739807, 0.5348259806632996, -0.06229940801858902, 0.9874715805053711, 0.7807232737541199, 0.6022312045097351, 0.4234572947025299, -0.14519675076007843, 0.2623501121997833, -0.464450865983963, 0.018020091578364372, 0.15945546329021454, -0.6291403770446777, -0.7939891219139099, 0.295461505651474, 0.5408298373222351, 0.2694619596004486, -0.09376560151576996, 0.022597661241889, 0.12572495639324188, 0.6221123337745667, -0.3442297577857971, 0.20074975490570068, -0.33576732873916626, 0.07673101127147675, -0.25081154704093933, -0.331233412027359, 0.0034093093127012253, -0.3355606496334076, -0.12415412068367004, -0.7169958353042603, 0.06169665604829788, 0.22054891288280487, 1.172789454460144, 0.4349021911621094, -0.11769748479127884, -0.309256911277771, -0.3342295289039612, 0.8282961249351501, -1.0267469882965088, 0.18960534036159515, 0.22618459165096283, 0.17419740557670593, -0.3998332619667053, -0.6480965614318848, -0.6571613550186157, -0.413337379693985, -0.18114233016967773, 0.204872727394104, -0.6467596292495728, 0.10182898491621017, 0.2881770730018616, 0.3712264895439148, -0.5574649572372437, 0.14606736600399017, -0.10496385395526886, -0.025063714012503624, 0.6799185872077942, 0.22571472823619843, 0.3807887136936188, 0.02367599867284298, -0.5038356184959412, -0.32052114605903625, -0.5349333882331848, 0.36191895604133606, 0.2811135947704315, 0.1813734471797943, -0.4255784749984741, 0.4424433708190918, -0.003770864335820079, 0.615465521812439, 0.1557658463716507, -0.6000489592552185, 0.4502783715724945, -0.37974509596824646, -0.24877482652664185, -0.1067790538072586, 1.1107572317123413, 0.6517276763916016, -0.11941835284233093, -0.038754288107156754, -0.2707942724227905, 0.29995766282081604, -0.2342994213104248, -0.7711900472640991, -0.03024853579699993, 0.31225067377090454, -0.5346682071685791, -0.39315328001976013, -0.083811916410923, -0.4859257936477661, -0.17676571011543274, -0.06744135171175003, 0.37917646765708923, -0.46097996830940247, -0.05817815661430359, 0.08122056722640991, -0.2028036117553711, 0.49939969182014465, 0.4256487786769867, -0.594135582447052, 0.291605144739151, 0.6597256064414978, 0.891426682472229, -0.4757687747478485, -0.3829895853996277, -0.566340982913971, -0.16733865439891815, -0.27100780606269836, 0.4513397812843323, -0.1288330852985382, -0.3789516091346741, -0.4606793224811554, 0.21242904663085938, 0.03338950127363205, -0.4362609088420868, 0.3832724690437317, -0.2693057954311371, 0.39174047112464905, -0.34631848335266113, -0.6477982401847839, -0.020119749009609222, 0.4424707591533661, -0.4557734429836273, 1.0792845487594604, -0.011505652219057083, -0.8580918908119202, 0.04005151987075806, -0.7565980553627014, -0.19287031888961792, -0.30874165892601013, -0.15205886960029602, -0.3759059011936188, -0.18732894957065582, 0.1985403597354889, 0.45273900032043457, -0.3591445982456207, 0.17246215045452118, -0.24821774661540985, -0.355120450258255, 0.22421379387378693, -0.5044647455215454, 1.2107512950897217, 0.15730834007263184, -0.9716398119926453, -0.006971249356865883, -0.6320698857307434, 0.12143950909376144, 0.42543983459472656, -0.25667428970336914, -0.05210251361131668, 0.09447716176509857, -0.3787704110145569, 0.2886892557144165, 0.4416041374206543, -0.626920223236084, 0.4053061306476593, -0.515819787979126, 0.33392009139060974, 0.718436598777771, -0.21693527698516846, 0.33247098326683044, -0.6470689177513123, 0.5707594156265259, -0.03107602894306183, 0.23740118741989136, -0.06764846295118332, -0.7043585181236267, -0.8353217244148254, -0.38405290246009827, 0.07716239988803864, 0.9217146039009094, -0.6720031499862671, 0.5909000039100647, -0.0846298485994339, -0.62309730052948, -0.5015843510627747, 0.10674118995666504, 0.6702590584754944, 0.4052930772304535, 0.47304022312164307, -0.14727412164211273, -0.3500332832336426, -0.801286518573761, 0.11870749294757843, -0.38022109866142273, 0.21925300359725952, 0.4270346760749817, 0.4733295440673828, -0.3271583616733551, 0.9578192234039307, -0.5451036691665649, -0.22573983669281006, -0.34466829895973206, -0.1386987715959549, 0.39266231656074524, 0.4912192225456238, 0.9000564217567444, -0.46940112113952637, -0.35653775930404663, 0.0876622200012207, -0.9377058148384094, -0.18593251705169678, -0.004095437470823526, -0.33553484082221985, 0.45903176069259644, 0.27352017164230347, -0.7924835681915283, 0.49410003423690796, 0.6810904145240784, -0.562527060508728, 0.6668382883071899, -0.1281946301460266, 0.23290593922138214, -0.9610145092010498, 0.06465014070272446, -0.10135582089424133, -0.44137677550315857, -0.48138588666915894, 0.25649192929267883, -0.18864357471466064, 0.31586551666259766, -0.4594600796699524, 0.9951995611190796, -0.5839217901229858, 0.05371440201997757, -0.15672244131565094, 0.48340561985969543, 0.05658118426799774, 0.6503920555114746, -0.1532117873430252, 0.8730199933052063, 0.43165093660354614, -0.2818549573421478, 0.3529582917690277, 0.1656108945608139, -0.19960859417915344, 0.23594175279140472, -0.7775322794914246, -0.017304902896285057, 0.10690385848283768, 0.29697853326797485, -0.9550415277481079, 0.28757238388061523, 0.5472445487976074, -0.6881157755851746, 0.46673235297203064, 0.09735260903835297, -0.2491980940103531, -0.3757907450199127, -0.4988236427307129, -0.10058543086051941, 0.5717078447341919, -0.4969676434993744, 0.4123358428478241, 0.2969687283039093, -0.1299230009317398, -0.8965359926223755, -0.665564775466919, 0.18007400631904602, -0.1532016098499298, -0.7710913419723511, 0.49010995030403137, -0.3071904480457306, -0.49449872970581055, -0.15580908954143524, 0.03533285856246948, 0.30357375741004944, 0.18662120401859283, 0.326083779335022, 0.4945855736732483, -0.26328590512275696, -0.30797863006591797, 0.001735885627567768, -0.2256806343793869, 0.013465414755046368, 0.04390539973974228, 0.4907260835170746, -0.387356162071228, -0.37126046419143677, -0.3334149122238159, 0.3348246216773987, 0.5291686058044434, -0.14962716400623322, 0.6675384044647217, 0.6374343037605286, -0.07352150231599808, 0.06873399019241333, -0.645297110080719, -0.12767581641674042, -0.5004310011863708, 0.3186476528644562, -0.21126806735992432, -0.827370822429657, 0.666776180267334, 0.3828371465206146, 0.4447267949581146, 0.5273382067680359, 0.5992727279663086, -0.25288665294647217, 1.1714645624160767, 0.618324875831604, -0.3870132267475128, 0.4603027403354645, -0.6884722113609314, 0.023773586377501488, -0.6292718648910522, -0.1608273684978485, -0.4405125677585602, -0.5460900068283081, -0.7168522477149963, -0.5228822827339172, 0.26383039355278015, 0.11037850379943848, -0.21059878170490265, 0.425606369972229, -0.584533154964447, 0.1534135639667511, 0.6708946824073792, 0.05092748999595642, 0.25029823184013367, -0.13001509010791779, -0.21654456853866577, 0.05631458759307861, -0.6642852425575256, -0.6081951260566711, 0.7602666020393372, 0.4043745994567871, 0.7587786912918091, 0.17749688029289246, 1.004428505897522, 0.33245307207107544, 0.2474527508020401, -0.5094889998435974, 0.7212849855422974, -0.07623428106307983, -0.6256160736083984, -0.30358192324638367, -0.5226137638092041, -1.0765515565872192, 0.2391061782836914, -0.1954478621482849, -0.9034241437911987, 0.31621038913726807, 0.16377851366996765, -0.4285285770893097, 0.541479229927063, -0.4652656316757202, 0.8001765012741089, -0.5378116965293884, -0.5026807188987732, 0.1412874013185501, -0.9379151463508606, 0.4178903102874756, 0.3365037441253662, 0.1296679973602295, -0.3790498375892639, -0.362975150346756, 0.799518346786499, -0.6512562036514282, 0.8109359741210938, -0.3529296815395355, -0.17299970984458923, 0.3494788706302643, -0.021635735407471657, 0.6998973488807678, -0.184500053524971, -0.07720489054918289, 0.33594903349876404, 0.3096012771129608, -0.28072065114974976, -0.5335332751274109, 0.7828596830368042, -1.1321591138839722, -0.7194650769233704, -0.6332459449768066, -0.5065355896949768, 0.09317661821842194, -0.004357738886028528, 0.4726760983467102, 0.35562190413475037, -0.09746895730495453, 0.04680566117167473, 0.5383502840995789, -0.39085787534713745, 0.5738428235054016, 0.4304313361644745, -0.43368640542030334, -0.3545568287372589, 0.9052709341049194, 0.11648768931627274, 0.3822040259838104, 0.4023953974246979, 0.05300036817789078, -0.2588239014148712, -0.411254346370697, -0.5588819980621338, 0.24456986784934998, -0.5862160921096802, -0.4840061664581299, -0.7567875981330872, -0.271295964717865, -0.13422951102256775, -0.17716242372989655, -0.28681835532188416, -0.5162030458450317, -0.45922303199768066, 0.03347741439938545, 0.4678146243095398, 0.4939797818660736, -0.07457035034894943, 0.3984510004520416, -0.6590462923049927, 0.25424325466156006, 0.05519578978419304, 0.013200616464018822, -0.13824619352817535, -0.5455876588821411, 0.012403741478919983, 0.1501559615135193, -0.5782864093780518, -0.9393566250801086, 0.6578248143196106, 0.22650198638439178, 0.7642256617546082, 0.3791971206665039, 0.057258397340774536, 0.5455438494682312, -0.3306528925895691, 0.9437342882156372, 0.3637135326862335, -0.7812021374702454, 0.4074435532093048, -0.3112509250640869, 0.15137451887130737, 0.4405379295349121, 0.30737417936325073, -0.36262524127960205, -0.5862884521484375, -0.6336476802825928, -0.7468186020851135, 0.7172854542732239, 0.3925246298313141, -0.1110071912407875, -0.1033565104007721, 0.34130510687828064, -0.007392388302832842, 0.1695217490196228, -0.8444141745567322, -0.8423992991447449, -0.057080142199993134, -0.10447447746992111, -0.17079637944698334, -0.08086064457893372, -0.02992858923971653, -0.3540286123752594, 0.9948491454124451, -0.0699273943901062, 0.6148641109466553, 0.3777320086956024, -0.01479296013712883, 0.08351542800664902, 0.14343419671058655, 0.6625261902809143, 0.5915517210960388, -0.28024962544441223, -0.08180513232946396, 0.2138994038105011, -0.4470270276069641, 0.3643684685230255, 0.3354469835758209, -0.24268724024295807, -0.013153079897165298, 0.561163604259491, 0.891601026058197, 0.05948343873023987, -0.47312435507774353, 0.6391712427139282, -0.12033473700284958, -0.17143376171588898, -0.09668834507465363, 0.32156676054000854, 0.21837656199932098, 0.5079692602157593, 0.42908933758735657, -0.11585541814565659, 0.06463555246591568, -0.6658419966697693, 0.0084143728017807, 0.7826693058013916, -0.34039798378944397, -0.11051046848297119, 0.6850273013114929, 0.09461698681116104, -0.22201664745807648, 0.3183726668357849, -0.5319021940231323, -0.7293408513069153, 0.8019501566886902, 0.5621722936630249, 0.7291027307510376, -0.18766027688980103, -0.016903553158044815, 0.35128873586654663, 0.4276171624660492, 0.036023326218128204, 0.369301438331604, 0.006365592125803232, -0.6103906631469727, -0.3122732639312744, -0.7186244130134583, -0.3270809054374695, -0.06871487945318222, -0.374112069606781, 0.21864722669124603, -0.35647761821746826, -0.5136374831199646, -0.12002357840538025, 0.48213645815849304, -0.5691752433776855, 0.019248725846409798, 0.27116164565086365, 1.2793972492218018, -0.5571272373199463, 0.8488696217536926, 0.4025997817516327, -0.2248513251543045, -0.6978360414505005, -0.3703218698501587, 0.21160411834716797, -0.9426841735839844, 0.38378816843032837, 0.08155281096696854, -0.3072323501110077, -0.05274607241153717, -0.7102400064468384, -0.9502825736999512, 1.3943151235580444, 0.4624020755290985, -0.8191299438476562, -0.2059219777584076, -0.018411288037896156, 0.25905641913414, -0.4192783534526825, 0.40372148156166077, 0.7358419299125671, 0.6243873834609985, -0.06565605849027634, -1.0201973915100098, 0.20030878484249115, -0.5923200249671936, -0.16796430945396423, 0.2308897078037262, -0.7080084085464478, 0.9513485431671143, -0.3641865849494934, -0.08467055857181549, 0.3576009273529053, 0.717627763748169, 0.6091824769973755, 0.37594324350357056, 0.5337347388267517, 0.6000136733055115, 0.7011781930923462, -0.45105239748954773, 1.1767852306365967, -0.5436705350875854, 0.3652193248271942, 1.0454429388046265, -0.022135552018880844, 0.7224128842353821, 0.34038662910461426, -0.5691673755645752, 0.533104419708252, 0.7054431438446045, 0.12562668323516846, 0.26855337619781494, 0.08175098150968552, -0.14450624585151672, -0.10955186933279037, 0.24152490496635437, -0.6930810809135437, 0.33095982670783997, 0.21403871476650238, -0.40331634879112244, -0.10118551552295685, 0.0037525417283177376, 0.3159672021865845, -0.2778741717338562, -0.13013091683387756, 0.70138019323349, 0.17319567501544952, -0.5257903337478638, 0.8529275059700012, 0.11227409541606903, 1.0974372625350952, -0.956417977809906, -0.005648146383464336, -0.4283371865749359, 0.19968314468860626, -0.2557244896888733, -0.8257817625999451, -0.006748699117451906, -0.037963587790727615, -0.19101513922214508, 0.08612753450870514, 0.6213811039924622, -0.23903702199459076, -0.5048763155937195, 0.6931861639022827, 0.5876157283782959, 0.3441970646381378, -0.0032334174029529095, -1.1001850366592407, 0.40504375100135803, 0.21690984070301056, -0.5042583346366882, 0.3673560619354248, 0.25817742943763733, -0.07154561579227448, 0.8360082507133484, 0.6442123651504517, 0.008017624728381634, 0.09331493079662323, -0.28361281752586365, 0.9674535989761353, -0.7168232798576355, -0.41018345952033997, -1.034589171409607, 0.36595773696899414, -0.030522402375936508, -0.2681615948677063, 0.8480960726737976, 0.5109763741493225, 0.49435847997665405, 0.34840649366378784, 0.6887547969818115, -0.3484222888946533, 0.32141247391700745, -0.33684128522872925, 0.7921427488327026, -0.8109530210494995, 0.24724070727825165, -0.40637823939323425, -0.9322372674942017, -0.08050842583179474, 0.6559159159660339, -0.2584383487701416, 0.3059992790222168, 0.3386844992637634, 0.969664990901947, 0.005944665055721998, -0.19284366071224213, 0.38160043954849243, 0.3799682855606079, 0.3982090651988983, 0.7566432356834412, 0.758503258228302, -0.5083657503128052, 0.5431411862373352, -0.46106722950935364, -0.49050962924957275, -0.17834769189357758, -1.0475926399230957, -0.6802175641059875, -0.39787888526916504, -0.25833824276924133, -0.40582138299942017, 0.25684410333633423, 1.268707275390625, 0.6864320039749146, -0.6357176899909973, -0.3354532718658447, 0.3248586356639862, 0.1171722337603569, -0.26339325308799744, -0.25155121088027954, 0.43210723996162415, -0.20173253118991852, -0.6880688071250916, 0.36417701840400696, 0.20650100708007812, 0.22365976870059967, -0.3864576518535614, -0.4317484498023987, -0.2658482789993286, 0.12620441615581512, 0.5898899435997009, 0.37601238489151, -0.9085772633552551, -0.07857804745435715, 0.24010182917118073, -0.290984570980072, 0.3581387400627136, 0.20027422904968262, -0.8461079597473145, 0.13149894773960114, 0.2693468928337097, 0.25036829710006714, 0.604482114315033, -0.06987661868333817, 0.30939096212387085, -0.46458593010902405, 0.001410265569575131, 0.0590469129383564, 0.5634010434150696, 0.3494836688041687, -0.45637601613998413, 0.563513994216919, 0.13383197784423828, -0.6166977882385254, -0.6978930830955505, -0.16788075864315033, -1.1574857234954834, -0.16777868568897247, 1.044044852256775, -0.34438154101371765, -0.369243860244751, 0.17941558361053467, -0.4440806210041046, 0.20127470791339874, -0.47871074080467224, 0.4126007854938507, 0.4400942623615265, -0.2898104190826416, -0.0748516097664833, -0.646917462348938, 0.4489043056964874, 0.16058224439620972, -0.8519058227539062, 0.02242831327021122, 0.31352630257606506, 0.3405618965625763, 0.3856998682022095, 0.7823365926742554, -0.07709145545959473, 0.21410056948661804, -0.21213237941265106, 0.274383008480072, -0.1907680630683899, -0.059452466666698456, -0.1493827998638153, -0.07771778851747513, -0.0336652509868145, -0.22788235545158386 ]