ahmed792002 commited on
Commit
dd99513
·
verified ·
1 Parent(s): acf76ba

ahmed792002/Finetuning_T5_HealthCare_Chatbot

Browse files
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
- base_model: t5-base
5
  tags:
6
  - generated_from_trainer
7
  model-index:
@@ -14,9 +14,9 @@ should probably proofread and complete it, then remove this comment. -->
14
 
15
  # Finetuning_T5_HealthCare_Chatbot
16
 
17
- This model is a fine-tuned version of [t5-base](https://huggingface.co/t5-base) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
- - Loss: 0.2150
20
 
21
  ## Model description
22
 
@@ -41,17 +41,22 @@ The following hyperparameters were used during training:
41
  - seed: 42
42
  - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
  - lr_scheduler_type: linear
44
- - num_epochs: 5
45
 
46
  ### Training results
47
 
48
  | Training Loss | Epoch | Step | Validation Loss |
49
  |:-------------:|:-----:|:-----:|:---------------:|
50
- | 0.1708 | 1.0 | 5660 | 0.2271 |
51
- | 0.1558 | 2.0 | 11320 | 0.2192 |
52
- | 0.1454 | 3.0 | 16980 | 0.2166 |
53
- | 0.1445 | 4.0 | 22640 | 0.2154 |
54
- | 0.1456 | 5.0 | 28300 | 0.2150 |
 
 
 
 
 
55
 
56
 
57
  ### Framework versions
 
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
+ base_model: t5-small
5
  tags:
6
  - generated_from_trainer
7
  model-index:
 
14
 
15
  # Finetuning_T5_HealthCare_Chatbot
16
 
17
+ This model is a fine-tuned version of [t5-small](https://huggingface.co/t5-small) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 0.1304
20
 
21
  ## Model description
22
 
 
41
  - seed: 42
42
  - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
  - lr_scheduler_type: linear
44
+ - num_epochs: 10
45
 
46
  ### Training results
47
 
48
  | Training Loss | Epoch | Step | Validation Loss |
49
  |:-------------:|:-----:|:-----:|:---------------:|
50
+ | 0.1198 | 1.0 | 5660 | 0.1464 |
51
+ | 0.1098 | 2.0 | 11320 | 0.1402 |
52
+ | 0.1032 | 3.0 | 16980 | 0.1373 |
53
+ | 0.1016 | 4.0 | 22640 | 0.1349 |
54
+ | 0.1019 | 5.0 | 28300 | 0.1331 |
55
+ | 0.0972 | 6.0 | 33960 | 0.1321 |
56
+ | 0.0964 | 7.0 | 39620 | 0.1313 |
57
+ | 0.0947 | 8.0 | 45280 | 0.1308 |
58
+ | 0.0959 | 9.0 | 50940 | 0.1305 |
59
+ | 0.0933 | 10.0 | 56600 | 0.1304 |
60
 
61
 
62
  ### Framework versions
config.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "_name_or_path": "t5-base",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
6
  "classifier_dropout": 0.0,
7
- "d_ff": 3072,
8
  "d_kv": 64,
9
- "d_model": 768,
10
  "decoder_start_token_id": 0,
11
  "dense_act_fn": "relu",
12
  "dropout_rate": 0.1,
@@ -18,9 +18,9 @@
18
  "layer_norm_epsilon": 1e-06,
19
  "model_type": "t5",
20
  "n_positions": 512,
21
- "num_decoder_layers": 12,
22
- "num_heads": 12,
23
- "num_layers": 12,
24
  "output_past": true,
25
  "pad_token_id": 0,
26
  "relative_attention_max_distance": 128,
 
1
  {
2
+ "_name_or_path": "t5-small",
3
  "architectures": [
4
  "T5ForConditionalGeneration"
5
  ],
6
  "classifier_dropout": 0.0,
7
+ "d_ff": 2048,
8
  "d_kv": 64,
9
+ "d_model": 512,
10
  "decoder_start_token_id": 0,
11
  "dense_act_fn": "relu",
12
  "dropout_rate": 0.1,
 
18
  "layer_norm_epsilon": 1e-06,
19
  "model_type": "t5",
20
  "n_positions": 512,
21
+ "num_decoder_layers": 6,
22
+ "num_heads": 8,
23
+ "num_layers": 6,
24
  "output_past": true,
25
  "pad_token_id": 0,
26
  "relative_attention_max_distance": 128,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce93101ebcb8c414862489f6553f29d1d2be9aca5a18d5bfec819004f6d15e56
3
- size 891644712
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88dab67523a8bf081c9f424202f6e36f0a5aed56bded2f63b681d8f8fa9597b4
3
+ size 242041896
runs/Dec17_12-28-34_9b798e091f23/events.out.tfevents.1734438516.9b798e091f23.23.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66238bdd22308cd246f0e390051ad1d357309b7b0fa03152b8d0383603868c08
3
+ size 33219
tokenizer_config.json CHANGED
@@ -928,11 +928,11 @@
928
  "<extra_id_98>",
929
  "<extra_id_99>"
930
  ],
931
- "clean_up_tokenization_spaces": false,
932
  "eos_token": "</s>",
933
  "extra_ids": 100,
934
  "legacy": true,
935
- "model_max_length": 1000000000000000019884624838656,
936
  "pad_token": "<pad>",
937
  "sp_model_kwargs": {},
938
  "tokenizer_class": "T5Tokenizer",
 
928
  "<extra_id_98>",
929
  "<extra_id_99>"
930
  ],
931
+ "clean_up_tokenization_spaces": true,
932
  "eos_token": "</s>",
933
  "extra_ids": 100,
934
  "legacy": true,
935
+ "model_max_length": 512,
936
  "pad_token": "<pad>",
937
  "sp_model_kwargs": {},
938
  "tokenizer_class": "T5Tokenizer",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:38b61d45ec9be7ea46453c176618bf9e92880a5ff44bb840e9a7972a87e80655
3
  size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c1bb0920cf6c7b6fe5fad1c829ec1f476c5d037119f2ceb4b2beee0f4245927
3
  size 5304