Oneflow-Inc / OneFlow-Benchmark

OneFlow models for benchmarking.
104 stars 31 forks source link

bert run_squad.py训练问题 #217

Closed lpj0711 closed 2 years ago

lpj0711 commented 2 years ago

python BERT/run_squad.py --vocab_file=pre_bert_model_512/vocab.txt --bert_config_file=pre_bert_model_512/bert_config.json --init_checkpoint=pre_bert_model_512_dianli/bert_model.ckpt --do_train=True --train_file=merge_train.json --do_predict=True --predict_file=merge_dev.json --train_batch_size=4 --learning_rate=3e-5 --num_train_epochs=4 --max_seq_length=512 --doc_stride=128 --max_answer_length=512 --do_lower_case=False --output_dir=output/ libibverbs not available, ibv_fork_init skipped Traceback (most recent call last): File "BERT/run_squad.py", line 24, in import oneflow.compatible.single_client as flow ModuleNotFoundError: No module named 'oneflow.compatible'

lpj0711 commented 2 years ago

已解决,是我master分支的问题,需要切换到v.40