OpenPrompt
OpenPrompt copied to clipboard
How to use AutoModel and AutoTokenizer with OpenPrompt?
Dear All Thank you for this amazing library. Many clinical models in Huggingface like PubMedBert or ClinicalBert use different tokenizers and models that are accessible via AutoModel and AutoTokenizer. For example, I work with PubMedbert as below:
-
pubmed_bert_model = AutoModel.from_pretrained('microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext')
-
pubmed_bert_tokenizer = AutoTokenizer.from_pretrained('microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext')
Is there some way to use them in load_plm function? I read the #124 issue but I don't understand it well. Thank you!
Hi did you find a way to use them?
Hi did you find a way to use them?
Hi. Please refer to issue #199. Of course, I asked another question that was sent in that issue. Please inform me if you find a way