Fix loading: use AutoModelForMaskedLM with trust_remote_code=True
Browse files
README.md
CHANGED
|
@@ -11,11 +11,11 @@ This is the DNA component of a jointly trained NT-ESM2 model pair for DNA-protei
|
|
| 11 |
## Usage
|
| 12 |
|
| 13 |
```python
|
| 14 |
-
from transformers import
|
| 15 |
|
| 16 |
-
# Load model and tokenizer
|
| 17 |
-
model =
|
| 18 |
-
tokenizer = AutoTokenizer.from_pretrained("vsubasri/joint-nt-esm2-transcript-coding-dna")
|
| 19 |
|
| 20 |
# Example usage
|
| 21 |
dna_sequence = "ATCGATCGATCG"
|
|
|
|
| 11 |
## Usage
|
| 12 |
|
| 13 |
```python
|
| 14 |
+
from transformers import AutoModelForMaskedLM, AutoTokenizer
|
| 15 |
|
| 16 |
+
# Load model and tokenizer - requires trust_remote_code
|
| 17 |
+
model = AutoModelForMaskedLM.from_pretrained("vsubasri/joint-nt-esm2-transcript-coding-dna", trust_remote_code=True)
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("vsubasri/joint-nt-esm2-transcript-coding-dna", trust_remote_code=True)
|
| 19 |
|
| 20 |
# Example usage
|
| 21 |
dna_sequence = "ATCGATCGATCG"
|