Instructions to use mlcorelib/deberta-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlcorelib/deberta-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="mlcorelib/deberta-base-uncased")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("mlcorelib/deberta-base-uncased") model = AutoModelForMaskedLM.from_pretrained("mlcorelib/deberta-base-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Inconsistency between model name and the model architecture from config.json
Hello,
I was recently browsing roberta models on HuggingFace and I came across this model: "mlcorelib/deberta-base-uncased". I noticed a discrepancy that I'd like to bring to your attention.
According to the model's name, it's supposed to be a DeBERTa model. However, in the config.json file, the model_type and architecture are labeled as 'BERT', not 'DeBERTa'. I also looked at the architecture as represented in the code, and it does indeed look like it’s a BERT model.
Here are the pertinent details:
Model name: mlcorelib/deberta-base-uncased
model_type in config.json: BERT
architectures in config.json: BERTForMaskedLM
This discrepancy could potentially lead to confusion when users are trying to understand the underlying architecture of this model.
I wanted to bring this to your attention in case it was an oversight. If it's not an oversight and there's a specific reason for this labeling, I'd appreciate it if you could clarify.
Thank you for your time and the work you've put into developing this model. I look forward to your response.