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์˜ GGUF ์–‘์žํ™” ๋นŒ๋“œ (llama.cppยทOllamaยทLM Studio์šฉ) ยท ์ œ์ž‘ axteam

๊ฐœ์š”

ํ•ญ๋ชฉ ๋‚ด์šฉ
์›๋ณธ ๋ชจ๋ธ zai-org/GLM-4.7-Flash
ํ˜•์‹ GGUF (llama.cpp)
๋ณ€ํ™˜ ๋„๊ตฌ llama.cpp convert_hf_to_gguf.py โ†’ llama-quantize
ํŒŒ์ผ ์ˆ˜ 6๊ฐœ

์–‘์žํ™” ์ƒ์„ธ

  • ์–‘์žํ™” ์ ˆ์ฐจ: PTQ(ํ•™์Šต ํ›„ ์–‘์žํ™”, ์žฌํ•™์Šต ์—†์Œ), llama.cpp ๋ธ”๋ก ๋‹จ์œ„ ์–‘์žํ™”(k-quant Q*_K, Q8_0)
  • chat template: GGUF ํŒŒ์ผ์— ๋‚ด์žฅ
  • ํ’ˆ์งˆ: ๋ฏธ์ธก์ • โ€” ์•„๋ž˜ ํŒŒ์ผ๋ณ„ ์„ค๋ช…์€ llama.cpp ์–‘์žํ™” ๋‹จ๊ณ„์˜ ์ผ๋ฐ˜์  ๊ฒฝํ–ฅ

์ œ๊ณต ํŒŒ์ผ

ํŒŒ์ผ ํฌ๊ธฐ ์„ค๋ช…
GLM-4.7-Flash-Q2_K.gguf 11.5 GB 2๋น„ํŠธ k-quant โ€” ๊ฐ€์žฅ ์ž‘์Œ, ํ’ˆ์งˆ ์ €ํ•˜ ํผ (๋ฉ”๋ชจ๋ฆฌ๊ฐ€ ๋ถ€์กฑํ•  ๋•Œ)
GLM-4.7-Flash-Q3_K_M.gguf 15.0 GB 3๋น„ํŠธ k-quant โ€” ์ž‘์Œ, ํ’ˆ์งˆ ๋‹ค์†Œ ์ €ํ•˜
GLM-4.7-Flash-Q4_K_M.gguf 18.9 GB 4๋น„ํŠธ k-quant โ€” ํฌ๊ธฐยทํ’ˆ์งˆ ๊ท ํ˜• (๊ถŒ์žฅ)
GLM-4.7-Flash-Q5_K_M.gguf 22.2 GB 5๋น„ํŠธ k-quant โ€” ๊ณ ํ’ˆ์งˆ
GLM-4.7-Flash-Q6_K.gguf 25.7 GB 6๋น„ํŠธ k-quant โ€” ๊ณ ํ’ˆ์งˆ, ์šฉ๋Ÿ‰ ํผ
GLM-4.7-Flash-Q8_0.gguf 33.2 GB 8๋น„ํŠธ โ€” ์›๋ณธ์— ๊ฐ€์žฅ ๊ฐ€๊นŒ์›€

์š”๊ตฌ์‚ฌํ•ญ

  • llama.cpp: b10251 ์ด์ƒ (deepseek2 ๊ตฌ์กฐ + MTP ์ธต ์ง€์› b10251๋ถ€ํ„ฐ, ์˜ˆ์‹œ ๋ช…๋ น์˜ -fa on ์˜ต์…˜ b6325๋ถ€ํ„ฐ)
  • ๋กœ๋”ฉ ํ™•์ธ: b12005(์ปค๋ฐ‹ e0f142d)์™€ b10724์—์„œ CPU๋กœ ๋ชจ๋ธยทํ† ํฌ๋‚˜์ด์ € ๋กœ๋”ฉ๊ณผ -fa onยทq8_0 KV ์บ์‹œ ์˜ต์…˜ ์ธ์‹๋งŒ ํ™•์ธ (์ƒ์„ฑ์€ ์‹คํ–‰ ๋ฏธํ™•์ธ)
  • ๋ฉ”๋ชจ๋ฆฌ: ์„ ํƒํ•œ GGUF ํŒŒ์ผ ํฌ๊ธฐ + ์ปจํ…์ŠคํŠธ(-c)๋งŒํผ์˜ KV ์บ์‹œ (KV ์บ์‹œ ์ค„์ด๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋ž˜ ์‚ฌ์šฉ๋ฒ• ์ฐธ๊ณ )
  • ์ž…๋ ฅ: ํ…์ŠคํŠธ
  • OllamaยทLM Studio: ์ œ์ž‘ ์ธก์—์„œ ์‹คํ–‰ ๋ฏธํ™•์ธ

์‚ฌ์šฉ๋ฒ•

  • ํŒŒ์ผ ๋ฐ›๊ธฐ: hf download axteam/GLM-4.7-Flash-GGUF GLM-4.7-Flash-Q4_K_M.gguf --local-dir . (์•„๋ž˜ -m ๋ช…๋ น์— ํ•„์š”, ๋‹ค๋ฅธ ์–‘์žํ™”๋Š” ํŒŒ์ผ๋ช…์˜ Q4_K_M๋งŒ ๋ณ€๊ฒฝ)
  • ์„œ๋ฒ„ ์‹คํ–‰: llama-server -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M -c 8192 --jinja โ€” OpenAI ํ˜ธํ™˜ API
  • ํ„ฐ๋ฏธ๋„ ๋Œ€ํ™”: llama-cli -m GLM-4.7-Flash-Q4_K_M.gguf -c 8192 --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 โ€” KV ์บ์‹œ ์•ฝ ์ ˆ๋ฐ˜, GGUF ํŒŒ์ผ๊ณผ ์ƒ๊ด€์—†์ด ์‹คํ–‰ ์‹œ ์ง€์ •
  • ๊ถŒ์žฅ ์ƒ˜ํ”Œ๋ง: temperature=1.0 (์›๋ณธ generation_config.json ๊ธฐ์ค€)

๋ผ์ด์„ ์Šค

  • ๋ผ์ด์„ ์Šค: MIT โ€” ์›๋ณธ ๋ชจ๋ธ์˜ ๋ผ์ด์„ ์Šค๋ฅผ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ฆ„
  • ๊ถŒ๋ฆฌ: ์›๋ณธ ๊ฐ€์ค‘์น˜ยทํ† ํฌ๋‚˜์ด์ €๋Š” Z.ai ์†Œ์œ , ์ด ๋ฆฌํฌ๋Š” ์–‘์žํ™” ํŒŒ์ƒ๋ฌผ
Downloads last month
273
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