modelgrep

Best Local Z.ai Models

Match · Updated July 2026

The best local Z.ai model is GLM 5.1 (40.2 intelligence) — open weights on Hugging Face, small enough to run on your own hardware. GLM 5 (39.5) and GLM 4.7 (33.7) round out the top three.

40.2Intelligence
$0.966Input /M
205KContext

The best local LLMs — open-weight models small enough to run on your own hardware with Ollama, llama.cpp or vLLM — ranked by intelligence. Frontier-scale open models (400B+) are excluded: downloadable isn't the same as runnable. Every model here is on Hugging Face.

  1. 1z-ai logo
    glm-5.1
    ReasoningToolsJSON40.2 intel · $0.966/M · 205K ctx
    40.2
    Intelligence
  2. 2z-ai logo
    glm-5
    ReasoningToolsJSON39.5 intel · $0.950/M · 205K ctx
    39.5
    Intelligence
  3. 3z-ai logo
    glm-4.7
    ReasoningToolsJSON33.7 intel · $0.400/M · 205K ctx
    33.7
    Intelligence
  4. 4z-ai logo
    glm-4.6
    ReasoningToolsJSON23.0 intel · $0.500/M · 205K ctx
    23.0
    Intelligence
  5. 5z-ai logo
    glm-4.7-flash
    ReasoningToolsJSON22.9 intel · $0.060/M · 203K ctx
    22.9
    Intelligence
  6. 6z-ai logo
    glm-4.5
    ReasoningToolsJSON19.5 intel · $0.600/M · 131K ctx
    19.5
    Intelligence
  7. 7z-ai logo
    glm-4.5-air
    ReasoningTools16.5 intel · $0.130/M · 131K ctx
    16.5
    Intelligence
  8. 8z-ai logo
    glm-4.6v
    ReasoningToolsJSON+111.0 intel · $0.300/M · 131K ctx
    11.0
    Intelligence
  9. 9z-ai logo
    glm-4.5v
    ReasoningToolsJSON+17.0 intel · $0.600/M · 66K ctx
    7.0
    Intelligence

Frequently asked

What is the best local Z.ai model?

The best local Z.ai model is GLM 5.1 (40.2 intelligence) — open weights on Hugging Face, small enough to run on your own hardware. GLM 5 (39.5) and GLM 4.7 (33.7) round out the top three.

What's a good alternative to GLM 5.1?

GLM 5 (39.5) is the closest alternative on this metric, followed by GLM 4.7 (33.7). See the full ranking above for the tradeoffs.

How many Z.ai models are there?

modelgrep tracks 12 Z.ai models with live benchmarks, speed, latency and per-provider pricing, led on intelligence by GLM 5.2. 9 of them qualify for this ranking.

More Z.ai rankings

All rankings