← Back to models

GLM-4.7

Z.ai / Zhipu AI (China) December 22, 2025

Parameters

MoE: nominal 355B total / 32B active; 352.798B main-model learned parameters + 5.540B exported MTP parameters (358.338B packaged, including shared-weight copies)

Context Window

202,752 tokens (released checkpoint configuration; hosted service advertises 200K)

License

MIT (publisher declarations for BF16 and FP8 weights; standalone weight LICENSE absent); official repository code: Apache 2.0

Key Features

Text-only hybrid thinking/non-thinking flagship with original BF16 and official mixed-FP8 packages; FP8 same-launch grouping remains provisional pending independent public-access confirmation. The released decoder has 92 layers, hidden size 5,120, full-attention GQA with 96 query heads and 8 KV heads, QK normalization, three initial dense layers, and 160 routed experts selecting 8 plus one shared expert per MoE layer; it includes a separately exported one-layer multi-token prediction module. FP8 uses compressed-tensors per-channel weight scales and dynamic per-token activation quantization, with selected tensors retained at higher precision. Interleaved thinking precedes responses and tool calls; turn-level control uses enable_thinking=false for direct responses. The released template enables thinking by default but clears reasoning from earlier user turns unless clear_thinking=false is explicitly supplied; preserved thinking requires retained reasoning_content and was recommended for agentic tasks with SGLang at launch. No checkpoint-level hard thinking-token budget is encoded in the template. Both original precision configs set max_position_embeddings=202752 without a RoPE-scaling override; tokenizer model_max_length=128000 is a separate saved default, and the hosted 128K maximum output is not an additional context window. Publisher-reported original GLM-4.7 results include SWE-bench Verified 73.8%, SWE-bench Multilingual 66.7%, Terminal Bench 2.0 41.0%, LiveCodeBench v6 84.9%, AIME 2025 95.7%, HMMT February/November 2025 97.1%/93.5%, HLE 24.8% without tools and 42.8% with tools, tau-squared-Bench 87.4%, and BrowseComp 52.0% or 67.5% with context management. These are model-plus-evaluation-system claims, not independently verified BF16/FP8 equivalence or unscaffolded pass@1: launch settings use up to 131072 new tokens for most tasks, 16384 for Terminal/SWE, preserved thinking for multi-turn agents, and tau-squared user-prompt/domain fixes; attempt aggregation and complete agent scaffolds are undisclosed. The publisher describes stronger multilingual agentic coding, cleaner web UI and slide layouts, more vivid creative writing and role-play, and better multi-turn consistency, with integration into Claude Code, Kilo Code, Cline and Roo Code. GLM-4.7-specific pretraining/continued-training token budgets, data mixtures and complete SFT/RL recipe were not disclosed in the checked release sources; the cited GLM-4.5 report does not document this checkpoint. Later GLM-4.7-Flash, hosted FlashX and third-party quantizations are not part of this December grouping.

Official Links