Instructions to use ddh0/GLM-4.5-Air-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ddh0/GLM-4.5-Air-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ddh0/GLM-4.5-Air-GGUF", filename="GLM-4.5-Air-Q8_0-FFN-IQ3_S-IQ3_S-Q5_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ddh0/GLM-4.5-Air-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0 # Run inference directly in the terminal: llama-cli -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0 # Run inference directly in the terminal: llama-cli -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0 # Run inference directly in the terminal: ./llama-cli -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
Use Docker
docker model run hf.co/ddh0/GLM-4.5-Air-GGUF:Q5_0
- LM Studio
- Jan
- Ollama
How to use ddh0/GLM-4.5-Air-GGUF with Ollama:
ollama run hf.co/ddh0/GLM-4.5-Air-GGUF:Q5_0
- Unsloth Studio new
How to use ddh0/GLM-4.5-Air-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ddh0/GLM-4.5-Air-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ddh0/GLM-4.5-Air-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ddh0/GLM-4.5-Air-GGUF to start chatting
- Pi new
How to use ddh0/GLM-4.5-Air-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ddh0/GLM-4.5-Air-GGUF:Q5_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ddh0/GLM-4.5-Air-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ddh0/GLM-4.5-Air-GGUF:Q5_0
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 ddh0/GLM-4.5-Air-GGUF:Q5_0
Run Hermes
hermes
- Docker Model Runner
How to use ddh0/GLM-4.5-Air-GGUF with Docker Model Runner:
docker model run hf.co/ddh0/GLM-4.5-Air-GGUF:Q5_0
- Lemonade
How to use ddh0/GLM-4.5-Air-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ddh0/GLM-4.5-Air-GGUF:Q5_0
Run and chat with the model
lemonade run user.GLM-4.5-Air-GGUF-Q5_0
List all available models
lemonade list
GLM-4.5-Air-GGUF
This repository contains several custom GGUF quantizations of GLM-4.5-Air, to be used with llama.cpp.
The naming scheme for these custom quantizations is as follows:
ModelName-DefaultType-FFN-UpType-GateType-DownType.gguf
Where DefaultType refers to the default tensor type, and UpType, GateType, and DownType refer to the tensor types used for the ffn_up_exps, ffn_gate_exps, and ffn_down_exps tensors respectively.
Original quantizations
These quantizations use Q8_0 for all tensors by default - only the dense FFN block and conditional experts are downgraded. The shared expert is always kept in Q8_0. They were quantized using bartowski's imatrix.
| Filename | Size (GB) | Size (GiB) | Average BPW | Direct link |
|---|---|---|---|---|
| GLM-4.5-Air-Q8_0-FFN-IQ3_S-IQ3_S-Q5_0.gguf | 61.66 | 57.43 | 4.47 | Download |
| GLM-4.5-Air-Q8_0-FFN-IQ4_XS-IQ4_XS-Q5_0.gguf | 68.56 | 63.86 | 4.97 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q4_K-Q4_K-Q5_1.gguf | 72.82 | 67.82 | 5.27 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q4_K-Q4_K-Q8_0.gguf | 83.44 | 77.71 | 6.04 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q5_K-Q5_K-Q8_0.gguf | 91.94 | 85.63 | 6.66 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q6_K-Q6_K-Q8_0.gguf | 100.97 | 94.04 | 7.31 | Download |
| GLM-4.5-Air-Q8_0.gguf | 117.45 | 109.39 | 8.50 | Download |
| GLM-4.5-Air-bf16.gguf | 220.98 | 205.81 | 16.00 | Download |
v2 quantizations
These quantizations use Q8_0 for all tensors by default, including the dense FFN block. Only the conditional experts are downgraded. The shared expert is always kept in Q8_0. They were quantized using my own imatrix (the calibration text corpus can be found here).
| Filename | Size (GB) | Size (GiB) | Average BPW | Direct link |
|---|---|---|---|---|
| GLM-4.5-Air-Q8_0-FFN-IQ4_XS-IQ3_S-IQ4_NL-v2.gguf | 60.94 | 56.76 | 4.41 | Download |
| GLM-4.5-Air-Q8_0-FFN-IQ4_XS-IQ4_XS-IQ4_NL-v2.gguf | 64.39 | 59.97 | 4.66 | Download |
| GLM-4.5-Air-Q8_0-FFN-IQ4_XS-IQ4_XS-Q5_0-v2.gguf | 68.63 | 63.92 | 4.97 | Download |
| GLM-4.5-Air-Q8_0-FFN-IQ4_XS-IQ4_XS-Q8_0-v2.gguf | 81.36 | 75.78 | 5.89 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q5_K-Q5_K-Q8_0-v2.gguf | 91.97 | 85.66 | 6.66 | Download |
| GLM-4.5-Air-Q8_0-FFN-Q6_K-Q6_K-Q8_0-v2.gguf | 100.99 | 94.06 | 7.31 | Download |
- Downloads last month
- 653
Model tree for ddh0/GLM-4.5-Air-GGUF
Base model
zai-org/GLM-4.5-Air