Instructions to use ubergarm/GLM-5.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ubergarm/GLM-5.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ubergarm/GLM-5.1-GGUF", filename="IQ2_KL/GLM-5.1-IQ2_KL-00001-of-00007.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ubergarm/GLM-5.1-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ubergarm/GLM-5.1-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf ubergarm/GLM-5.1-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ubergarm/GLM-5.1-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf ubergarm/GLM-5.1-GGUF:Q2_K
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 ubergarm/GLM-5.1-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf ubergarm/GLM-5.1-GGUF:Q2_K
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 ubergarm/GLM-5.1-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf ubergarm/GLM-5.1-GGUF:Q2_K
Use Docker
docker model run hf.co/ubergarm/GLM-5.1-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use ubergarm/GLM-5.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ubergarm/GLM-5.1-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": "ubergarm/GLM-5.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ubergarm/GLM-5.1-GGUF:Q2_K
- Ollama
How to use ubergarm/GLM-5.1-GGUF with Ollama:
ollama run hf.co/ubergarm/GLM-5.1-GGUF:Q2_K
- Unsloth Studio new
How to use ubergarm/GLM-5.1-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 ubergarm/GLM-5.1-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 ubergarm/GLM-5.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ubergarm/GLM-5.1-GGUF to start chatting
- Pi new
How to use ubergarm/GLM-5.1-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf ubergarm/GLM-5.1-GGUF:Q2_K
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": "ubergarm/GLM-5.1-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ubergarm/GLM-5.1-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 ubergarm/GLM-5.1-GGUF:Q2_K
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 ubergarm/GLM-5.1-GGUF:Q2_K
Run Hermes
hermes
- Docker Model Runner
How to use ubergarm/GLM-5.1-GGUF with Docker Model Runner:
docker model run hf.co/ubergarm/GLM-5.1-GGUF:Q2_K
- Lemonade
How to use ubergarm/GLM-5.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ubergarm/GLM-5.1-GGUF:Q2_K
Run and chat with the model
lemonade run user.GLM-5.1-GGUF-Q2_K
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00001-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00002-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00003-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00004-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00005-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00006-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00007-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00008-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00009-of-00010.gguf +3 -0
- smol-IQ4_K/GLM-5.1-smol-IQ4_K-00010-of-00010.gguf +3 -0
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00001-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5daa1972fef83453f628c4d974e7678bc6e7ba777e6c14ea9cdf904fc5176ff7
|
| 3 |
+
size 9422592
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00002-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13c6f7212cd8f4e6e4daaf75221e246ff2911f5813579a87fac1b3b0ad7f1c5a
|
| 3 |
+
size 49403646144
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00003-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d5795ea25e7b39bfb828e4dde5cbba74ce4fce23240ddf15d7a53833ac37796
|
| 3 |
+
size 49489491200
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00004-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34e106995c714e67627f0863dae4123ddeddbb1e4381d6351146c050a761f40f
|
| 3 |
+
size 48893669280
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00005-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5207e29e742ea826a6a4cff5e415753150a55ebb24b1d44397d2e0d6f5cc9def
|
| 3 |
+
size 49116574848
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00006-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbc21c5e82b97e7b5234635922e381ef7ee907f5aae9b0f937cdb0f2cfb80f32
|
| 3 |
+
size 49116574848
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00007-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0564d4f28c1bff094ac6c80638f8df614f6a9554edf18a78d2ecef742a14d076
|
| 3 |
+
size 48893669280
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00008-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad00f37cf53011a12148dd395e367d3df3713c50ec83b3806e99c82fc26febaa
|
| 3 |
+
size 49116574848
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00009-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd9dffdbf8814d6c801662afac3e12a6559d0f6748e3fcf5afb82112f4f17ee3
|
| 3 |
+
size 49116574848
|
smol-IQ4_K/GLM-5.1-smol-IQ4_K-00010-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce05b68eb53ff5d4a61e7b44a62b4676069f790bbfe0ed737890a19ae9365dae
|
| 3 |
+
size 42258270720
|