Instructions to use intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound") 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("intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound") model = AutoModelForMultimodalLM.from_pretrained("intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound", 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 intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound
- SGLang
How to use intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound 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 "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound" \ --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": "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound", "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 "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound" \ --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": "intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound with Docker Model Runner:
docker model run hf.co/intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound
Model Details
This model is an MXFP4 (mixed MXFP4 experts / MXFP8 linear) model of zai-org/GLM-5.3-Flash generated by intel/auto-round using RTN. Please follow the license of the original model.
- Quantized (MXFP4): routed experts
- Kept in BF16: router / embeddings / lm_head
How to Use
Environment
uv pip install --index-strategy unsafe-best-match \
--extra-index-url https://wheels.vllm.ai/9815732c16ca076c60b65fccd787167d6a9c5328/cu130 \
"vllm==0.29.1rc1.dev528+g9815732c1"
uv pip install --no-build-isolation \
git+https://github.com/vllm-project/DeepGEMM.git@e1f418c2a4f20818221f6b0e578b4c2f634d4c3f
vLLM Usage
vllm serve intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound \
--block-size 128
Evaluation
| Benchmark | BF16 | MXFP4 | Recovery |
|---|---|---|---|
| GSM8K | 97.35 | 97.35 | 100.00% |
| MMLU | 86.66 | 85.81 | 99.02% |
| PIQA | 82.92 | 83.13 | 100.25% |
| HellaSwag | 69.03 | 68.36 | 99.03% |
| Average | 83.99 | 83.66 | 99.61% |
Generate the Model
auto-round \
--model_name zai-org/GLM-5.3-Flash \
--model_free \
--scheme MXFP8 \
--ignore_layers "lm_head,eh_proj,shared_head,enorm,hnorm,indexer,mlp.gate." \
--layer_config "{mlp.experts:{bits:4,data_type:mx_fp}}" \
--format llm_compressor \
--output_dir GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound
Ethical Considerations and Limitations
The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs. Therefore, before deploying any applications of the model, developers should perform safety testing.
Caveats and Recommendations
Serving requires glm5_next support and DeepGEMM; vLLM 0.29.0 cannot load this architecture. The environment above fixes a compatible source-era build; the exact vLLM commit used for the reported evaluation was not published.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Here are a couple of useful links to learn more about Intel's AI software:
Disclaimer
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
Cite
@article{cheng2023optimize,
title={Optimize weight rounding via signed gradient descent for the quantization of llms},
author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
journal={arXiv preprint arXiv:2309.05516},
year={2023}
}
Signed-off-by: Lv, Kaokao kaokao.lv@intel.com
- Downloads last month
- 266
Model tree for intel-ai/GLM-5.3-Flash-MXFP4-Mixed-CT-AutoRound
Base model
zai-org/GLM-5.3-Flash