thunlp / OpenPrompt

An Open-Source Framework for Prompt-Learning.
https://thunlp.github.io/OpenPrompt/
Apache License 2.0
4.38k stars 455 forks source link

How to use AutoModel and AutoTokenizer with OpenPrompt? #232

Open HodaMemar opened 1 year ago

HodaMemar commented 1 year ago

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:

Is there some way to use them in _loadplm function? I read the #124 issue but I don't understand it well. Thank you!

doussa2504 commented 1 year ago

Hi did you find a way to use them?

HodaMemar commented 1 year ago

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