Instructions to use PYTHAI/GLM-5.3-Flash-fork with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PYTHAI/GLM-5.3-Flash-fork with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="PYTHAI/GLM-5.3-Flash-fork") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("PYTHAI/GLM-5.3-Flash-fork") model = AutoModelForMultimodalLM.from_pretrained("PYTHAI/GLM-5.3-Flash-fork", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PYTHAI/GLM-5.3-Flash-fork with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PYTHAI/GLM-5.3-Flash-fork" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PYTHAI/GLM-5.3-Flash-fork", "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/PYTHAI/GLM-5.3-Flash-fork
- SGLang
How to use PYTHAI/GLM-5.3-Flash-fork 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 "PYTHAI/GLM-5.3-Flash-fork" \ --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": "PYTHAI/GLM-5.3-Flash-fork", "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 "PYTHAI/GLM-5.3-Flash-fork" \ --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": "PYTHAI/GLM-5.3-Flash-fork", "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 PYTHAI/GLM-5.3-Flash-fork with Docker Model Runner:
docker model run hf.co/PYTHAI/GLM-5.3-Flash-fork
| { | |
| "kind": "licence-locked pointer fork", | |
| "source_repo": "zai-org/GLM-5.3-Flash", | |
| "source_url": "https://huggingface.co/zai-org/GLM-5.3-Flash", | |
| "source_commit": "eb9eb208eb0d988989d07a6a12d0fdeb5f52574a", | |
| "forked_at_utc": "2026-09-13T23:55:35Z", | |
| "licence_tag": "mit", | |
| "licence_file": { | |
| "path": "LICENSE", | |
| "bytes": 1070, | |
| "sha256": "30b85b6b9659f2e78aa259f8faf5d920a68dee7c9ced3fa6dba1f19f2bc4fca1" | |
| }, | |
| "weights_copied": false, | |
| "weights_not_copied": { | |
| "files": 62, | |
| "bytes": 328337455672 | |
| }, | |
| "parameters": 321323031390, | |
| "load_weights_with": "from_pretrained('zai-org/GLM-5.3-Flash', revision='eb9eb208eb0d988989d07a6a12d0fdeb5f52574a')", | |
| "files": [ | |
| { | |
| "path": "LICENSE", | |
| "bytes": 1070, | |
| "sha256": "30b85b6b9659f2e78aa259f8faf5d920a68dee7c9ced3fa6dba1f19f2bc4fca1" | |
| }, | |
| { | |
| "path": "README.md", | |
| "bytes": 8027, | |
| "sha256": "e6c5d41400e28f5a89418a0d15b09b9c113314a7553d40d7d4a8a72fcdb87d02" | |
| }, | |
| { | |
| "path": "chat_template.jinja", | |
| "bytes": 10950, | |
| "sha256": "0c4099f3382d6c92700dfb99725025360966fd73032f0ecf32377c0d9e6309c5" | |
| }, | |
| { | |
| "path": "config.json", | |
| "bytes": 69416, | |
| "sha256": "bb8f01c42cb92a52ca72e65afb4d5bd8d11aef083cd210e8de25dfb904f23e9f" | |
| }, | |
| { | |
| "path": "generation_config.json", | |
| "bytes": 194, | |
| "sha256": "230c30609ecbbb9e6583bedde8e7bdda0c6eb8fe5fad0eaeb3d1b293d751cb4f" | |
| }, | |
| { | |
| "path": "model.safetensors.index.json", | |
| "bytes": 8406613, | |
| "sha256": "3c3f40366a53c3fd7974b4eab7881a365a98c2a4329150befebab99fe7c18b05" | |
| }, | |
| { | |
| "path": "processor_config.json", | |
| "bytes": 909, | |
| "sha256": "aae38374c94b08cc9b0547c6e64f05b951bd9735cea571c6988f5ed552bed3ed" | |
| }, | |
| { | |
| "path": "tokenizer.json", | |
| "bytes": 20217442, | |
| "sha256": "19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d" | |
| }, | |
| { | |
| "path": "tokenizer_config.json", | |
| "bytes": 761, | |
| "sha256": "98b1271574f41abf89427ae2dda030d94dc9478f0edc5a8bd240db213c6fd5fc" | |
| } | |
| ], | |
| "why": "preserve the licence terms of this exact commit and pin the revision; the weights stay at the source and are addressed by commit sha", | |
| "forked_by": "mindX (PYTHAI) via the node token" | |
| } |