#168 · Primary category: Inference & Local Deploy
chatglm.cpp
C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4(V)
Project last updated:07/31/24
GitHub Stars
3.0K
Forks
326
Contributors
14
License
MIT
Why we included this project
ChatGLM.cpp packs several generations of the ChatGLM family, from the 6B models up through GLM-4 and GLM-4V, into a lightweight C++ runtime built on ggml, the same library that powers llama.cpp. It targets laptops and edge hardware: you can convert a Hugging Face checkpoint into a quantized int4 or int8 GGML file, then run it with memory-efficient CPU inference, optionally using NVIDIA or Apple Silicon GPUs for acceleration. Streaming generation, support for P-Tuning v2 and LoRA fine-tuned checkpoints, plus Python bindings and API servers, make it straightforward to embed the models into your own application instead of calling a hosted endpoint. Anyone evaluating self-hosted deployments of the GLM family, or just wanting a llama.cpp-style runtime tuned for the GLM architecture, will find a practical base here.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ollama
Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama.cpp
LLM inference in C/C++
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
gpt4all
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
LocalAI
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.