google-research / language

Shared repository for open-sourced projects from the Google AI Language team.
https://ai.google/research/teams/language/
Apache License 2.0
1.62k stars 345 forks source link

[macOS] Realm: segmentation fault when launching document index refresher #69

Closed steverichey closed 4 years ago

steverichey commented 4 years ago

I'm using a recent MacBook Pro and have followed the instructions to use a conda environment. However, I get the following errors when I attempt to start the document index refresher (step 1 in Running the code in the REALM readme). I've included the gcloud login line to show that I am logged in, despite the "All attempts to get a Google authentication bearer token failed" message. I'd imagine that the TensorFlow warnings are just because this project uses an older version of TensorFlow, but they are included for completeness' sake. Note that the text becomes scrambled at a certain point; I have no idea what that means. I am using Apple zsh in macOS Catalina (10.15.6).

❯ gcloud auth login
Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?[redacted]

You are now logged in as [redacted].
Your current project is [None].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID
❯ sh language/realm/local_launcher.sh refresh
2020-08-25 11:21:14.765679: W tensorflow/core/platform/cloud/google_auth_provider.cc:178] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Not found: Could not locate the credentials file.". Retrieving token from GCE failed with "Aborted: All 10 retry attempts failed. The last failure: Unavailable: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Couldn't resolve host 'metadata'".
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.987791 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.988698 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.989794 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.991188 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.991858 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.993469 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.994431 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.995805 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.997133 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:21:14.999843 4593778112 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:135: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
Fatal Python error: Segmentation fault

Current thread 0x0000000111cf7dc0 (most recent call first):
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 1034 in GetNext
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/lib/io/tf_record.py", line 181 in tf_record_iterator
  File "[redacted]/realm/language/realm/retrieval.py", line 135 in count_tf_records
  File "[redacted]/realm/language/realm/retrieval.py", line 143 in count_tf_records_parallel_helper
  File "[redacted]/realm/language/realm/parallel.py", line 39 in process_from_queue
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/process.py", line 99 in run
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/process.py", line 297 in _bootstrap
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/popen_fork.py", line 74 in _launch
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/popen_fork.py", line 20 in __init__
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/context.py", line 277 in _Popen
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/context.py", line 223 in _Popen
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/multiprocessing/process.py", line 112 in start
  File "[redacted]/realm/language/realm/parallel.py", line 106 in __init__
  File "[redacted]/realm/language/realm/retrieval.py", line 162 in count_tf_records_parallel
  File "[redacted]/realm/language/realm/refresh_doc_embeds.py", line 108 in main
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/absl/app.py", line 250 in _run_main
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/absl/app.py", line 299 in run
  File "[redacted]/realm/language/realm/refresh_doc_embeds.py", line 192 in run_main
  File "[redacted]/realm/language/realm/refresh_doc_embeds.py", line 197 in <module>
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/runpy.py", line 85 in _run_code
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/runpy.py", line 193 in _run_module_as_main
Fatal Python error: Segmentation fault

Current thread 0x0000000111cf7dc0 (most recent call first):
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/sFatal Python error: Segmentation fault

Current thread 0x0000000111cf7dc0 (most recent call first):
  File "/Useite-packages/tensorflow_core/pythonrs/pywrap_tensorfl/sotwe_gianstaeurrn/aolp.tp/ya"n, line a1034cond in aFatal Python error: Fatal Python error: Segmentation fault

Segmentation faultG

eCurrent thread 0xtCurrent thread 0xN0000000111cf7dc0 (most recent call first):
3  File /ext
"  File Fatal Python error: "/Segmentation faultUse0000000111cf7dc0r/envss (most recent call first):
/

  File "/Fatal Python error: Current thread 0xSegmentation faultr

U/0000000111cf7dc0s (most recent call first):
eUesaFatal Python error:   File s"relr/Segmentation faultstUse

sCurrent thread 0xmerg0000000111cf7dc0/ (most recent call first):
s/  File a"/lss/tiCurrent thread 0xs/Ubt/p0000000111cf7dc0eeFatal Python error: ygSegmentation faultst (most recent call first):
sag

hona  File a"tsesa3Current thread 0xau/eurrsurFatal Python error: /rg/s.a7sSegmentation fault/0000000111cf7dc0/oU (most recent call first):
o  File ta"

uep/trsUs/gs/Current thread 0xa/oeipatoe0000000111cf7dc0srast//seprnuart/t/aaeos-cp (most recent call first):
n  File gaopana"tsc/pUc//snoaattenangdusae/acor3rdaosnac3a/s/odk/anugepndartaeav/3nss//es/ttane/n3/o/raeevpeseata/n/cannsclmoovnsgrodn/nlariadvfass//aelurra3eeoraallbma3m/llwc/ieb/n_//vmcs/op/ole/ponp/rydtlnhiveoyaritne/3.thsb3///eb/oa7nln/vp3prsemp/lyytitybahh/l/oma.rons/i7nletn/a/iabptlecm3hs/yitoh/./-pploin73bo.n//npyats7dhycow/nastipke3ira3-3.gt7e.appye/t/eats-ihen-opnsa_p7//3tt.cvas7i/tee-stcck/krnaaeggpaesascseoik/eatk-epel-gangrmspeorfstal/fte/lense/ancltseoikba/gsspno/erscyotoeorrwnskt/fffllohtwale_onogwwoens_c_sw__io3o.s7cnor/e/ret/eorcno/arsftprlpeycrltooen/fp.ywyh_rpetycotslin//ppyooth"r, line eotyh1034nhw in owGrona/orn_pp//ycfop_ltelwoe-/rrpyanatewp_hsocicbe/rp/pkyftyolinoh_wo/roanptwgeorey/at/ppy_Nnisnotye/pt_ttwerfsehwonerra/xp_ttrfalan_
pnr_l/oewnttene  File "s/snU_ss.sopoieyc"pnooryt, line e1034orrrfrflwd in rloeo.wp_yrwnsf/"asitGeergfaatNpne_lltselironxa.urw/p_aclnt_o, line t181.eowrptne in _
so  File yip"y"rotet"rfn/fal, line t/oen_, line n10341034arr in aw in /lUGnsc_.epaieynttNo"er, line lceeGrexntopsd1034.nay/3/e
r  File  in d"sntvtt_sai//pNrUheyxetae"o, line nG/g1034lp
s  File eat"meye in /lGlwseatriubr/.rps//Nsepoyr"/tUyptxtahpeN, line tago1034n/3 in .s7ae/ttsGao
  File es_nrtsex/isettrNne
