requests.exceptions.HTTPError
requests.exceptions.HTTPError: 416 Client Error: Range Not Satisfiable for url
Traceback: The error occurs when downing model checkpoints using built-in
from_pretrained
syntax.
Module.from_pretrained()
Solution 1: Delete the cache files in the ~/.cache/huggingface/hub
.
Solution 2: Pass --force-download
in the command or force_download=True
in the syntax to force discarding cached checkpoints and downloading new checkpoints.