text: 
  
  TITLE
  How to globally change the PYTORCH_PRETRAINED_BERT_CACHE path
  
  COMMENTS
  4
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  Hi, all. I don't have enough disk space under `~/` to download the pre-trained model. When I run others' experiments, I always need to change their code from
  ```
  model = BertForQuestionAnswering.from_pretrained(args.bert_model, \
                              cache_dir=PYTORCH_PRETRAINED_BERT_CACHE'distributed_{}'.format(-1))
  ```
  to something like
  ```
  PYTORCH_PRETRAINED_BERT_CACHE = ELSE_WHERE
  model = BertForQuestionAnswering.from_pretrained(args.bert_model, \
                              cache_dir=PYTORCH_PRETRAINED_BERT_CACHE'distributed_{}'.format(-1))
  ```
  or
  ```
  model = BertForQuestionAnswering.from_pretrained(args.bert_model, \
                              cache_dir=ELSE_WHERE)
  ```
  
  For the convenience of those who don't have enough disk under home dir `~/`, I wonder if there is any way to globally change this `PYTORCH_PRETRAINED_BERT_CACHE` value once and for all.
  
  
  
  