ta
  File c""a/t  File "xeUgo/nseassao-rueutfp
aUrds  File /caerU/lkrs3res/sra/oop/sotws"_/tpsse//Utggetetsi/egnasn/aegtasaaueuvrsarsn/at/usroe/f/pl/ortao/aecarrsenptoantsandalno/a/mrlec/.a/aalnlriabonndfaasmtc3epl//py/co"3w_/, line eloaennnv1034coondgdaasy in aGar3ent/guvhpsyoura/to/enh3otg3e/rnps.e///rareatle/l7/mNeeelanax/nmv/stsn/vila
cbo/niri/  File l"elomtid/at3f//_sUribeseeeb-rn/vp/ypcsasa//tcrselhk/omnp/3ra/l.y7ma/oerglt/elsreisbi/ip/etdeb.gt/hptao-prtyiny3s"apaeu.aylvt7hrt//s, line i181m/oclpahot/eanltsoneanco.ki in 3pratbg-f._p/afny7"or, line npe3e./7scd/oard/st_ci3tkyitse/135a-etnepirlat in haostcocoeegrk
woraegfnsn_/e3t  File cvelsooso./-pwra/et/rp7uy/ntnh"ceso/n_ks/eUasoenlirtlrifl_mtcs/oosfa_rtlr/flrbgeseoewei/cs/toi-o/rwbt_eo/n_cecppasgtaodosacrrofsfyketh_a
r/eogprn  File /u"e/lcrUys///oplpitbhyeyeotr/osrhwst/_n/3c.ftdohoor.pneiy/nenll/ss7"oooair/ft, line lf_b/p/olt/etyisrgib/ie181raes in tot/w/_ittccff__oraororeedre-e/pc.olptcmhay/u"fooac/_, line rlrddp_kitya181t.rr/ah in nngt/efgeufarg_eatlooonelsrp/i/bertyc/ean"osrtrloidr./e
frca  File pl/eo, line owa"lbr/l181md/ylm_"c//ioai_U, line onr in g/ustf181iareet/g_ in ttefrtrearrpece_tro/yot/fs_rorr
hdoit.rfp  File ene/eclo"reyail"vcal./_orr/pdbUes/esr, line _t181is in cmto/i/orfer/_ttdtf__drirs.eteeragtroetgcaierseeacypvraya
touao"s, line   File 181ra in ""lt/oUfs_erdrrd.._u, line ppirrs
//yfe135st  File "l" in ecy/t, line rce/U143sf" in , line o181oglur in oetanaactoroattt/rofss_t/rdfeaua_rl/mr/e_uirc/n_frlleatt
nor  File s_"gttefaaceuertl_/goaroaercgred//rsa
soared_ma/languadgs_parallueltr  File e"_Uosr/f/h/lUoserrarle
esleeaalm//irlpemr/rre  File ssm/tt"ristt
/t  File /eer"Uese/g/aegtlrseaerraUisansgaeslu/vamu/aaevrsgteelulrragl.a/.sr/aeas/an/ustftrpflgoloryp"/ae
of, line y  File 135a in ac"g, line tt//oru"eagllmeu/r/ornara135tlta_ee// in rcesatelamml/ftrorue_rUtaer/auiceomlis/vreaannvtldlal_msgtau.
nr  File af"g_/elr/l.e/puUfapnyglyea/g""o, line rrg, line ue135ca135s in taoe/g// in e/arrcrldersaemelaeora/csosuutllsm
/  File mn"srnm/tegtea_r/ttefstaturrer/g/ef_lo_Uatsa/rtslatf/i_ueri/rrrrefreecaaonrseiveveaclomlrdl/so.astpg/vta
yual  File aedgse"
.  File /, line r"lga"//135s/aUus in rc.orUlupseaanpeyeegurnyaraslsm"/lt, line /135m/l/a_ in snfgcgl/touptsaergeaatge/aol"elurnef/, line ratg_a143ts in _ftee_arrl/srac.oecoaurandleuamlslumte/r_p/ctyfrlemoot/af
rrr  File /d/"t/frl_or"rela/eUt/a, line reactior39lseirseemdvsaln/_el
p  File g"a.alm/uv/raallaUsn.r in sapglppeayne"/, line yrg/l"res, line l143s135te/_guhaegro in cel in aeupsasg_eascgotfesurore//ecorr
luegmeaam/annsltt_at_l_aq  File r"t/uUfumufesmuer/_e_rre/erfsr/er/es/ctfrotetlrgo
cioealsvroarr  File aati/ee"lrvaeddasal..pspt/Utsleu
r_y  File r"i/m"repUyas, line "/143/srr/fe in leocsrvoaatl, line t/a143l/me in l/gllcseaaa/sorasln_gunreghtaeuegllaugneuuap.a/opta/ntgesplaym/_/tlftaraernn
_  File tf"ega/"a, line cu/_olUnr143r_ in ecsoeumrrear/e/sflrc/dlonesuacroot_tf_rtredcastmriegeaovgd_3setar_pp//aradrrseaeaa/asll/llmt_/peularree._lrranhpalil/lravesefnl/eagvulayorml/laeglatpp_ae/eral/"eh, line l143rar.ll_epehmea/ in rlib
ll/eyammllpeyl  File c.lp//yo"upnpet"e/r, line Urls
h
o"39r  File e  File e"t, line t143 in _ in nc/o"3trrsUu/af._/nnp7rrsoisU/eesmeutgccltveaersrols._ueftsipyrpg_atsf/asrsro"md_o, line tsega/qaugcs_t143ee/_re in usrescsarpeiegoc/fnluloumnto/gpea/ar_aradtsasp_aurpa/aru
alrrrlolcleserasel/ame.tfl/l/_lhpllyefoaf"la.l  File telo_/pp"n, line ralretreeca_ly99
h"  File m in /g, line u"r/aou//UUnesgl
r  File rpeeee/rlra
"  File s"a39enl/dUs/r_gpr in mse/ups/lreaUrsasa/sgeenlrss//sotagmu/sertrsecgae/aetglsaesssaampaatuglge/upaar_lr/rraofep/erreaa/ofmtgall_loha/ls_maaq/alpsteuarlnaruelala/lllfeepluc.lupey.oe/oae"lt.ndrar
, line /339
/eap in r  File l"pr/oe  File p"//pntUUyv/sass/ersea"rmr/sntoycl, line e39eeemg"aascso/ndla, line arss/a in 3/len39a in nvulprgmu/asg//ra_sp/tnrgofclreeogesaecerfulsoias_asbl/mp/afoygmstae/r/ulr_omt/_rib/hq_rferao/oluqpumeteproeya/lm/pat_uhaemo/nnnuraqc33e.a.oe
a77l/l
l  File lneu"/lem/  File .Umdua3l/m/auneep"sgeu/nl
ptvU  File iastrpr/r"iyp/rssuear/soo"cg/rU, line ssa39s in ttpelgcereoaresssscea/euslerseeaaiin/nlgml/mgsesls/ragsa_pf/tu/rr/eoo/ppgoltmi/panab_/a.srpcyrooctpqatun/udpay3"/aahrn/, line eearoceooc39noesvas in nlp.npdp3yurso/ale"cse
r  File set.., line e7"/3s/297lsp/ in ./__eapUasfyeyrmnb"urloo"mti, line o, line tsstlrap
n39  File mac/99vs in o/slnptp/rr_ in ierqooccearlseguessa"iesmn/guus/apurrod/ncUoe
e  File /b
_sflp"s  File //ptseiary3oUrst/bheore"//n/sp.yaUtn/3h.ssnpv7emo_q/y/ns"sars/3umt, line ec.uee799s/s
g/t  File r"u/ in Umaeslatresguru/lietpoiapuprtrrstloo/mc/aclessingoe/engn/
sasainssasduaabct/ipoaepruryrnto  File g"a/3s/nagUc/hpe//oesnouovspnpstrrd/a./p33a/yt"/./7eo/n, line 99oncsvea in mnerasrrpse//suasacolstn.cpud/trytle"nam3e, line /a
g  File a/s"a99a in uoll/iriepUnbsvm/sr/n/drn/lorueeoacacpinpotby
r  File s"/3as/nldtme/U/stgeaa3s//lhenesanosnvvpsui/bi/nrp/egsry//r3./ytsoa/np7p/rmoatcrtouelethhoinoapaclr/maesocdsnsltma/n.ea3sls./n7e/3gc/oini3ngmb./ul7adpap3s/iyel/tbn//avpmippyrts/uury"oro/elttcn, line ehh99sosnvi in ioopsr3n.e7rcte//an/3agm.spsl.urunorn7/lmtaic/eeac/pomn
du  File lps"osar3pitlnomyilpg/ci/re/pUsble/o"ceesrp, line einssyibs/n_n//99tvshfoosg in irtuenprnnyktgh/o.sn
pp/rp  File rgp3.o3c.ero7ys"7/c/ao/scrms, line "mae/Uu74se.lautls.u in e_sipplprremlayoy/"tuscsle.ni, line cs/pbio297py/rh" in r, line ps"
_so/p, line 99  File s99tti/ in beyagocn in n"aeosgtsasiran/tuhUrsuso/ncno
t3nroadpaeg/r.  File 7r3//p/"rue/onpm
uptr  File s"c/o//nevsstses/
.gacpn  File Ul"r/satsyUes"eaiarsees.sUrpsyc/uop, line 297/rr"snd, line /ao3o in e_spsatl297trcts in e/e/mbss//te_abgneoglaiogoeaotsnavscsobss/ainaad/stuaprutraarn3/sp/gr/yoterutoa/rphppt/eo/rnovctpatnpe
a  File /o/lsaancmo
sn  File /"sarce3/.no"a/.l7pUmdyUas/eas//lrn"neamdiusra, line c3osb3ll//n297ie in /b/tssedn/n/vpvsip/ars_tepalret3ebgoayo/ceoes/ttgnsrasyvisnsmht/egau/olrtahsolmnr3n/eraoia//p.pa
7lr  File pbt/"l/3iamm/b/upnur//plyioabl/.Uts/ctopyoeihrnpytcs/t/7andsataetshceoonh3oopg/nedrasna.3p3n.vno33s.7//meys//amu"nrlc, line eea7us/.umtuisvlilsltmt7r/297nip/rpioorrc//mpgoepurleltaoibt in c/scs/l/esep_siyiptpsroimce/nsgbsosilniph/ooanni3ebgonn.a/cngp7t/orpo/ppyg_nfrd//ooarcc3teoscse.h/eespsotsrknynpvors3..sapps.ymppu
el.y"", line "n  File t_, line "f/i297297, line /2977p/Up in yr in osm" in _c_roebr_kboe., line o20opryest in sot/bro"oatla, line ss74mtps
/tstl in stri__  File le_ariubgia/s"pnaiyapu/r
/Uoltntgatp  File huinp"/_sp_roceh/
Utr
os
sn  File   File ep/3or"  File p./7""ass/n//ce/UUUmsasteeng_seaseurs/esrcr/sfsstlst/oaseigoispt/reonnrasgtatuedgsa/krsc/eas.puya"3egp/ru/aoogrpoe, line petsspanin_tv/s74aan/ur in r_sen//aac/aglluma/oluonaroppctnt/n/h/d
ai3pabf/oorcak/neanap.c  File v"o//oUnsdnneaproeys"/, line s74acdoa3snn3t in //pere_pedga_anay/fltauvnhlosrme3ntv/k/s/a/curlsoen.3i/e.prby/nr"hpeya
t7vaa  File s"hn//l, line moo/mplult/n74/rmli in atU/3picbo/p.nysre/7_ro/lcatahdsoense/alai3u/s3imnbunl.ms/7c//eantvhsm
llpcinyu/  File ogbr/el"petn/itaptolgpdmehianap/psoyna_ltf/3r.oic7hooen/r33u/oesmrsUc.e7s/n/rbk.psopimvys"//nuslutpignie, line rpgey/ttah74l/rlsotrpmcnoo3 in .///_oasnlpc7iieletb/pspasi/aynmcnuulgttnecxih/rpnott_rof
ecnpdh.eas3soo/rgpciensyks.oei"aopn, line vns  File s"a/n/up277g in Us_3Pyrre/"oep.tegr/a/lo, line p/pna7o74m in _s/e/pmn/onps_ueafcp
o  File rneollttne_kfloi.npigpryo"r_akf, line oars.apy"b, line 74/"kuu in .cdrppay/n_clo3pa/e"sunhec/shni, line 
y  File tn
74tg20 in h_oU"/  File vn" in 3s/a_na/_//Upsi.ni7esr/s/troeserm__tU
slcsoeugna  File ealu"a//lsstmUpt/dnlaacseiepuireonr_rgsra//3cos/bpfssee/statuoshe
/gpis  File nat/rn/vrsoygepk"sgatn/h/a.tppyrope/acs/a"aU, line aaulone20n in ma/u__fo_nsliinecondrabkrir3t..p3//y/oon7"p, line t_r_pse
y20// in nd/avt  File ash/o"n/3n.a7/mcu/orosUlp_tn_ms3t/eegnvsualt/esraiituenrierapta/ld_r_/ioa
anmsl/m  File o/s/l3l/iaep"nrctpboee/igptbas/ypcvtcssa/oenshUou/rs/rasd/aseinirnoyaestcanlgp/3m3htn///.o/aenpnolg3s7p/nmo.aivun7tlsd/c//aemt3ero/beupn/e_fogpanailsrayuvttorhpolrmsn/i//oppdopkecnnterr_3laf3o/c/sioa.srnebsei.e7/nkaa./pcnvmsgo/ppyyy"r, line eus"i, line t/20np20 in lglto in aplnehm_/n_md_ai_cif_3i/nlonporri/iobeinnvtosct/_/_tr__/eelenp
systah  File 
kixo3ib..  File "/"tpl7pnygm//U/nsteym/hul./pi"rb3c/Usoo/nyls, line .t"insp, line p7223y20terertt in 3ogcsh//ae. in eo_n3.77Pssms_t/muaoupl/xemesgt_iupanistrn
o  File iclre"saut/ispi/intrg_//co_Ups.
t  File noporu/nygaot"/pp"naelcoeor, line tx/tct.nUe/ssid277/epppsaasrrnesanc in 3_y_/"ssoP/, line tnienog/277efgooccnopa in et_vedPsnanaouprtesnesgerx3/k
a
rse/t.  File os/papey"a.tl/  File ani/vUnnp""suyrgs//r/, line ae/cUo"eosprmpeat, line s277/lomrss/ns20/d in pla//3itt_/Pebeagneann/o_lcpfaovissabuy/ergp/ in rpkayeetsathhaonrl.mn//3oluo_nr_3ini
/.  File p.to"np7/yo7i/da/Uasn3mperasut/lm"/u/talts, line t20e in _/_bie/tpncoygn
nd_pv_saatah  File icn/i3oprsr/i"roennadootc3u_aencvaleer3m/sU//se_.n7s/emri
/u  File sns"o/lvilsitnUsi/prgs/bcspetae//lro//agrr/nmocs/cptleyosieaabtng/etlhemasos/t/nx3t.nslae7isiu/cgrt.oppyey/xttb./pap"yonmdyptusn", line tahu, line r277h in go/a/n3/277ocopl in /ao_ten3t.i/nacnov3Ppna7.ndaa_n/r37ms/ce/tu/lrePxtoomn.puoplctetypi"eepaoliem, line /plsinnn277r
 in   File dv"sb///psya
U_si  File nP"o/3roeepUrtaolsmc/cehe/oleensrress/sisnigbsgi/n/nsco
n  File tve3"s/tn.p/Ugerssoecres///g/rct7e/axsemgpassolaytsuttnm.lp.te/getasplsihabuyoiyxa"a", line unrr3t/por., line 223/o/.c112 in 7_ in p/pyeoPyuosrp/"otm/tsahpiuntsln, line p223tt/ in g_aap/enPc
otopi/napcarnoro3  File enot
n
.a  File cnt7n"o//Umadsun  File ce"cexa/"d/oensdla3UtsesU/srri3e/.snnteera/ssngt3p/vviys/e"ep/srgosn/s//, line vcacostase223sneutgrrt in a/srae_P/rgsosaeueperae/xlsmte.aonapa/iluilnmpbtf
lyrlmog/"/  File lo/", line /277/a//inlpib in ap_cUocats/ePtbyono/n/tappe/hnrpnyt
ea  File re"ydaax/tothctoUnosh3.odsp/nnelayr/3".7m/s, line sne277m in /3s3t/t.e/gula7s_ln/taavnsge/3emgiun.aupPrv7sr/la/ortescuoe/riupaarmpern/
gooopu  File ptlelc/e"t//aUienmrt//elsaacpsrsoaineacresllbmsma//ispspic/syn/olantdsatghrin3oiab/o/gc/olengnecn/anlpndyetelt.hp3vonxgts//coayter.epaox"n.n3/etltymne37xs, line v."sp, line t223./7/a in umr/y_"/l.106umlProep in uiabtyl"/o, line _223/l, line pm223i in /pp_t_p/Peraoty in tin_pPl
oncoierpoheacinc  File os
"noin/  File eb"ps//ndsipe3UnsgeytnrUsssi
_/./ta7he/ps3orr_m  File o"ncg/uelUssent/
3/.ses7ge  File //stnvmruslst/ptsetr"gi/aaispopsraoreco/rguUrasac/.scpeoaesuyeuserrpstsr/i/s/sotapseg/nisn"og, line /112a.c in espatgstalnya"mr/up, line t112/ in oat/nslattnr
/aapca  File rire/xo"bctnnd
o/falopntdcac.  File oeypa3tsaysot"h"//Uon.d//nspr3e.a7eyenUrav33ssle//, line rrm/223messe/"sat/, line u112s in /telg/_ePemllna/sanatviu in roplsptganisrs/baf/lve/auosorrgrapte/yraucat/lngee/e
st  File /rhm
afl"oslr/  File mo/inna3Useta/.lllige/"/ciobbner/ram/t/plypey/atstU/hseloehl7smrnoxstn./33at/nep/.s7mgy//mrm.lu"uge, line l7t/uatlamtestiiparagugrnraogeisuaeupu/r223lrt/cvioree/pacoslafllmo/apt.apg/pryeatre//aarna in lsme_osPcsoan/i"cienlnrds, line loegeapgal162//p3pre in ol.cna/elnsvm
/ipnncgsurp  File /oecys"s, line ga.re106ao/ in "u_g_eepapril/snsUya/i."trl, line s112np_y_"
 in olmret  File e", line /s112c in lsries//a_sbsetltt/.lafp.ypmy_srta/ppya"et"gra, line terch106r in aUos
