mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +00:00

* layer_norm_no_bias * Modernbert model. * Format + cleanup error. --------- Co-authored-by: laurent <laurent.mazare@gmail.com>
13 lines
331 B
Markdown
13 lines
331 B
Markdown
# candle-modernbert
|
|
|
|
ModernBERT is a bidirectional encoder-only language model. In this example it is used for the fill-mask task:
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
cargo run --example modernbert --release -- --model modern-bert-large --prompt 'The capital of France is [MASK].'
|
|
```
|
|
```markdown
|
|
Sentence: 1 : The capital of France is Paris.
|
|
```
|