guillaume-be/rust-bert
Rust-native NLP pipelines exposing transformer models (BERT, GPT-2, etc.) for tasks including question answering, translation, and text generation.

This repository provides Rust implementations of transformer-based language models including BERT, DistilBERT, GPT-2, RoBERTa, ELECTRA and BART. It exposes both model base architectures and task-specific heads for common NLP pipelines such as question answering, named entity recognition, translation, summarization, and text generation. The library uses tch-rs or ONNX runtime bindings for backend inference with support for GPU acceleration.
Frequently asked
- What is guillaume-be/rust-bert?
- Rust-native NLP pipelines exposing transformer models (BERT, GPT-2, etc.) for tasks including question answering, translation, and text generation.
- Is rust-bert open source?
- Yes — guillaume-be/rust-bert is open source, released under the Apache-2.0 license.
- What language is rust-bert written in?
- guillaume-be/rust-bert is primarily written in Rust.
- How popular is rust-bert?
- guillaume-be/rust-bert has 3.1k stars on GitHub.
- Where can I find rust-bert?
- guillaume-be/rust-bert is on GitHub at https://github.com/guillaume-be/rust-bert.