Instructions to use mradermacher/GLM-4.5-Air-Base-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/GLM-4.5-Air-Base-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/GLM-4.5-Air-Base-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/GLM-4.5-Air-Base-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 mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
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 mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
Use Docker
docker model run hf.co/mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- Ollama
How to use mradermacher/GLM-4.5-Air-Base-GGUF with Ollama:
ollama run hf.co/mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use mradermacher/GLM-4.5-Air-Base-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
- Lemonade
How to use mradermacher/GLM-4.5-Air-Base-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K
Run and chat with the model
lemonade run user.GLM-4.5-Air-Base-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K# Run inference directly in the terminal:
llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_KBuild 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 mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K# Run inference directly in the terminal:
./build/bin/llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_KUse Docker
docker model run hf.co/mradermacher/GLM-4.5-Air-Base-GGUF:Q2_KAbout
static quants of https://huggingface.co/zai-org/GLM-4.5-Air-Base
For a convenient overview and download list, visit our model page for this model.
weighted/imatrix quants are available at https://huggingface.co/mradermacher/GLM-4.5-Air-Base-i1-GGUF
Usage
If you are unsure how to use GGUF files, refer to one of TheBloke's READMEs for more details, including on how to concatenate multi-part files.
Provided Quants
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
| Link | Type | Size/GB | Notes |
|---|---|---|---|
| GGUF | Q2_K | 45.1 | |
| PART 1 PART 2 | Q3_K_S | 52.5 | |
| PART 1 PART 2 | Q3_K_M | 57.1 | lower quality |
| PART 1 PART 2 | Q3_K_L | 59.5 | |
| PART 1 PART 2 | IQ4_XS | 60.7 | |
| PART 1 PART 2 | Q4_K_S | 67.0 | fast, recommended |
| PART 1 PART 2 | Q4_K_M | 73.0 | fast, recommended |
| PART 1 PART 2 | Q5_K_S | 78.4 | |
| PART 1 PART 2 | Q5_K_M | 83.5 | |
| PART 1 PART 2 PART 3 | Q6_K | 99.1 | very good quality |
| PART 1 PART 2 PART 3 | Q8_0 | 117.6 | fast, best quality |
Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):
And here are Artefact2's thoughts on the matter: https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
FAQ / Model Request
See https://huggingface.co/mradermacher/model_requests for some answers to questions you might have and/or if you want some other model quantized.
Thanks
I thank my company, nethype GmbH, for letting me use its servers and providing upgrades to my workstation to enable this work in my free time. Additional thanks to @nicoboss for giving me access to his private supercomputer, enabling me to provide many more imatrix quants, at much higher quality, than I would otherwise be able to.
- Downloads last month
- 78
2-bit
Model tree for mradermacher/GLM-4.5-Air-Base-GGUF
Base model
zai-org/GLM-4.5-Air-Base
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K# Run inference directly in the terminal: llama cli -hf mradermacher/GLM-4.5-Air-Base-GGUF:Q2_K