#42 · Primary category: NLP Tools & Text Processing

rust-bert

bart bert deep-learning electra gpt gpt-2 language-generation machine-learning ner nlp question-answering roberta rust rust-lang sentiment-analysis transformer translation

Rust native ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)

Project last updated:01/13/26

GitHub Stars

3.1K

Forks

249

Contributors

48

License

Apache-2.0

Why we included this project

Most Rust teams would rather not stand up a separate Python service just to run a transformer model. rust-bert ports the Hugging Face Transformers stack to native Rust and gives you ready-to-use pipelines for things like question answering, translation, summarization, and named entity recognition, so a few lines of code calling predict() replace hand-wiring model weights, tokenizers, and tensor ops. It runs on tch-rs or ONNX Runtime, with multi-threaded tokenization and GPU inference, which suits latency-sensitive or embedded use where you want the model close to the rest of your code. One thing to know: this is a component library, not a runnable application, so you integrate it into your own service or tooling.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category