OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Infrastructure & Serving

Bytetransformer

ByteTransformer is an open-source C++ inference library for BERT-like transformers on NVIDIA GPUs, with Python and C++ APIs and a PyTorch plugin.

Independent OpenViST project profile, based on linked sources.

Bytetransformer — Build ByteTransformer from source
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Consider ByteTransformer when you need BERT-like transformer inference on NVIDIA GPUs and want to evaluate its fixed- or variable-length support, PyTorch plugin, or C++ and Python APIs.

Who it is for

  • Developers integrating BERT-like inference into Python or C++ systems running on NVIDIA GPUs.
  • Teams evaluating optimized inference for fixed- or variable-length transformer inputs.

Documented uses

  • Integrate the library through its Python or C++ API.
  • Add its optimized inference path to a Python application using the PyTorch plugin.
  • Build and run the documented unit-test workflows for C++ or the Python plugin.
Before you choose

Requirements & limits

The public GitHub repository specifies the Apache-2.0 license.

  • The documented environment lists CUDA 11.6, CMake 3.13 or later, PyTorch 1.8 or later and Python 3.7 or later.
  • The listed GPU compute capabilities are 7.0 (V100), 7.5 (T4) and 8.0 (A100).
  • The README's sample build configuration targets CUDA architecture 8.0 and FP16.
  • Published benchmark figures use an A100 and selected standard BERT batch sizes and sequence lengths.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Build ByteTransformer from source

Compile the library using the repository's documented source-build steps.

Before you start

  • CUDA 11.6
  • CMake 3.13 or later
  • PyTorch 1.8 or later
  • Python 3.7 or later
  • A GPU with compute capability 7.0 (V100), 7.5 (T4), or 8.0 (A100)

Steps

  1. Initialize the Git submodules with the command below.

    Documented command
    git submodule update --init
  2. Create and enter a build directory with mkdir build && cd build.

  3. Configure with cmake -DTORCH_CUDA_ARCH_LIST="8.0" -DDataType=FP16 -DBUILD_THS=ON -DCUDAARCHS="80" ...

  4. Compile with make.

Expected outcome

The documented build process produces a compiled ByteTransformer library.

Guide limitations

  • The example CMake configuration specifies CUDA architecture 8.0 and FP16.
  • The README lists a tested setup of A100, CUDA 11.6, PyTorch 1.13.0+cu116 and Python 3.9.16; this is not a compatibility guarantee for other configurations.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
23 October 2026
Original website title
bytedance/ByteTransformer · Official homepage title · retained in its source language