Image-Text-to-Text
Transformers
Safetensors
English
Chinese
glm5_next
conversational
Eval Results
fp8
Run this model with HF Jobs
Run zai-org/GLM-5.3-Flash on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/zai-org/GLM-5.3-Flash. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zai-org/GLM-5.3-Flash on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/zai-org/GLM-5.3-Flash. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/zai-org/GLM-5.3-Flash. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use zai-org/GLM-5.3-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/GLM-5.3-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="zai-org/GLM-5.3-Flash") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("zai-org/GLM-5.3-Flash") model = AutoModelForMultimodalLM.from_pretrained("zai-org/GLM-5.3-Flash", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zai-org/GLM-5.3-Flash 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.3-Flash" # 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.3-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/zai-org/GLM-5.3-Flash
- SGLang
How to use zai-org/GLM-5.3-Flash 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.3-Flash" \ --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.3-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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.3-Flash" \ --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.3-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use zai-org/GLM-5.3-Flash with Docker Model Runner:
docker model run hf.co/zai-org/GLM-5.3-Flash
Add files using upload-large-folder tool
Browse filesFiles changed (19)
- model-00006-of-00062.safetensorsAdded+3
- model-00008-of-00062.safetensorsAdded+3
- model-00009-of-00062.safetensorsAdded+3
- model-00010-of-00062.safetensorsAdded+3
- model-00017-of-00062.safetensorsAdded+3
- model-00021-of-00062.safetensorsAdded+3
- model-00022-of-00062.safetensorsAdded+3
- model-00023-of-00062.safetensorsAdded+3
- model-00027-of-00062.safetensorsAdded+3
- model-00032-of-00062.safetensorsAdded+3
- model-00035-of-00062.safetensorsAdded+3
- model-00036-of-00062.safetensorsAdded+3
- model-00038-of-00062.safetensorsAdded+3
- model-00043-of-00062.safetensorsAdded+3
- model-00049-of-00062.safetensorsAdded+3
- model-00051-of-00062.safetensorsAdded+3
- model-00054-of-00062.safetensorsAdded+3
- model-00059-of-00062.safetensorsAdded+3
- model-00060-of-00062.safetensorsAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:20e2cd306152f5de1e1d4ffa474e90a466d1b2ffd01c21a4182a99e263e9eaa0size 5361790216123version https://git-lfs.github.com/spec/v1oid sha256:6605c4a52d76579574edfe3b7084c46d91ded3f33b678be25ee36ef724175d87size 5364323752123version https://git-lfs.github.com/spec/v1oid sha256:f22e936680e6f5301b12595d8ef03b2f146cb0705b3ae5034475eac613bb738csize 5364150656123version https://git-lfs.github.com/spec/v1oid sha256:9b16c6c60140d207e68a9606df5a9fedae1ea5fd7e4ac63085db653fe8fb3904size 5361963552123version https://git-lfs.github.com/spec/v1oid sha256:ecedda4be4b7e51a48d6560d5ba33018512104f434b87f885e2a934f2eb602e5size 5364066608123version https://git-lfs.github.com/spec/v1oid sha256:321b87eecbfa57138c183eb1cec4e0374eb830cef46adc52a4abaf6f8e6d7f75size 5364323824123version https://git-lfs.github.com/spec/v1oid sha256:b046bdb38fdb1c0acc1f0e947c1b7ac094829aba77bed55fcd09b13f69f4f93bsize 5363896880123version https://git-lfs.github.com/spec/v1oid sha256:229bf5121cb9ce392c1336797a4be055050c5d746eed8ae9b386d979feee0c0csize 5361790096123version https://git-lfs.github.com/spec/v1oid sha256:0c09e22aa37d833922839985a7ee5774ebf02f7a2de993f8d4dd0f71c8574bedsize 5361790392123version https://git-lfs.github.com/spec/v1oid sha256:0f0efa2cc6d4b6341abc9c91895c9242e0e8657a5a1a473d32bdb06bff8c63edsize 5363896184123version https://git-lfs.github.com/spec/v1oid sha256:b3c7cef69a77deabd2d20de6bd30c542417d00df58a0897dfc2dc260c6bea6e3size 5363896928123version https://git-lfs.github.com/spec/v1oid sha256:d389597d9d9ed35fdce528ca8679debceae263fc1c5f234901855b60aed314b2size 5364323752123version https://git-lfs.github.com/spec/v1oid sha256:a75064d327831efca233f1d87ca189555fcdfdb7abf69c24c62e9c94048da816size 5364324064123version https://git-lfs.github.com/spec/v1oid sha256:5e91a7ea83572d38748f0b13f3ffaa21923e6c16c55dbc01df33569f98a7a571size 5364323744123version https://git-lfs.github.com/spec/v1oid sha256:4c65ebf955d6470635b03a19fadb8e35acb9b71b36c1f014d0ef4cb9d1c03199size 5364323784123version https://git-lfs.github.com/spec/v1oid sha256:6f321541220fb5ea28b703c8a4cd523f59732185a5004550100765dcf3fd1e8csize 5361790160123version https://git-lfs.github.com/spec/v1oid sha256:622749e0ed6a55d083b28dc3fc18601de6a91fe2cfa912a54f8255cd8ec6ab77size 5364323720123version https://git-lfs.github.com/spec/v1oid sha256:2c9f2ee8d982cf35c81f18a8389664f7cda61ea075104fba4a35122d62c1bcc3size 5363895856123version https://git-lfs.github.com/spec/v1oid sha256:3fff2a6b00c79773f92845b62922a2bb6181d7a88d991ec5a6546e38a7e88d3csize 5364322512model-00006-of-00062.safetensorsAdded+3
model-00008-of-00062.safetensorsAdded+3
model-00009-of-00062.safetensorsAdded+3
model-00010-of-00062.safetensorsAdded+3
model-00017-of-00062.safetensorsAdded+3
model-00021-of-00062.safetensorsAdded+3
model-00022-of-00062.safetensorsAdded+3
model-00023-of-00062.safetensorsAdded+3
model-00027-of-00062.safetensorsAdded+3
model-00032-of-00062.safetensorsAdded+3
model-00035-of-00062.safetensorsAdded+3
model-00036-of-00062.safetensorsAdded+3
model-00038-of-00062.safetensorsAdded+3
model-00043-of-00062.safetensorsAdded+3
model-00049-of-00062.safetensorsAdded+3
model-00051-of-00062.safetensorsAdded+3
model-00054-of-00062.safetensorsAdded+3
model-00059-of-00062.safetensorsAdded+3
model-00060-of-00062.safetensorsAdded+3