Update README to include transformers version requirement
Browse files
README.md
CHANGED
|
@@ -122,6 +122,12 @@ model-index:
|
|
| 122 |
ModChemBERT is a ModernBERT-based chemical language model (CLM), trained on SMILES strings for masked language modeling (MLM) and downstream molecular property prediction (classification & regression).
|
| 123 |
|
| 124 |
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
### Load Model
|
| 126 |
```python
|
| 127 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
|
|
|
| 122 |
ModChemBERT is a ModernBERT-based chemical language model (CLM), trained on SMILES strings for masked language modeling (MLM) and downstream molecular property prediction (classification & regression).
|
| 123 |
|
| 124 |
## Usage
|
| 125 |
+
Install the `transformers` library starting from v4.56.1:
|
| 126 |
+
|
| 127 |
+
```bash
|
| 128 |
+
pip install -U transformers>=4.56.1
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
### Load Model
|
| 132 |
```python
|
| 133 |
from transformers import AutoModelForMaskedLM, AutoTokenizer
|