---
title: "Discussion on \"Running a Coding Agent on a Local GLM 4.7 with vLLM: The Setup Nobody Documents\" | Hashnode"
description: "Discussion on \"Running a Coding Agent on a Local GLM 4.7 with vLLM: The Setup Nobody Documents\". The three parser flags, two timeout knobs, and the verifier pattern that make a local GLM agent actually work."
url: "https://hashnode.com/posts/running-a-coding-agent-on-a-local-glm-4-7-with-vllm-the-setup-nobody-documents/6a68cabeaee0599e10bc9acd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Running a Coding Agent on a Local GLM 4.7 with vLLM: The Setup Nobody Documents](https://joshgreen.hashnode.dev/running-a-coding-agent-on-a-local-glm-4-7-with-vllm-the-setup-nobody-documents?utm_source=hashnode&utm_medium=feed)

The three parser flags, two timeout knobs, and the verifier pattern that make a local GLM agent actually work.

Jul 28 · 7 min read · joshgreen.hashnode.dev  
Updated Aug 11  
Read the article

-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#vllm](https://hashnode.com/tag/vllm)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#self-hosted](https://hashnode.com/tag/self-hosted)

## Written by

[Josh Green](https://hashnode.com/@joshgreen)

@joshgreen · Budapest, Hungary

  
[View profile](https://hashnode.com/@joshgreen)

Lead developer at ModelDirectory.org

I frequently automate problems that should not be automated. I then often brag about it.

## Responses 1

Markdown supported · ⌘↵ to post

[Damiano Bianda](https://hashnode.com/@damianobianda)

[Oct 27](https://hashnode.com/posts/running-a-coding-agent-on-a-local-glm-4-7-with-vllm-the-setup-nobody-documents/6a68cabeaee0599e10bc9acd/comment/6ae0af6039b4f0673e2fe4f1)

Timely companion read: Cloudflare's postmortem from yesterday about their hosted GLM-5.3. Their bug wasn't the model, it was the serving config: the prefill KV pool sized itself from leftover GPU memory to 681K tokens while the advertised context was 1M, and nothing forced the two to agree. Over-length prompts got "rejected" but kept flowing through a disaggregated pipeline as one-token placeholders, so responses attended over stale cache pages from other users' sessions. Two transferable checks for anyone self-hosting GLM on consumer cards: verify the running engine's actual KV pool size against the context length you serve (from the engine's own metrics, not from a green HTTP 200), and treat any mismatch as a live bug, not a performance footnote. Single-tenant local setups dodge the cross-tenant exposure entirely — one more point for the setup you're describing.
