Mention that users should use transformers v4.48.0

#50
by tomaarsen HF staff - opened
Files changed (1) hide show
  1. README.md +2 -2
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. Until the next `transformers` release, doing so requires installing transformers from main:
48
 
49
  ```sh
50
- pip install git+https://github.com/huggingface/transformers.git
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.