Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,10 @@ tags:
|
|
| 8 |
model-index:
|
| 9 |
- name: AmsterdamDocClassificationGEITje200T2Epochs
|
| 10 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -15,24 +19,24 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# AmsterdamDocClassificationGEITje200T2Epochs
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
## Model description
|
| 23 |
|
| 24 |
-
More information needed
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
More information needed
|
| 29 |
|
| 30 |
## Training and evaluation data
|
| 31 |
|
| 32 |
-
|
|
|
|
| 33 |
|
| 34 |
## Training procedure
|
| 35 |
|
|
|
|
|
|
|
| 36 |
### Training hyperparameters
|
| 37 |
|
| 38 |
The following hyperparameters were used during training:
|
|
@@ -62,10 +66,15 @@ The following hyperparameters were used during training:
|
|
| 62 |
| 0.4699 | 1.7903 | 1107 | 0.5796 |
|
| 63 |
| 0.5434 | 1.9891 | 1230 | 0.5796 |
|
| 64 |
|
| 65 |
-
|
| 66 |
### Framework versions
|
| 67 |
|
| 68 |
- Transformers 4.41.1
|
| 69 |
- Pytorch 2.3.0+cu121
|
| 70 |
- Datasets 2.19.1
|
| 71 |
- Tokenizers 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: AmsterdamDocClassificationGEITje200T2Epochs
|
| 10 |
results: []
|
| 11 |
+
datasets:
|
| 12 |
+
- FemkeBakker/AmsterdamBalancedFirst200Tokens
|
| 13 |
+
language:
|
| 14 |
+
- nl
|
| 15 |
---
|
| 16 |
|
| 17 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 19 |
|
| 20 |
# AmsterdamDocClassificationGEITje200T2Epochs
|
| 21 |
|
| 22 |
+
As part of the Assessing Large Language Models for Document Classification project by the Municipality of Amsterdam, we fine-tune Mistral, Llama, and GEITje for document classification.
|
| 23 |
+
The fine-tuning is performed using the [AmsterdamBalancedFirst200Tokens](https://huggingface.co/datasets/FemkeBakker/AmsterdamBalancedFirst200Tokens) dataset, which consists of documents truncated to the first 200 tokens.
|
| 24 |
+
In our research, we evaluate the fine-tuning of these LLMs across one, two, and three epochs.
|
| 25 |
+
This model is a fine-tuned version of [Rijgersberg/GEITje-7B-chat-v2](https://huggingface.co/Rijgersberg/GEITje-7B-chat-v2) and has been fine-tuned for two epochs.
|
|
|
|
| 26 |
|
|
|
|
| 27 |
|
| 28 |
+
It achieves the following results on the evaluation set:
|
| 29 |
+
- Loss: 0.5796
|
|
|
|
| 30 |
|
| 31 |
## Training and evaluation data
|
| 32 |
|
| 33 |
+
- The training data consists of 9900 documents and their labels formatted into conversations.
|
| 34 |
+
- The evaluation data consists of 1100 documents and their labels formatted into conversations.
|
| 35 |
|
| 36 |
## Training procedure
|
| 37 |
|
| 38 |
+
See the [GitHub](https://github.com/Amsterdam-Internships/document-classification-using-large-language-models) for specifics about the training and the code.
|
| 39 |
+
|
| 40 |
### Training hyperparameters
|
| 41 |
|
| 42 |
The following hyperparameters were used during training:
|
|
|
|
| 66 |
| 0.4699 | 1.7903 | 1107 | 0.5796 |
|
| 67 |
| 0.5434 | 1.9891 | 1230 | 0.5796 |
|
| 68 |
|
| 69 |
+
Training time: it took in total 1 hour and 36 minutes to fine-tune the model for two epochs.
|
| 70 |
### Framework versions
|
| 71 |
|
| 72 |
- Transformers 4.41.1
|
| 73 |
- Pytorch 2.3.0+cu121
|
| 74 |
- Datasets 2.19.1
|
| 75 |
- Tokenizers 0.19.1
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
### Acknowledgements
|
| 80 |
+
This model was trained as part of [insert thesis info] in collaboration with Amsterdam Intelligence for the City of Amsterdam.
|