Instructions to use philschmid/distilbert-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philschmid/distilbert-onnx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="philschmid/distilbert-onnx")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("philschmid/distilbert-onnx") model = AutoModelForQuestionAnswering.from_pretrained("philschmid/distilbert-onnx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
0fea18b | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:6fdcb418daa489b890ce39df16a5cf6755e4026845ac09e1c35bfcd6a2c1f5d4
size 260805578
|