Views
No views yet
| Property | Value |
|---|---|
| Architecture | Glm4MoeLiteForCausalLM (MoE with MLA) |
| Total Parameters | ~30B |
| Active Parameters | ~3B per forward pass |
| Experts | 64 routed + 1 shared, 4 active per token |
| Attention | Multi-Head Latent Attention (MLA) |
| Context Length | 32,768 tokens |
| Original Format | BF16 safetensors (62.5 GB) |
| Filename | Quant Type | Size | Description |
|---|---|---|---|
GLM-4.7-Flash-Q4_K_M.gguf | Q4_K_M | 16.89 GB | Medium quality 4-bit, good balance of size/quality |
Glm4MoeLiteForCausalLM architecture combines both features in a way that standard GLM4 support doesn't handle.convert_hf_to_gguf.py to register Glm4MoeLiteForCausalLM under the DeepseekV2Model class, which already has proper tensor mappings for MLA attention:1# Added to DeepseekV2Model registration
2@ModelBase.register(
3 "DeepseekV2ForCausalLM",
4 "DeepseekV3ForCausalLM",
5 "KimiVLForConditionalGeneration",
6 "YoutuForCausalLM",
7 "YoutuVLForConditionalGeneration",
8 "Glm4MoeLiteForCausalLM" # <-- Added this
9)
10class DeepseekV2Model(TextModel):1if chkhsh == "cdf5f35325780597efd76153d4d1c16778f766173908894c04afc20108536267":
2 res = "glm4"HuggingFace safetensors (62.5 GB BF16)
↓ convert_hf_to_gguf.py (modified)
BF16 GGUF (55.79 GB)
↓ llama-quantize
Q4_K_M GGUF (16.89 GB)1# Download the model
2huggingface-cli download solarkyle/GLM-4.7-Flash-GGUF GLM-4.7-Flash-Q4_K_M.gguf --local-dir .
3
4# Run inference (CPU)
5./llama-cli -m GLM-4.7-Flash-Q4_K_M.gguf -p "Hello, I am GLM-4.7-Flash" -n 256
6
7# Run inference (GPU - adjust layers based on VRAM)
8./llama-cli -m GLM-4.7-Flash-Q4_K_M.gguf -p "Hello, I am GLM-4.7-Flash" -n 256 -ngl 35