BounharAbdelaziz
commited on
Commit
•
e05df3f
1
Parent(s):
0b47832
BounharAbdelaziz/Terjman-Large-v2
Browse files- README.md +47 -0
- config.json +46 -0
- generation_config.json +5 -0
- model.safetensors +3 -0
- source.spm +0 -0
- special_tokens_map.json +5 -0
- target.spm +0 -0
- tokenizer_config.json +38 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
model-index:
|
5 |
+
- name: Terjman-Large-v2
|
6 |
+
results: []
|
7 |
+
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
10 |
+
should probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# Terjman-Large-v2
|
13 |
+
|
14 |
+
This model was trained from scratch on an unknown dataset.
|
15 |
+
|
16 |
+
## Model description
|
17 |
+
|
18 |
+
More information needed
|
19 |
+
|
20 |
+
## Intended uses & limitations
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Training and evaluation data
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training procedure
|
29 |
+
|
30 |
+
### Training hyperparameters
|
31 |
+
|
32 |
+
The following hyperparameters were used during training:
|
33 |
+
- learning_rate: 3e-05
|
34 |
+
- train_batch_size: 96
|
35 |
+
- eval_batch_size: 96
|
36 |
+
- seed: 42
|
37 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
38 |
+
- lr_scheduler_type: linear
|
39 |
+
- lr_scheduler_warmup_ratio: 0.03
|
40 |
+
- num_epochs: 150
|
41 |
+
|
42 |
+
### Framework versions
|
43 |
+
|
44 |
+
- Transformers 4.39.2
|
45 |
+
- Pytorch 2.2.2+cpu
|
46 |
+
- Datasets 2.18.0
|
47 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./Terjman-v2/checkpoint-15500/",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "relu",
|
5 |
+
"architectures": [
|
6 |
+
"MarianMTModel"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bad_words_ids": [
|
10 |
+
[
|
11 |
+
61246
|
12 |
+
]
|
13 |
+
],
|
14 |
+
"bos_token_id": 0,
|
15 |
+
"classifier_dropout": 0.0,
|
16 |
+
"d_model": 1024,
|
17 |
+
"decoder_attention_heads": 16,
|
18 |
+
"decoder_ffn_dim": 4096,
|
19 |
+
"decoder_layerdrop": 0.0,
|
20 |
+
"decoder_layers": 6,
|
21 |
+
"decoder_start_token_id": 61246,
|
22 |
+
"decoder_vocab_size": 61247,
|
23 |
+
"dropout": 0.1,
|
24 |
+
"encoder_attention_heads": 16,
|
25 |
+
"encoder_ffn_dim": 4096,
|
26 |
+
"encoder_layerdrop": 0.0,
|
27 |
+
"encoder_layers": 6,
|
28 |
+
"eos_token_id": 25897,
|
29 |
+
"forced_eos_token_id": 25897,
|
30 |
+
"init_std": 0.02,
|
31 |
+
"is_encoder_decoder": true,
|
32 |
+
"max_length": 512,
|
33 |
+
"max_position_embeddings": 1024,
|
34 |
+
"model_type": "marian",
|
35 |
+
"normalize_embedding": false,
|
36 |
+
"num_beams": 4,
|
37 |
+
"num_hidden_layers": 6,
|
38 |
+
"pad_token_id": 61246,
|
39 |
+
"scale_embedding": true,
|
40 |
+
"share_encoder_decoder_embeddings": true,
|
41 |
+
"static_position_embeddings": true,
|
42 |
+
"torch_dtype": "float32",
|
43 |
+
"transformers_version": "4.39.2",
|
44 |
+
"use_cache": true,
|
45 |
+
"vocab_size": 61247
|
46 |
+
}
|
generation_config.json
CHANGED
@@ -4,8 +4,13 @@
|
|
4 |
61246
|
5 |
]
|
6 |
],
|
|
|
|
|
|
|
7 |
"forced_eos_token_id": 25897,
|
8 |
"max_length": 512,
|
9 |
"num_beams": 4,
|
|
|
|
|
10 |
"transformers_version": "4.39.2"
|
11 |
}
|
|
|
4 |
61246
|
5 |
]
|
6 |
],
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"decoder_start_token_id": 61246,
|
9 |
+
"eos_token_id": 25897,
|
10 |
"forced_eos_token_id": 25897,
|
11 |
"max_length": 512,
|
12 |
"num_beams": 4,
|
13 |
+
"pad_token_id": 61246,
|
14 |
+
"renormalize_logits": true,
|
15 |
"transformers_version": "4.39.2"
|
16 |
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:045de93f66c37d446851a22f2fa4201d589e0a29b57b1e7e9a0d5f43dacab893
|
3 |
+
size 956571820
|
source.spm
ADDED
Binary file (806 kB). View file
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": "</s>",
|
3 |
+
"pad_token": "<pad>",
|
4 |
+
"unk_token": "<unk>"
|
5 |
+
}
|
target.spm
ADDED
Binary file (916 kB). View file
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"25897": {
|
4 |
+
"content": "</s>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"30683": {
|
12 |
+
"content": "<unk>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"61246": {
|
20 |
+
"content": "<pad>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"clean_up_tokenization_spaces": true,
|
29 |
+
"eos_token": "</s>",
|
30 |
+
"model_max_length": 512,
|
31 |
+
"pad_token": "<pad>",
|
32 |
+
"separate_vocabs": false,
|
33 |
+
"source_lang": "en",
|
34 |
+
"sp_model_kwargs": {},
|
35 |
+
"target_lang": "ar",
|
36 |
+
"tokenizer_class": "MarianTokenizer",
|
37 |
+
"unk_token": "<unk>"
|
38 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4ca122f9764c0982769cd84d0c38e06848972cadb3bbfe3f0140adcb2cdfc68f
|
3 |
+
size 5048
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|