Instructions to use srcocotero/bert-large-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srcocotero/bert-large-qa 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="srcocotero/bert-large-qa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("srcocotero/bert-large-qa") model = AutoModelForQuestionAnswering.from_pretrained("srcocotero/bert-large-qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
f6b2ead
1
Parent(s): 7c99289
update model card README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
# bert-large-qa
|
| 16 |
|
| 17 |
-
This model is a fine-tuned version of [bert-
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
@@ -39,7 +39,7 @@ The following hyperparameters were used during training:
|
|
| 39 |
- seed: 42
|
| 40 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 41 |
- lr_scheduler_type: linear
|
| 42 |
-
- num_epochs:
|
| 43 |
|
| 44 |
### Training results
|
| 45 |
|
|
|
|
| 14 |
|
| 15 |
# bert-large-qa
|
| 16 |
|
| 17 |
+
This model is a fine-tuned version of [bert-large-uncased](https://huggingface.co/bert-large-uncased) on the squad dataset.
|
| 18 |
|
| 19 |
## Model description
|
| 20 |
|
|
|
|
| 39 |
- seed: 42
|
| 40 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 41 |
- lr_scheduler_type: linear
|
| 42 |
+
- num_epochs: 1.0
|
| 43 |
|
| 44 |
### Training results
|
| 45 |
|