Image-Text-to-Text
Transformers
Safetensors
English
Chinese
glm5_next
quark
mxfp4
rocm
sglang
speculative-decoding
conversational
8-bit precision
Instructions to use OneNexus/GLM-5.3-Flash-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OneNexus/GLM-5.3-Flash-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OneNexus/GLM-5.3-Flash-MXFP4") 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("OneNexus/GLM-5.3-Flash-MXFP4") model = AutoModelForMultimodalLM.from_pretrained("OneNexus/GLM-5.3-Flash-MXFP4", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OneNexus/GLM-5.3-Flash-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OneNexus/GLM-5.3-Flash-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OneNexus/GLM-5.3-Flash-MXFP4", "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/OneNexus/GLM-5.3-Flash-MXFP4
- SGLang
How to use OneNexus/GLM-5.3-Flash-MXFP4 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 "OneNexus/GLM-5.3-Flash-MXFP4" \ --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": "OneNexus/GLM-5.3-Flash-MXFP4", "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 "OneNexus/GLM-5.3-Flash-MXFP4" \ --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": "OneNexus/GLM-5.3-Flash-MXFP4", "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 OneNexus/GLM-5.3-Flash-MXFP4 with Docker Model Runner:
docker model run hf.co/OneNexus/GLM-5.3-Flash-MXFP4
Commit History
-
docs: clarify reproduction coverage and remaining limits
Verified signature880fe3b -
docs: explain measured tuning choices and evidence scope
Verified signature7da3a7f
-
docs: fix measured operator figure layout
Verified signaturecf3c525 -
Promote reviewed GLM-5.3-Flash MXFP4 checkpoint
Publish the complete checkpoint, public model card, serving evidence, and reproducibility artifacts from the reviewed branch.6f32922
-
Update Flash chat template from official Z.ai revision 690b7052
Verified signatureSynchronize chat_template.jinja with zai-org/GLM-5.3-Flash 690b705278a3a58e538fcb37c2ca8b5f9511213c. Includes early exits in tool-result reordering and null-content handling. Remove the obsolete embedded chat_template from tokenizer_config.json to match the official single-source layout. All other tokenizer settings, weights, and processor files are unchanged.854c848
-
Fix safetensors index from physical shard headers
Verified signatureRemove 1,728 stale layer 3 and layer 5 MXFP4 scale entries left by the mixed-precision checkpoint builder and correct metadata.total_size. Weight shards are unchanged. The rebuilt index was load-tested with SGLang PR #36607 on MI350X.21e1124 -
Index under canonical GLM-5.3-Flash base model
Verified signature7e42ded -
Update matched MMLU accuracy evidence
Verified signature6e13caa -
Upload V29 weight shards 120-120 of 120
Verified signatureb623f1d -
Upload V29 weight shards 119-119 of 120
Verified signature8912a55 -
Upload V29 weight shards 118-118 of 120
Verified signaturec73275b -
Upload V29 weight shards 117-117 of 120
Verified signature08bbbb4 -
Upload V29 weight shards 116-116 of 120
Verified signature56cd08d -
Upload V29 weight shards 115-115 of 120
Verified signaturee54902f -
Upload V29 weight shards 114-114 of 120
Verified signature6716705 -
Upload V29 weight shards 113-113 of 120
Verified signature0b44eac -
Upload V29 weight shards 112-112 of 120
Verified signatured9587b5 -
Upload V29 weight shards 111-111 of 120
Verified signature1ed5dfd -
Upload V29 weight shards 110-110 of 120
Verified signature498cc99 -
Upload V29 weight shards 109-109 of 120
Verified signaturee13da90 -
Upload V29 weight shards 108-108 of 120
Verified signature867a030 -
Upload V29 weight shards 107-107 of 120
Verified signaturee8402c8 -
Upload V29 weight shards 106-106 of 120
Verified signature2d81423 -
Upload V29 weight shards 105-105 of 120
Verified signatureb4337b0 -
Upload V29 weight shards 104-104 of 120
Verified signature580ac0b -
Upload V29 weight shards 103-103 of 120
Verified signature5e76124 -
Upload V29 weight shards 102-102 of 120
Verified signature02338c7 -
Upload V29 weight shards 101-101 of 120
Verified signature7a867b7 -
Upload V29 weight shards 100-100 of 120
Verified signaturefe8f14b -
Upload V29 weight shards 99-99 of 120
Verified signature3153a9d -
Upload V29 weight shards 98-98 of 120
Verified signature8b0ef2b -
Upload V29 weight shards 97-97 of 120
Verified signature1b2e093 -
Upload V29 weight shards 96-96 of 120
Verified signaturea20b7e1 -
Upload V29 weight shards 95-95 of 120
Verified signature5acf7b1 -
Upload V29 weight shards 94-94 of 120
Verified signature051ddac -
Upload V29 weight shards 93-93 of 120
Verified signature4079853 -
Upload V29 weight shards 92-92 of 120
Verified signature9cc16f1 -
Upload V29 weight shards 91-91 of 120
Verified signature6bc9f18 -
Upload V29 weight shards 90-90 of 120
Verified signature898c5ed -
Upload V29 weight shards 89-89 of 120
Verified signatureeeb7988 -
Upload V29 weight shards 88-88 of 120
Verified signature805788d -
Upload V29 weight shards 87-87 of 120
Verified signature89be1c2 -
Upload V29 weight shards 86-86 of 120
Verified signature18e2fd3 -
Upload V29 weight shards 85-85 of 120
Verified signature2109c21 -
Upload V29 weight shards 84-84 of 120
Verified signaturef36a682 -
Upload V29 weight shards 83-83 of 120
Verified signature6089d0f -
Upload V29 weight shards 82-82 of 120
Verified signature4674a03 -
Upload V29 weight shards 81-81 of 120
Verified signature4109e36 -
Upload V29 weight shards 80-80 of 120
Verified signature17cb60d -
Upload V29 weight shards 79-79 of 120
Verified signature05c376a