File size: 1,933 Bytes
7960a45
 
 
 
 
 
 
3c450c2
 
 
 
7960a45
 
 
 
3c450c2
7960a45
 
 
 
 
3c450c2
 
 
7960a45
 
 
3c450c2
7960a45
 
 
3c450c2
7960a45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3c450c2
7960a45
 
 
 
 
 
29d2e86
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
license: apache-2.0
tags:
- generated_from_trainer
model-index:
- name: bert-base-uncased-Masked_Language_Modeling-Reddit_Comments
  results: []
language:
- en
metrics:
- perplexity
---

# bert-base-uncased-Masked_Language_Modeling-Reddit_Comments

This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased).
It achieves the following results on the evaluation set:
- Loss: 2.5415

## Model description

This is a masked language modeling project.

For more information on how it was created, check out the following link: https://github.com/DunnBC22/NLP_Projects/blob/main/Masked%20Language%20Model/Datasets%20for%20NLP%20-%20Reddit%20Comments/Datasets_for_NLP_MLM.ipynb

## Intended uses & limitations

This model is intended to demonstrate my ability to solve a complex problem using technology.

## Training and evaluation data

Dataset Source: https://www.kaggle.com/datasets/toygarr/datasets-for-natural-language-processing

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3

### Training results

| Training Loss | Epoch | Step  | Validation Loss |
|:-------------:|:-----:|:-----:|:---------------:|
| 2.8757        | 1.0   | 10812 | 2.6382          |
| 2.6818        | 2.0   | 21624 | 2.5699          |
| 2.6103        | 3.0   | 32436 | 2.5402          |

Perplexity: 12.70

### Framework versions

- Transformers 4.27.0
- Pytorch 1.13.1+cu116
- Datasets 2.10.1
- Tokenizers 0.13.2


## License Notice
This model is a fine-tuned derivative of a pretrained model.
Users must comply with the original model license.


## Dataset Notice
This model was fine-tuned on third-party datasets which may have separate licenses or usage restrictions.