e, line lorrnsl112d in e_3sslt_
a/  File .pusy.  File _"t"ri/n/7pi/amaulortrptUt, line ai"l106_ in _st
per/
sloUcee_  File rl"s
/  File sts  File ee""s/g//aUsaaursU/ssr_eUis/sne/snegrtresrsi///ssntsgtf/lteegsteparcaesognoidagaa3s/stocaeg_taaeau_/sarse.rurspu/afrlaynou
/lamvs/sffall/  File r/o""larot/ua, line ta//112aU in e/frst/sf/raetenraelgmraurloaa/sare/steggeattlllaisl//arumrl/r/mf
mllooeba/  File /tapta//"a/ry/trneelllgmea/laaanumlaUahs/elnlgamrgou/n3regseu/aam/t./nrgeg/rgeesrl7tule/aagmauae/rlegnantgaaluiem/gelvasgaeaimpururalgleem/./rar//pyefppl/oarlaeocamtra/e"/rt, line l162m/rea/elrraalspaslmmlil//eer in rleclvilao.neagtulfe.rpnralaey"p/syh, line "l._ndgor, line ileel106.vtupac162p in p_r in yae"c, line ylm_o.cgb_eet_"ife106pdys.p_y in o, line __in/"un106rs"es in , line an108it._li in , line tmmarp_162i in /cnptaote
yc_"_fu_  File , line ornr_e
i  File rni"t_d112/ in U_st_cs___p

