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 ๋ฅผ 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
- -
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