Get started
LLM Index

GLM vs. Llama

A side-by-side comparison of release history, capabilities, licensing and model sizes.

Attribute GLM Llama
Developer Z.ai Meta
Current generation GLM-5.2 Llama 4
Initial release 2022-08-04 2023-02-24
Instruct tuned Yes Yes
Coding Yes Yes
Finetuning Yes Yes
Open source Yes Yes
License MIT Llama Community License
Model sizes 744B (40B active) 109B (17B active), 400B (17B active)
Links

GLM

GLM is Z.ai's open-weight model family for reasoning, coding, agents, and long-horizon work. GLM-5.2 is the current generation with a one-million-token context window.

The GLM family began with bilingual pretrained models and evolved through the ChatGLM and GLM-4 generations. GLM-5 scaled the mixture-of-experts architecture to 744B total parameters with 40B active parameters. GLM-5.2, released in June 2026, adds a stable one-million-token context window, stronger long-horizon coding and agent performance, adjustable reasoning effort, and efficiency improvements for sparse attention. Its weights are available under the MIT license.

Further reading

Llama

Llama is Meta's open-weight model family. Llama 4 was its last major generation; Meta's active assistant-model development has shifted to Muse.

Meta introduced LLaMA in February 2023, helping catalyze the modern open-weight model ecosystem. Llama 2 added commercial use and chat tuning, while the Llama 3 series improved scale, multilingual support, and instruction following. Llama 4, released in April 2025, introduced native multimodality and a mixture-of-experts architecture. Meta subsequently shifted its actively promoted assistant-model line to the proprietary Muse family, but Llama models remain widely used and deployed.

Further reading

Compare other models

Other GLM comparisons

Other Llama comparisons