How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf zai-org/glm-edge-v-5b-gguf:
# Run inference directly in the terminal:
llama-cli -hf zai-org/glm-edge-v-5b-gguf:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf zai-org/glm-edge-v-5b-gguf:
# Run inference directly in the terminal:
llama-cli -hf zai-org/glm-edge-v-5b-gguf:
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 zai-org/glm-edge-v-5b-gguf:
# Run inference directly in the terminal:
./llama-cli -hf zai-org/glm-edge-v-5b-gguf:
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 zai-org/glm-edge-v-5b-gguf:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf zai-org/glm-edge-v-5b-gguf:
Use Docker
docker model run hf.co/zai-org/glm-edge-v-5b-gguf:
Quick Links

Glm-Edge-V-5B-GGUF

中文阅读, 点击这里

Inference with Ollama

Installation

The code for adapting this model is actively being integrated into the official llama.cpp. You can test it using the following adapted version:

git clone https://github.com/piDack/llama.cpp -b support_glm_edge_model
cmake -B build -DGGML_CUDA=ON # Or enable other acceleration hardware
cmake --build build -- -j 

Inference

After installation, you can start the GLM-Edge Chat model using the following command:

llama-cli -m <path>/model.gguf -p "<|user|>\nhi<|assistant|>\n" -ngl 999

In the command-line interface, you can interact with the model by entering your requests, and the model will provide the corresponding responses.

License

The usage of this model’s weights is subject to the terms outlined in the LICENSE.

Downloads last month
463
GGUF
Model size
4B params
Architecture
chatglm
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including zai-org/glm-edge-v-5b-gguf