"sa  File /  File tlaloerl"Uts
ea  File /rrs"teUa/lsft."/elrr/dUeslUp__psays"g, line s106raee
/  File rsa in se_rresrsltlc"/ea/oUgrse_le
rssi//dn  File a"ss_ssp/ista/tUsesatuetgutgereras/rear_a_ss
ggsa/aalsls/ta  File feurueoluorr"a///pflflgatfto/a/lso/asuaUal
aaut  File nort/erarae"sae/rs/cr/lfmr/ela/sftloolleoagatta//nraesmlantd/r/g/maeaulalaurrengU/ga/fllsaoa3mnuaaet/llm/r/glma/eaeanlgu/grl/leraeme/ap/nugnaarsruvae/sagnl/amgsetalu//llergaaraeelge/gasaugneae.gpulrmrale/eryeflmmr"ea///sa/r, line gr106llr in eeaml/m//_reeh/_frr_idloeeabtctrieietrl_inee/mvaomirva/lmrbett/errai_le_fpite.vpar/edryse.
pv"  File ysaally.tlhe, line _"hp.oa, line nd.lypmo/"", line 3plyacny/"108_g.162U"162 in  in m, line ce, line s162uom162 in ac in e in rocua7csnouu/ionb
nsgu/  File s"ientet/_dnter_ttgt/tt_at_etffes-fUas__ser.epr_alrcsoyf/usrr/frloe_maetcctop/oeda"srrrdr_spd_eafs/gcrarpeee, line as108r in slhm_kdao_accoamlagpr/lreallldlei_
sa/esm_ean  File lrpaba"negul
lu
re  File aaba"g/els/l  File /r/rUsearUl
d/lssa/"oe/sU.spseerpltpepaty/.sge  File l"
pmry//s  File ", line r"ae/s, line /108a"250ts in s_ in ra/utnmerU/Ugassteaeagarrsucasseoapiunr/rfurs/i/t/ss/on
lnttf_  File aleegnoeoatv/reaagaatsl/ardlceomam".a/a3anlpm//aullaedaarisnn//gnUfasgyu3lnovastr"//u, line /e
fr/s/ustare162 in ga  File e/greecr"oealgeaan/vlusnmraeaes/ruto/elal/mt/ma/rr/rr/eaUeflsforr_pteafn_eslretrlsmg/hau_/mlehci_dabogodceoeca//nlri_e_ld/sb_/pyeramparap/eymcaosl/blntlmsl/hadreeottnefg3m.e7rdla/es3n.gpssaiyuh
hsbao  File gee/a"t/e, line -108rdneu"3 in nsre_do/v.s7mac///_.olsmU/pryraeepii"speenaarftsrtl, line c108
 in ke/mm-/ba  File paaeinascmgna
ceoen/"lt/ssUi/bekd/adb  File gpsayst.haplys/_aa3dgohpe/"epsecsa"., line _rouern/pm108n in /fy/vb"ms3Ues, line a/edrssials250/n.soba.ts/ps in tl/r/treea7ayep/g"peal
agslsm, line /a_almisa.108tnr/e in aul-  File uprpn"_/aU/guicykuormabpsm/eaatraigi"n
/, line s250no/peant//
  File pg  File eaans"y in actto_eng"c/sdoa/sna/da/rUUuan3_hbmroeans3eaua/li/srre/nonl3/vseasps./7
/nr/eemptp  File a"./rs/srlvpsy/st/"r, line aee250Uniaecagos/ in atlse_nmdrassumt/elgiar//s/tlrbiaes3o/peau/bpunryntg/ef/ptr_aam/syanaiave-oppcsnho
tno3au.c7kh/a  File nsh"_do/tdnsr//igaeaos3/r/.an3e/a7etnaoUbspccsevols_/ms/teremisbl/e-si/bpata/dcnrel/esnkaacpt./ea-daoappggalnmda/yp3altpesi.acyshu/pby/"p3y//"eanreok, line anb108vv, line /nssl in o299p//tahsogte/p in srnr3u/ma/enra
.eap7n/ab  File a"3lsias..lmc/l/a/pplpm7yiot"./ni, line 
250/ in nlpsii_edb  File -arbp/"3U//ppya/yUyuts"tehesc, line neok250- in _narun_rmp_3easm./strh7anotvnas/i3sgeiniscnk./7e/r
/  File tse-"/saeg/ei
atpUalgsa/ca  File kssbes"tema/esbglasal/U-rap/uslaags/isac/apbpkr/eppyut/ar.esr/p/hpofopts//sanlyat3geo"bassn/a, line .250ts.pl in 7/ea_g/r/eybstarsae"gpcpl.palsu/nmaais, line o299ndta_y in aeu"urmurr//n, line ao
299pp  File lpa/n in tag3"-//uo.parpegUpntv/euyns/esiaar"//rr, line nasnn250c
a
acc  File e/ksea in "g/e  File ao_anrt"Uusnel/gls_d/mUaaismman/a
aeb  File sls/urri"elbo/Urss//3re/epss//efyttnnlarhp/odpessagofnr/3a.a7s3t/vtee/st.nepsgsvhae/sy"saius/rt/r, line /ae299_ in ufgarlelrdur/emro/aoncaaelsl_to-apuie
pt/mba/n  File m/prba/ao"//epUcslterr/msk/aaeladcsa/sagltnnlyagec.uiaotgmohngd/e/apenayorbdl3aa/e/sp3a/le/nnms/vsya3/rnta.eg"rheo7u/bauenrfns, line gvasllsm192r in /3e.f7l//isro/i/era/rpatltespeueet.ailmhn-a//_rpb_lmeaal-lpma/mpiyp/irean"
, line d250ocf in kcab  File /cg/ey"_rt/p_yeUermhsuknsoln_at3hasgeb.een/hardmss7s_//dso/oscbaigt.un_stp3laeye-"pe, line g.g7aam192sbe/ in isaair/cabnedp/us
prne  File tk_u"rl/sUa/lamp..eap/-rmepyp"asap, line efg/.fclp192oeyrres in "arskts/iu, line nh/a__rmn
ye299ab  File  in ""radg/eusns
oslic/  File ", line /299/ata/nU_aebessmlU/galebam/psplpepa..rngdss/. in p
ryuesu  File ppasa"tgeegyaus"ra/u/, line y299"/, line "299, line on in U
192p in  in rrr  File s"ere/arrUuslnr
e/muu  File ns
/s  File ft/l/r"or/"/as/teUaUtesgenfs/_anrmsa/csorstaiss/enatgsatrseeegredaeusngraas/uha
3f_l/asloaa  File d"somra/u/cul/arfUtr/nr/l/_soeartgsueefam//breles/eosfatgneldvlam/gatoesgaa.alsmtsp/seytla//an/ugar"rurreul, line /rfea197aeaall/o/lafrta/mn in llguargoegmea/mlitb/er/<eam/a/lror/dlemae/u/lelalmfrperaey/slnmtlhlahaen>_
l/odrgmmg  File a/n/enouuflrg3reacae_nasggue./u7a/ehagrgegf_reme"/se//rrsiedera/bUeleesmt/eoaaraelcml-empldr//_rahse.frrmpy_edffe"rocre/smr, line ecss197b_eehe_/mfhksarsb_e in se<dgddoesse/m.hdpsyht_o_o"., line addec197docpgcoyu"_ in lb, line eesal_<mc_192/me>ma in 
br_seaeoddmbsu.bnue  File e_peydrd"u"/, line o192lm in m/spaebrUiu>nse.n
p
d._s  File m  File .ppy""/, line U299saee in pprrts/yr""sy, line u"s/as., line 192197n in /i/<sptnUasetnm
ecogey
  File ra"  File do in s//sst"gnurUald, line essagur/faeu>a"3
