Skip to content
Repo

GLM-4.7

from modal_training_gym.common.models.glm_4_7 import GLM_4_7

Zhipu AI GLM-4.7 MoE model with 355B total and 32B active parameters.

Attributes

model_name str

Hugging Face repository ID. Default: "zai-org/GLM-4.7"

architecture ModelArchitecture | None

Megatron architecture parameters for this model. Default: ModelArchitecture(...)

response_parser Callable[[str], ParsedResponse] | None

Parser for generated text. Default: parse_glm_response

download() -> None

Download or materialize weights into the model volume.

parse_response(text: str) -> ParsedResponse

Parse model text with response_parser.

Without a configured parser, the model text becomes ParsedResponse.content.

Returns

Parsed model output.