Correct pipeline tag and usage example (#2)
Browse files- Correct pipeline tag and usage example (b1d3b4dbdba29f22160be2f5f609bb8064a62682)
Co-authored-by: Niels Rogge <[email protected]>
README.md
CHANGED
|
@@ -5,12 +5,12 @@ language:
|
|
| 5 |
- de
|
| 6 |
library_name: transformers
|
| 7 |
license: other
|
| 8 |
-
tags:
|
| 9 |
-
- fill-mask
|
| 10 |
-
- masked-lm
|
| 11 |
-
- long-context
|
| 12 |
-
- modernbert
|
| 13 |
pipeline_tag: feature-extraction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# ModernGBERT 1B
|
|
@@ -21,9 +21,9 @@ Find more details in our [preprint](https://arxiv.org/abs/2505.13136)!
|
|
| 21 |
### Usage
|
| 22 |
|
| 23 |
```python
|
| 24 |
-
from transformers import
|
| 25 |
|
| 26 |
-
model =
|
| 27 |
|
| 28 |
tokenizer = AutoTokenizer.from_pretrained("LSX-UniWue/ModernGBERT_1B")
|
| 29 |
```
|
|
|
|
| 5 |
- de
|
| 6 |
library_name: transformers
|
| 7 |
license: other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
pipeline_tag: feature-extraction
|
| 9 |
+
tags:
|
| 10 |
+
- fill-mask
|
| 11 |
+
- masked-lm
|
| 12 |
+
- long-context
|
| 13 |
+
- modernbert
|
| 14 |
---
|
| 15 |
|
| 16 |
# ModernGBERT 1B
|
|
|
|
| 21 |
### Usage
|
| 22 |
|
| 23 |
```python
|
| 24 |
+
from transformers import AutoModel, AutoTokenizer
|
| 25 |
|
| 26 |
+
model = AutoModel.from_pretrained("LSX-UniWue/ModernGBERT_1B")
|
| 27 |
|
| 28 |
tokenizer = AutoTokenizer.from_pretrained("LSX-UniWue/ModernGBERT_1B")
|
| 29 |
```
|