# GLM 5.2

> GLM-5.2 introduces a robust 1M-token context and advanced, multi-effort coding capabilities to significantly enhance performance on long-horizon tasks. Its new IndexShare architecture and improved MTP layer simultaneously boost efficiency by reducing per-token FLOPs and increasing speculative decoding lengths.

Provider: Z.ai · Type: LLM · State: Ready

model path: `accounts/fireworks/models/glm-5p2`

[Deploy on demand](https://app.fireworks.ai/dashboard/deployments/create?baseModel=accounts/fireworks/models/glm-5p2)

GLM-5.2 introduces a robust 1M-token context and advanced, multi-effort coding capabilities to significantly enhance performance on long-horizon tasks. Its new IndexShare architecture and improved MTP layer simultaneously boost efficiency by reducing per-token FLOPs and increasing speculative decoding lengths.

## GLM 5.2 API Features

- **On-demand Deployment**: On-demand deployments allow you to use GLM 5.2 on dedicated GPUs with Fireworks' high-performance serving stack with high reliability and no rate limits. · [Docs](https://docs.fireworks.ai/guides/ondemand-deployments)

## Metadata

- **State**: Ready
- **Created on**: 16 JUN, 2026
- **Kind**: Base model
- **Provider**: Z.ai
- **Huggingface**: [zai-org/GLM-5.2](https://huggingface.co/zai-org/GLM-5.2)

## Specifications

- **Calibrated**: No
- **Mixture-of-Experts**: Yes
- **Parameters**: 743B

## Supporting Functionality

- **Fine-tuning**: Not Supported
- **Serverless**: Not Supported
- **Context Length**: 1040k tokens
- **Function Calling**: Supported
- **Embeddings**: Not Supported
- **Rerankers**: Not Supported
- **Supporting image input**: Not Supported

## GLM 5.2 FAQs

### Is GLM 5.2 being deprecated on Fireworks?

Only on serverless, starting on September 25, 2026. On-demand deployment will continue to be available. Migrate serverless workloads to [GLM-5.3](https://fireworks.ai/models/fireworks/glm-5p3).

### What is GLM 5.2 and who developed it?

A Mixture-of-Experts model from Z.ai, released June 16, 2026 as the successor to GLM-5.1. It is positioned as a flagship model for long-horizon tasks with a 1M-token context.

### What applications and use cases does GLM 5.2 excel at?

Coding-agent scenarios: large-scale implementation, automated research, performance optimization, and complex debugging. Documented cases include project-level codebase analysis, cross-file refactoring, and on-device debugging through ADB and logcat.

### What is the maximum context length for GLM 5.2?

1,048,576 tokens, set as `max_position_embeddings` in config.json. Z.ai and the model card both describe this as a 1M-token context.

### What is the usable context window for GLM 5.2?

Fireworks lists a 1040k-token context window, available on both the serverless endpoint and on-demand deployments.

### Does GLM 5.2 support quantized formats (4-bit/8-bit)?

Fireworks serves the unquantized zai-org/GLM-5.2 repository at BF16, and publishes an FP8 checkpoint separately as `glm-5p2-fp8`, which is on-demand only.

### What is the default temperature of GLM 5.2 on Fireworks?

Fireworks applies the model's Hugging Face `generation_config.json` when sampling parameters are not set. For GLM-5.2 that is `temperature` 1.0 with `top_p` 0.95.

### What is the maximum output length Fireworks allows for GLM 5.2?

`max_tokens` defaults to 2,048 and accepts values up to the full context window; hitting the limit returns a `finish_reason` of length. Z.ai caps output at 128K on its own API.

### What are known failure modes of GLM 5.2?

Z.ai documents reward-hacking risks in coding-task training and evaluation, including shortcut behaviors that can corrupt the training signal, and describes an anti-hack module that detects and blocks such actions during training and evaluation.

### Does GLM 5.2 support streaming responses and function-calling schemas?

Both are supported. Streaming runs through the `stream` parameter on chat completions, and the model page lists function calling as supported.

### How many parameters does GLM 5.2 have?

GLM-5.2 has 743B parameters in a Mixture-of-Experts architecture.

### Is fine-tuning supported for GLM 5.2?

Yes, LoRA with managed SFT and DPO plus a full-parameter shape, at a 204,736-token training context. Training targets the GLM 5.2 FP8 variant on an on-demand deployment.

### How are tokens counted (prompt vs completion)?

Fireworks returns `prompt_tokens`, `completion_tokens`, and `total_tokens` in the `usage` object. Serverless billing prices input, cached input, and output at $1.40, $0.14, and $4.40 per 1M tokens.

### What rate limits apply on the shared endpoint?

[Serverless ceilings](https://docs.fireworks.ai/serverless/rate-limits) for this model's size tier default to 43.2M total prompt TPM, 10.8M uncached prompt TPM, and 432k generated TPM, adaptive per account and model. On-demand deployments carry no rate limits.

### How will upgrades or deprecations of GLM 5.2 be communicated?

Fireworks announces serverless model deprecations in advance, following its [serverless model lifecycle policy](https://docs.fireworks.ai/serverless/overview#serverless-model-lifecycle). For long-term version stability it recommends on-demand deployments.

### What license governs commercial use of GLM 5.2?

Released under the MIT license, which permits commercial use provided the copyright and license notice are retained. Z.ai states there are no regional limits.

### Does Fireworks log request content for GLM 5.2?

No. Fireworks operates zero data retention by default and does not log prompt or generation data for open models without opt-in. The Response API is the exception, retaining data 30 days unless `store` is false.
