transformer进行模型预测时报错Segmentation fault
Created by: FiveSpeedFrog
本人是刚接触这个的小白,按照文档走到模型预测这一步时报错:
--src_vocab_fpath gen_data/wmt16_ende_data_bpe/vocab_all.bpe.32000
--trg_vocab_fpath gen_data/wmt16_ende_data_bpe/vocab_all.bpe.32000
--special_token '' '' ''
--test_file_pattern gen_data/wmt16_ende_data_bpe/newstest2014.tok.bpe.32000.en-de
--token_delimiter ' '
--batch_size 32
model_path trained_models/iter_100000.infer.model
beam_size 5
max_out_len 255
python -u infer.py --test_file_pattern gen_data/wmt16_ende_data_bpe/newstest2014.tok.bpe.32000.en-de
--token_delimiter ' '
--batch_size 32
model_path trained_models/iter_100000.infer.model
beam_size 5
max_out_len 255
memory_optimize is deprecated. Use CompiledProgram and Executor
* Aborted at 1556128259 (unix time) try "date -d @1556128259" if you are using GNU date *
PC: @ 0x0 (unknown)* SIGSEGV (@0x50) received by PID 21182 (TID 0x7f7d33241740) from PID 80; stack trace: *
@ 0x7f7d32a525d0 (unknown) @ 0x7f7d33036b16 _dl_relocate_object @ 0x7f7d3303f59c dl_open_worker @ 0x7f7d3303a704 _dl_catch_error @ 0x7f7d3303eabb _dl_open @ 0x7f7d320a9992 do_dlopen @ 0x7f7d3303a704 _dl_catch_error @ 0x7f7d320a9a52 __GI___libc_dlopen_mode @ 0x7f7d32080e45 init @ 0x7f7d32a4fe40 __GI___pthread_once @ 0x7f7d32080f5c __GI___backtrace @ 0x7f7d0448c728 paddle::platform::EnforceNotMet::Init<>() @ 0x7f7d0448ca77 paddle::platform::EnforceNotMet::EnforceNotMet() @ 0x7f7d0446e334 ZZN8pybind1112cpp_function10initializeIZN6paddle6pybindL18pybind11_init_coreERNS_6moduleEEUlRNS2_8platform9CUDAPlaceEiE76_vIS8_iEINS_4nameENS_9is_methodENS_7siblingEEEEvOT_PFT0_DpT1_EDpRKT2_ENUlRNS_6detail13function_callEE1_4_FUNESQ @ 0x7f7d044bbfce pybind11::cpp_function::dispatcher() @ 0x7f7d32caaa63 PyObject_Call @ 0x7f7d32cb9a55 (unknown) @ 0x7f7d32caaa63 PyObject_Call @ 0x7f7d32d01a87 (unknown) @ 0x7f7d32d0079f (unknown) @ 0x7f7d32caaa63 PyObject_Call @ 0x7f7d32d3f236 PyEval_EvalFrameEx @ 0x7f7d32d436bd PyEval_EvalFrameEx @ 0x7f7d32d4603d PyEval_EvalCodeEx @ 0x7f7d32d46142 PyEval_EvalCode @ 0x7f7d32d5f57f (unknown) @ 0x7f7d32d6073e PyRun_FileExFlags @ 0x7f7d32d619c9 PyRun_SimpleFileExFlags @ 0x7f7d32d72b7f Py_Main @ 0x7f7d31f8f3d5 __libc_start_main @ 0x40066e (unknown) @ 0x0 (unknown) Segmentation fault我是在自己电脑上的虚拟机跑的,请问是因为显存的问题吗? 那么可不可以设置为使用CPU呢