SuperAPIAI Directory

chatglm3-6b-32k

huggingface.co · AI assistants

ChatGLM3-6B-32K is an open-source long-text dialogue model released by Zhipu AI and Tsinghua University's KEG Lab, building on ChatGLM3-6B, with a focus on strengthening long-context understanding, capable of handling contexts up to 32K in length. The model updates the positional encoding and adopts a more targeted long-text training method, training with a 32K context length during the dialogue stage. Official recommendation: if the context is basically within 8K, use ChatGLM3-6B; if contexts exceeding 8K need to be handled, ChatGLM3-6B-32K is recommended. The ChatGLM3-6B series retains features such as fluent dialogue and a low deployment threshold; the base model ChatGLM3-6B-Base leads in performance among pre-trained models under 10B, and adopts a brand-new Prompt format, natively supporting complex scenarios such as tool calling, code execution, and Agent tasks. The model weights are fully open for academic research, and free commercial use is also permitted after filling out a questionnaire for registration. The code follows the Apache-2.0 license, and use of the model weights must comply with the Model License.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsWeb

About this tool

ChatGLM3-6B-32K is a machine learning model hosted on Hugging Face, where users can download it, browse files, and run it. It is a version that further strengthens long-text understanding on the basis of ChatGLM3-6B, and can better handle contexts up to 32K in length. Specifically, the official team updated the positional encoding and designed a more targeted long-text training method, training with a 32K context length during the dialogue stage.

In terms of use, the model is mainly used for dialogue generation and long-text understanding tasks. The official team gives clear usage recommendations: if the actual context length is basically within 8K, ChatGLM3-6B is recommended; if contexts exceeding 8K in length need to be handled, ChatGLM3-6B-32K is recommended.

In terms of main capabilities, while retaining features such as fluent dialogue and a low deployment threshold from the previous two generations of models, the ChatGLM3-6B series introduces a stronger base model, more complete functional support, and a more comprehensive open-source sequence. The base model ChatGLM3-6B-Base adopts more diverse training data, more sufficient training steps, and a more reasonable training strategy, and has the strongest performance among pre-trained models under 10B in dataset evaluations across different dimensions such as semantics, mathematics, reasoning, code, and knowledge. ChatGLM3-6B adopts a newly designed Prompt format and, in addition to normal multi-turn dialogue, natively supports complex scenarios such as tool calling (Function Call), code execution (Code Interpreter), and Agent tasks. The open-source sequence also includes the base model ChatGLM-6B-Base and the long-text dialogue model ChatGLM3-6B-32K.

In terms of usage, the ChatGLM3-6B model can be called through code to generate dialogue. For more usage instructions, including how to run the command-line and web DEMO, and using model quantization to save GPU memory, refer to its GitHub repository. The code is open-sourced under the Apache-2.0 license, and use of the model weights must comply with the Model License. All weights are fully open for academic research, and free commercial use is also permitted after filling out a questionnaire for registration.

Applicable scenarios include dialogue, document understanding, tool calling, code execution, and Agent tasks that require handling long contexts (over 8K up to 32K). In terms of limitations, the official materials provided do not detail specific limitations such as hardware requirements, inference speed, or performance loss after quantization; it is only clarified that the context lengthupper limit is 32K, and it is recommended to choose the model version according to the actual context length.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools