Instructions to use axteam/GLM-4.7-Flash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use axteam/GLM-4.7-Flash-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/axteam/GLM-4.7-Flash-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use axteam/GLM-4.7-Flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "axteam/GLM-4.7-Flash-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "axteam/GLM-4.7-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/axteam/GLM-4.7-Flash-GGUF:Q4_K_M
- Ollama
How to use axteam/GLM-4.7-Flash-GGUF with Ollama:
ollama run hf.co/axteam/GLM-4.7-Flash-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use axteam/GLM-4.7-Flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "axteam/GLM-4.7-Flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use axteam/GLM-4.7-Flash-GGUF with Docker Model Runner:
docker model run hf.co/axteam/GLM-4.7-Flash-GGUF:Q4_K_M
- Lemonade
How to use axteam/GLM-4.7-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-4.7-Flash-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use axteam/GLM-4.7-Flash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use axteam/GLM-4.7-Flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axteam/GLM-4.7-Flash-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "axteam/GLM-4.7-Flash-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for axteam/GLM-4.7-Flash-GGUF
Base model
zai-org/GLM-4.7-Flash