From f19ba35b2b6192dd55e4e6f974bcec5b8d3f8865 Mon Sep 17 00:00:00 2001 From: Matthew Carrigan Date: Wed, 20 Mar 2019 16:47:06 +0000 Subject: [PATCH] Move old finetuning script into the new folder --- .../simple_lm_finetuning.py} | 3 --- 1 file changed, 3 deletions(-) rename examples/{run_lm_finetuning.py => lm_finetuning/simple_lm_finetuning.py} (99%) diff --git a/examples/run_lm_finetuning.py b/examples/lm_finetuning/simple_lm_finetuning.py similarity index 99% rename from examples/run_lm_finetuning.py rename to examples/lm_finetuning/simple_lm_finetuning.py index dd56c1ab5d..3eea4e7aad 100644 --- a/examples/run_lm_finetuning.py +++ b/examples/lm_finetuning/simple_lm_finetuning.py @@ -33,9 +33,6 @@ from pytorch_pretrained_bert.modeling import BertForPreTraining from pytorch_pretrained_bert.tokenization import BertTokenizer from pytorch_pretrained_bert.optimization import BertAdam, warmup_linear -from torch.utils.data import Dataset -import random - logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO)