config reading error when using s2s-ft example
See original GitHub issueHi there,
I am trying to follow the sts-ft example with xsum, but I got this bug related to reading config file. Is that related to the cahce_dir?
Traceback (most recent call last):
File "run_seq2seq.py", line 416, in <module>
main()
File "run_seq2seq.py", line 399, in main
model, tokenizer = get_model_and_tokenizer(args)
File "run_seq2seq.py", line 372, in get_model_and_tokenizer
cache_dir=args.cache_dir if args.cache_dir else None)
File "/home/bill/sugar/supervised/transformers/src/transformers/configuration_utils.py", line 176, in from_pretrained
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/bill/sugar/supervised/transformers/src/transformers/configuration_utils.py", line 226, in get_config_dict
config_dict = cls._dict_from_json_file(resolved_config_file)
File "/home/bill/sugar/supervised/transformers/src/transformers/configuration_utils.py", line 315, in _dict_from_json_file
text = reader.read()
File "/home/bill/anaconda3/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
'Cannot read configuration file due to insufficient permissions ...
"Cannot read configuration file..." appears on HTTP Error 500.19 when accessing the Worry-Free Business Security (WFBS) web console.
Read more >IIS error 500.19 error when reading web.config - Stack Overflow
config file contains a malformed or unsupported XML element. if you are using url rewrite rule then install url rewrite Extention of iis....
Read more >Internal Server Error ... Cannot read configuration file due to ...
Cause. The user which IIS is using (to read the webpage files) does not have sufficient NTFS permissions to open the files. Example:....
Read more >HTTP Error 500.19 on Internet Information Services (IIS ...
Cause. This problem occurs because the ApplicationHost.config or Web.config file contains a malformed or unidentified XML element.
Read more >AWS SAM CLI configuration file
For more information about this command, see Writing configurations with sam deploy --guided later in this topic. Example. Here's an example configuration file ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
remove “MODEL_PATH=…/…/tmp/unilm1.2-base-uncased.bin” set “–model_name_or_path unilm1.2-base-uncased” It will download the ckpt automatically.
@yuchenlin For decoding, we use “–model_type unilm --tokenizer_name unilm1-base-cased” to setup the tokenizer. If you use local vocab file, just set the vocab file path to “–tokenizer_name”.