za17 commited on
Commit
c093a3d
1 Parent(s): b67adbb

Update config and fix Trainer

Browse files
Files changed (4) hide show
  1. README.md +64 -3
  2. config.json +1 -1
  3. generation_config.json +6 -1
  4. model.safetensors +1 -1
README.md CHANGED
@@ -1,3 +1,64 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Helsinki-NLP/opus-mt-en-es
4
+ tags:
5
+ - translation
6
+ - generated_from_trainer
7
+ metrics:
8
+ - bleu
9
+ model-index:
10
+ - name: helsinki-biomedical-finetuned
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # helsinki-biomedical-finetuned
18
+
19
+ This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-es](https://huggingface.co/Helsinki-NLP/opus-mt-en-es) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0742
22
+ - Bleu: 46.7363
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-06
42
+ - train_batch_size: 8
43
+ - eval_batch_size: 16
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 3
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Bleu |
53
+ |:-------------:|:-----:|:----:|:---------------:|:-------:|
54
+ | No log | 1.0 | 169 | 0.0784 | 46.6456 |
55
+ | No log | 2.0 | 338 | 0.0747 | 46.6745 |
56
+ | 0.4783 | 3.0 | 507 | 0.0742 | 46.7363 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.40.2
62
+ - Pytorch 2.3.0+cu121
63
+ - Datasets 2.19.0
64
+ - Tokenizers 0.19.1
config.json CHANGED
@@ -57,7 +57,7 @@
57
  "share_encoder_decoder_embeddings": true,
58
  "static_position_embeddings": true,
59
  "torch_dtype": "float32",
60
- "transformers_version": "4.40.1",
61
  "use_cache": true,
62
  "vocab_size": 65001
63
  }
 
57
  "share_encoder_decoder_embeddings": true,
58
  "static_position_embeddings": true,
59
  "torch_dtype": "float32",
60
+ "transformers_version": "4.40.2",
61
  "use_cache": true,
62
  "vocab_size": 65001
63
  }
generation_config.json CHANGED
@@ -4,8 +4,13 @@
4
  65000
5
  ]
6
  ],
 
 
 
7
  "forced_eos_token_id": 0,
8
  "max_length": 512,
9
  "num_beams": 4,
10
- "transformers_version": "4.40.1"
 
 
11
  }
 
4
  65000
5
  ]
6
  ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 65000,
9
+ "eos_token_id": 0,
10
  "forced_eos_token_id": 0,
11
  "max_length": 512,
12
  "num_beams": 4,
13
+ "pad_token_id": 65000,
14
+ "renormalize_logits": true,
15
+ "transformers_version": "4.40.2"
16
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1fe114dfa2ba2bd57855ba262b248336da83d05a4bd8891c5b13a4518da95156
3
  size 309965092
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb118022473b18fc6821adf1002262e3a0747506a46b7cf3f778a20f33ef1ecc
3
  size 309965092