CoolFace
Modelpublic

FreedomAISVR/GLM-4.7-Flash-NVFP4-GGUF

sourceHugging Facemitupdated 3mo agoView on Hugging Face
2likes2.2kdownloads
Model Card

GLM-4.7-Flash-NVFP4-GGUF

GGUF quantization of zai-org/GLM-4.7-Flash — a 30B-parameter Mixture-of-Experts language model with ~3.2B active parameters per token, built on the DeepSeek2 architecture with Multi-head Latent Attention (MLA) and 64 routed experts.

Quantized to NVFP4 format for efficient inference with minimal quality loss.

About NVFP4

NVFP4 is NVIDIA's native 4-bit floating-point format (E4M3) for Blackwell GPUs. It stores weights in FP4 with a shared per-block scale, enabling native Blackwell tensor core acceleration with no dequantization overhead during inference. Compared to INT4 formats, NVFP4 offers better dynamic range (E4M3 vs E2M1) and maintains higher quality at similar bit widths.

Files

FilenameTypeSizeDescription
glm-4.7-flash-nvfp4.ggufGGUF (NVFP4)15.79 GBQuantized model weights
README.mdMarkdown-Model card

Quantization Details

PropertyValue
FormatNVFP4
Bits Per Weight4.53 BPW
File Size15.79 GB
Tensor Count844
ArchitectureDeepSeek2 (custom for GLM-4.7-Flash)

Model Description

  • Developer: Zhipu AI
  • Architecture: Mixture-of-Experts (MoE) with DeepSeek2-style MLA
  • Parameters: ~30B total, ~3.2B active per token
  • Context Length: 200,000 tokens
  • Layers: 47 transformer layers
  • Attention: Multi-head Latent Attention (qlorarank=768, kvlorarank=512)
  • Experts: 64 routed experts (4 per token) + 1 shared expert
  • Vocab Size: 151,936
  • Languages: English, Chinese
  • Thinking: Enabled by default (native <think>/</think> tokens, hidden in history for clean multi-turn reasoning)
  • Pipeline: text-generation only (no vision encoder)

Usage

llama.cpp

bash
# Basic generation
./llama-cli -m glm-4.7-flash-nvfp4.gguf \
  -p "Hello, how are you?" \
  -n 256

# With thinking/reasoning controlled
./llama-cli -m glm-4.7-flash-nvfp4.gguf \
  -p "Solve this step by step: 23 * 47" \
  -n 512 \
  -no-cnv

HuggingFace Hub

python
from huggingface_hub import hf_hub_download

model_path = hf_hub_download(
    repo_id="FreedomAISVR/GLM-4.7-Flash-NVFP4-GGUF",
    filename="glm-4.7-flash-nvfp4.gguf",
    repo_type="model"
)

Pipeline Commands

Source: zai-org/GLM-4.7-Flash (58 GB, 48 safetensor shards)

  1. 1.F16 GGUF Conversion:
powershell
   python convert_hf_to_gguf.py D:\AI_MODELS\glm-4.7-src --outfile glm-4.7-f16.gguf --outtype f16

Output: 55.79 GB, 844 tensors (DeepSeek2 arch, Glm4MoeLiteModel)

  1. 1.NVFP4 Quantization:
powershell
   llama-quantize.exe glm-4.7-f16.gguf glm-4.7-flash-nvfp4.gguf NVFP4

Duration: ~310s on RTX 5060 Ti

Hardware

ComponentSpecification
GPUNVIDIA RTX 5060 Ti 16 GB (Blackwell)
System RAM64 GB
StorageD: (NVMe)

License

MIT — same as the original zai-org/GLM-4.7-Flash.