Add model, config, tokenizer, and custom code
Browse files- README.md +70 -0
- config.json +21 -0
- generation_config.json +8 -0
- model.safetensors +3 -0
- runs/Nov17_14-07-59_ef9497a56ea3/events.out.tfevents.1731852481.ef9497a56ea3.338.0 +3 -0
- runs/Nov17_14-35-11_ef9497a56ea3/events.out.tfevents.1731854111.ef9497a56ea3.338.1 +3 -0
- runs/Nov17_14-36-17_ef9497a56ea3/events.out.tfevents.1731854178.ef9497a56ea3.338.2 +3 -0
- special_tokens_map.json +6 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- iva_mt_wslot
|
7 |
+
metrics:
|
8 |
+
- bleu
|
9 |
+
model-index:
|
10 |
+
- name: seq2seq-imlla-test
|
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 |
+
# seq2seq-imlla-test
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on the iva_mt_wslot dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 6.0796
|
22 |
+
- Bleu: 0.0023
|
23 |
+
- Gen Len: 3.9927
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 5e-05
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- gradient_accumulation_steps: 4
|
47 |
+
- total_train_batch_size: 32
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- lr_scheduler_warmup_steps: 500
|
51 |
+
- num_epochs: 5
|
52 |
+
- mixed_precision_training: Native AMP
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|:------:|:-------:|
|
58 |
+
| 7.3774 | 0.9992 | 636 | 7.0402 | 0.0 | 4.1578 |
|
59 |
+
| 6.528 | 2.0 | 1273 | 6.4745 | 0.0141 | 9.5716 |
|
60 |
+
| 6.0907 | 2.9992 | 1909 | 6.2223 | 0.0024 | 5.0011 |
|
61 |
+
| 5.903 | 4.0 | 2546 | 6.1164 | 0.0019 | 4.0774 |
|
62 |
+
| 5.7639 | 4.9961 | 3180 | 6.0796 | 0.0023 | 3.9927 |
|
63 |
+
|
64 |
+
|
65 |
+
### Framework versions
|
66 |
+
|
67 |
+
- Transformers 4.44.2
|
68 |
+
- Pytorch 2.4.1+cu121
|
69 |
+
- Datasets 3.1.0
|
70 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"CustomSeq2SeqModel"
|
4 |
+
],
|
5 |
+
"bos_token_id": 0,
|
6 |
+
"dec_emb_dim": 256,
|
7 |
+
"decoder_start_token_id": 1,
|
8 |
+
"dropout": 0.1,
|
9 |
+
"enc_emb_dim": 256,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"hidden_dim": 256,
|
12 |
+
"max_position_embeddings": 256,
|
13 |
+
"model_type": "custom_seq2seq",
|
14 |
+
"n_layers": 3,
|
15 |
+
"num_attention_heads": 8,
|
16 |
+
"pad_token_id": 1,
|
17 |
+
"share_embeddings": false,
|
18 |
+
"torch_dtype": "float32",
|
19 |
+
"transformers_version": "4.44.2",
|
20 |
+
"vocab_size": 28297
|
21 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"decoder_start_token_id": 1,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"pad_token_id": 1,
|
7 |
+
"transformers_version": "4.44.2"
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a51f2e6520ca5fb0355143b0d067108cd2da104149e34136005b0e75d4a773b8
|
3 |
+
size 109582088
|
runs/Nov17_14-07-59_ef9497a56ea3/events.out.tfevents.1731852481.ef9497a56ea3.338.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fd29a20d2af069b51dcd7d203fca8f2d866f8fe4942ad32feff6a106b0591848
|
3 |
+
size 20281
|
runs/Nov17_14-35-11_ef9497a56ea3/events.out.tfevents.1731854111.ef9497a56ea3.338.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8c0cbc09a4036cf0798dcde41486cc6dfd0efb8423ed0f912d1577965bb1697
|
3 |
+
size 5412
|
runs/Nov17_14-36-17_ef9497a56ea3/events.out.tfevents.1731854178.ef9497a56ea3.338.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdb8a145083e99b88e693aebce280739ae87f7b8ee0fc225406774dff06cfdd5
|
3 |
+
size 20276
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<bos>",
|
3 |
+
"eos_token": "<eos>",
|
4 |
+
"pad_token": "<pad>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<pad>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<bos>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "<eos>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"bos_token": "<bos>",
|
37 |
+
"clean_up_tokenization_spaces": true,
|
38 |
+
"eos_token": "<eos>",
|
39 |
+
"model_max_length": 256,
|
40 |
+
"pad_token": "<pad>",
|
41 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
42 |
+
"unk_token": "<unk>"
|
43 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:058909e475a26ab742bc7d902942df98013eab57ce081dad9668c780a87beb0b
|
3 |
+
size 5368
|