Commit
·
be46b6e
1
Parent(s):
7df4728
End of training
Browse files- README.md +71 -0
- generation_config.json +16 -0
- pytorch_model.bin +1 -1
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: Helsinki-NLP/opus-mt-en-zh
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- bleu
|
8 |
+
model-index:
|
9 |
+
- name: medical_en_zh_8_29
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# medical_en_zh_8_29
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-zh](https://huggingface.co/Helsinki-NLP/opus-mt-en-zh) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.8832
|
21 |
+
- Bleu: 37.4827
|
22 |
+
- Gen Len: 126.8591
|
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: 8e-05
|
42 |
+
- train_batch_size: 8
|
43 |
+
- eval_batch_size: 16
|
44 |
+
- seed: 42
|
45 |
+
- gradient_accumulation_steps: 4
|
46 |
+
- total_train_batch_size: 32
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: linear
|
49 |
+
- num_epochs: 10
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|
54 |
+
|:-------------:|:-----:|:-----:|:---------------:|:-------:|:--------:|
|
55 |
+
| 1.5517 | 1.02 | 3000 | 1.3893 | 30.6374 | 128.9001 |
|
56 |
+
| 1.2621 | 2.04 | 6000 | 1.2044 | 31.9025 | 128.2471 |
|
57 |
+
| 1.116 | 3.06 | 9000 | 1.1085 | 34.723 | 125.0336 |
|
58 |
+
| 1.0159 | 4.08 | 12000 | 1.0374 | 35.3902 | 126.2187 |
|
59 |
+
| 0.9338 | 5.1 | 15000 | 0.9952 | 36.0916 | 125.306 |
|
60 |
+
| 0.8658 | 6.12 | 18000 | 0.9503 | 36.7602 | 126.7424 |
|
61 |
+
| 0.8146 | 7.14 | 21000 | 0.9213 | 36.7016 | 126.5226 |
|
62 |
+
| 0.7804 | 8.16 | 24000 | 0.8997 | 37.0674 | 127.4143 |
|
63 |
+
| 0.759 | 9.19 | 27000 | 0.8832 | 37.4827 | 126.8591 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.33.0.dev0
|
69 |
+
- Pytorch 2.0.0
|
70 |
+
- Datasets 2.1.0
|
71 |
+
- Tokenizers 0.13.3
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bad_words_ids": [
|
3 |
+
[
|
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.33.0.dev0"
|
16 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 310022533
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a647c53a786d5f1db7ca94508668caee2285dd1ef18defe12f9ab8019ff6656a
|
3 |
size 310022533
|