# codegeex2-6b

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

Public catalog reference from Headless Thrones. Exact catalog ID: `z-ai-codegeex2-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 codegeex2-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-codegeex2-6b#model-answer-identity) · [Access](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-access) · [Token limits](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-context) · [Inputs &amp; outputs](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-modalities) · [License](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-license) · [Model details](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-research) · [Weight details](https://headlessthrones.com/models/z-ai-codegeex2-6b#model-answer-repository)

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

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

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

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

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

As of the catalog check, this version was listed as available. [Source](https://huggingface.co/zai-org/codegeex2-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 codegeex2-6b's context and output limits?

The documented **context window is 8,192 tokens**. [Source](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/README.md)

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 codegeex2-6b receive and generate?

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

Documented outputs: **text**. [Source](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/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 codegeex2-6b?

The recorded license label is **CodeGeeX Model License (weights); Apache 2.0 (code)**. [Source](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/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 codegeex2-6b?

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

**Additional pretraining**: 600 billion code tokens after the ChatGLM2-6B base. [Source](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/README.md)

**Quantized deployment**: The publisher reports 6 GB of GPU memory after quantization; this is not a full-precision memory requirement. [Source](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/README.md)

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

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

Recorded architecture class: `ChatGLMModel`. [Repository metadata](https://huggingface.co/api/models/zai-org/codegeex2-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/codegeex2-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/codegeex2-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/codegeex2-6b)

#### What the configuration file says

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

`torch_dtype`: bfloat16

`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/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/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. [Source 1](https://huggingface.co/zai-org/codegeex2-6b) · [Source 2](https://huggingface.co/api/models/zai-org/codegeex2-6b) · [Source 3](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/README.md) · [Source 4](https://huggingface.co/zai-org/codegeex2-6b/resolve/341d8174042d97b618dc5a34b2a1e743be516375/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 CodeGeeX 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.

### [codegeex4-all-9b](https://headlessthrones.com/models/z-ai-codegeex4-all-9b)

Open weights
