> ## Documentation Index
> Fetch the complete documentation index at: https://miles.radixark.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM

> Miles recipes for the GLM4.5, GLM4.7 Flash, GLM5, GLM5.2, and GLM-5.3 families, plus the KDA + DSA hybrid GLM-5.3-Flash.

Miles ships RL recipes for every GLM generation currently in production: the GLM4.5 MoE at 106 B-A12B and 355 B-A32B, the compact GLM4.7 Flash with 64 routed experts, the 744 B-A40B GLM5, GLM5.2, and GLM-5.3 flagships, and GLM-5.3-Flash, a KDA + DSA hybrid on a different architecture entirely.

## Variants

| Family | Class | Sizes | Recipe |
| - | - | - | - |
| GLM4.5 | MoE | 12 B / 106 B · 32 B / 355 B | [glm4-5](https://miles.radixark.com/docs/models/glm/glm4-5.md) |
| GLM4.7 Flash | MoE (64 experts, top-4) | Compact | [glm4-7-flash](https://miles.radixark.com/docs/models/glm/glm4-7-flash.md) |
| GLM5 | MoE | 40 B / 744 B | [glm5](https://miles.radixark.com/docs/models/glm/glm5.md) |
| GLM5.2 | MoE | 40 B / 744 B | [glm5-2](https://miles.radixark.com/docs/models/glm/glm5-2.md) |
| GLM-5.3 | MoE (same architecture as GLM5.2) | 40 B / 744 B | [glm5-3](https://miles.radixark.com/docs/models/glm/glm5-3.md) |
| GLM-5.3-Flash | MoE (KDA + DSA hybrid) | 45 layers · 288 experts, top-8 | [glm5-3-flash](https://miles.radixark.com/docs/models/glm/glm5-3-flash.md) |

## Fastest path to train

GLM4.7 Flash on a single 8× H100 node — the smallest GLM recipe:

```bash theme={null}
python scripts/run_glm47_flash.py
```

See the [GLM4.7 Flash](https://miles.radixark.com/docs/models/glm/glm4-7-flash.md) page for weight conversion and the full walkthrough.

## Which variant do I pick?

* **Single-node GLM first try** → GLM4.7 Flash ([glm4-7-flash](https://miles.radixark.com/docs/models/glm/glm4-7-flash.md)).
* **MoE on a budget** → GLM4.5-106B-A12B ([glm4-5](https://miles.radixark.com/docs/models/glm/glm4-5.md)).
* **Full MoE scale (multi-node)** → GLM4.5-355B-A32B ([glm4-5](https://miles.radixark.com/docs/models/glm/glm4-5.md)).
* **Compact MoE for routing experiments (R3)** → GLM4.7 Flash ([glm4-7-flash](https://miles.radixark.com/docs/models/glm/glm4-7-flash.md)).
* **Frontier scale (744 B)** → GLM-5.3 ([glm5-3](https://miles.radixark.com/docs/models/glm/glm5-3.md)) or GLM5.2 ([glm5-2](https://miles.radixark.com/docs/models/glm/glm5-2.md)); GLM5/GLM5.1 ([glm5](https://miles.radixark.com/docs/models/glm/glm5.md)) for the previous generation.
* **Hybrid linear + sparse attention with mHC** → GLM-5.3-Flash ([glm5-3-flash](https://miles.radixark.com/docs/models/glm/glm5-3-flash.md)).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.