typetext
{
"input": "Hello! Isnt it beautiful out saturday evening?",
"input2": "Embedding generation using microsoft's xtremedistil-l6-h384-uncased model"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6ew**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run creatorrr/xtremedistil-l6-h384-uncased using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"creatorrr/xtremedistil-l6-h384-uncased:8cc26d69c3aebd79f51190e47a53886d77be1d457fd5335fb1a3f1cdf8471b0f",
{
input: {
input: "Hello! Isnt it beautiful out saturday evening?",
input2: "Embedding generation using microsoft's xtremedistil-l6-h384-uncased model"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6ew**********************************
This is your API token. Keep it to yourself.
import replicate
Run creatorrr/xtremedistil-l6-h384-uncased using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"creatorrr/xtremedistil-l6-h384-uncased:8cc26d69c3aebd79f51190e47a53886d77be1d457fd5335fb1a3f1cdf8471b0f",
input={
"input": "Hello! Isnt it beautiful out saturday evening?",
"input2": "Embedding generation using microsoft's xtremedistil-l6-h384-uncased model"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6ew**********************************
This is your API token. Keep it to yourself.
Run creatorrr/xtremedistil-l6-h384-uncased using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "creatorrr/xtremedistil-l6-h384-uncased:8cc26d69c3aebd79f51190e47a53886d77be1d457fd5335fb1a3f1cdf8471b0f",
"input": {
"input": "Hello! Isnt it beautiful out saturday evening?",
"input2": "Embedding generation using microsoft\'s xtremedistil-l6-h384-uncased model"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "w44cjhhb7jeqje2ycrg522jjdq",
"model": "creatorrr/xtremedistil-l6-h384-uncased",
"version": "8cc26d69c3aebd79f51190e47a53886d77be1d457fd5335fb1a3f1cdf8471b0f",
"input": {
"input": "Hello! Isnt it beautiful out saturday evening?",
"input2": "Embedding generation using microsoft's xtremedistil-l6-h384-uncased model"
},
"logs": "",
"output": [
[
-0.2892751693725586,
0.8293054699897766,
0.006564268376678228,
-0.23170141875743866,
-0.10520545393228531,
-0.05396406725049019,
-0.41506972908973694,
-0.3288544714450836,
0.1491491049528122,
0.15847115218639374,
0.18047542870044708,
-0.12688285112380981,
-0.42682504653930664,
0.7205470204353333,
0.13814996182918549,
0.057139378041028976,
0.2813626229763031,
-0.5143899917602539,
-0.5153190493583679,
0.07399050146341324,
-0.1683465838432312,
-0.5738234519958496,
-0.22656965255737305,
0.21807731688022614,
-0.45611998438835144,
0.010345455259084702,
-0.3933548629283905,
-0.08122802525758743,
-0.05632639303803444,
0.5438993573188782,
0.28675857186317444,
0.037608493119478226,
0.022015338763594627,
0.17830140888690948,
-0.31981685757637024,
-0.33402761816978455,
-0.1372406929731369,
-0.2357899397611618,
-0.749015748500824,
0.22295643389225006,
0.0761314332485199,
-0.39863792061805725,
0.4413340985774994,
-0.12498000264167786,
0.19869869947433472,
0.04761505499482155,
0.07384008914232254,
-0.10222721099853516,
0.036445531994104385,
-0.4511072635650635,
0.3925621509552002,
0.268076628446579,
-0.3346001207828522,
-0.019084684550762177,
-0.2460000067949295,
0.3576635420322418,
-0.04389021173119545,
-0.23032383620738983,
0.005467211361974478,
-0.2892228662967682,
-0.12874042987823486,
-0.07032379508018494,
0.026892811059951782,
-0.19773881137371063,
-0.21782833337783813,
-0.22080306708812714,
0.007723789196461439,
0.11142698675394058,
-0.1071731224656105,
0.17546071112155914,
-0.024883775040507317,
0.15994088351726532,
-0.5134203433990479,
0.3391452729701996,
-0.07807837426662445,
0.09975654631853104,
0.38255730271339417,
-0.20888538658618927,
0.10516858100891113,
0.4283615052700043,
0.07260813564062119,
0.09992478042840958,
0.30728664994239807,
0.978094756603241,
0.10718970745801926,
0.16173158586025238,
-0.20779205858707428,
-0.20333528518676758,
0.36641645431518555,
-0.20067405700683594,
-0.32695403695106506,
0.20256473124027252,
-0.045868683606386185,
0.182594895362854,
-0.32461532950401306,
0.33726024627685547,
0.2667648494243622,
-0.19927488267421722,
0.15813004970550537,
-0.07161150872707367,
-0.023437974974513054,
-0.03618572652339935,
0.011370886117219925,
0.3343709409236908,
0.17754490673542023,
0.24337011575698853,
-0.007206769660115242,
-0.07111319154500961,
-0.01679222844541073,
0.23600554466247559,
0.21536391973495483,
0.3866966962814331,
0.057080987840890884,
0.15299177169799805,
0.07655028253793716,
-0.1059984341263771,
0.06689593940973282,
-0.3388940989971161,
-0.6718301773071289,
0.3190465271472931,
0.14847896993160248,
0.3309836685657501,
0.14147716760635376,
-0.15330348908901215,
0.28392496705055237,
0.495102196931839,
-0.1416633278131485,
0.4282163679599762,
0.17673011124134064,
-0.0015789394965395331,
0.44341719150543213,
0.43016576766967773,
0.21493099629878998,
0.13344734907150269,
-0.16258950531482697,
-0.316995769739151,
-0.2399132251739502,
-0.41581305861473083,
0.18835024535655975,
0.14478950202465057,
0.07352986931800842,
-0.42546162009239197,
-0.12442513555288315,
0.3501870632171631,
0.17846018075942993,
0.13359712064266205,
0.1559382826089859,
-0.07464300841093063,
0.123660147190094,
0.1664891391992569,
0.12981142103672028,
-0.5883193016052246,
-0.06876134872436523,
-0.038324203342199326,
0.33115869760513306,
0.29220008850097656,
-0.06971468031406403,
-0.3236202895641327,
0.37631988525390625,
-0.4745049774646759,
-0.39278528094291687,
-0.3159111738204956,
-0.2409030795097351,
-0.15585899353027344,
-0.5099974274635315,
0.10750788450241089,
0.05728819966316223,
0.06916528195142746,
0.24553890526294708,
0.11223117262125015,
-0.326833575963974,
0.290021687746048,
0.4417283535003662,
0.1694558709859848,
0.04864216968417168,
0.008775691501796246,
0.12043613195419312,
-0.022903745993971825,
-0.07705499976873398,
0.15603505074977875,
0.24326132237911224,
-0.36020925641059875,
-0.10832706093788147,
-0.2244710475206375,
-0.13606353104114532,
0.20374949276447296,
-0.2627280652523041,
-0.04203467443585396,
-0.002796330489218235,
0.17664684355258942,
0.1671861857175827,
0.22131268680095673,
0.05995243415236473,
-0.5564431548118591,
-0.24543143808841705,
-0.34118762612342834,
-0.3546539843082428,
-0.1690756231546402,
0.007414712104946375,
0.18392163515090942,
-0.0800040140748024,
0.20548009872436523,
0.35821881890296936,
-0.05311521887779236,
-0.381588339805603,
-0.0681615099310875,
-0.09279617667198181,
0.029493296518921852,
0.11666176468133926,
-0.14076708257198334,
0.20113353431224823,
0.0359455943107605,
0.19796419143676758,
-0.007886300794780254,
-0.08854333311319351,
0.12303813546895981,
0.15683747828006744,
-0.004924372304230928,
-0.49083349108695984,
-0.24602200090885162,
0.1438385546207428,
-0.0812738761305809,
-0.12780873477458954,
0.19693990051746368,
-0.12233322113752365,
0.0379231758415699,
-0.06622039526700974,
-0.6350904107093811,
-0.12821994721889496,
-0.1382608860731125,
-0.156122088432312,
0.30726343393325806,
0.0974743440747261,
-0.32325348258018494,
0.4730682373046875,
0.07176139950752258,
-0.08609987050294876,
0.1765121966600418,
0.23299668729305267,
-0.3306918144226074,
-0.1439630091190338,
-0.04412030801177025,
0.09546705335378647,
-0.1810929775238037,
-0.5005384087562561,
0.061513375490903854,
0.4313685894012451,
-0.15251146256923676,
-0.0800384059548378,
0.4347200393676758,
0.022577261552214622,
-0.24902749061584473,
0.14434075355529785,
-0.14728961884975433,
-0.4300452172756195,
-0.09716317802667618,
0.1404450386762619,
-0.3551896810531616,
-0.012616000138223171,
-0.6724335551261902,
-0.3377617597579956,
0.10631308704614639,
-0.5316648483276367,
0.24048012495040894,
0.2327023148536682,
0.3648426830768585,
0.0349474735558033,
0.17670659720897675,
0.5872440934181213,
0.3274736702442169,
-0.37176039814949036,
0.02797873131930828,
0.3845040798187256,
0.038645196706056595,
-0.1039932370185852,
-0.03227205201983452,
-0.007147276308387518,
-0.5926792025566101,
-0.13112561404705048,
-0.3741941750049591,
0.25973907113075256,
-0.2990991771221161,
-0.15974698960781097,
-0.13187329471111298,
-0.6253589391708374,
0.059711676090955734,
0.4408750534057617,
0.14004367589950562,
0.06254764646291733,
-0.19273658096790314,
0.17105114459991455,
-0.06444380432367325,
-0.06514256447553635,
-0.2610307037830353,
0.013121102005243301,
0.004426988307386637,
-0.3696804344654083,
-0.1631551831960678,
0.04998787119984627,
-0.3539985716342926,
-0.03003527782857418,
0.22537638247013092,
0.14323313534259796,
0.26975640654563904,
-0.08614947646856308,
0.37743040919303894,
0.21014517545700073,
-0.06107466295361519,
0.2032262533903122,
-0.18823792040348053,
-0.05545760318636894,
0.1562839150428772,
-0.2791302502155304,
0.4007716178894043,
0.06885809451341629,
0.07504173368215561,
0.201978400349617,
-0.023778095841407776,
0.2811402976512909,
0.40345633029937744,
0.27732449769973755,
-0.018979297950863838,
0.5929439663887024,
0.21101494133472443,
-0.07454538345336914,
-0.43053415417671204,
-0.2904309332370758,
0.005669356789439917,
-0.37819144129753113,
-0.15351521968841553,
-0.24512316286563873,
0.04840205982327461,
0.11572567373514175,
-0.4628007709980011,
0.27475857734680176,
0.00823917705565691,
0.43001100420951843,
0.08197299391031265,
0.030761100351810455,
0.3839212954044342,
0.6031709313392639,
0.2900569438934326,
-0.021249903365969658,
0.22104109823703766,
0.3430321216583252,
0.24358387291431427,
0.10186704248189926,
0.031759586185216904,
-0.23694927990436554,
-0.18690292537212372,
0.10994195193052292,
0.22277717292308807,
0.32145166397094727,
-0.16906602680683136,
-0.1365215927362442,
0.1540127843618393,
0.205321803689003,
0.02900817058980465,
-0.3179967403411865,
0.09101226180791855,
0.03151816129684448,
-0.06497862190008163,
0.03235067054629326,
-0.10705924779176712,
0.15526700019836426,
0.22779898345470428,
0.2767252027988434,
0.042821984738111496,
-0.11763598769903183,
-0.26724323630332947,
0.14653712511062622,
-0.12374988198280334,
-0.14751119911670685,
0.3063267469406128,
-0.2379053682088852,
-0.1468341201543808,
0.013538908213376999,
0.0623733289539814,
0.2064090520143509,
0.43600621819496155,
-0.1211923137307167,
0.31937041878700256,
-0.3654731214046478,
-0.01817120797932148
],
[
-0.35223814845085144,
0.658254861831665,
0.05380437895655632,
-0.11880649626255035,
-0.20738275349140167,
-0.18868592381477356,
-0.29413098096847534,
-0.26029670238494873,
0.2581242322921753,
0.41499990224838257,
0.19811001420021057,
-0.1865188330411911,
-0.3966413736343384,
0.4649926722049713,
0.056359466165304184,
-0.0886126458644867,
0.2226514220237732,
-0.308925598859787,
-0.11082342267036438,
-0.040838342159986496,
-0.4655557870864868,
-0.2934393286705017,
-0.2754014730453491,
0.043105825781822205,
-0.24860015511512756,
-0.15514618158340454,
-0.24022796750068665,
-0.1514521688222885,
0.10130905359983444,
0.23197947442531586,
0.038105495274066925,
-0.19223938882350922,
0.12295445054769516,
0.007874442264437675,
-0.37052255868911743,
-0.26282942295074463,
-0.030179735273122787,
-0.0755649134516716,
-0.96999192237854,
0.3790549635887146,
-0.09557580947875977,
-0.3539404571056366,
0.013732747174799442,
-0.25215834379196167,
0.08365806937217712,
0.2028522789478302,
-0.05276846885681152,
-0.3667992949485779,
0.20761530101299286,
-0.309028685092926,
0.39980214834213257,
0.36306828260421753,
-0.011547128669917583,
-0.041739530861377716,
-0.5640517473220825,
0.19493180513381958,
-0.04986351355910301,
-0.255950003862381,
0.06004108861088753,
-0.15372973680496216,
-0.13589011132717133,
-0.39127933979034424,
0.011055673472583294,
0.026832731440663338,
-0.1715494841337204,
-0.015959057956933975,
-0.1082005575299263,
0.049961164593696594,
0.005744636058807373,
0.16599108278751373,
0.029422959312796593,
0.3057313561439514,
-0.2598857283592224,
-0.0913643017411232,
-0.2919794023036957,
-0.13877971470355988,
0.20976561307907104,
-0.18767143785953522,
-0.09200545400381088,
0.08891712129116058,
-0.10379692912101746,
0.33811113238334656,
0.05785548686981201,
0.6649543046951294,
0.12664955854415894,
0.29833656549453735,
-0.10751748085021973,
0.01633564382791519,
0.30228832364082336,
0.1055375412106514,
-0.16449880599975586,
0.46015071868896484,
0.44966647028923035,
0.4044012725353241,
0.19943562150001526,
0.43361058831214905,
0.019166160374879837,
-0.1203521192073822,
-0.04794499650597572,
0.01757756620645523,
-0.0736033096909523,
-0.20172469317913055,
-0.018307842314243317,
0.251853883266449,
0.13587650656700134,
-0.2073177546262741,
0.05171416327357292,
-0.3789028525352478,
0.033646054565906525,
-0.10708098113536835,
0.028707634657621384,
0.40670716762542725,
0.09498480707406998,
0.1401316076517105,
0.21796101331710815,
-0.1075424775481224,
0.20142093300819397,
-0.09810550510883331,
-0.6837869882583618,
0.029257435351610184,
0.13798215985298157,
0.2815703749656677,
-0.2714633345603943,
-0.12602591514587402,
0.45041555166244507,
0.811842679977417,
0.03160524740815163,
0.11695223301649094,
-0.24794532358646393,
-0.06953828781843185,
0.36837708950042725,
0.45102250576019287,
0.24047477543354034,
-0.022901393473148346,
-0.004531607031822205,
0.2818440794944763,
-0.04422926902770996,
-0.5405603051185608,
0.052180759608745575,
-0.25505515933036804,
0.3370656371116638,
-0.8178276419639587,
-0.027113834396004677,
0.2736184298992157,
0.46427029371261597,
0.06075747311115265,
0.2291622757911682,
-0.10084656625986099,
0.13342948257923126,
0.025776715949177742,
-0.010945296846330166,
-0.2084643691778183,
-0.049645379185676575,
-0.10684304684400558,
0.38019704818725586,
0.42881399393081665,
-0.036213770508766174,
-0.40473440289497375,
0.6777715086936951,
-0.3018685579299927,
-0.1125580370426178,
-0.02981528453528881,
-0.3002793490886688,
0.008697920478880405,
-0.5721359848976135,
0.05846085399389267,
-0.01861085370182991,
-0.11516264826059341,
0.0038158835377544165,
-0.16149204969406128,
-0.09524727612733841,
-0.19360032677650452,
0.16937538981437683,
0.13076727092266083,
0.3360443413257599,
0.3248913884162903,
-0.009752213023602962,
-0.18707813322544098,
-0.15050384402275085,
0.20471112430095673,
0.5344663858413696,
-0.44115638732910156,
0.00009315088391304016,
-0.39245733618736267,
-0.14553259313106537,
0.19633276760578156,
-0.07358189672231674,
0.08631256222724915,
0.018989529460668564,
0.14169341325759888,
0.357001930475235,
-0.39011460542678833,
-0.18873122334480286,
0.04927338659763336,
-0.06478224694728851,
-0.20149828493595123,
-0.24769210815429688,
-0.16216567158699036,
0.09871943295001984,
0.006276539992541075,
-0.26778391003608704,
-0.04014096036553383,
0.2071704864501953,
-0.10285934805870056,
-0.04128662496805191,
0.07665522396564484,
-0.3088701665401459,
-0.03311685472726822,
0.0937371701002121,
0.02566196210682392,
0.09315262734889984,
-0.13895080983638763,
0.20651769638061523,
-0.17959102988243103,
-0.2531290650367737,
-0.07373350858688354,
0.17664170265197754,
-0.005019473377615213,
-0.2808522582054138,
-0.008644319139420986,
0.06941329687833786,
-0.03075820952653885,
-0.09409607946872711,
0.22316981852054596,
-0.19853554666042328,
0.21336373686790466,
0.14811033010482788,
-0.6394020318984985,
-0.29518646001815796,
-0.27171123027801514,
-0.16945332288742065,
-0.017087139189243317,
-0.01164791826158762,
-0.1762012392282486,
0.20304857194423676,
-0.291573166847229,
-0.25581830739974976,
0.1105845645070076,
0.3516237437725067,
-0.3398905396461487,
-0.3720547556877136,
-0.3532460331916809,
0.43743741512298584,
-0.056722477078437805,
-0.10332053154706955,
-0.27911466360092163,
0.35704517364501953,
-0.09582138061523438,
0.2052094042301178,
0.06846641004085541,
-0.04263904318213463,
-0.1292230188846588,
0.11036919057369232,
-0.023746570572257042,
-0.40239477157592773,
0.2203035056591034,
0.020315250381827354,
0.04991671070456505,
0.05279594659805298,
-0.5362480282783508,
-0.3953380882740021,
0.2326875627040863,
-0.26141637563705444,
-0.007918355986475945,
0.33706533908843994,
0.48132988810539246,
0.19118142127990723,
0.4363521337509155,
0.2938232421875,
0.7467248439788818,
-0.0836682841181755,
-0.1671612560749054,
-0.15835975110530853,
-0.14615073800086975,
0.3179980516433716,
-0.14606940746307373,
0.14499421417713165,
-0.19353365898132324,
-0.19341327250003815,
-0.17119108140468597,
0.2255389392375946,
-0.5764700174331665,
-0.407938152551651,
-0.21421116590499878,
-0.7036054134368896,
0.3054613471031189,
0.10755039751529694,
0.32064059376716614,
0.2700139880180359,
-0.012400872074067593,
0.025219492614269257,
0.11547369509935379,
-0.22753889858722687,
-0.11296471953392029,
0.11476853489875793,
-0.25210636854171753,
-0.5064345598220825,
-0.6121541261672974,
0.174811452627182,
-0.5179857015609741,
-0.1806289553642273,
0.19897350668907166,
0.12820054590702057,
0.4187691807746887,
-0.20890411734580994,
0.06008518114686012,
0.050643257796764374,
-0.0075205108150839806,
0.5070807933807373,
-0.20148295164108276,
-0.16283105313777924,
0.08551247417926788,
0.11491350829601288,
-0.0712411031126976,
0.08046308904886246,
-0.005365106742829084,
0.17454315721988678,
0.12227986752986908,
0.3217906355857849,
0.4072718918323517,
0.11069158464670181,
0.13596317172050476,
0.3969522714614868,
0.40708237886428833,
-0.1496519148349762,
-0.15505264699459076,
-0.2726123631000519,
0.06595984846353531,
0.04020639881491661,
0.015044071711599827,
0.2015795111656189,
-0.1570686548948288,
0.07466065138578415,
-0.043564651161432266,
0.32936975359916687,
0.09798117727041245,
0.4200897812843323,
0.20143476128578186,
0.10470493137836456,
0.24522115290164948,
0.34706395864486694,
0.2033635675907135,
0.029988516122102737,
0.07293111830949783,
0.19252364337444305,
-0.00042844421113841236,
0.0675165131688118,
-0.08509109914302826,
-0.19543777406215668,
-0.13407908380031586,
-0.10941734910011292,
-0.31346601247787476,
0.19129422307014465,
0.08130038529634476,
-0.1862214356660843,
0.23194463551044464,
0.3762277364730835,
0.4815576374530792,
-0.16960389912128448,
0.16418582201004028,
-0.33123305439949036,
-0.02327055111527443,
0.1447424739599228,
-0.21159495413303375,
-0.07753192633390427,
0.11186974495649338,
0.22873273491859436,
0.11228174716234207,
0.21641920506954193,
-0.48322251439094543,
0.16270151734352112,
0.1854371279478073,
-0.051075004041194916,
0.09741603583097458,
0.019353918731212616,
0.2799873948097229,
0.15236204862594604,
0.20241594314575195,
0.22820758819580078,
0.5150196552276611,
0.33767589926719666,
0.14449003338813782,
-0.4023008942604065,
0.3875640630722046
]
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2022-08-25T08:44:36.44767Z",
"started_at": "2022-08-25T08:46:37.781276Z",
"completed_at": "2022-08-25T08:46:41.620691Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/w44cjhhb7jeqje2ycrg522jjdq/cancel",
"get": "https://api.replicate.com/v1/predictions/w44cjhhb7jeqje2ycrg522jjdq"
},
"metrics": {
"predict_time": 3.839415,
"total_time": 125.173021
}
}