glm-4-9b-hf
Support summary
glm-4-9b-hf is a checkpoint published by Z.ai, built on the GlmForCausalLM architecture. vLLM 0.28.0, the newest indexed vLLM release, documents support.
vLLM documents support in 20 of 20 indexed releases, from 0.17.0 to 0.28.0.
- Documented hardware
- CPU
- Documented quantization
- BF16
- Configured context
- 8,192 tokens
- License
- glm-4
Hardware, quantization and features count only statements about this checkpoint; engine-wide capabilities are listed with each release.
Hugging Face model card
- Publisher
- Z.ai
- Task
- text generation
- License
- glm-4
- Architecture
- GlmForCausalLM
- Weight tensor elements
- 9.4B
- Tensor types
- BF16
- Configured context
- 8,192 tokens
- Languages
- zh, en
- Weight access
- Public
- Repository created
- 2025-01-16
Model notes and sources
Engine support
3 engines
| Engine | Release | Checkpoint support | Evidence scope | Last known supported |
|---|---|---|---|---|
| vLLM | Version not pinnedRecipe / cookbook | Documented recipeSource: vllm · models/zai-org/glm-4-9b-hf.yamlReviewed | View 0.28.0 | |
Features, dependencies and evidence for vLLM 0.28.0 | ||||
| SGLang | 0.5.19Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for SGLang 0.5.19 | ||||
| TensorRT-LLM | 1.2.1Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for TensorRT-LLM 1.2.1 | ||||
Recipes and cookbooks
Plan a deployment of glm-4-9b-hf
Pin checkpoint zai-org/glm-4-9b-hf at revision b44e98fcc8df0faba03a48b405356af6b91821e7 on a documented release (vLLM). Verify quantized kernels, chat templates, and parser flags on your target GPU before production rollout.
- Indexed weights store BF16 tensors; confirm your GPU architecture and engine build support this format natively.
- Configured maximum context is 8,192 tokens; cap
--max-model-len(or SGLang’s--context-length) to the longest prompt your workload actually serves so KV blocks stay available for concurrency. - Estimate weight and KV-cache memory for glm-4-9b-hf, leaving headroom for runtime activations and CUDA graphs, then benchmark TTFT, TPOT, and throughput on representative traffic.