Skip to content

feat(docs): Add documentation for EU-specific gated models - #1874

Merged
Charlie-Boyer merged 2 commits into
huggingface:mainfrom
Charlie-Boyer:add-restrict-eu-gated-doc
Aug 18, 2025
Merged

feat(docs): Add documentation for EU-specific gated models#1874
Charlie-Boyer merged 2 commits into
huggingface:mainfrom
Charlie-Boyer:add-restrict-eu-gated-doc

Conversation

@Charlie-Boyer

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

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

@pcuenca pcuenca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

Comment thread docs/hub/models-gated.md

### 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
Copy Markdown
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).

@Charlie-Boyer Charlie-Boyer Aug 18, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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