Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix get file size on lfs #1188

Merged
merged 2 commits into from
Nov 15, 2022
Merged

Fix get file size on lfs #1188

merged 2 commits into from
Nov 15, 2022

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 15, 2022

PR fixes an issue in get_hf_file_metadata.
In case of LFS file, size was set to the pointer file size, not the actual LFS file itself.

Also few nits from @julien-c 's reviews.

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

also cc @coyotte508 for the linked-size header

@HuggingFaceDocBuilder
Copy link

HuggingFaceDocBuilder commented Nov 15, 2022

The documentation is not available anymore as the PR was closed or merged.

@Wauplin Wauplin merged commit b1a11c2 into main Nov 15, 2022
@Wauplin Wauplin deleted the fix-get-file-size-on-lfs branch November 15, 2022 10:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants