lmetric = load_metric("sacrebleu") exception
Author: ljw870202
Pull request: no

## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->

- `transformers` version:4.10.2
- Platform:win 10
- Python version:3.7
- PyTorch version (GPU?):cpu 1.9
- Tensorflow version (GPU?):
- Using GPU in script?:
- Using distributed or parallel set-up in script?:

run_translation.py
[INFO|modeling_utils.py:1533] 2021-09-20 11:18:57,844 >> All the weights of MT5ForConditionalGeneration were initialized from the model checkpoint at D:\learn\torch_learn\models\mt5_small.
If your task is similar to the task the model of the checkpoint was trained on, you can already use MT5ForConditionalGeneration for predictions without further training.
09/20/2021 11:18:59 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at C:\Users\DELL\.cache\huggingface\datasets\json\default-c219a2f78cd5565c\0.0.0\d75ead8d5cfcbe67495df0f89bd262f0023257fbbbd94a730313295f3d756d50\cache-be5ce54c6a2ffc39.arrow
09/20/2021 11:19:00 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at C:\Users\DELL\.cache\huggingface\datasets\json\default-c219a2f78cd5565c\0.0.0\d75ead8d5cfcbe67495df0f89bd262f0023257fbbbd94a730313295f3d756d50\cache-6663dd6caea415f1.arrow
Traceback (most recent call last):
  File "D:/learn/torch_learn/pytorch/translation/run_translation.py", line 618, in <module>
    main()
  File "D:/learn/torch_learn/pytorch/translation/run_translation.py", line 490, in main
    metric = load_metric("sacrebleu")
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\load.py", line 819, in load_metric
    dataset=False,
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\load.py", line 510, in prepare_module
    local_path = cached_path(file_path, download_config=download_config)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\utils\file_utils.py", line 299, in cached_path
    use_auth_token=download_config.use_auth_token,
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\utils\file_utils.py", line 568, in get_from_cache
    headers=headers,
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\utils\file_utils.py", line 474, in http_head
    max_retries=max_retries,
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\datasets\utils\file_utils.py", line 395, in _request_with_retry
    response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\requests\adapters.py", line 449, in send
    timeout=timeout
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\connection.py", line 359, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\connection.py", line 506, in _connect_tls_proxy
    ssl_context=ssl_context,
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\util\ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "C:\Users\DELL\anaconda3\envs\test\lib\site-packages\urllib3\util\ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "C:\Users\DELL\anaconda3\envs\test\lib\ssl.py", line 423, in wrap_socket
    session=session
  File "C:\Users\DELL\anaconda3\envs\test\lib\ssl.py", line 827, in _create
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname



Comments: