Skip to content
localllm

zai-org

GLM-4.7-Flash

Parameters
29.9B
Max context length
202,752
Architecture
deepseek2
License
mit

About GLM-4.7-Flash

GLM-4.7-Flash is a GGUF model based on zai-org/GLM-4.7-Flash on Hugging Face. GGUF files are published by 4 sources (unsloth/GLM-4.7-Flash-GGUF, lmstudio-community/GLM-4.7-Flash-GGUF, ggml-org/GLM-4.7-Flash-GGUF and others). It has about 29.9B parameters, the deepseek2 architecture, a maximum context length of 202,752 tokens (values written in the GGUF).

There are 41 quantizations, with file sizes from 7.62 GB (IQ2_XXS) to 59.9 GB (BF16) (actual sizes on Hugging Face).

Running Q4_K_M (18.3 GB) with an 8,192-token context needs an estimated 19.6 GB of memory, and an estimated 20.9 GB at 32,768 tokens. For 8,192 tokens, a GPU with 24 GB or more of VRAM (such as GeForce RTX 3090 Ti, GeForce RTX 4090), or a Mac with 24 GB or more of unified memory, is a rough guide (macOS caps how much memory the GPU can use, so leave some headroom). The smallest, IQ2_XXS (7.62 GB), needs an estimated 8.92 GB at 8,192 tokens.

The original model is licensed under MIT License, which allows commercial use (keep the license text and copyright notice when redistributing). Check the original license for the terms of use.

File size and estimated memory per quantization

  • Up to 8 GB
  • Up to 16 GB
  • Up to 24 GB
  • Up to 48 GB
  • Up to 128 GB
  • More

File sizes are the actual values on Hugging Face. Memory is estimated for each context length (KV cache f16). The formula is in How memory is calculated.

All memory figures are Estimated (KV cache f16). It should run on a setup with at least this much VRAM (or Mac unified memory). Click a value to see the devices and models that fit that amount (Find by GPU / Mac).

4 sources publish GGUF files of this model. Quantization types and file sizes differ slightly between sources, so there is a table for each source below.

About the "quality guide" (how far a quantization drifts from the original)

For each quantization type, how far the output drifts from the original model, grouped into six levels from values llama.cpp measured on Llama-3-8B.

The value is mean KLD (the difference between the original and quantized model in next-token probabilities); smaller means closer to the original. Quantizations made with an imatrix (importance data) come out slightly smaller. Levels use the value without an imatrix (or with one, for types that only have that).

These values were not measured on this model. Larger models and MoE models tend to drift less with the same type. Distributor-specific mixed types (such as UD-Q4_K_XL) cannot be matched by type name alone, so they show "-".

Quantization Quality guide KLD (no imatrix) KLD (imatrix) Size (Llama-3-8B)
Q8_0 Nearly identical 0.0014 - 7.96 GiB
Q6_K Very small 0.0055 - 6.14 GiB
Q5_K_M Very small 0.0108 - 5.33 GiB
Q5_K_S Small 0.0166 - 5.21 GiB
Q5_1 Small 0.0180 - 5.65 GiB
Q5_0 Small 0.0222 - 5.21 GiB
Q4_K_M Small 0.0313 0.0282 4.58 GiB
Q4_K_S Medium 0.0431 0.0320 4.37 GiB
IQ4_NL Small - 0.0357 4.35 GiB
IQ4_XS Small - 0.0363 4.14 GiB
Q4_1 Medium 0.0717 - 4.78 GiB
Q4_0 Medium 0.0719 - 4.34 GiB
Q3_K_L Medium 0.0872 0.0731 4.03 GiB
Q3_K_M Medium 0.1019 0.0844 3.74 GiB
IQ3_M Medium - 0.1025 3.53 GiB
IQ3_S Medium - 0.1113 3.42 GiB
IQ3_XS Large - 0.1387 3.28 GiB
IQ3_XXS Large - 0.1836 3.05 GiB
Q3_K_S Large 0.2282 0.1998 3.41 GiB
IQ2_M Large - 0.3260 2.74 GiB
Q2_K Very large 0.4451 0.3322 2.96 GiB
Q2_K_S Very large - 0.4034 2.96 GiB
IQ2_S Very large - 0.4392 2.56 GiB
IQ2_XS Very large - 0.5463 2.43 GiB
IQ2_XXS Very large - 0.8120 2.24 GiB
IQ1_M Very large - 1.3931 2.01 GiB
IQ1_S Very large - 2.2546 1.88 GiB

