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