Skip to content

Conversation

@Charlie-Boyer
Copy link
Contributor

@Charlie-Boyer Charlie-Boyer commented Aug 15, 2025

This PR adds a new section to the models-gated.md and datasets-gated.md documentation, explaining the extra_gated_eu_disallowed feature.
Context https://huggingface.slack.com/archives/C02EMARJ65P/p1755258926052309

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

@Charlie-Boyer Charlie-Boyer force-pushed the add-restrict-eu-gated-doc branch 4 times, most recently from 72611e4 to 6b89d1d Compare August 15, 2025 14:24
@Charlie-Boyer Charlie-Boyer force-pushed the add-restrict-eu-gated-doc branch from 6b89d1d to deecde2 Compare August 15, 2025 14:24
@Charlie-Boyer Charlie-Boyer marked this pull request as ready for review August 15, 2025 14:27
Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Thank you!


### Restricting Access for EU Users

For gated models, you can add an additional layer of access control to specifically restrict users from European Union countries. This is useful if your model's license or terms of use prohibit its distribution in the EU.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
For gated models, you can add an additional layer of access control to specifically restrict users from European Union countries. This is useful if your model's license or terms of use prohibit its distribution in the EU.
Gated repositories can be configured with an additional layer of access control to disallow access from European Union countries. This is useful if your license or terms of use prohibit distribution in the EU.

Not specific to models, I think (even though the rest of file does mention models everywhere).

Copy link
Contributor Author

@Charlie-Boyer Charlie-Boyer Aug 18, 2025

Choose a reason for hiding this comment

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

this is the model doc, we have another one for datasets https://huggingface.co/docs/hub/en/datasets-gated
maybe I should add this info here also, wdyt @Vaibhavs10 ?

Copy link
Member

Choose a reason for hiding this comment

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

Ah yes, you're right! Sure, we can do that here or in a follow-up PR, as you wish.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it

@Charlie-Boyer Charlie-Boyer merged commit e226a34 into huggingface:main Aug 18, 2025
1 check passed
@julien-c
Copy link
Member

(nit) not a big fan of documenting this feature publicly

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.

5 participants