Instructions to use princeton-nlp/CoFi-SQuAD-s93 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use princeton-nlp/CoFi-SQuAD-s93 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="princeton-nlp/CoFi-SQuAD-s93")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("princeton-nlp/CoFi-SQuAD-s93") model = AutoModelForQuestionAnswering.from_pretrained("princeton-nlp/CoFi-SQuAD-s93", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
12b9561
1
Parent(s): 2d91504
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
This is a model checkpoint for "[Structured Pruning Learns Compact and Accurate Models](https://arxiv.org/pdf/2204.00408.pdf)". The model is pruned from `bert-base-uncased` to a 93% sparsity on dataset SQuAD 1.1. Please go to [our repository](https://github.com/princeton-nlp/CoFiPruning) for more details on how to use the model for inference. Note that you would have to use the model class specified in our repository to load the model.
|