title: Error Running "config = RobertaConfig.from_pretrained( "/Absolute-path-to/BERTweet_base_transformers/config.json""
body: <p>I'm trying to run the code 'transformers' version of <a href="https://github.com/VinAIResearch/BERTweet#transformers" rel="nofollow noreferrer">this code</a> to use the new pre-trained BERTweet model and I'm getting an error. </p>
  
  <p>The following lines of code ran successfully in my Google Colab notebook:</p>
  
  <pre><code>
  !pip install fairseq
  import fairseq
  !pip install fastBPE
  import fastBPE
  
  # download the pre-trained BERTweet model zipped file
  !wget https://public.vinai.io/BERTweet_base_fairseq.tar.gz
  
  # unzip the pre-trained BERTweet model files
  !tar -xzvf BERTweet_base_fairseq.tar.gz
  
  !pip install transformers
  import transformers
  
  import torch
  import argparse
  
  from transformers import RobertaConfig
  from transformers import RobertaModel
  
  from fairseq.data.encoders.fastbpe import fastBPE
  from fairseq.data import Dictionary
  
  </code></pre>
  
  <p>Then I tried to run the following code:</p>
  
  <pre><code># Load model
  config = RobertaConfig.from_pretrained(
      "/Absolute-path-to/BERTweet_base_transformers/config.json"
  )
  BERTweet = RobertaModel.from_pretrained(
      "/Absolute-path-to/BERTweet_base_transformers/model.bin",
      config=config
  )
  </code></pre>
  
  <p>...and an error was displayed:</p>
  
  <pre><code>---------------------------------------------------------------------------
  OSError                                   Traceback (most recent call last)
  /usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, **kwargs)
      242             if resolved_config_file is None:
  --&gt; 243                 raise EnvironmentError
      244             config_dict = cls._dict_from_json_file(resolved_config_file)
  
  OSError: 
  
  During handling of the above exception, another exception occurred:
  
  OSError                                   Traceback (most recent call last)
  2 frames
  /usr/local/lib/python3.6/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, **kwargs)
      250                 f"- or '{pretrained_model_name_or_path}' is the correct path to a directory containing a {CONFIG_NAME} file\n\n"
      251             )
  --&gt; 252             raise EnvironmentError(msg)
      253 
      254         except json.JSONDecodeError:
  
  OSError: Can't load config for '/Absolute-path-to/BERTweet_base_transformers/config.json'. Make sure that:
  
  - '/Absolute-path-to/BERTweet_base_transformers/config.json' is a correct model identifier listed on 'https://huggingface.co/models'
  
  - or '/Absolute-path-to/BERTweet_base_transformers/config.json' is the correct path to a directory containing a config.json file
  
  </code></pre>
  
  <p>I'm guessing the issue is that I need to replace '/Absolute-path-to' with something else but if that's the case what should it be replaced with? It's likely a very simple answer and I feel stupid for asking but I need help.</p>