Adapters
English
bert
aps6992 commited on
Commit
42a7f9b
·
1 Parent(s): 4744300

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -102,7 +102,7 @@ tokenizer = AutoTokenizer.from_pretrained('allenai/specter2')
102
  model = AutoModel.from_pretrained('allenai/specter2')
103
 
104
  #load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
105
- model.load_adapter("allenai/specter2_classification", source="hf", load_as="specter2_classification", set_active=True)
106
 
107
  papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
108
  {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
 
102
  model = AutoModel.from_pretrained('allenai/specter2')
103
 
104
  #load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
105
+ model.load_adapter("allenai/specter2_classification", source="hf", load_as="classification", set_active=True)
106
 
107
  papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
108
  {'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]