GSahana commited on
Commit
3e1af2a
1 Parent(s): 6305185

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -14
README.md CHANGED
@@ -12,38 +12,41 @@ probably proofread and complete it, then remove this comment. -->
12
 
13
  # GSahana/bert-finetuned-squad
14
 
15
- This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
  - Train Loss: 1.2736
18
- - Epoch: 0
19
 
20
  ## Model description
21
 
22
- More information needed
 
 
 
 
 
 
 
 
 
 
23
 
24
- ## Intended uses & limitations
25
 
26
- More information needed
27
 
28
- ## Training and evaluation data
29
 
30
- More information needed
31
 
32
- ## Training procedure
33
 
34
  ### Training hyperparameters
 
 
 
35
 
36
- The following hyperparameters were used during training:
37
- - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 16635, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
38
- - training_precision: mixed_float16
39
 
40
  ### Training results
41
 
42
  | Train Loss | Epoch |
43
  |:----------:|:-----:|
44
- | 1.2736 | 0 |
45
-
46
-
47
  ### Framework versions
48
 
49
  - Transformers 4.29.2
 
12
 
13
  # GSahana/bert-finetuned-squad
14
 
15
+ This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/bert-base-cased).
16
  It achieves the following results on the evaluation set:
17
  - Train Loss: 1.2736
18
+ - Epoch: 3
19
 
20
  ## Model description
21
 
22
+ BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way
23
+ (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
24
+ More precisely, it was pretrained with two objectives:
25
+ Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
26
+ Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to predict if the two sentences were following each other or not.
27
+ This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the BERT model as inputs.
28
+
29
+
30
+
31
+ ## Evaluation results
32
+ {'exact_match': 81.18259224219489, 'f1': 88.67381321905516}
33
 
 
34
 
 
35
 
 
36
 
 
37
 
 
38
 
39
  ### Training hyperparameters
40
+ learning_rate: 2e-5,
41
+ num_train_epochs = 3,
42
+ batch_size=16
43
 
 
 
 
44
 
45
  ### Training results
46
 
47
  | Train Loss | Epoch |
48
  |:----------:|:-----:|
49
+ | 1.2665 | 3 |
 
 
50
  ### Framework versions
51
 
52
  - Transformers 4.29.2