Instructions to use zai-org/GLM-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/GLM-5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zai-org/GLM-5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zai-org/GLM-5") model = AutoModelForCausalLM.from_pretrained("zai-org/GLM-5") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use zai-org/GLM-5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zai-org/GLM-5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zai-org/GLM-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zai-org/GLM-5
- SGLang
How to use zai-org/GLM-5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "zai-org/GLM-5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zai-org/GLM-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "zai-org/GLM-5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zai-org/GLM-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zai-org/GLM-5 with Docker Model Runner:
docker model run hf.co/zai-org/GLM-5
Create .eval_results/apex-v1-extended.yaml
#78 opened 26 days ago
by
madhavan113
Create .eval_results/apex-agents.yaml
#77 opened 26 days ago
by
madhavan113
eval_results/apex-agents.yaml
#76 opened 26 days ago
by
madhavan113
Loading GLM-5 on 2 x H200 nodes with 8 GPUs
1
#75 opened about 1 month ago
by
tmulani
Please train the AIR ββmodel
1
#73 opened about 2 months ago
by
Kosh69
Multilingual capabilities for production
#71 opened about 2 months ago
by
O96a
Add YC-Bench evaluation results (avg $1,208,190)
#69 opened about 2 months ago
by
RiddleHe
Install & run zai-org/GLM-5 easily using llmpm
#63 opened 2 months ago
by
sarthak-saxena
The performance of dense small models is now gaining renewed attention. Could GLM's 32B/40B variants get their chance to shine?
2
#62 opened 2 months ago
by
Eilian
Security/Compliance Audit: EU AI Act & NIST Exposure
1
#60 opened 2 months ago
by
tradeapollo
GLM-5 tool calling problem "Error message: JSON Parse error: Expected '}'"
#59 opened 3 months ago
by
birolkuyumcu
which rocm vllm docker to use for AMD GPU?
#58 opened 3 months ago
by
vivekag-ai
Less Context Length than Expected(600k)
5
#57 opened 3 months ago
by
Forcewithme
Quick question: is Qwen/Qwen2.5-Math-1.5B-Instruct derived from Qwen/Qwen2.5-Math-1.5B?
2
#55 opened 3 months ago
by
dqdw
Technical question: Lineage of Qwen/Qwen2.5-Coder-1.5B-Instruct
#54 opened 3 months ago
by
dqdw
Upload IMG-20260223-WA0006.jpg
#50 opened 3 months ago
by
Awepeter
How to benchmark MMMU properly in SGLang?
#49 opened 3 months ago
by
JacobChang
Update .gitattributes
#48 opened 3 months ago
by
Uzef
how to use it
#47 opened 3 months ago
by
nownownhan
GLM-5-Flash
β€οΈ 20
1
#46 opened 3 months ago
by
exxxistent
I have reasoning datasets from this
2
#45 opened 3 months ago
by
Crownelius
"Hierarchical Context Management" Reproducibility?
β 4
#43 opened 3 months ago
by
pandemo
How to navigate through
β 1
2
#41 opened 3 months ago
by
Thatboydan
what the best ai to work on
4
#39 opened 3 months ago
by
ldeath131416
Will there be a glm-5-air?
β 3
1
#38 opened 3 months ago
by
ianncity
Ola
1
#37 opened 3 months ago
by
Olasconefo
I like this model but...
β 2
#36 opened 3 months ago
by
Carnyzzle
Question about training data sources for GLM-5
1
#33 opened 3 months ago
by
Mustina
Module not Found Error
#32 opened 3 months ago
by
aniket2025
New discussion here
#26 opened 3 months ago
by
bytecypher
Upload Screenshot_20260213-040717.jpg
#25 opened 3 months ago
by
janesjohn
Update README.md
#20 opened 3 months ago
by
janesjohn
Preshcyptz
#19 opened 3 months ago
by
janesjohn
Great Model but not accessible anymore
π₯β 4
8
#17 opened 3 months ago
by
darkstar3537
Availabilty
1
#16 opened 3 months ago
by
kashifo
Action Model
#15 opened 3 months ago
by
CrypoCrackid
How to Run GLM-5 Locally Guide! π₯
β€οΈ 4
#12 opened 3 months ago
by
danielhanchen
Decode Context Parallel not working
#11 opened 3 months ago
by
pratiknarola
Update README.md
#10 opened 3 months ago
by
UnicornChan
Thank you so much for this!
π₯π 13
1
#7 opened 3 months ago
by
SicariusSicariiStuff
Native Context Window
#6 opened 3 months ago
by
akumaburn
Please release a model with native 4-bit quantization
πβ 11
4
#4 opened 3 months ago
by
calycekr
We need Air and we need Flash
βπ 99
23
#3 opened 3 months ago
by
jacek2024
Base model
π₯π 19
#1 opened 3 months ago
by
FriskyFennec