amd / GLM-5.1-MXFP4

huggingface.co
Total runs: 2.4K
24-hour runs: 0
7-day runs: -61
30-day runs: 569
Model's Last Updated: June 19 2026

Introduction of GLM-5.1-MXFP4

Model Details of GLM-5.1-MXFP4

Model Overview

  • Model Architecture: GLM-5.1
    • Input: Text
    • Output: Text
  • Supported Hardware Microarchitecture: AMD MI350/MI355
  • ROCm: 7.0.0
  • PyTorch: 2.10.0
  • Transformers: 4.57.6
  • Operating System(s): Linux
  • Inference Engine: vLLM
  • Model Optimizer: AMD-Quark
    • Weight quantization: MOE-only (shared experts quantized), OCP MXFP4, Static
    • Activation quantization: MOE-only, OCP MXFP4, Dynamic
  • Calibration Dataset: Pile

This model was built with GLM-5.1 model by applying AMD-Quark for MXFP4 quantization.

Model Quantization

The model was quantized from zai-org/GLM-5.1 using AMD-Quark . The weights and activations are quantized to MXFP4.

Quantization scripts:

from quark.torch import LLMTemplate, ModelQuantizer
# --- Register template ---
GLM5_template = LLMTemplate(
    model_type="glm_moe_dsa",
    kv_layers_name=["*kv_a_proj_with_mqa", "*kv_b_proj"],
    q_layer_name="*q_a_proj",
    exclude_layers_name=["lm_head"],
)
LLMTemplate.register_template(GLM5_template)
print(f"[INFO]: Registered template '{GLM5_template.model_type}'")
# --- Configuration ---
model_dir = "zai-org/GLM-5.1"
output_dir = "amd/GLM-5.1-MXFP4"
quant_scheme = "mxfp4"
exclude_layers = [
    "*self_attn*",
    "*mlp.gate",
    "*lm_head",
    "*mlp.gate_proj",
    "*mlp.up_proj",
    "*mlp.down_proj",
]
# --- Build quant config from template ---
template = LLMTemplate.get("glm_moe_dsa")
quant_config = template.get_config(scheme=quant_scheme, exclude_layers=exclude_layers)
# --- File-to-file quantization (memory-efficient, no full model loading) ---
quantizer = ModelQuantizer(quant_config)
quantizer.direct_quantize_checkpoint(
    pretrained_model_path=model_dir,
    save_path=output_dir,
)
print(f"[INFO]: Quantization complete. Output saved to {output_dir}")

Deployment

Use with vLLM

This model can be deployed efficiently using the vLLM backend.

Evaluation

The model was evaluated on GSM8K benchmarks.

Accuracy
Benchmark GLM-5.1 GLM-5.1-MXFP4(this model) Recovery
GSM8K (flexible-extract) 0.9522 0.9454 99.3%
Reproduction

The GSM8K results were obtained using the lm-evaluation-harness framework, based on the Docker image rocm/pytorch-private:vllm_glm5_0225 , with vLLM, lm-eval compiled and installed from source inside the image. The Docker image contains the necessary vLLM code modifications to support this model.

Launching server
export VLLM_ROCM_USE_AITER=1
export VLLM_ROCM_USE_AITER_FP8BMM=0
export VLLM_ROCM_USE_AITER_FP4BMM=0
vllm serve amd/GLM-5.1-MXFP4 \
  -tp 8 \
  --block-size 1 \
  --trust-remote-code \
  --max-model-len 4096
Evaluating model in a new terminal
lm_eval \
  --model local-completions \
  --model_args '{"model": "amd/GLM-5.1-MXFP4", "base_url": "http://localhost:8000/v1/completions", "num_concurrent": 32, "max_retries": 10, "max_gen_toks": 2048, "tokenizer_backend":"None","tokenized_requests":"False" }' \
  --tasks gsm8k \
  --batch_size auto \
  --num_fewshot 5 \
  --trust_remote_code

License

