Instructions to use kasohrab/electra-distilled-squadv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kasohrab/electra-distilled-squadv2 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="kasohrab/electra-distilled-squadv2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("kasohrab/electra-distilled-squadv2") model = AutoModelForQuestionAnswering.from_pretrained("kasohrab/electra-distilled-squadv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K
This model has 1 file scanned as unsafe.
- 1714006907.533991
- 1714007004.458195
- 1714007123.0655115
- 1714007706.9180722
- 1714007874.0225153
- 1714007994.3851368
- 1714011006.6806612
- 1714011229.5143385
- 1714011861.966598
- 1714012923.067573
- 1714017504.8640153
- 4.17 kB xet
- 4.17 kB xet
- 4.14 kB xet
- 4.14 kB xet
- 4.14 kB xet
- 4.14 kB xet
- 4.14 kB xet
- 4.3 kB xet
- 88 Bytes xet
- 4.3 kB xet
- 4.3 kB xet
- 5.23 kB xet