GLM-4.7-Flash ยท GGUF (llama.cpp)

GGUF quantizations of zai-org/GLM-4.7-Flash for llama.cpp / Ollama / LM Studio. Produced by axteam, converted with the official llama.cpp convert_hf_to_gguf.py (the original chat_template is embedded).

Files

File Size Notes
GLM-4.7-Flash-Q2_K.gguf 11.5 GB 2-bit k-quant โ€” smallest, noticeable quality loss (for tight memory).
GLM-4.7-Flash-Q3_K_M.gguf 15.0 GB 3-bit k-quant (medium) โ€” small, some quality loss.
GLM-4.7-Flash-Q4_K_M.gguf 18.9 GB 4-bit k-quant (medium) โ€” recommended size/quality balance.
GLM-4.7-Flash-Q5_K_M.gguf 22.2 GB 5-bit k-quant (medium) โ€” high quality.
GLM-4.7-Flash-Q6_K.gguf 25.7 GB 6-bit k-quant โ€” high quality, larger.
GLM-4.7-Flash-Q8_0.gguf 33.2 GB 8-bit โ€” closest to the original.

Quantization method

These GGUF files are post-training quantization (PTQ) made with llama.cpp (convert_hf_to_gguf.py โ†’ llama-quantize): the BF16 weights are quantized block-wise (k-quants: per-block scales with mixed bit allocation), with no retraining. The original chat_template is embedded in each file.

Requirements

llama.cpp build โ‰ฅ b10251 โ€” architecture deepseek2 + MTP layer needs โ‰ฅ b10251, and the commands on this card use -fa on (โ‰ฅ b6325). Load-checked here with b12005 (commit e0f142d) and b10724 on CPU โ€” the loader accepts the model, tokenizer and the -fa on / q8_0 KV-cache flags; no generation was run in that check.
Memory the chosen GGUF file (sizes in the table) plus KV cache for the context (-c); --cache-type-k/v q8_0 -fa on halves the KV cache.
Input text.
Ollama / LM Studio not tested here.

Run with llama.cpp

# pull one quant straight from the Hub and serve an OpenAI-compatible API on :8080
llama-server -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192 --jinja

# or download a single file and chat in the terminal
hf download axteam/GLM-4.7-Flash-GGUF GLM-4.7-Flash-Q4_K_M.gguf --local-dir .
llama-cli -m GLM-4.7-Flash-Q4_K_M.gguf -c 8192 --jinja

Query the server:

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
  "messages": [{"role": "user", "content": "๋Œ€ํ•œ๋ฏผ๊ตญ์˜ ์ˆ˜๋„๋Š” ์–ด๋””์ธ๊ฐ€์š”?"}],
  "temperature": 1.0, "max_tokens": 512
}'

Reduce KV-cache memory (optional, run-time)

KV-cache type is chosen at run time in llama.cpp (it is not baked into the file):

llama-server -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192 --jinja --cache-type-k q8_0 --cache-type-v q8_0 -fa on

Ollama

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

LM Studio

Search for axteam/GLM-4.7-Flash-GGUF in the model browser and pick a quant (e.g. Q4_K_M).

Recommended sampling (from the original generation_config.json): temperature=1.0.

License

Quantized derivative of zai-org/GLM-4.7-Flash (MIT). Original weights & tokenizer belong to Z.ai / zai-org.


ํ•œ๊ตญ์–ด ์š”์•ฝ

zai-org/GLM-4.7-Flash ๋ฅผ llama.cpp ์šฉ GGUF ์—ฌ๋Ÿฌ ํ€€ํŠธ๋กœ ๋ณ€ํ™˜(axteam ์ œ์ž‘, ๊ณต์‹ convert_hf_to_gguf.py). llama.cpp/Ollama/LM Studio ์—์„œ ์‚ฌ์šฉ, ์›๋ณธ chat_template ๋‚ด์žฅ. VRAM ์ดˆ๊ณผ๋ถ„์€ llama.cpp ๊ฐ€ CPU RAM ์œผ๋กœ ์ž๋™ ์˜คํ”„๋กœ๋“œ(-ngl). ๋ผ์ด์„ ์Šค MIT(์›๋ณธ Z.ai).

  • ํŒŒ์ผ โ€” Q2_K(2๋น„ํŠธยท์ตœ์†Œ ์šฉ๋Ÿ‰), Q3_K_M(3๋น„ํŠธ), Q4_K_M(4๋น„ํŠธยท๊ถŒ์žฅ), Q5_K_M(5๋น„ํŠธ), Q6_K(6๋น„ํŠธยท๊ณ ํ’ˆ์งˆ), Q8_0(8๋น„ํŠธยท์›๋ณธ์— ๊ฐ€์žฅ ๊ฐ€๊นŒ์›€).
  • ์š”๊ตฌ์‚ฌํ•ญ โ€” llama.cpp b10251 ์ด์ƒ(๊ตฌ์กฐ deepseek2 + MTP layer ๋Š” b10251+, ์นด๋“œ ๋ช…๋ น์˜ -fa on ์€ b6325+). b12005ยทb10724 ์—์„œ CPU ๋กœ๋“œ ์ ๊ฒ€(์ƒ์„ฑ์€ ์•ˆ ํ•ด ๋ด„). OllamaยทLM Studio ๋Š” ๋ฏธํ™•์ธ.
  • ์‹คํ–‰ โ€” llama-server -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192 --jinja (OpenAI ํ˜ธํ™˜ ์„œ๋ฒ„ :8080) ๋˜๋Š” llama-cli -m GLM-4.7-Flash-Q4_K_M.gguf --jinja.
  • Ollama โ€” ollama run hf.co/axteam/GLM-4.7-Flash-GGUF:Q4_K_M. LM Studio ์—์„œ๋Š” axteam/GLM-4.7-Flash-GGUF ๊ฒ€์ƒ‰.
  • KV ์บ์‹œ ์ ˆ๊ฐ(๋Ÿฐํƒ€์ž„) โ€” --cache-type-k q8_0 --cache-type-v q8_0 -fa on.
  • ๊ถŒ์žฅ ์ƒ˜ํ”Œ๋ง temperature=1.0.
Downloads last month
-
GGUF
Model size
31B params
Architecture
deepseek2
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for axteam/GLM-4.7-Flash-GGUF

Quantized
(111)
this model