/reen/als/vo192uraoUss  File t/s in snrp/tuer"e_tm//a/gneaaUlaisnr
mearssur  File /ac/"n_rms/eo/nUaaausrdsatsltee3geiirns//oapb/s/tept/elsnyatvamg/al/usan
f/snghagualao  File rorcao"nsand//3gaaute/efr/rr/3euUl.foea/tslaa/7reollrm/aamnel/i//ltlrmuenpbr/aaslvm/sn/g///louprrsyrtehteoefaeaalgyag.mpp/nl3lym/lrieaeb/.s7ta"//sap, line y/85rnutghuahngrnua_ in ognue3a._/cedaorlnaegrpac/lfel_rmo/or/er7ay/.rplyemunfnd/uaea_r3rcn/teoefnremd"vsees///
mpr  File e"r, line y85hrs_e/be in h_ra.Udlfpmy"r_eo/usdslh, line neacr_ndasl_go_m85/ecmo/bsetde in lisgceu_daarssb_.e/o.ppdumygeac
_ep  File y"e"u, line y197"rnt_hm/obo/bceen/, line rde197p3st.U in o/sp in d.d<earssneamlo/dyusl<e7
.macmpt"/, line y/e"197oo, line gr192> in   File rr
e"/un in u  File ansdUusdal"nee>_upmyrf
r  File e<am3a/"s/iUnh/eUse_rs/
d/oo.rpsyo"d, line /csps  File e85t_tn in vsuetresegl_gsr/uen/s/_tmcroea>ase"dae/a
a  File lsg"Umsa
nerus  File asu/ra/"aU/sc//obulostUeeerg/asrrns/ddpsoatisa.ue/prsb/3oyt/a"f/prtsne/psp/yt/, line l197ae in naaconc/g<ooaamnnatdetdghvassaoo3/n/raeaaednutausralcmn/uo3loe//v>pst3r./rr//leea/n7enldmiab
a/a/onlptrauc/vn  File a"mpp/y/tlyhslnio3./ned/oanaa3p/ycrbe/aplmoynvn/sdn/ge/U3"uliabt, line hnars3v.e/oenr7nse1933g/ers/a/lvu.m in r/sne/_pryst/pallyetm//riguerhanro.apbye_7e//lmmpysrauuna/orn"l3d., line p193yf.7 in upirllte_hrmes///l_byhou/ipbn/y_apsyond"__pt3r.o, line mhmotntu857c3_no.dh/oa/un73ar in enmapi_bun.nlcpoy/
re7der/.yprsuu.._paynupnyynd"sp"yn__a", line , line 197pm85y.c3o in  in p<, line 193y_d/ in "re, line 
_earumi.np_  File c"un193n in yo_d/
Unso"_mudvol, line se/dr85uen
_m  File u"e>r in l
oer  File dsu"/le_sat/e_/sUsereaUg_asmls/ram_/luani_na
s_simba/ipsur/onteergspct/y/tshao
ontn3aedgeacsaonad
u.ra  File 3/"e/nUvss7//rrauuesa/nrolm//potp/ta/nlib/aanpacycpoy.pntda3eonyh"on3.d7/rurnap, line s85y in ./3_//eenpsyrnuvns_/cov"s, line /193rrte in ae_ldme/
lal  File reun"/giasma/_lmiuUbs/pbe/rpsyytt/orh/oophonsdtn/3at3u.le.g77e_ans/ac_/maarsruunipaouyr.ndnnap/poy3pyt/.epnyvs/"an/r, line a193 in 
_c"ondae3a, line /85envlrms/ in /lurneial_m_/rlib/pmuoby/tphyon_codtn3u.lhdon3.e7/_ras_maineu7n/pryu.nppy
.p  File y"", line 193 in 
/y", line 193U_ in rus_run_emrosdule_n/_smtoadsegasau_ur/opt/anmaacin
le_aso_nda3/emain
nvs/realm/lib/python3.7/runpy.py", line 193 in _run_module_as_main

Any assistance is greatly appreciated. I would like to try REALM locally before we spin up expensive GPU resources to perform full training.

steverichey commented 4 years ago

I'm getting a possibly related error on the next step as well, if it helps.

