RepoPilot

guillaume-be/rust-bert

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

Mixed

Slowing — last commit 4mo ago

MixedDependency

dependency CVE scan unavailable

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

dependency CVE scan unavailable

  • Slowing — last commit 4mo ago
  • Concentrated ownership — top contributor handles 58% of recent commits
  • Last commit 4mo ago
  • 33+ active contributors
  • Apache-2.0 licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: guillaume-be/rust-bert

Generated by RepoPilot · document generated 2026-09-13 · concise human review Evidence snapshot · analyzed 2026-09-13T13:19:35.022Z · commit 6db859ef097e

Verdict

Mixed — Slowing — last commit 4mo ago

  • Last commit 4mo ago
  • 33+ active contributors
  • Apache-2.0 licensed
  • CI configured
  • 1 more receipt on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

What it is

rust-bert is a Rust-native port of Hugging Face's Transformers library that provides ready-to-use NLP pipelines and pre-trained transformer models (BERT, DistilBERT, GPT-2, T5, BART, etc.) for tasks like question answering, named entity recognition, sentiment analysis, translation, summarization, and text generation. It wraps tch-rs (PyTorch bindings) or ONNX Runtime for inference and rust-tokenizers for preprocessing, enabling GPU-accelerated NLP in pure Rust with no Python dependency. Monorepo structured as: src/lib.rs (core library), examples/ (50+ runnable task-specific examples showing sentiment_analysis.rs, question_answering.rs, translation_m2m100.rs), benches/ (7 performance…

Start here

Open these first:

  • src/lib.rs — Entry point and public API surface; exposes all pipelines and model interfaces that users depend on.
  • Cargo.toml — Defines core dependencies (tch-rs, ort, rust-tokenizers) and feature flags that control model and backend support.
  • src/common/mod.rs — Central hub for common utilities, activations, embeddings, and error handling shared across all model implementations.
  • src/common/resources/mod.rs — Abstracts model weight loading from remote (HuggingFace) and local sources; critical for reproducible model initialization.
  • src/models/bert/bert_model.rs — Reference implementation of the base BERT architecture; patterns here replicate across all other transformer variants…

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/guillaume-be/rust-bert.git
cd rust-bert
cargo build --release --features download-libtorch
cargo run --example sentiment_analysis

Daily commands:

For a specific example: cargo run --example question_answering --release. For benchmarks: cargo bench --bench squad_benchmark. For ONNX backend: `cargo run --example onnx-question-answering --features onnx --release…

…shortened for this brief.

Key cautions & unknowns

  • Slowing — last commit 4mo ago
  • Concentrated ownership — top contributor handles 58% of recent commits
    1. libtorch binary bloat: default download-libtorch feature pulls ~1-2GB binary; omit for existing installations or use ONNX path. 2. GPU support implicit: CUDA/cuDNN detection happens in tch-rs; CPU-only…
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Forkable" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Forkable
[![RepoPilot: Forkable](https://repopilot.app/api/badge/guillaume-be/rust-bert?axis=fork)](https://repopilot.app/r/guillaume-be/rust-bert)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/guillaume-be/rust-bert on X, Slack, or LinkedIn.

Ask AI about guillaume-be/rust-bert

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/guillaume-be/rust-bert"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>