GLM 4.7 Flash needs about 20.3 GB of memory at its main file (a 17.7 GB file) with an 8K context window, so it fits on a 24 GB GPU. This repository has 4 quants, from 0.1 GB (F32) to 34.8 GB (Q8_0).
GLM 4.7 Flash is a 29.9B-parameter GLM model in GGUF format, quantized by ddh0. Its trained context length is 198K tokens. The repository has 4 quant files, from 0.1 GB (F32) to 34.8 GB (Q8_0).
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| F32 | 0.1 GB | 0.6 GB | Fits | Get file → | |
| — | 17.7 GB | 20.3 GB | Too big | Get file → | |
| — | 22.1 GB | 25.3 GB | Too big | Get file → | |
| Q8_0 | 34.8 GB | 39.5 GB | Too big | Get file → |
What GPU do you need for GLM 4.7 Flash?
These figures add the file size, an fp16 KV cache at an 8K context window and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: the best quant that fits is F32 (0.1 GB file, about 0.6 GB in use).
- 6 GB VRAM: the best quant that fits is F32 (0.1 GB file, about 0.6 GB in use).
- 8 GB VRAM: the best quant that fits is F32 (0.1 GB file, about 0.6 GB in use).
- 12 GB VRAM: the best quant that fits is F32 (0.1 GB file, about 0.6 GB in use).
- 16 GB VRAM: the best quant that fits is F32 (0.1 GB file, about 0.6 GB in use).
- 24 GB VRAM: the best quant that fits is the main file (17.7 GB file, about 20.3 GB in use).
- 32 GB VRAM: the best quant that fits is the main file (22.1 GB file, about 25.3 GB in use).
- 48 GB VRAM: the best quant that fits is Q8_0 (34.8 GB file, about 39.5 GB in use).
Which GLM 4.7 Flash quant should you choose?
If memory is tight, the smallest file is F32 at 0.1 GB, with the quality trade-offs that come with fewer bits. The unquantized model. It gives original quality and needs the most memory, so it is mainly for conversion or reference.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about GLM 4.7 Flash
How much VRAM does GLM 4.7 Flash need?
About 20.3 GB at its main file with an 8K context window. That is the 17.7 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run GLM 4.7 Flash on an 8 GB GPU?
Yes, with F32: the 0.1 GB file needs about 0.6 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of GLM 4.7 Flash GGUF?
It depends on the quant: F32 is 0.1 GB, file is 17.7 GB, file is 22.1 GB, Q8_0 is 34.8 GB.
What context length does GLM 4.7 Flash support?
The GGUF header lists a trained context length of 202,752 tokens (198K).
Where can I download GLM 4.7 Flash GGUF?
The files are on Hugging Face in the ddh0/GLM-4.7-Flash-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.