Source: llama.cpp (MIT), measured on Llama-3-8B against FP16, Wikitext-2, revision f364eb6f. Original table · Reading and choosing quantizations

GGUF source

unsloth/GLM-4.7-Flash-GGUF

Converted and published by a third party About this label

Last checked: Nov 11, 2026

Architecture
deepseek2
Supported before llama.cpp b4409
Parameters
29.9B
Max context length
202,752
License
mit Commercial OK
File size and memory per quantization for GLM-4.7-Flash (unsloth/GLM-4.7-Flash-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 202,752 max
UD-TQ1_0 8.33 GB - 9.41 GB 9.63 GB 10.1 GB 11.0 GB 12.7 GB 16.3 GB 20.2 GB
UD-IQ1_S 9.25 GB - 10.3 GB 10.5 GB 11.0 GB 11.9 GB 13.7 GB 17.2 GB 21.1 GB
UD-IQ1_M 9.81 GB - 10.9 GB 11.1 GB 11.5 GB 12.4 GB 14.2 GB 17.8 GB 21.6 GB
UD-IQ2_XXS 10.5 GB - 11.6 GB 11.8 GB 12.3 GB 13.1 GB 14.9 GB 18.5 GB 22.3 GB
UD-IQ2_M 11.0 GB - 12.1 GB 12.3 GB 12.7 GB 13.6 GB 15.4 GB 18.9 GB 22.8 GB
Q2_K 11.3 GB Very large 12.4 GB 12.6 GB 13.1 GB 14.0 GB 15.7 GB 19.3 GB 23.2 GB
Q2_K_L 11.4 GB - 12.5 GB 12.7 GB 13.2 GB 14.0 GB 15.8 GB 19.4 GB 23.3 GB
UD-Q2_K_XL 11.9 GB - 13.0 GB 13.2 GB 13.6 GB 14.5 GB 16.3 GB 19.8 GB 23.7 GB
UD-IQ3_XXS 12.9 GB - 14.0 GB 14.2 GB 14.6 GB 15.5 GB 17.3 GB 20.9 GB 24.7 GB
Q3_K_S 13.3 GB Large 14.4 GB 14.6 GB 15.0 GB 15.9 GB 17.7 GB 21.2 GB 25.1 GB
UD-Q3_K_XL 13.8 GB - 14.9 GB 15.1 GB 15.5 GB 16.4 GB 18.2 GB 21.7 GB 25.6 GB
Q3_K_M 14.6 GB Medium 15.7 GB 15.9 GB 16.4 GB 17.2 GB 19.0 GB 22.6 GB 26.4 GB
IQ4_XS 16.3 GB Small 17.3 GB 17.6 GB 18.0 GB 18.9 GB 20.7 GB 24.2 GB 28.1 GB
MXFP4_MOE 17.0 GB - 18.0 GB 18.3 GB 18.7 GB 19.6 GB 21.4 GB 24.9 GB 28.8 GB
IQ4_NL 17.2 GB Small 18.2 GB 18.5 GB 18.9 GB 19.8 GB 21.6 GB 25.1 GB 29.0 GB
Q4_0 17.2 GB Medium 18.3 GB 18.5 GB 19.0 GB 19.8 GB 21.6 GB 25.2 GB 29.0 GB
Q4_K_S 17.3 GB Medium 18.3 GB 18.6 GB 19.0 GB 19.9 GB 21.7 GB 25.2 GB 29.1 GB
UD-Q4_K_XL 17.5 GB - 18.6 GB 18.8 GB 19.3 GB 20.1 GB 21.9 GB 25.5 GB 29.4 GB
Q4_K_M 18.3 GB Small 19.4 GB 19.6 GB 20.1 GB 20.9 GB 22.7 GB 26.3 GB 30.1 GB
Q4_1 19.0 GB Medium 20.0 GB 20.3 GB 20.7 GB 21.6 GB 23.4 GB 26.9 GB 30.8 GB
Q5_K_S 20.8 GB Small 21.9 GB 22.1 GB 22.6 GB 23.4 GB 25.2 GB 28.8 GB 32.6 GB
Q5_K_M 21.4 GB Very small 22.5 GB 22.7 GB 23.2 GB 24.0 GB 25.8 GB 29.4 GB 33.2 GB
UD-Q5_K_XL 21.7 GB - 22.8 GB 23.0 GB 23.4 GB 24.3 GB 26.1 GB 29.6 GB 33.5 GB
Q6_K 24.7 GB Very small 25.8 GB 26.0 GB 26.4 GB 27.3 GB 29.1 GB 32.6 GB 36.5 GB
UD-Q6_K_XL 26.2 GB - 27.3 GB 27.5 GB 27.9 GB 28.8 GB 30.6 GB 34.1 GB 38.0 GB
Q8_0 31.8 GB Nearly identical 32.9 GB 33.1 GB 33.6 GB 34.5 GB 36.2 GB 39.8 GB 43.7 GB
UD-Q8_K_XL 35.6 GB - 36.7 GB 36.9 GB 37.4 GB 38.3 GB 40.0 GB 43.6 GB 47.5 GB
BF16 (2 parts) 59.9 GB Original precision 61.0 GB 61.2 GB 61.6 GB 62.5 GB 64.3 GB 67.9 GB 71.7 GB
Ollama  ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M
llama.cpp  llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M

GGUF source

lmstudio-community/GLM-4.7-Flash-GGUF

Converted and published by a third party About this label

Last checked: Nov 1, 2026

Architecture
deepseek2
Supported before llama.cpp b4409
Parameters
29.9B
Max context length
202,752
License
mit Commercial OK
File size and memory per quantization for GLM-4.7-Flash (lmstudio-community/GLM-4.7-Flash-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 202,752 max
Q4_K_M 18.1 GB Small 19.2 GB 19.4 GB 19.9 GB 20.8 GB 22.5 GB 26.1 GB 30.0 GB
Q6_K 24.6 GB Very small 25.7 GB 25.9 GB 26.4 GB 27.2 GB 29.0 GB 32.6 GB 36.4 GB
Q8_0 31.8 GB Nearly identical 32.9 GB 33.1 GB 33.6 GB 34.5 GB 36.2 GB 39.8 GB 43.7 GB
Ollama  ollama run hf.co/lmstudio-community/GLM-4.7-Flash-GGUF:Q4_K_M
llama.cpp  llama-server -hf lmstudio-community/GLM-4.7-Flash-GGUF:Q4_K_M

GGUF source

ggml-org/GLM-4.7-Flash-GGUF

Converted by the llama.cpp developers About this label

Last checked: Oct 24, 2026

Architecture
deepseek2
Supported before llama.cpp b4409
Parameters
29.9B
Max context length
202,752
License
mit Commercial OK
File size and memory per quantization for GLM-4.7-Flash (ggml-org/GLM-4.7-Flash-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 202,752 max
Q4_K 18.2 GB - 19.3 GB 19.5 GB 20.0 GB 20.9 GB 22.6 GB 26.2 GB 30.1 GB
Q8_0 31.8 GB Nearly identical 32.9 GB 33.1 GB 33.6 GB 34.5 GB 36.2 GB 39.8 GB 43.7 GB
Ollama  ollama run hf.co/ggml-org/GLM-4.7-Flash-GGUF:Q4_K
llama.cpp  llama-server -hf ggml-org/GLM-4.7-Flash-GGUF:Q4_K

GGUF source

bartowski/zai-org_GLM-4.7-Flash-GGUF

Converted and published by a third party About this label

Last checked: Oct 24, 2026

Architecture
deepseek2
Supported before llama.cpp b4409
Parameters
29.9B
Max context length
202,752
License
mit Commercial OK
File size and memory per quantization for GLM-4.7-Flash (bartowski/zai-org_GLM-4.7-Flash-GGUF)
Quantization File size Measured Quality guide 4,096 8,192 16,384 32,768 65,536 131,072 202,752 max
IQ2_XXS 7.62 GB Very large 8.70 GB 8.92 GB 9.36 GB 10.3 GB 12.0 GB 15.6 GB 19.5 GB
IQ2_XS 8.67 GB Very large 9.75 GB 9.97 GB 10.4 GB 11.3 GB 13.1 GB 16.6 GB 20.5 GB
IQ2_S 8.78 GB Very large 9.86 GB 10.1 GB 10.5 GB 11.4 GB 13.2 GB 16.7 GB 20.6 GB
IQ2_M 9.85 GB Large 10.9 GB 11.1 GB 11.6 GB 12.5 GB 14.3 GB 17.8 GB 21.7 GB
Q2_K 11.0 GB Very large 12.1 GB 12.3 GB 12.8 GB 13.7 GB 15.4 GB 19.0 GB 22.9 GB
Q2_K_L 11.4 GB - 12.4 GB 12.6 GB 13.1 GB 14.0 GB 15.8 GB 19.3 GB 23.2 GB
IQ3_XXS 12.2 GB Large 13.3 GB 13.5 GB 14.0 GB 14.9 GB 16.7 GB 20.2 GB 24.1 GB
IQ3_XS 12.7 GB Large 13.8 GB 14.0 GB 14.5 GB 15.3 GB 17.1 GB 20.7 GB 24.5 GB
Q3_K_S 13.5 GB Large 14.6 GB 14.8 GB 15.2 GB 16.1 GB 17.9 GB 21.4 GB 25.3 GB
IQ3_M 14.0 GB Medium 15.1 GB 15.3 GB 15.7 GB 16.6 GB 18.4 GB 21.9 GB 25.8 GB
Q3_K_M 14.1 GB Medium 15.1 GB 15.4 GB 15.8 GB 16.7 GB 18.5 GB 22.0 GB 25.9 GB
Q3_K_L 14.5 GB Medium 15.6 GB 15.8 GB 16.2 GB 17.1 GB 18.9 GB 22.5 GB 26.3 GB
Q3_K_XL 14.8 GB - 15.9 GB 16.1 GB 16.5 GB 17.4 GB 19.2 GB 22.7 GB 26.6 GB
IQ4_XS 16.3 GB Small 17.3 GB 17.5 GB 18.0 GB 18.9 GB 20.7 GB 24.2 GB 28.1 GB
IQ4_NL 17.1 GB Small 18.2 GB 18.4 GB 18.9 GB 19.8 GB 21.6 GB 25.1 GB 29.0 GB
Q4_0 17.4 GB Medium 18.5 GB 18.7 GB 19.1 GB 20.0 GB 21.8 GB 25.3 GB 29.2 GB
Q4_K_S 17.8 GB Medium 18.9 GB 19.1 GB 19.5 GB 20.4 GB 22.2 GB 25.7 GB 29.6 GB
Q4_K_M 18.5 GB Small 19.6 GB 19.8 GB 20.2 GB 21.1 GB 22.9 GB 26.4 GB 30.3 GB
Q4_K_L 18.7 GB - 19.8 GB 20.0 GB 20.5 GB 21.3 GB 23.1 GB 26.7 GB 30.5 GB
Q4_1 19.0 GB Medium 20.0 GB 20.2 GB 20.7 GB 21.6 GB 23.4 GB 26.9 GB 30.8 GB
Q5_K_S 20.8 GB Small 21.9 GB 22.1 GB 22.6 GB 23.5 GB 25.3 GB 28.8 GB 32.7 GB
Q5_K_M 21.6 GB Very small 22.6 GB 22.9 GB 23.3 GB 24.2 GB 26.0 GB 29.5 GB 33.4 GB
Q5_K_L 21.8 GB - 22.8 GB 23.1 GB 23.5 GB 24.4 GB 26.2 GB 29.7 GB 33.6 GB
Q6_K 24.8 GB Very small 25.9 GB 26.1 GB 26.6 GB 27.5 GB 29.2 GB 32.8 GB 36.7 GB
Q6_K_L 25.0 GB - 26.1 GB 26.3 GB 26.7 GB 27.6 GB 29.4 GB 32.9 GB 36.8 GB
Q8_0 31.8 GB Nearly identical 32.9 GB 33.1 GB 33.6 GB 34.5 GB 36.2 GB 39.8 GB 43.7 GB
BF16 (2 parts) 59.9 GB Original precision 61.0 GB 61.2 GB 61.6 GB 62.5 GB 64.3 GB 67.9 GB 71.7 GB
Ollama  ollama run hf.co/bartowski/zai-org_GLM-4.7-Flash-GGUF:Q4_K_M
llama.cpp  llama-server -hf bartowski/zai-org_GLM-4.7-Flash-GGUF:Q4_K_M

Third-party evaluations

Values from other organizations for the original model before quantization. Not this site's own rating. Values are for the original model before quantization. GGUF quantization (especially small quantizations) can lower performance.

Human preference (LMArena)

1,364 1,359–1,370

glm-4.7-flash · 11,937 votes · Values as of Nov 9, 2026

Source: LMArena (CC BY 4.0). Original leaderboard · See in ranking

License and commercial use

MIT License Commercial OK

Allows commercial use, modification and redistribution. When redistributing, keep the copyright notice and license text.

Based on the license on the original model's Hugging Face page. Original license text (checked Oct 18, 2026)

The summary states facts this site read from the original text and is not legal advice. Always check the original license and its latest terms before use. All licenses

How to run

Example commands using Q4_K_M. To use another quantization, replace the name with one from the table above. Commands for files from other sources are in each source's section. How to run local LLMs

Ollama

Run it by pointing directly at the GGUF on Hugging Face.

ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M

llama.cpp

Pass the repository and quantization name to llama-server (or llama-cli) with -hf.

llama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_M

LM Studio

Paste unsloth/GLM-4.7-Flash-GGUF into the search box, download it, and choose the quantization from the file list.

Frequently asked questions

How much memory do I need to run GLM-4.7-Flash (Q4_K_M)?
The file size is 18.3 GB (measured). With a 8,192-token context, the estimated memory including the KV cache is 19.6 GB. The formula is published at https://localllm.az-arte.com/en/guide/memory-calculation.
Can GLM-4.7-Flash be used commercially?
The original model's license is MIT License (Commercial use allowed).Allows commercial use, modification and redistribution. When redistributing, keep the copyright notice and license text. Check the original license text before deciding.
Does GLM-4.7-Flash run in 8 GB, 12 GB, 16 GB or 24 GB of VRAM?
8 GB: no quantization fits; 12 GB: up to Q2_K_L (est. 12.7 GB); 16 GB: up to Q3_K_M (est. 15.9 GB); 24 GB: up to UD-Q5_K_XL (est. 23.0 GB) (estimated at 8,192 tokens with an f16 KV cache, files from the most-downloaded source).
What is the command to run GLM-4.7-Flash with Ollama?
Run "ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_M" to use the GGUF on Hugging Face directly. To use another quantization, replace the name at the end.