CTranslate2
A programming library that makes AI language models run faster and use less memory.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Runs on
- Mac, Windows, Linux, Server
- Computer
- An ordinary computer is fine
A programming library that makes AI language models run faster and use less memory.
CTranslate2 is a library, a set of building blocks for programmers, written in C++ and Python. It runs Transformer models, the type of AI model behind many translation, chat and speech tools, more efficiently on ordinary processors (CPUs) and graphics cards (GPUs).
It works with many well-known model families, including Llama, Mistral, Gemma, Whisper, T5 and BERT. Models are first converted into its own optimized format using the included converters. It can shrink models with quantization, which stores numbers with less precision. Its makers say this can make models about four times smaller on disk with little loss in accuracy.
Developers use it to translate or generate text with a few lines of code. It can spread work across several processor cores or graphics cards, and it supports Intel, ARM and Apple chips.
Developers and engineers who want to run translation, text generation or speech models faster and more cheaply, on their own machines or on servers.
Developers only. It is a programming library used from Python or C++ code, not a ready-made app. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?