Skip to content

Commit 98db90c

Browse files
authored
Merge branch 'main' into rajat/storage-backend-xet
2 parents d86f53b + e83211c commit 98db90c

File tree

18 files changed

+82
-53
lines changed

18 files changed

+82
-53
lines changed

docs/hub/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@
389389
title: Cookie limitations in Spaces
390390
- local: spaces-handle-url-parameters
391391
title: Set URL query and hash
392+
- local: spaces-get-user-plan
393+
title: Get User Plan and Status
392394

393395
- local: other
394396
title: Other

docs/hub/enterprise-hub-network-security.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,54 +16,43 @@ You can set multiple ranges, one per line.
1616
</div>
1717

1818

19-
## Higher Rate Limits
19+
## Higher Hub Rate Limits
2020

21-
Apply for higher rate-limits for your organization.
21+
Most of the actions on the Hub have limits; for example, users are limited to creating a certain number of repositories per day. Enterprise Plus automatically gives your users the highest rate limits possible for every action.
2222

23-
Most of the actions on the Hub have limits, for example, users are limited to creating a certain number of repositories per day. This option allows your organization to apply for higher limits for your organization members. This also enables higher HTTP rate limits on the Hub API, to unlock large volumes of model or dataset downloads.
23+
Additionally, once your IP ranges are set, enabling the "Higher Hub Rate Limits" option allows your organization to benefit from the highest HTTP rate limits on the Hub API, unlocking large volumes of model or dataset downloads.
2424

25-
To activate this option,
26-
27-
1. Toggle on the "Higher Hub rate-limits" option
25+
For more information about rate limits, see the [Hub Rate limits](./rate-limits) documentation.
2826

2927
<div class="flex justify-center">
3028
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-rate-limit.png" alt="Screenshot of the toggle to enable High rate-limits."/>
3129
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-rate-limit.png" alt="Screenshot of the toggle to enable High rate-limits."/>
3230
</div>
3331

34-
You need to have a valid Enterprise Plus subscription for this option to take effect.
3532

36-
2. Ensure the Organization IP Ranges are defined
33+
## Restrict organization access to your IP ranges only
34+
35+
This option restricts access to your organization's resources to only those coming from your defined IP ranges. No one can access your organization resources outside your IP ranges. The rules also apply to access tokens. When enabled, this option unlocks additional nested security settings below.
3736

38-
Once defined, higher rate limits will apply to members of your organization whose IPs match the defined ranges.
3937

38+
### Require login for users in your IP ranges
4039

41-
## Enforce authenticated access to the Hugging Face Hub
40+
When this option is enabled, anyone visiting Hugging Face from your corporate network must be logged in and belong to your organization (requires a manual verification when IP ranges have changed). If enabled, you can optionally define a content access policy.
4241

43-
This option will ensure that, when browsing from your corporate network, only authenticated users belonging to your organization are able to access the Hugging Face Hub. All public pages will show the following message if access is unauthenticated:
42+
All public pages will show the following message if access is unauthenticated:
4443

4544
<div class="flex justify-center">
4645
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-restricted-url.png" alt="Screenshot of restricted pages on the Hub."/>
4746
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-restricted-url.png" alt="Screenshot of restricted pages on the Hub."/>
4847
</div>
4948

50-
1. Toggle on the "Enforce authenticated access to the Hub" option
51-
52-
<div class="flex justify-center">
53-
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-enforce-auth.png" alt="Screenshot of the toggle to enable Enforced authenticated access to the Hub."/>
54-
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/dark-network-sec-enforce-auth.png" alt="Screenshot of the toggle to enable Enforced authenticated access to the Hub."/>
55-
</div>
56-
57-
You need to have a valid Enterprise Plus subscription for this option to take effect.
58-
59-
2. Ensure the Organization IP Ranges are defined
6049

6150

6251
### Content Access Policy
6352

64-
You can also define a fine grained Content Access Policy by blocking some section of the Hugging Face Hub.
53+
Define a fine-grained Content Access Policy by blocking certain sections of the Hugging Face Hub.
6554

66-
For example, you can block your organization's members to access Spaces, by adding `/spaces/*` to the blocked URLs. When users of your organization navigate to a page that matches the URL pattern, they'll be presented the following page:
55+
For example, you can block your organization's members from accessing Spaces by adding `/spaces/*` to the blocked URLs. When users of your organization navigate to a page that matches the URL pattern, they'll be presented the following page:
6756

6857
<div class="flex justify-center">
6958
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise/network-sec-blocked-url.png" alt="Screenshot of blocked pages on the Hub."/>

docs/hub/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hugging Face Hub documentation
22

3-
The Hugging Face Hub is a platform with over 1.7M models, 400k datasets, and 600k demo apps (Spaces), all open source and publicly available, in an online platform where people can easily collaborate and build ML together. The Hub works as a central place where anyone can explore, experiment, collaborate, and build technology with Machine Learning. Are you ready to join the path towards open source Machine Learning? 🤗
3+
The Hugging Face Hub is a platform with over 2M models, 500k datasets, and 1M demo apps (Spaces), all open source and publicly available, in an online platform where people can easily collaborate and build ML together. The Hub works as a central place where anyone can explore, experiment, collaborate, and build technology with Machine Learning. Are you ready to join the path towards open source Machine Learning? 🤗
44

55
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 md:mt-10">
66

@@ -105,7 +105,7 @@ The Hugging Face Hub is a platform with over 1.7M models, 400k datasets, and 600
105105

106106
We are helping the community work together towards the goal of advancing Machine Learning 🔥.
107107

108-
The Hugging Face Hub is a platform with over 2M models, 500k datasets, and 600k demos in which people can easily collaborate in their ML workflows. The Hub works as a central place where anyone can share, explore, discover, and experiment with open-source Machine Learning.
108+
The Hugging Face Hub is a platform with over 2M models, 500k datasets, and 1M demos in which people can easily collaborate in their ML workflows. The Hub works as a central place where anyone can share, explore, discover, and experiment with open-source Machine Learning.
109109

110110
No single company, including the Tech Titans, will be able to “solve AI” by themselves – the only way we'll achieve this is by sharing knowledge and resources in a community-centric approach. We are building the largest open-source collection of models, datasets, and demos on the Hugging Face Hub to democratize and advance ML for everyone 🚀.
111111

docs/hub/organizations-managing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ You can also revoke a user's membership or change their role on this page.
1717

1818
## Organization domain name
1919

20-
Under the **Account** tab in the Organization settings, you can set an **Organization domain name**. Specifying a domain name will allow any user with a matching email address on the Hugging Face Hub to join your organization.
20+
Under the **Account** tab in the Organization settings, you can set an **Organization domain name**. Specifying a domain name will allow any user with a matching email address on the Hugging Face Hub to join your organization.
21+
22+
## Leaving an organization
23+
24+
Users can leave an organization visiting their [organization settings](https://huggingface.co/settings/organizations) and clicking **Leave Organization** next to the organization they want to leave. Organization administrators can always remove users as explained above.

docs/hub/spaces-advanced.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
- [How to Add a Space to ArXiv](./spaces-add-to-arxiv)
1111
- [Cookie limitations in Spaces](./spaces-cookie-limitations)
1212
- [How to handle URL parameters in Spaces](./spaces-handle-url-parameters)
13+
- [How to get user status and plan in Spaces](./spaces-get-user-plan)

docs/hub/spaces-get-user-plan.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# How to get a user's plan and status in Spaces
2+
3+
From inside a Space's iframe, you can check if a user is logged in or not on the main site, and if they have a PRO subscription or if one of their orgs has a paid subscription.
4+
5+
```js
6+
window.addEventListener("message", (event) => {
7+
if (event.data.type === "USER_PLAN") {
8+
console.log("plan", event.data.plan);
9+
}
10+
})
11+
12+
window.parent.postMessage({
13+
type: "USER_PLAN_REQUEST"
14+
}, "https://huggingface.co");
15+
```
16+
17+
`event.data.plan` will be of type:
18+
19+
```ts
20+
{
21+
user: "anonymous",
22+
org: undefined
23+
} | {
24+
user: "pro" | "free",
25+
org: undefined | "team" | "enterprise" | "plus" | "academia"
26+
}
27+
```
28+
29+
You will get both the user's status (logged out = `"anonymous"`) and their <a href="https://huggingface.co/pricing">plan</a>.
30+
31+
## Examples
32+
33+
- https://huggingface.co/spaces/huggingfacejs/plan

docs/inference-providers/providers/cohere.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ Find out more about Chat Completion (VLM) [here](../tasks/chat-completion).
5959

6060
<InferenceSnippet
6161
pipeline=image-text-to-text
62-
providersMapping={ {"cohere":{"modelId":"CohereLabs/command-a-vision-07-2025","providerModelId":"command-a-vision-07-2025"} } }
62+
providersMapping={ {"cohere":{"modelId":"CohereLabs/aya-vision-32b","providerModelId":"c4ai-aya-vision-32b"} } }
6363
conversational />
6464

docs/inference-providers/providers/groq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Find out more about Chat Completion (LLM) [here](../tasks/chat-completion).
5757

5858
<InferenceSnippet
5959
pipeline=text-generation
60-
providersMapping={ {"groq":{"modelId":"moonshotai/Kimi-K2-Instruct-0905","providerModelId":"moonshotai/kimi-k2-instruct-0905"} } }
60+
providersMapping={ {"groq":{"modelId":"openai/gpt-oss-20b","providerModelId":"openai/gpt-oss-20b"} } }
6161
conversational />
6262

6363

docs/inference-providers/providers/hf-inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Find out more about Translation [here](../tasks/translation).
190190

191191
<InferenceSnippet
192192
pipeline=translation
193-
providersMapping={ {"hf-inference":{"modelId":"google-t5/t5-small","providerModelId":"google-t5/t5-small"} } }
193+
providersMapping={ {"hf-inference":{"modelId":"google/madlad400-3b-mt","providerModelId":"google/madlad400-3b-mt"} } }
194194
/>
195195

196196

docs/inference-providers/providers/replicate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Find out more about Text To Image [here](../tasks/text_to_image).
6767

6868
<InferenceSnippet
6969
pipeline=text-to-image
70-
providersMapping={ {"replicate":{"modelId":"tencent/HunyuanImage-2.1","providerModelId":"tencent/hunyuan-image-2.1"} } }
70+
providersMapping={ {"replicate":{"modelId":"tencent/HunyuanImage-3.0","providerModelId":"tencent/hunyuan-image-3"} } }
7171
/>
7272

7373

0 commit comments

Comments
 (0)