---
title: GLM-5-4bit-gs32
canonical_url: "https://www.modelscope.cn/models/mlx-community/GLM-5-4bit-gs32"
md_url: "https://www.modelscope.cn/models/mlx-community/GLM-5-4bit-gs32.md"
repository: mlx-community/GLM-5-4bit-gs32
last_updated: 2026-02-13
license: mit
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - glm_moe_dsa
architectures:
  - GlmMoeDsaForCausalLM
base_model:
  - zai-org/GLM-5
base_model_relation: quantized
parameters: 136.3B
tensor_type:
  - F32
  - U32
  - BF16
library_name:
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
language:
  - en
  - zh
downloads: 67
stars: 1
tags:
  - mlx
---

# GLM-5-4bit-gs32

> GLM-5-4bit-gs32 - mlx-community 在 ModelScope 开源的模型。mlx-community/GLM-5-4bit-gs32

mlx-community/GLM-5-4bit-gs32 是 ModelScope 魔搭社区上的 136.3B 参数text-generation模型，采用 mit 许可，基于 zai-org/GLM-5 构建。

- **Repository**: mlx-community/GLM-5-4bit-gs32
- **License**: mit
- **Tasks**: text-generation
- **Parameters**: 136.3B
- **Base model**: zai-org/GLM-5
- **Tags**: mlx
- **Downloads**: 67
- **Stars**: 1
- **Last updated**: 2026-02-13

Source: https://www.modelscope.cn/models/mlx-community/GLM-5-4bit-gs32

---

# mlx-community/GLM-5-4bit-gs32

This model [mlx-community/GLM-5-4bit-gs32](https://huggingface.co/mlx-community/GLM-5-4bit-gs32) was
converted to MLX format from [zai-org/GLM-5](https://huggingface.co/zai-org/GLM-5)
using mlx-lm version **0.30.7**.

## Use with mlx

```bash
pip install mlx-lm
```

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/GLM-5-4bit-gs32")

prompt = "hello"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True, return_dict=False,
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
```
