Skip to content

Commit 099883a

Browse files
committed
update name
Signed-off-by: cmuhao <[email protected]>
1 parent c3a0117 commit 099883a

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -247,27 +247,21 @@
247247
},
248248
{
249249
"cell_type": "code",
250-
"execution_count": 4,
251-
"outputs": [
252-
{
253-
"name": "stdout",
254-
"output_type": "stream",
255-
"text": [
256-
"[0.07801833748817444, -0.02972417138516903, 0.012690403498709202, 0.08342994004487991, -0.07765800505876541, 0.019601989537477493, -0.015240228734910488, -0.008848312310874462, -0.040954213589429855, 0.0025382512249052525, 0.033096734434366226, -0.046222101897001266, 0.05860760435461998, -0.0568450428545475, -0.05276476591825485, 0.0008733967551961541, 0.0573134645819664, -0.05047149211168289, 0.1344185769557953, -0.07026461511850357, -0.012536157853901386, 0.0014152592048048973, 0.03534318506717682, 0.024096962064504623, 0.05246112868189812, 0.020924478769302368, 0.025234023109078407, 0.0519547164440155, -0.039378199726343155, -0.028298156335949898, -0.02180365100502968, 0.04103993624448776, 0.07427085936069489, -0.05584770813584328, -0.0056844125501811504, -0.019990745931863785, 0.030951738357543945, -0.05062446370720863, 0.014741722494363785, 0.04260324314236641, -0.042490728199481964, -0.03377283364534378, 0.04507656395435333, 0.03705034777522087, -0.019746845588088036, -0.056894805282354355, -0.009197551757097244, 0.0432242825627327, 0.039562687277793884, 0.009903769008815289, 0.01241956278681755, 0.10459619760513306, -0.05103137716650963, 0.06966476887464523, 0.07505859434604645, -0.04240266978740692, 0.01701846532523632, -0.03750495985150337, -0.054746296256780624, 0.0182594396173954, -0.012896361760795116, 0.04274599254131317, -0.019398674368858337, 0.009013266302645206, 0.014471234753727913, 0.06649964302778244, 0.008245548233389854, -0.028129680082201958, 0.003965297248214483, -0.07583525031805038, 0.08911711722612381, -0.0015677005285397172, -0.02182438038289547, 0.009041466750204563, 0.09342417120933533, -0.0706704705953598, -6.411851791199297e-05, -0.008567560464143753, 0.007213858887553215, 0.017243850976228714, -0.007712843827903271, -0.014170649461448193, -0.06195932626724243, 0.0028950050473213196, -0.08561848104000092, -0.006338762119412422, 0.021296678110957146, 0.053037408739328384, -0.001364336465485394, -0.002476662164554, -0.007682856172323227, 0.08198735862970352, -0.06873174756765366, -0.03858479857444763, -0.049135707318782806, 0.06852905452251434, -0.06103356555104256, -0.036411698907613754, -0.006557854823768139, 0.03009471669793129, 0.002019936917349696, -0.00010870185360545292, 0.07710562646389008, 0.025387680158019066, 0.0009156420128419995, -0.04377828165888786, 0.01065537054091692, 0.007469665724784136, -0.03740379959344864, -0.014080684632062912, 0.05310516804456711, -0.06749620288610458, -0.053242605179548264, 0.08061722666025162, 0.02061639353632927, 0.0001176815276267007, 0.06245463341474533, 0.016253599897027016, 0.052639469504356384, -0.024744976311922073, -0.030349019914865494, -0.04416344314813614, -0.0769074410200119, 0.08859003335237503, 0.024769281968474388, 0.014561351388692856, -0.06356833875179291, -5.705649377509759e-33, -0.06456535309553146, -0.1016070544719696, 0.06309573352336884, 0.07219024002552032, -0.09207630157470703, -0.049228034913539886, 0.021137187257409096, -0.10578685253858566, -0.05286998301744461, -0.05111454054713249, 0.0469074510037899, -0.06117412820458412, 0.0339399017393589, 0.0004974030307494104, 0.10590977221727371, -0.044354259967803955, -0.06721671670675278, 0.06536784023046494, -0.09154384583234787, -0.048457901924848557, 0.029953187331557274, 0.08078416436910629, -0.00024029790074564517, -0.0902462974190712, -0.058329153805971146, 0.007747629191726446, -0.01003243587911129, -0.03624315559864044, 0.03419674187898636, -0.005228803958743811, 0.015385909005999565, -0.016559993848204613, 0.07591874897480011, 0.03000662662088871, 0.035483840852975845, 0.04152686148881912, 0.04580167308449745, 0.012906593270599842, 0.00046234589535743, 0.062181223183870316, -0.09973206371068954, -0.00535804545506835, 0.024861454963684082, 0.05790933594107628, 0.030130719766020775, 0.0012853712541982532, -0.013569572940468788, -0.011862647719681263, -0.04452794790267944, -0.015595197677612305, 0.03933044150471687, -0.03277968987822533, -0.027693554759025574, 0.020017970353364944, 0.029961641877889633, 0.05409591272473335, 0.008051865734159946, -0.03742986544966698, 0.04847348481416702, 0.08966079354286194, -0.08925940841436386, 0.08563001453876495, 0.026953527703881264, -0.017407136037945747, 0.07889477163553238, -0.00330939469859004, 0.01642327941954136, 0.044870372861623764, 0.038156554102897644, 0.09313244372606277, 0.03933331370353699, 0.015708137303590775, 0.033201929181814194, 0.0066472371108829975, -0.01334573794156313, 0.07778702676296234, 0.07326165586709976, 0.04715342819690704, -0.011854764074087143, 0.048978861421346664, -0.04906925931572914, -0.047365352511405945, -0.057076893746852875, 0.027544574812054634, 0.09837957471609116, 0.013657073490321636, -0.03188484162092209, -0.03604546934366226, 0.016496896743774414, 0.00464057270437479, -0.011817664839327335, 0.05207153037190437, 0.026201622560620308, -0.007980862632393837, -0.06751339882612228, 3.4811626024548785e-33, -0.024179214611649513, -0.03442179411649704, 0.036609068512916565, -0.006544083822518587, -0.05538516119122505, -0.050731487572193146, 0.07519624382257462, 0.06881291419267654, 0.018306830897927284, -0.04784656688570976, -0.022632751613855362, -0.06805568188428879, 0.10169850289821625, -0.05231175944209099, 0.07785804569721222, 0.0361756794154644, 0.06857603043317795, -0.005667194724082947, -0.13218310475349426, 0.007104182615876198, -0.1339254528284073, -0.02523181587457657, -0.009480513632297516, 0.04022514075040817, -0.015926437452435493, -0.022156698629260063, -0.12536856532096863, -0.08784068375825882, -0.0802261009812355, -0.07575732469558716, 0.06334906816482544, -0.0752229169011116, -0.050206784158945084, 0.06962698698043823, -0.05181929096579552, 0.053249772638082504, 0.06303039193153381, -0.0071123153902590275, 0.028421849012374878, 0.06876292824745178, -0.006002248264849186, -0.012959819287061691, 0.0062925242818892, 0.08840963989496231, -0.015931595116853714, 0.09986289590597153, 0.006054670549929142, 0.05062229186296463, -0.021414808928966522, -0.012274649925529957, -0.04938894510269165, -0.01637115329504013, -0.09142754971981049, 0.05818070098757744, -0.006439460441470146, 0.042874306440353394, 0.015727540478110313, 0.0819028988480568, -0.0014139035483822227, -0.01970433071255684, 0.04451270401477814, 0.021125735715031624, 0.02288842760026455, 0.05101419612765312, 0.012825817801058292, 0.016781359910964966, -0.02216975949704647, -0.01764294132590294, 0.01915784366428852, -0.014603574760258198, 0.08485425263643265, 0.04511084407567978, -0.04835175350308418, -0.06153305619955063, 0.017427291721105576, 0.03947916999459267, 0.03766325116157532, 0.09129785746335983, 0.02054939605295658, 0.034065935760736465, -0.0031973524019122124, 0.03708754852414131, -0.0861574187874794, -0.04701957106590271, -0.060160450637340546, 0.030250826850533485, 0.02679312229156494, -0.040530577301979065, 0.06642504781484604, -0.015116401948034763, -0.07978353649377823, 0.03694821521639824, -0.08966337144374847, -0.15687212347984314, -0.056372202932834625, -1.9592286903957756e-08, -0.047816380858421326, 0.042460475116968155, -0.06115005165338516, 0.020119454711675644, 0.02028248831629753, 0.05098811909556389, 0.08137453347444534, 0.11335574835538864, -0.026579322293400764, 0.03825395181775093, 0.02473323419690132, -0.03123103640973568, -0.06278723478317261, -0.049794986844062805, -0.055130716413259506, -0.06971192359924316, -0.015822652727365494, 0.08279895782470703, 0.0027329535223543644, -0.1174812763929367, 0.0020566354505717754, -0.010167213156819344, -0.057345468550920486, 0.015829581767320633, -0.039744287729263306, -0.005296017043292522, 0.024359652772545815, -0.010927926748991013, 0.015765801072120667, 0.045185938477516174, 0.055428341031074524, -0.04472818970680237, -0.17569200694561005, -0.02548862434923649, 0.03431904315948486, -0.05847177281975746, -0.054736554622650146, 0.04503115266561508, 0.014799157157540321, -0.08725292235612869, -0.016895325854420662, 0.06513069570064545, -0.014137022197246552, 0.022250333800911903, 0.023893989622592926, -0.00975710991770029, 0.015478317625820637, 0.0044577764347195625, 0.033764127641916275, -0.041090093553066254, -0.04944945126771927, -0.06135516241192818, 0.028508879244327545, -0.012162184342741966, 0.0029868942219763994, -0.047052256762981415, 0.062173232436180115, -0.035780541598796844, -0.03985874727368355, -0.05135627090930939, 0.0775933563709259, 0.013610008172690868, 0.06700531393289566, 0.06444095075130463]\n"
257-
]
258-
}
259-
],
250+
"execution_count": null,
251+
"outputs": [],
260252
"source": [
261253
"question = \"the most populous city in the U.S. state of Texas?\"\n",
262254
"\n",
263255
"tokenizer = AutoTokenizer.from_pretrained(TOKENIZER)\n",
264256
"model = AutoModel.from_pretrained(MODEL)\n",
265257
"query_embedding = run_model(question, tokenizer, model)\n",
266-
"query = query_embedding.detach().cpu().numpy().tolist()[0]\n",
267-
"print(query)"
258+
"query = query_embedding.detach().cpu().numpy().tolist()[0]"
268259
],
269260
"metadata": {
270-
"collapsed": false
261+
"collapsed": false,
262+
"pycharm": {
263+
"is_executing": true
264+
}
271265
}
272266
},
273267
{

0 commit comments

Comments
 (0)