thomwolf / pytorch_bert

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code from https://github.com/huggingface/pytorch-pretrained-BERT.git

To check the pretrain script, use

python3 run_lm_finetuning.py
--bert_model bert-base-cased
--do_train
--train_file samples/sample_text.txt
--output_dir models
--num_train_epochs 5.0
--learning_rate 3e-5
--train_batch_size 32
--max_seq_length 128

and it will print the relationship scores and loss.

About

License:Apache License 2.0


Languages

Language:Jupyter Notebook 61.1%Language:Python 38.9%Language:Dockerfile 0.0%