Compute / model / hosted runtime
CTranslate2 Transformer Inference Runtime
A C++ and Python inference runtime for supported Transformer models, with CPU and GPU execution and reduced-precision model weights.
About this listing
CTranslate2 provides a dedicated runtime for running supported Transformer models through Python and C++ APIs. It applies optimizations including layer fusion, batch reordering and weight quantization to inference workloads.
Models must first be converted to its optimized format. The project provides converters for frameworks including Transformers, OpenNMT and Marian, with support for encoder-decoder, decoder-only and encoder-only architectures. CPU and GPU execution give developers deployment options without requiring a hosted inference service.
The MIT-licensed runtime code is free. Model licences, hardware, hosting and any separately selected services remain separate responsibilities and may involve costs.