Instructions to use arsalanu/bert-base-uncased-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arsalanu/bert-base-uncased-squad 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="arsalanu/bert-base-uncased-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("arsalanu/bert-base-uncased-squad") model = AutoModelForQuestionAnswering.from_pretrained("arsalanu/bert-base-uncased-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
CHANGED
|
@@ -32,16 +32,16 @@ More information needed
|
|
| 32 |
|
| 33 |
The following hyperparameters were used during training:
|
| 34 |
- learning_rate: 9e-05
|
| 35 |
-
- train_batch_size:
|
| 36 |
- eval_batch_size: 8
|
| 37 |
- seed: 42
|
| 38 |
- distributed_type: IPU
|
| 39 |
- gradient_accumulation_steps: 32
|
| 40 |
-
- total_train_batch_size:
|
| 41 |
- total_eval_batch_size: 512
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: cosine
|
| 44 |
-
- lr_scheduler_warmup_ratio: 0.
|
| 45 |
- num_epochs: 3
|
| 46 |
- training precision: Mixed Precision
|
| 47 |
|
|
|
|
| 32 |
|
| 33 |
The following hyperparameters were used during training:
|
| 34 |
- learning_rate: 9e-05
|
| 35 |
+
- train_batch_size: 2
|
| 36 |
- eval_batch_size: 8
|
| 37 |
- seed: 42
|
| 38 |
- distributed_type: IPU
|
| 39 |
- gradient_accumulation_steps: 32
|
| 40 |
+
- total_train_batch_size: 2048
|
| 41 |
- total_eval_batch_size: 512
|
| 42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: cosine
|
| 44 |
+
- lr_scheduler_warmup_ratio: 0.25
|
| 45 |
- num_epochs: 3
|
| 46 |
- training precision: Mixed Precision
|
| 47 |
|