AIToday
Large Language ModelsOpen-Source AIQiita 機械学習Published: Nov 13, 2026, 10:01 JST

huggingface_hub 2.2.0 restarts interrupted downloads from zero

Send on LINE
huggingface_hub 2.2.0 restarts interrupted downloads from zero

3 Key Points

  1. What happened

    Testing the 988,097,824-byte Qwen/Qwen2.5-0.5B model.safetensors on huggingface_hub 2.2.0, the writer stopped at 596,962,838 bytes and re-ran the same command; a second .incomplete file was created and filled from 0 bytes to completion.

  2. Why it matters

    The earlier partial file survived after the download finished, so the old check of looking for *.incomplete to confirm completion can now give the wrong answer, and the leftover takes up disk space.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The writer's earlier record on hub 1.17.0 showed a different failure mode: re-running the command truncated the same .incomplete file to 0 bytes and wrote it again, with the file shrinking from 408,260,804 to 259,210,894 bytes before being rebuilt. Version 2.2.0 changes the mechanism rather than the outcome, creating a separate file with a different random suffix instead of overwriting the old one, and that old file is not cleaned up afterward. A third run also left it in place, per the post.

The practical consequence is that the familiar shortcut of treating an empty *.incomplete search as proof of completion no longer holds once an interruption has occurred. The post points to two alternatives: matching byte counts through get_paths_info, or running hf cache verify, which reported checked=1 for the repository.

The writer also flags one untested risk: running hf cache prune while a download is still in progress could delete a file being written, since that case was not verified. The advice given is to run prune only after the download has finished.

FAQ
Does huggingface_hub resume an interrupted download?
In this test on version 2.2.0 it did not. Re-running the same command created a second .incomplete file and re-downloaded from 0 bytes to the end, finishing with exit code 0.
How can I check whether a download actually completed?
Compare the Hub-side size from HfApi().get_paths_info with os.path.getsize of the local file, or run hf cache verify. In the test both sizes matched at 988,097,824 bytes.
How do I remove the leftover .incomplete file?
The writer used hf cache prune, first with --dry-run, which reported 1 incomplete download (597.0M total). Running it with -y deleted it and freed 597.0M.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleLessWrong post sees median superintelligence timeline in early 2028