DEV Community

Alex Chen
Alex Chen

Posted on

Quick Tip: Resume Any Interrupted Download with aria2c in 1 Command (Even After a Reboot)

Quick Tip

Last week my connection dropped at 91% of a 4.2 GB model weights file. wget started over. I lost 40 minutes and some of my composure.

aria2c would have resumed from byte 3,815,000,000. One command:

aria2c -c -x 8 -s 8 https://huggingface.co/qwen/Qwen2.5-7B/resolve/main/model.safetensors
Enter fullscreen mode Exit fullscreen mode
  • -c — continue from the partial file (even after a reboot, as long as the .aria2 control file is there)
  • -x 8 -s 8 — 8 parallel connections per server, which took my actual download from 2.1 MB/s to 11.4 MB/s on the same pipe

Works for Hugging Face model files, ISO images, datasets — anything over plain HTTP(S). Install: apt install aria2 / brew install aria2. Free, open source, 24K stars.

I pasted my broken wget command into MonkeyCode (free tier: https://ly.cyberserval.tech/iIETXiF) and asked "make this resumable" — it rewrote it as the aria2c one-liner and flagged that Hugging Face caps per-connection speed, which is exactly why -x 8 matters.

What's the worst "download restarted from zero" story you've got?

Top comments (0)