Skip to content

Conversation

@sayakpaul
Copy link
Member

No description provided.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@sayakpaul sayakpaul requested a review from danieldk October 8, 2025 10:20
@sayakpaul
Copy link
Member Author

The failing tests seem to be unrelated?

@@ -1,18 +1,19 @@
from pathlib import Path
import sys
from pathlib import Path
Copy link
Member Author

Choose a reason for hiding this comment

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

Result of make style.

MekkCyber
MekkCyber previously approved these changes Oct 9, 2025
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

Sounds good ! thanks for adding this. The test failures are related to not supporting torch2.6 anymore, so we need to bump the torch version in the CI runner. I opened a pr : #162

@sayakpaul
Copy link
Member Author

@danieldk good for you?

Comment on lines 72 to 76
upload_parser.add_argument(
"--revision",
type=None,
help="If set, the upload will be made to a particular branch of the provided `repo_id`.",
)
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should be more explicit and call this branch. I find revision a bit confusing, since people use it to refer to commit SHAs, tags, etc. as well.

It's also not super-clear from the huggingface_hub docs what this means in upload_folder:

The git revision to commit from. Defaults to the head of the "main" branch.

What happens if I'd put an actual git SHA here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed. I changed it to branch. Maybe that's a better cognitive distinction but in theory, we can still pass all the acceptable revision variants (SHA, tag, etc.), though. But I don't see any clean way to differentiate amongst them, either.

Copy link
Member

Choose a reason for hiding this comment

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

No me neither, but at least it's clear what should be passed.

@danieldk danieldk merged commit a7101b2 into main Oct 13, 2025
13 checks passed
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.

4 participants