Update README.md
Browse files
README.md
CHANGED
|
@@ -68,10 +68,10 @@ It builds on the work done in [SciRepEval: A Multi-Format Benchmark for Scientif
|
|
| 68 |
from transformers import AutoTokenizer, AutoModel
|
| 69 |
|
| 70 |
# load model and tokenizer
|
| 71 |
-
tokenizer = AutoTokenizer.from_pretrained('allenai/
|
| 72 |
|
| 73 |
#load base model
|
| 74 |
-
model = AutoModel.from_pretrained('allenai/
|
| 75 |
|
| 76 |
#load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
|
| 77 |
model.load_adapter("allenai/specter2_proximity", source="hf", load_as="proximity", set_active=True)
|
|
|
|
| 68 |
from transformers import AutoTokenizer, AutoModel
|
| 69 |
|
| 70 |
# load model and tokenizer
|
| 71 |
+
tokenizer = AutoTokenizer.from_pretrained('allenai/specter2_base')
|
| 72 |
|
| 73 |
#load base model
|
| 74 |
+
model = AutoModel.from_pretrained('allenai/specter2_base')
|
| 75 |
|
| 76 |
#load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
|
| 77 |
model.load_adapter("allenai/specter2_proximity", source="hf", load_as="proximity", set_active=True)
|