Files
Jani Monoses 461e8c1685 ModernBERT model (#2713)
* layer_norm_no_bias

* Modernbert model.

* Format + cleanup error.

---------

Co-authored-by: laurent <laurent.mazare@gmail.com>
2025-01-13 08:39:27 +01:00
..
2025-01-13 08:39:27 +01:00
2025-01-13 08:39:27 +01:00

candle-modernbert

ModernBERT is a bidirectional encoder-only language model. In this example it is used for the fill-mask task:

Usage

cargo run --example modernbert --release  -- --model modern-bert-large --prompt 'The capital of France is [MASK].'
Sentence: 1 : The capital of France is Paris.