This is a
mixed precision NVFP4 quantization of
zai-org/GLM-4.7-Flash, a 30B-A3B (30B total, 3B active) Mixture-of-Experts model.
This model was made via custom quantization and calibration (128 samples, 2048 max seq len, neuralmagic/calibration, all 64 experts) scripts based on NVIDIA's approach for DeepSeek-V3. It uses mixed precision to preserve accuracy:
1pip install vllm>=0.14.0
2pip install git+https://github.com/huggingface/transformers.git
1from vllm import LLM, SamplingParams
2
3model = LLM(
4 "GadflyII/GLM-4.7-Flash-NVFP4",
5 tensor_parallel_size=1,
6 max_model_len=4096,
7 trust_remote_code=True,
8 gpu_memory_utilization=0.85,
9)
10
11params = SamplingParams(temperature=0.7, max_tokens=512)
12outputs = model.generate(["Explain quantum computing in simple terms."], params)
13print(outputs[0].outputs[0].text)
1vllm serve GadflyII/GLM-4.7-Flash-NVFP4 \
2 --tensor-parallel-size 1 \
3 --max-model-len 4096 \
4 --trust-remote-code
1@misc{glm4flash2025,
2 title={GLM-4.7-Flash},
3 author={Zhipu AI},
4 year={2025},
5 howpublished={\url{https://huggingface.co/zai-org/GLM-4.7-Flash}}
6}
This model inherits the Apache 2.0 license from the base model.