# chatglm2-6b

[Canonical model page](https://headlessthrones.com/models/z-ai-chatglm2-6b) · [Model library](https://headlessthrones.com/models)

Public catalog reference from Headless Thrones. Exact catalog ID: `z-ai-chatglm2-6b`. Catalog source-check date: 2026-10-23.

This brief contains the public catalog answers and any catalog guide, not private drafts, historical editorial revisions or independently measured rankings. The canonical HTML page may also display separately published editorial.

Current catalog answers

## What to know about chatglm2-6b

AI-compiled from linked model documentation. This is a catalog reference, not an independent performance review. Catalog checked October 23, 2026.

[Exact model](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-identity) · [Access](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-access) · [Token limits](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-context) · [Inputs &amp; outputs](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-modalities) · [License](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-license) · [Model details](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-research) · [Weight details](https://headlessthrones.com/models/z-ai-chatglm2-6b#model-answer-repository)

### Which chatglm2-6b does this page describe?

chatglm2-6b is a model record from **Z.ai** in the ChatGLM family. [Source](https://huggingface.co/zai-org/chatglm2-6b)

The recorded model identifier or checkpoint is `chatglm2-6b`. Use that exact identifier when checking documentation or a provider listing. [Source](https://huggingface.co/zai-org/chatglm2-6b)

### How can you access chatglm2-6b?

The catalog documents **Open weights** access  for chatglm2-6b. [Source](https://huggingface.co/zai-org/chatglm2-6b)

As of the catalog check, this version was listed as available. [Source](https://huggingface.co/zai-org/chatglm2-6b)

Open weights means the model weights are distributed for use under their stated terms. It does not establish a hosted API, an open-source license, or a hardware requirement.

### What are chatglm2-6b's context and output limits?

The publisher reports the context window as **32K tokens (8K dialogue-alignment training)**. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md) We retain the publisher's notation and qualifiers; no exact token count or hosted serving allowance is inferred from it.

A separate maximum-output value is not established in this record. The context or input figure should not be used as an output allowance.

Context, input and output limits describe different constraints. Do not add the figures together to infer a larger window. Check the endpoint's accounting for conversation history, system instructions, tools, media and generated tokens; a documented maximum is not a guarantee of answer quality or a measured usable capacity.

### What can chatglm2-6b receive and generate?

Documented inputs: **text**. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

Documented outputs: **text**. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

Input support and output generation are separate capabilities. Reading an image does not establish image generation; a text output listing does not establish speech output. File sizes, formats and media limits depend on the documented implementation.

### What license is recorded for chatglm2-6b?

The recorded license label is **ChatGLM Model License (weights); Apache 2.0 (code)**. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

Read the linked license and associated use terms for this exact version before redistribution, commercial deployment or fine-tuning. A label alone does not establish every permission, restriction or obligation, and it does not determine the terms of a separate hosted service.

### What distinguishes chatglm2-6b?

These details come from the linked publisher material for this model. Reported capabilities and training descriptions are publisher statements, not independent test results.

**Long-context limitation**: Publisher warns this version has limited understanding of single-turn ultra-long documents. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

**Pretraining and alignment**: GLM hybrid objective with 1.4T bilingual pretraining tokens, followed by human-preference alignment. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

**Attention implementation**: Multi-query attention; the publisher’s INT4 example fits an 8K dialogue in 6G GPU memory. [Source](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

### What is documented about the chatglm2-6b checkpoint?

This evidence refers to `zai-org/chatglm2-6b` at recorded revision `d2e2d91789248536a747d9ce60642a336444186c`, checked October 23, 2026. [Repository metadata](https://huggingface.co/api/models/zai-org/chatglm2-6b)

Recorded architecture class: `ChatGLMModel`. [Repository metadata](https://huggingface.co/api/models/zai-org/chatglm2-6b)

Listed library: `transformers`. Check that library's version and model support before loading the weights. [Repository metadata](https://huggingface.co/api/models/zai-org/chatglm2-6b)

Repository language labels: zh and en. These labels are not independent evaluations of language quality. [Repository metadata](https://huggingface.co/api/models/zai-org/chatglm2-6b)

Repository access gate: `false`. This records the repository's gate setting when checked; licensing and use terms still apply. [Repository metadata](https://huggingface.co/api/models/zai-org/chatglm2-6b)

#### What the configuration file says

The pinned `config.json` contains these values. [Pinned configuration](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/config.json)

`torch_dtype`: float16

`num_attention_heads`: 32

`hidden_size`: 4,096

Configuration values describe the checkpoint and its implementation. In particular, max\_position\_embeddings, sliding\_window and rope\_scaling do not independently establish an API context limit, tested usable length or hardware requirement. Runtime, quantization, cache, batch size and input length affect deployment behavior.

Read the retrieved model card for setup and qualifications. [Model card](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md)

**Catalog qualifications:** Official publisher weight listing; availability refers to this distribution, not a guaranteed hosted API. Base, SFT and research variants are identified by their exact published names. Official quantization/runtime variants are retained as aliases. [Source 1](https://huggingface.co/zai-org/chatglm2-6b) · [Source 2](https://huggingface.co/api/models/zai-org/chatglm2-6b) · [Source 3](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/README.md) · [Source 4](https://huggingface.co/zai-org/chatglm2-6b/resolve/d2e2d91789248536a747d9ce60642a336444186c/config.json)

**Evidence still missing here:** knowledge and training-data cutoffs and tested hardware requirements. Missing documentation is not evidence that a feature is unavailable.

Headless Thrones has not independently benchmarked this model for this reference. Evaluate it on representative work before choosing it; these facts do not rank its accuracy, reliability, speed or suitability against another model.

Keep the exact version in view

## Other ChatGLM models from Z.ai.

These are separate records in the same publisher family. A shared family name does not establish equal capabilities or interchangeable licenses.

### [chatglm-6b](https://headlessthrones.com/models/z-ai-chatglm-6b)

Open weights

### [chatglm2-6b-32k](https://headlessthrones.com/models/z-ai-chatglm2-6b-32k)

Open weights

### [chatglm3-6b](https://headlessthrones.com/models/z-ai-chatglm3-6b)

Open weights

### [chatglm3-6b-128k](https://headlessthrones.com/models/z-ai-chatglm3-6b-128k)

Open weights

### [chatglm3-6b-32k](https://headlessthrones.com/models/z-ai-chatglm3-6b-32k)

Open weights

### [chatglm3-6b-base](https://headlessthrones.com/models/z-ai-chatglm3-6b-base)

Open weights
