Instructions to use EuroBERT/EuroBERT-210m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EuroBERT/EuroBERT-210m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="EuroBERT/EuroBERT-210m", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("EuroBERT/EuroBERT-210m", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("EuroBERT/EuroBERT-210m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Special Tokens
#20
by bwallima - opened
I have a use case in which I fine-tune a distilbert model for classification. I'm using text data along with structured data, in both text and number formats. To indicate the separation of these features to the model, I use the special token [SEP]. How would the same task be accomplished with EuroBERT?
bwallima changed discussion status to closed