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

import/get: support pre-fetching LFS objects from Git-LFS repos #10072

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Nov 8, 2023

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Requires iterative/scmrepo#278
Related: #9175

Example import from https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/main/text_encoder:

asciicast

LFS objects are only downloaded once (during the "Checking for LFS objects" step). The second "Downloading" message in the recording is the generic import/get status and is actually the reads from GitFilesystem (and not a network transfer).

@pmrowla pmrowla self-assigned this Nov 8, 2023
@pmrowla pmrowla marked this pull request as ready for review November 23, 2023 06:23
@pmrowla pmrowla changed the title [WIP] import/get: support pre-fetching LFS objects from Git-LFS repos import/get: support pre-fetching LFS objects from Git-LFS repos Nov 23, 2023
@pmrowla pmrowla requested a review from dberenbaum November 23, 2023 06:24
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (1e9b60d) 90.56% compared to head (8355c58) 90.56%.

Files Patch % Lines
dvc/scm.py 87.50% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10072   +/-   ##
=======================================
  Coverage   90.56%   90.56%           
=======================================
  Files         488      488           
  Lines       37392    37422   +30     
  Branches     5434     5441    +7     
=======================================
+ Hits        33864    33892   +28     
- Misses       2892     2893    +1     
- Partials      636      637    +1     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@pmrowla pmrowla force-pushed the get-import-lfs branch 3 times, most recently from b1b16a6 to 8355c58 Compare November 28, 2023 13:13
@pmrowla pmrowla merged commit b0d0315 into iterative:main Nov 29, 2023
12 of 13 checks passed
@pmrowla pmrowla deleted the get-import-lfs branch November 29, 2023 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants