Skip to content

Commit aedd980

Browse files
tomsun28SBrandeisWauplin
authored
doc: add zai as inference provider doc (#1960)
* doc: add zai as inference provider doc * update * generate z.ai * rerun zai docs * tip formatting --------- Co-authored-by: SBrandeis <[email protected]> Co-authored-by: Wauplin <[email protected]>
1 parent 332db84 commit aedd980

File tree

5 files changed

+88
-0
lines changed

5 files changed

+88
-0
lines changed

docs/inference-providers/_toctree.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
title: Scaleway
108108
- local: providers/together
109109
title: Together
110+
- local: providers/zai-org
111+
title: Z.ai
110112

111113
- local: hub-api
112114
title: Hub API

docs/inference-providers/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Our platform integrates with leading AI infrastructure providers, giving you acc
2929
| [SambaNova](./providers/sambanova) || || | | |
3030
| [Scaleway](./providers/scaleway) || || | | |
3131
| [Together](./providers/together) ||| || | |
32+
| [Z.ai](./providers/zai-org) ||| | | | |
3233

3334
## Why Choose Inference Providers?
3435

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!---
2+
WARNING
3+
4+
This markdown file has been generated from a script. Please do not edit it directly.
5+
6+
### Template
7+
8+
If you want to update the content related to zai-org's description, please edit the template file under `https://github.com/huggingface/hub-docs/tree/main/scripts/inference-providers/templates/providers/zai-org.handlebars`.
9+
10+
### Logos
11+
12+
If you want to update zai-org's logo, upload a file by opening a PR on https://huggingface.co/datasets/huggingface/documentation-images/tree/main/inference-providers/logos. Ping @wauplin and @celinah on the PR to let them know you uploaded a new logo.
13+
Logos must be in .png format and be named `zai-org-light.png` and `zai-org-dark.png`. Visit https://huggingface.co/settings/theme to switch between light and dark mode and check that the logos are displayed correctly.
14+
15+
### Generation script
16+
17+
For more details, check out the `generate.ts` script: https://github.com/huggingface/hub-docs/blob/main/scripts/inference-providers/scripts/generate.ts.
18+
--->
19+
20+
# Z.ai
21+
22+
> [!TIP]
23+
> All supported Z.ai models can be found [here](https://huggingface.co/models?inference_provider=zai-org&sort=trending)
24+
25+
<div class="flex justify-center">
26+
<a href="https://z.ai/" target="_blank">
27+
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/logos/zai-org-light.png"/>
28+
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/inference-providers/logos/zai-org-dark.png"/>
29+
</a>
30+
</div>
31+
32+
<div class="flex">
33+
<a href="https://huggingface.co/zai-org" target="_blank">
34+
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-us-on-hf-lg.svg"/>
35+
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-us-on-hf-lg-dark.svg"/>
36+
</a>
37+
</div>
38+
39+
Z.ai is an AI platform that provides cutting-edge large language models powered by GLM series. Their flagship models feature Mixture-of-Experts (MoE) architecture with advanced reasoning, coding, and agentic capabilities.
40+
41+
For latest pricing, visit the [pricing page](https://docs.z.ai/guides/overview/pricing).
42+
43+
## Resources
44+
- **Website**: https://z.ai/
45+
- **Documentation**: https://docs.z.ai/
46+
- **API Documentation**: https://docs.z.ai/api-reference/introduction
47+
- **GitHub**: https://github.com/zai-org
48+
- **Hugging Face**: https://huggingface.co/zai-org
49+
50+
## Supported tasks
51+
52+
53+
### Chat Completion (LLM)
54+
55+
Find out more about Chat Completion (LLM) [here](../tasks/chat-completion).
56+
57+
<InferenceSnippet
58+
pipeline=text-generation
59+
providersMapping={ {"zai-org":{"modelId":"zai-org/GLM-4.5","providerModelId":"glm-4.5"} } }
60+
conversational />
61+
62+

scripts/inference-providers/scripts/generate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const PROVIDERS_HUB_ORGS: Record<string, string> = {
4949
sambanova: "sambanovasystems",
5050
scaleway: "scaleway",
5151
together: "togethercomputer",
52+
"zai-org": "zai-org"
5253
};
5354

5455
const PROVIDERS_URLS: Record<string, string> = {
@@ -68,6 +69,7 @@ const PROVIDERS_URLS: Record<string, string> = {
6869
sambanova: "https://sambanova.ai/",
6970
scaleway: "https://www.scaleway.com",
7071
together: "https://together.xyz/",
72+
"zai-org": "https://z.ai/"
7173
};
7274
const INFERENCE_PROVIDERS = Object.keys(PROVIDERS_HUB_ORGS);
7375

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Z.ai
2+
3+
> [!TIP]
4+
> All supported Z.ai models can be found [here](https://huggingface.co/models?inference_provider=zai-org&sort=trending)
5+
6+
{{{logoSection}}}
7+
8+
{{{followUsSection}}}
9+
10+
Z.ai is an AI platform that provides cutting-edge large language models powered by GLM series. Their flagship models feature Mixture-of-Experts (MoE) architecture with advanced reasoning, coding, and agentic capabilities.
11+
12+
For latest pricing, visit the [pricing page](https://docs.z.ai/guides/overview/pricing).
13+
14+
## Resources
15+
- **Website**: https://z.ai/
16+
- **Documentation**: https://docs.z.ai/
17+
- **API Documentation**: https://docs.z.ai/api-reference/introduction
18+
- **GitHub**: https://github.com/zai-org
19+
- **Hugging Face**: https://huggingface.co/zai-org
20+
21+
{{{tasksSection}}}

0 commit comments

Comments
 (0)