Cleaning `~/.pytorch_pretrained_bert`
What is inside `~/.pytorch_pretrained_bert`? Is it just the downloaded pre-trained model weights? Is it safe to remove this directory?
This folder contains the pretrained model weights as they have been trained by google and the vocabulary files for the tokenizer.

I would not remove it unless you are really tight on disk space, in this case I guess you could only keep the `.json` files with the vocabulary and load your finetuned model.<|||||>Yes it contains the weights, configuration and vocabulary files. You can remove it if you want. In that case the weights will be downloaded again the next time you initiate a BertModel.