CTranslate2 logo

CTranslate2

OpenNMT/CTranslate2

Fast inference engine for Transformer models

GraphCanon updated 3w · GitHub synced 3w

4.6k stars505 forksLast push 1mo C++ MIT

Decision brief

CTranslate2 is known for its high-performance in machine translation and text generation tasks with Transformer models. It supports various hardware optimizations like AVX, AVX2, CUDA, neon, among others.

Good fit when

  • - When you're looking to deploy high-speed inference on Transformer model architectures optimized for performance across multiple hardware types such as CPU (via AVX/AVX2) and GPU (via CUDA or ROCm).
  • - If your application requires support for fine-tuning through quantization, making it suitable for scenarios where reducing model size with minimal loss in quality is critical.

Avoid when

  • - Avoid using CTranslate2 if you are working on a project that primarily leverages alternative neural network architectures other than Transformer models.
  • - If your specific needs are tied to hardware or optimizations not listed (such as special FPGA configurations), and the tool does not provide these optimizations.
Pricing:
freemium
Requirements:
CTranslate2 can be installed via pip. It offers specific Python wheels for AMD ROCm GPU users.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Active (29d since push)
As of 3w
Provenance
Not a fork · Organization account
As of 3w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

git clone https://github.com/OpenNMT/CTranslate2

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

CTranslate2 is a high-performance machine translation and text generation library optimized for the Transformer model architecture. It supports various hardware optimizations including AVX, AVX2, CUDA, neon and more.

Capability facts

Languages
c++

Source: github.language · Aug 2, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 2, 2026)

The Python module is used to convert models and can translate or generate text with few lin
Source link

Tags

README

Installation and usage

CTranslate2 can be installed with pip:

pip install ctranslate2

The Python module is used to convert models and can translate or generate text with few lines of code:

translator = ctranslate2.Translator(translation_model_path)
translator.translate_batch(tokens)

generator = ctranslate2.Generator(generation_model_path)
generator.generate_batch(start_tokens)

See the documentation for more information and examples.

If you have an AMD ROCm GPU, we provide specific Python wheels on the releases page.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.