Instructions to use csarron/mobilebert-uncased-squad-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use csarron/mobilebert-uncased-squad-v2 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="csarron/mobilebert-uncased-squad-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("csarron/mobilebert-uncased-squad-v2") model = AutoModelForQuestionAnswering.from_pretrained("csarron/mobilebert-uncased-squad-v2", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model (#2)
- Adding ONNX file of this model (72fb52439acf7b8008b6dfbebbcfb429d9d6aad4) Co-authored-by: Charles Tsai <charlestsai@users.noreply.huggingface.co>6d49c30
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (10bb83f0bf2fe6418e76d5659b0a16bd07889e73) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>4ae5a80
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/csarron/mobilebert-uncased-squad-v2/README.md153e476
-
Update special_tokens_map.json
74bc22f -
Update tokenizer_config.json
4f1adbf -
Update training_args.bin
8ade94a -
Update vocab.txt
1d0e623 -
Update pytorch_model.bin
6461cbc -
Update config.json
e364535 -
initial commit
34aed05