Skip to content
R

Rust Bert

Rust native ready-to-use NLP pipelines and transformer-based models

by guillaume-beFree

#971in AI
0In stores

Description

rust-bert is a Rust library of state-of-the-art natural language processing models and ready-to-use pipelines. It is a port of Hugging Face'…

Highlights

  • Transformer models such as BERT, DistilBERT and GPT-2 in Rust
  • Ready-to-use NLP pipelines
  • Translation, summarisation, NER and question answering
  • GPU inference and multi-threaded tokenisation
  • tch-rs or ONNX Runtime backends

Ratings & Reviews

No ratings yet

Be the first to rate Rust Bert.

People also visit

R

Rig

Build modular and scalable LLM Applications in Rust

AI
Launch
T

Transformers.js

State-of-the-art Machine Learning for the web

AI
Launch
T

transformers

Hugging Face Transformers for loading Hub models, running pipeline inference

AI Skills
Get
D

Deepseek-ocr.rs

Rust multi‑backend OCR/VLM engine (DeepSeek‑OCR-1/2, PaddleOCR‑VL, DotsOCR)…

AI
Launch
P

Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models…

AI
Launch
D

domain-ml

Building ML/AI apps in Rust

AI Skills
Get

Rust Bert FAQ

What is rust-bert?

A Rust-native library of NLP models and pipelines, ported from Hugging Face's Transformers library.

Which tasks does it support?

Translation, summarisation, multi-turn dialogue, zero-shot classification, sentiment analysis, named entity recognition, part-of-speech tagging, question answering, text generation, masked language modelling, sentence embeddings and keyword extraction.

Can it use my GPU?

Yes. The README says it supports GPU inference.

How do I install it?

The README gives manual and automatic installation options, and a section for verifying the installation.

Which backends does it use?

tch-rs or ONNX Runtime bindings for the models, with rust-tokenizers for pre-processing.

What are the best Rust Bert alternatives?

Popular alternatives to Rust Bert include Rig, Transformers.js and Deepseek-ocr.rs. See all Rust Bert alternatives

Developer Stuff

Badges