Instructions to use EuroBERT/EuroBERT-610m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EuroBERT/EuroBERT-610m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="EuroBERT/EuroBERT-610m", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("EuroBERT/EuroBERT-610m", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("EuroBERT/EuroBERT-610m", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
fix: Set AutoModelForQuestionAnswering class path in config
#13
by saattrupdan - opened
- config.json +2 -1
config.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
| 8 |
"AutoModelForPreTraining": "modeling_eurobert.EuroBertPreTrainedModel",
|
| 9 |
"AutoModelForMaskedLM": "modeling_eurobert.EuroBertForMaskedLM",
|
| 10 |
"AutoModelForSequenceClassification": "modeling_eurobert.EuroBertForSequenceClassification",
|
| 11 |
-
"AutoModelForTokenClassification": "modeling_eurobert.EuroBertForTokenClassification"
|
|
|
|
| 12 |
},
|
| 13 |
"attention_bias": false,
|
| 14 |
"attention_dropout": 0.0,
|
|
|
|
| 8 |
"AutoModelForPreTraining": "modeling_eurobert.EuroBertPreTrainedModel",
|
| 9 |
"AutoModelForMaskedLM": "modeling_eurobert.EuroBertForMaskedLM",
|
| 10 |
"AutoModelForSequenceClassification": "modeling_eurobert.EuroBertForSequenceClassification",
|
| 11 |
+
"AutoModelForTokenClassification": "modeling_eurobert.EuroBertForTokenClassification",
|
| 12 |
+
"AutoModelForQuestionAnswering": "modeling_eurobert.EuroBertForQuestionAnswering"
|
| 13 |
},
|
| 14 |
"attention_bias": false,
|
| 15 |
"attention_dropout": 0.0,
|