guillaume-be/rust-bert

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

View on GitHub ↗Jump to charts ↓Open shareable report →

guillaume-be/rust-bert has 3k+ stars and 200+ forks on GitHub, is written in Rust, and was last pushed on Jan 13, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 22nd, 2026
Created on January 25th, 2020
Open Issues & Pull Requests: 76 (+0)
GitHub issues: Enabled
Number of forks: 247
Total Stargazers: 3,084 (+0)
Total Subscribers: 40 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 42.7 hours
Mean response time: 68.7 days
90th percentile: 31.8 days
Tracked items: 11

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 16
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 569 days
Stale 30+ days: 16
Stale 90+ days: 16

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Model request (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

rust-bert is a Rust library that provides ready-to-use NLP pipelines and transformer-based models.

The library addresses the need to run state-of-the-art natural language processing models natively in Rust without depending on Python. It ports Hugging Face's Transformers library using Rust bindings to PyTorch through tch-rs or ONNX Runtime, combined with tokenization from rust-tokenizers. The approach exposes model architectures, task-specific heads, and pre-built pipelines that handle common NLP workflows in just a few lines of code. It supports multi-threaded tokenization and GPU inference.

The tool suits projects requiring NLP capabilities in Rust environments where Python integration is impractical or undesirable. It covers a broad range of tasks including question answering, named entity recognition, translation, summarization, text generation, sentiment analysis, and sentence embeddings. The library supports numerous transformer architectures including BERT, DistilBERT, RoBERTa, GPT-2, T5, BART, and others, each with varying task support. Developers should be aware that pre-trained models are large, typically hundreds of megabytes to gigabytes, and are cached locally in a configurable directory. The library requires libtorch to be available in the environment, which can be downloaded automatically or installed manually.

The project maintains active engagement with issues and pull requests, showing responsiveness to user feedback and bug reports. Development includes regular updates to support new model architectures and task types as they emerge in the transformer ecosystem. The codebase demonstrates consistent refinement of the API surface and performance optimizations for inference workloads.