Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dowloader): resume partial downloads #4537

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Saavrm26
Copy link

@Saavrm26 Saavrm26 commented Jan 4, 2025

Description

This PR adds support for resuming partial downloads.

  • Resuming partial downloads
  • Verifying checksum
  • Reflecting download percentage on front end after resuming download

Notes for Reviewers
A few questions:

  1. Should we check if the server supports Range Header(used here for partial downloads), most modern web servers do.
  2. I wanted to have a discussion when a model in gallery has multiple files.

Signed commits

  • Yes, I signed my commits.

… transfers

- Adds support for resuming partially downloaded files
- Uses HTTP Range header to continue from last byte position
- Maintains download progress across interruptions
- Preserves partial downloads with .partial extension
- Validates SHA256 checksum after completion

Signed-off-by: Saarthak Verma <[email protected]>
Copy link

netlify bot commented Jan 4, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit e648923
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/677ae3c6dd5bca00082617fd
😎 Deploy Preview https://deploy-preview-4537--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Saavrm26 Saavrm26 marked this pull request as ready for review January 6, 2025 18:44
@Saavrm26
Copy link
Author

Saavrm26 commented Jan 6, 2025

Hi @mudler, can you have a look at this PR and the notes for reviewers section.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant