Skip to main content

Module bert

Module bert 

Source
Expand description

BERT backend: HuggingFace Hub model load, tokenize, forward pass, masked mean pooling, and L2 normalization.

Structs§

BertBackend
BERT-based embedding backend backed by candle_transformers::BertModel.