Instructions to use smangla/ModernBERT-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smangla/ModernBERT-base-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="smangla/ModernBERT-base-squad2", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("smangla/ModernBERT-base-squad2", trust_remote_code=True) model = AutoModel.from_pretrained("smangla/ModernBERT-base-squad2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 362 Bytes
bf2def1 f80f767 bf2def1 536bee4 b9fc328 f993566 536bee4 bf2def1 5be44b2 bf2def1 f80f767 bf2def1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"_name_or_path": "./modernbert-finetuned-squad2",
"architectures": [
"CustomQAModel"
],
"auto_map": {
"AutoConfig": "model.CustomQAModelConfig",
"AutoModel": "model.CustomQAModel"
},
"base_model_name_or_path": "answerdotai/ModernBERT-base",
"model_type": "modernbert",
"torch_dtype": "float32",
"transformers_version": "4.48.0"
}
|