First commit
Browse files- __pycache__/t5_tokenizer_model.cpython-38.pyc +0 -0
- config.json +56 -0
- events.out.tfevents.1626092365.t1v-n-563c3e20-w-0.115517.3.v2 +3 -0
- events.out.tfevents.1626344166.t1v-n-563c3e20-w-0.335673.3.v2 +3 -0
- flax_model.msgpack +3 -0
- run.sh +19 -0
- run_t5_mlm_flax.py +1 -0
- t5_tokenizer_model.py +1 -0
- tokenizer.json +0 -0
__pycache__/t5_tokenizer_model.cpython-38.pyc
ADDED
Binary file (3.45 kB). View file
|
|
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"T5ForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"d_ff": 2048,
|
6 |
+
"d_kv": 64,
|
7 |
+
"d_model": 512,
|
8 |
+
"decoder_start_token_id": 0,
|
9 |
+
"dropout_rate": 0.1,
|
10 |
+
"eos_token_id": 1,
|
11 |
+
"feed_forward_proj": "relu",
|
12 |
+
"gradient_checkpointing": false,
|
13 |
+
"initializer_factor": 1.0,
|
14 |
+
"is_encoder_decoder": true,
|
15 |
+
"layer_norm_epsilon": 1e-06,
|
16 |
+
"model_type": "t5",
|
17 |
+
"n_positions": 512,
|
18 |
+
"num_decoder_layers": 6,
|
19 |
+
"num_heads": 8,
|
20 |
+
"num_layers": 6,
|
21 |
+
"output_past": true,
|
22 |
+
"pad_token_id": 0,
|
23 |
+
"relative_attention_num_buckets": 32,
|
24 |
+
"task_specific_params": {
|
25 |
+
"summarization": {
|
26 |
+
"early_stopping": true,
|
27 |
+
"length_penalty": 2.0,
|
28 |
+
"max_length": 200,
|
29 |
+
"min_length": 30,
|
30 |
+
"no_repeat_ngram_size": 3,
|
31 |
+
"num_beams": 4,
|
32 |
+
"prefix": "summarize: "
|
33 |
+
},
|
34 |
+
"translation_en_to_de": {
|
35 |
+
"early_stopping": true,
|
36 |
+
"max_length": 300,
|
37 |
+
"num_beams": 4,
|
38 |
+
"prefix": "translate English to German: "
|
39 |
+
},
|
40 |
+
"translation_en_to_fr": {
|
41 |
+
"early_stopping": true,
|
42 |
+
"max_length": 300,
|
43 |
+
"num_beams": 4,
|
44 |
+
"prefix": "translate English to French: "
|
45 |
+
},
|
46 |
+
"translation_en_to_ro": {
|
47 |
+
"early_stopping": true,
|
48 |
+
"max_length": 300,
|
49 |
+
"num_beams": 4,
|
50 |
+
"prefix": "translate English to Romanian: "
|
51 |
+
}
|
52 |
+
},
|
53 |
+
"transformers_version": "4.9.0.dev0",
|
54 |
+
"use_cache": true,
|
55 |
+
"vocab_size": 32103
|
56 |
+
}
|
events.out.tfevents.1626092365.t1v-n-563c3e20-w-0.115517.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e62c9c496110c0a17a3cef665d54287d2ade2fa1b699d3c695cfd1f638f2796b
|
3 |
+
size 9291775
|
events.out.tfevents.1626344166.t1v-n-563c3e20-w-0.335673.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60781e343ad1f112f8525323e1307fa2388a8663cc191b9247463198b3ed0ab2
|
3 |
+
size 735757
|
flax_model.msgpack
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ea088f9e44b711f67c7d5b8f3acceee3c84aa1bebae63a73bc2dda271c8be07
|
3 |
+
size 241981002
|
run.sh
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
./run_t5_mlm_flax.py \
|
2 |
+
--output_dir="./" \
|
3 |
+
--model_type="t5" \
|
4 |
+
--model_name_or_path="./" \
|
5 |
+
--config_name="./" \
|
6 |
+
--tokenizer_name="./" \
|
7 |
+
--dataset_name="large_spanish_corpus" \
|
8 |
+
--max_seq_length="512" \
|
9 |
+
--per_device_train_batch_size="16" \
|
10 |
+
--per_device_eval_batch_size="16" \
|
11 |
+
--learning_rate="1e-3" \
|
12 |
+
--weight_decay="0.001" \
|
13 |
+
--warmup_steps="5000" \
|
14 |
+
--overwrite_output_dir \
|
15 |
+
--num_train_epochs="10" \
|
16 |
+
--logging_steps="500" \
|
17 |
+
--save_steps="2500" \
|
18 |
+
--eval_steps="2500" \
|
19 |
+
--preprocessing_num_workers="64"
|
run_t5_mlm_flax.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
../transformers/examples/flax/language-modeling/run_t5_mlm_flax.py
|
t5_tokenizer_model.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
../transformers/examples/flax/language-modeling/t5_tokenizer_model.py
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|