Skip to content

Commit 6b89d1d

Browse files
committed
feat(docs): add EU-specific gated models section
1 parent 4447c49 commit 6b89d1d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/hub/models-gated.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,22 @@ Alternatively, you can programmatically login using `login()` in a notebook or a
185185
You can also provide the `token` parameter to most loading methods in the libraries (`from_pretrained`, `hf_hub_download`, `load_dataset`, etc.), directly from your scripts.
186186

187187
For more details about how to login, check out the [login guide](https://huggingface.co/docs/huggingface_hub/quick-start#login).
188+
189+
190+
### Restricting Access for EU Users
191+
192+
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.
193+
194+
To enable this, add the `extra_gated_eu_disallowed: true` property to your model card's metadata.
195+
196+
**Important:** This feature will only activate if your model is already gated. If `gated: false` or the property is not set, this restriction will not apply.
197+
198+
```yaml
199+
---
200+
license: mit
201+
gated: true
202+
extra_gated_eu_disallowed: true
203+
---
204+
```
205+
206+
The system identifies a user's location based on their IP address.

0 commit comments

Comments
 (0)