Instructions to use umarzein/saved-distilbert-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use umarzein/saved-distilbert-squad 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="umarzein/saved-distilbert-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("umarzein/saved-distilbert-squad") model = AutoModelForQuestionAnswering.from_pretrained("umarzein/saved-distilbert-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (a92f446f544ddcae3e0eb235b242132ceb8b7f39) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>e0f2b4c
-
Upload tokenizer
701fc81 -
Upload DistilBertForQuestionAnswering
90a9a1c -
initial commit
85e2d77