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

Let server decide default repo visibility #34999

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 28, 2024

Until now, all repos were public by default when created without passing the private argument. This meant that passing private=False or private=None was strictly the same. This is not the case anymore. Enterprise Hub offers organizations to set a default visibility setting for new repos. This is useful for organizations forbidding public repos for security matters. This PR mostly updates some docstrings + the default value for hub_private_repo in Trainer's args.

This PR doesn't create any breaking change. The real update has been done server-side when introducing the new Enterprise Hub feature. Related to huggingface/huggingface_hub#2679.

@Wauplin Wauplin requested a review from a team November 28, 2024 14:24
@Wauplin
Copy link
Contributor Author

Wauplin commented Nov 28, 2024

Note: CI seems to be failing but I don't think it's related to this PR

> python3 .circleci/parse_test_outputs.py --file tests_output.txt --fail
   1 failed because `AssertionError: 0.0002062409 not less than or equal to 0.0002 : outputs.logits` -> Difference between PyTorch and TF is 0.00020624090393539518 (>= 0.0002) for Data2VecVisionForSemanticSegmentation
   1 failed because `AssertionError: 1.9396484e-05 not less than or equal to 1e-05 : outputs.hidden_states_1` -> Difference between PyTorch and TF is 1.9396484276512638e-05 (>= 1e-05) for SwiftFormerModel
Number of failed tests: 2

@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.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Failing tests are indeed unrelated ! LGTM!

@Wauplin
Copy link
Contributor Author

Wauplin commented Nov 28, 2024

(can I let you merge it? I don't have permissions myself since failing CI)

@ArthurZucker ArthurZucker merged commit 0b5b5e6 into main Nov 28, 2024
25 checks passed
@ArthurZucker ArthurZucker deleted the let-server-decide-default-repo-visibility branch November 28, 2024 16:05
@ArthurZucker
Copy link
Collaborator

Of course!

BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* Let server decide default repo visibility

* code style
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.

3 participants