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 β€” near-lossless, 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.

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 -cnv

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-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 -cnv --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