title: How to load the saved tokenizer from pretrained model
body: <p>I fine-tuned a pretrained BERT model in Pytorch using huggingface transformer. All the training/validation is done on a GPU in cloud.</p>
  <p>At the end of the training, I save the model and tokenizer like below:</p>
  <pre><code>best_model.save_pretrained('./saved_model/')
  tokenizer.save_pretrained('./saved_model/')
  </code></pre>
  <p>This creates below files in the <code>saved_model</code> directory:</p>
  <pre><code>config.json
  added_token.json
  special_tokens_map.json
  tokenizer_config.json
  vocab.txt
  pytorch_model.bin
  </code></pre>
  <p>Now, I download the <code>saved_model</code> directory in my computer and want to load the model and tokenizer. I can load the model like below</p>
  <p><code>model = torch.load('./saved_model/pytorch_model.bin',map_location=torch.device('cpu'))</code></p>
  <p>But how do I load the tokenizer? I am new to pytorch and not sure because there are multiple files. Probably I am not saving the model in the right way?</p>