Instructions to use sashakttripathi/transformers-question-answer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sashakttripathi/transformers-question-answer 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="sashakttripathi/transformers-question-answer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("sashakttripathi/transformers-question-answer") model = AutoModelForQuestionAnswering.from_pretrained("sashakttripathi/transformers-question-answer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
36e7c2c
1
Parent(s): f0d3665
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,17 +21,8 @@ It achieves the following results on the evaluation set:
|
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
## Intended uses & limitations
|
| 27 |
-
|
| 28 |
-
More information needed
|
| 29 |
-
|
| 30 |
-
## Training and evaluation data
|
| 31 |
-
|
| 32 |
-
More information needed
|
| 33 |
-
|
| 34 |
-
## Training procedure
|
| 35 |
|
| 36 |
### Training hyperparameters
|
| 37 |
|
|
|
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
| 24 |
+
This is a sample transformer trained for question-answer use case. I have used a pre-trained BERT model and then finetuned it using the hugging-face transformer library.
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
### Training hyperparameters
|
| 28 |
|