Mention that users should use transformers v4.48.0
#50
by
tomaarsen
HF staff
- opened
README.md
CHANGED
@@ -44,10 +44,10 @@ For more information about ModernBERT, we recommend our [release blog post](http
|
|
44 |
|
45 |
## Usage
|
46 |
|
47 |
-
You can use these models directly with the `transformers` library
|
48 |
|
49 |
```sh
|
50 |
-
pip install
|
51 |
```
|
52 |
|
53 |
Since ModernBERT is a Masked Language Model (MLM), you can use the `fill-mask` pipeline or load it via `AutoModelForMaskedLM`. To use ModernBERT for downstream tasks like classification, retrieval, or QA, fine-tune it following standard BERT fine-tuning recipes.
|
|
|
44 |
|
45 |
## Usage
|
46 |
|
47 |
+
You can use these models directly with the `transformers` library starting from v4.48.0:
|
48 |
|
49 |
```sh
|
50 |
+
pip install -U transformers>=4.48.0
|
51 |
```
|
52 |
|
53 |
Since ModernBERT is a Masked Language Model (MLM), you can use the `fill-mask` pipeline or load it via `AutoModelForMaskedLM`. To use ModernBERT for downstream tasks like classification, retrieval, or QA, fine-tune it following standard BERT fine-tuning recipes.
|