Instructions to use RajeevanL/DistilBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RajeevanL/DistilBert 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="RajeevanL/DistilBert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("RajeevanL/DistilBert") model = AutoModelForQuestionAnswering.from_pretrained("RajeevanL/DistilBert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload tokenizer
Verified signaturef085cc7 -
Upload DistilBertForQuestionAnswering
Verified signature0d75fb5 -
Upload DistilBertForQuestionAnswering
Verified signature4826842
-
Upload DistilBertForQuestionAnswering
Verified signature64e7c6f -
Upload tokenizer
Verified signature17bb046 -
Upload DistilBertForQuestionAnswering
Verified signatureb6fd533 -
initial commit
Verified signature055ed65