mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 04:00:28 +00:00
ModernBERT model (#2713)
* layer_norm_no_bias * Modernbert model. * Format + cleanup error. --------- Co-authored-by: laurent <laurent.mazare@gmail.com>
This commit is contained in:
12
candle-examples/examples/modernbert/README.md
Normal file
12
candle-examples/examples/modernbert/README.md
Normal file
@ -0,0 +1,12 @@
|
||||
# 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.
|
||||
```
|
Reference in New Issue
Block a user