#177 · Primary category: Inference & Local Deploy

ctransformers

ai ctransformers llm transformers

Python bindings for the Transformer models implemented in C/C++ using GGML library.

Project last updated:01/28/24

GitHub Stars

1.9K

Forks

143

Contributors

6

License

MIT

Why we included this project

If you're tired of juggling separate conversion pipelines for each model architecture, ctransformers gives you a single AutoModelForCausalLM-style interface that loads GGML/GGUF files from disk or straight from the Hugging Face Hub. It runs LLaMA, Falcon, MPT, StarCoder, GPT-2, and others in pure C/C++ via GGML, so you can do lightweight inference on a laptop without pulling in a full PyTorch runtime. Streaming output, CUDA/ROCm/Metal offloading, and LangChain integration come built in where the model supports them. The experimental GPTQ path through ExLlama helps when you're squeezing quantized weights into a tight memory budget, but support varies by model family, so check the table before committing.

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