Modifications Copyright(c) 2026 Advanced Micro Devices, Inc. All rights reserved.

Runs of amd GLM-5.1-MXFP4 on huggingface.co

2.4K
Total runs
0
24-hour runs
40
3-day runs
-61
7-day runs
569
30-day runs

More Information About GLM-5.1-MXFP4 huggingface.co Model

More GLM-5.1-MXFP4 license Visit here:

https://choosealicense.com/licenses/mit

GLM-5.1-MXFP4 huggingface.co

GLM-5.1-MXFP4 huggingface.co is an AI model on huggingface.co that provides GLM-5.1-MXFP4's model effect (), which can be used instantly with this amd GLM-5.1-MXFP4 model. huggingface.co supports a free trial of the GLM-5.1-MXFP4 model, and also provides paid use of the GLM-5.1-MXFP4. Support call GLM-5.1-MXFP4 model through api, including Node.js, Python, http.

GLM-5.1-MXFP4 huggingface.co Url

https://huggingface.co/amd/GLM-5.1-MXFP4

amd GLM-5.1-MXFP4 online free

GLM-5.1-MXFP4 huggingface.co is an online trial and call api platform, which integrates GLM-5.1-MXFP4's modeling effects, including api services, and provides a free online trial of GLM-5.1-MXFP4, you can try GLM-5.1-MXFP4 online for free by clicking the link below.

amd GLM-5.1-MXFP4 online free url in huggingface.co:

https://huggingface.co/amd/GLM-5.1-MXFP4

GLM-5.1-MXFP4 install

GLM-5.1-MXFP4 is an open source model from GitHub that offers a free installation service, and any user can find GLM-5.1-MXFP4 on GitHub to install. At the same time, huggingface.co provides the effect of GLM-5.1-MXFP4 install, users can directly use GLM-5.1-MXFP4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

GLM-5.1-MXFP4 install url in huggingface.co:

https://huggingface.co/amd/GLM-5.1-MXFP4

Url of GLM-5.1-MXFP4

GLM-5.1-MXFP4 huggingface.co Url

Provider of GLM-5.1-MXFP4 huggingface.co

amd
ORGANIZATIONS

Other API from amd

huggingface.co

Total runs: 283.9K
Run Growth: 179.8K
Growth Rate: 63.94%
Updated:April 14 2026
huggingface.co

Total runs: 89.0K
Run Growth: -31.9K
Growth Rate: -34.85%
Updated:July 17 2026
huggingface.co

Total runs: 62.5K
Run Growth: 2.7K
Growth Rate: 4.28%
Updated:July 01 2026
huggingface.co

Total runs: 46.9K
Run Growth: -74.7K
Growth Rate: -160.48%
Updated:June 19 2026
huggingface.co

Total runs: 8.7K
Run Growth: -3.1K
Growth Rate: -35.24%
Updated:August 12 2025
huggingface.co

Total runs: 7.5K
Run Growth: -4.1K
Growth Rate: -54.83%
Updated:October 09 2024
huggingface.co

Total runs: 6.6K
Run Growth: -17.7K
Growth Rate: -259.50%
Updated:July 27 2026
huggingface.co

Total runs: 1.2K
Run Growth: -118
Growth Rate: -9.46%
Updated:May 27 2026
huggingface.co

Total runs: 1.2K
Run Growth: -5.1K
Growth Rate: -432.62%
Updated:June 19 2026
huggingface.co

Total runs: 1.1K
Run Growth: 748
Growth Rate: 65.33%
Updated:January 22 2026
huggingface.co

Total runs: 955
Run Growth: 947
Growth Rate: 99.16%
Updated:June 26 2025
huggingface.co

Total runs: 911
Run Growth: -330
Growth Rate: -36.22%
Updated:June 19 2026
huggingface.co

Total runs: 772
Run Growth: 482
Growth Rate: 62.44%
Updated:November 03 2025
huggingface.co

Total runs: 717
Run Growth: 448
Growth Rate: 62.48%
Updated:November 15 2025