Q: Resuming interrupted download? #75
Unanswered
TomLucidor
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
I've also run into this issue with large models hanging during download. Since I'm not the only one, I went ahead and implemented a fix — PR with resumable downloads, retry logic, and configurable timeouts: #77 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm not sure about the exact API, but you can generally use a library like import requests
url = 'http://example.com/largefile'
headers = {'Range': 'bytes=10485760-'} # start from 10MB
response = requests.get(url, headers=headers, stream=True)
with open('largefile', 'ab') as f: # append mode
for chunk in response.iter_content(chunk_size=8192):
if chunk:
f.write(chunk)This uses the HTTP |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes HF hangs at the 10GB mark for large models, and I want to resume from previous download point. Is there a way to have it inside vLLM-MLX?
Beta Was this translation helpful? Give feedback.
All reactions