❯ sh language/realm/local_launcher.sh gen-train
INFO:tensorflow:Create preprocessing server at [::]:8888
I0825 11:36:44.796554 4509986240 preprocessing.py:71] Create preprocessing server at [::]:8888
2020-08-25 11:36:54.371744: W tensorflow/core/platform/cloud/google_auth_provider.cc:178] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Not found: Could not locate the credentials file.". Retrieving token from GCE failed with "Aborted: All 10 retry attempts failed. The last failure: Unavailable: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Couldn't resolve host 'metadata'".
I0825 11:36:54.873995 4509986240 example_generator.py:365] Loaded featurizer.
2020-08-25 11:36:54.874521: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2020-08-25 11:36:54.874891: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 12. Tune using inter_op_parallelism_threads for best performance.
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.015143 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.016097 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.017080 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.018254 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.018979 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.021220 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.021611 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.023555 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.024527 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
WARNING:tensorflow:From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
W0825 11:36:55.025415 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/retrieval.py:188: tf_record_iterator (from tensorflow.python.lib.io.tf_record) is deprecated and will be removed in a future version.
Instructions for updating:
Use eager execution and: 
`tf.data.TFRecordDataset(path)`
I0825 11:36:56.178431 4509986240 retrieval.py:241] Loaded 1 of 10 document shards.
I0825 11:36:56.268060 4509986240 retrieval.py:241] Loaded 2 of 10 document shards.
I0825 11:36:56.355141 4509986240 retrieval.py:241] Loaded 3 of 10 document shards.
I0825 11:36:56.445337 4509986240 retrieval.py:241] Loaded 4 of 10 document shards.
I0825 11:36:56.450142 4509986240 retrieval.py:241] Loaded 5 of 10 document shards.
I0825 11:36:56.661361 4509986240 retrieval.py:241] Loaded 6 of 10 document shards.
I0825 11:36:56.671973 4509986240 retrieval.py:241] Loaded 7 of 10 document shards.
I0825 11:36:56.719235 4509986240 retrieval.py:241] Loaded 8 of 10 document shards.
I0825 11:36:56.965728 4509986240 retrieval.py:241] Loaded 9 of 10 document shards.
I0825 11:36:57.381914 4509986240 retrieval.py:241] Loaded 10 of 10 document shards.
I0825 11:36:57.382042 4509986240 retrieval.py:246] Combining data from all document shards.
I0825 11:36:57.382192 4509986240 retrieval.py:251] Finished loading all shards.
WARNING:tensorflow:From [redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1781: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
W0825 11:36:58.936383 4509986240 deprecation.py:506] From [redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1781: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
I0825 11:37:01.653182 4509986240 retrieval.py:265] Loaded query embedder.
I0825 11:37:02.930503 4509986240 retrieval.py:107] Loaded document embeddings.
I0825 11:37:02.939476 4509986240 example_generator.py:379] Loaded retriever from gs://realm-data/realm-data-small/small-ict
INFO:tensorflow:Reading data from these shards:
I0825 11:37:03.050762 4509986240 example_generator.py:326] Reading data from these shards:
INFO:tensorflow:gs://realm-data/realm-data-small/pretrain_corpus_small/wikipedia_annotated_with_dates_public-00016-of-00020.tfrecord.gz
I0825 11:37:03.050952 4509986240 example_generator.py:328] gs://realm-data/realm-data-small/pretrain_corpus_small/wikipedia_annotated_with_dates_public-00016-of-00020.tfrecord.gz
WARNING:tensorflow:From [redacted]/realm/language/realm/example_generator.py:343: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.experimental_determinstic`.
W0825 11:37:03.052146 4509986240 deprecation.py:323] From [redacted]/realm/language/realm/example_generator.py:343: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.experimental_determinstic`.
OMP: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
Fatal Python error: Aborted

Thread 0x0000700005f0f000 (most recent call first):
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/grpc/_server.py", line 871 in _serve
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/threading.py", line 870 in run
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/threading.py", line 926 in _bootstrap_inner
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/threading.py", line 890 in _bootstrap

Thread 0x000000010cd0edc0 (most recent call first):
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/eager/execute.py", line 61 in quick_execute
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 511 in call
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1224 in _call_flat
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1121 in _call_impl
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1081 in __call__
  File "[redacted]/realm/language/realm/retrieval.py", line 288 in embed
  File "[redacted]/realm/language/realm/retrieval.py", line 116 in retrieve
  File "[redacted]/realm/language/realm/profile.py", line 40 in wrapped
  File "[redacted]/realm/language/realm/example_generator.py", line 144 in generate_queries_and_candidates
  File "[redacted]/realm/language/realm/example_generator.py", line 172 in generate_realm_examples
  File "[redacted]/realm/language/realm/example_generator.py", line 423 in generate_realm_examples_with_model_refresh
  File "[redacted]/realm/language/realm/example_generator.py", line 455 in <genexpr>
  File "[redacted]/realm/language/realm/preprocessing.py", line 91 in push_examples
  File "[redacted]/realm/language/realm/example_generator.py", line 458 in main
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/absl/app.py", line 250 in _run_main
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/site-packages/absl/app.py", line 299 in run
  File "[redacted]/realm/language/realm/example_generator.py", line 463 in run_main
  File "[redacted]/realm/language/realm/example_generator.py", line 468 in <module>
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/runpy.py", line 85 in _run_code
  File "[redacted]/opt/anaconda3/envs/realm/lib/python3.7/runpy.py", line 193 in _run_module_as_main
language/realm/local_launcher.sh: line 72: 17768 Abort trap: 6           python -m language.realm.example_generator --vocab_path="${VOCAB_PATH}" --do_lower_case --query_seq_len=96 --candidate_seq_len=288 --num_candidates=8 --max_masks=10 --num_shards_per_mips_refresh=1 --pretrain_corpus_path="${PRETRAIN_CORPUS_PATH}" --retrieval_corpus_path="${RETRIEVAL_CORPUS_PATH}" --initial_embedder_module="${ICT_MODULE_PATH}" --model_dir="${MODEL_DIR}" $extra_flags
ppasupat commented 4 years ago

Hi! Do the printouts from the log files (out/log/) also get scrambled? If not, could you re-paste the log for the refresh run?

The error message in the second run might be an issue specific to MacOS + Conda (https://stackoverflow.com/q/53014306). Could you try following the instructions there?

steverichey commented 4 years ago

Thank you for your quick response. Sadly, the log files are also scrambled.

I did conda install nomkl per the link and that did seem to resolve the issue I was having with that step.

kelvinguu commented 4 years ago

Hi @steverichey , the scrambled text is caused by usage of the multiprocessing library: our code launches multiple Python processes to read in the data faster -- when they fail, their STDERR messages get interleaved.

As for the actual cause of the error, it does seem like an authentication issue. As a sanity check, could you use gsutil to download the DATA_DIR specified in local_launcher.sh to a local directory, and point at that instead?

steverichey commented 4 years ago

Yep, I've seen similar issues with multiprocessing in the past. Fortunately, using the local files did seem to help. I had to delete a temporary folder to get one of the local_launcher.sh calls to work, but I do believe I'm currently training. Thanks all!