X-Wang commited on
Commit
bd9b6aa
1 Parent(s): 7101cf1

Upload MT5ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +2 -2
  2. generation_config.json +4 -3
  3. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "X-Wang/pruned-mt5-small",
3
  "architectures": [
4
  "MT5ForConditionalGeneration"
5
  ],
@@ -25,7 +25,7 @@
25
  "tie_word_embeddings": false,
26
  "tokenizer_class": "T5Tokenizer",
27
  "torch_dtype": "float32",
28
- "transformers_version": "4.31.0",
29
  "use_cache": true,
30
  "vocab_size": 40475
31
  }
 
1
  {
2
+ "_name_or_path": "/root/autodl-tmp/trained/checkpoint-245000",
3
  "architectures": [
4
  "MT5ForConditionalGeneration"
5
  ],
 
25
  "tie_word_embeddings": false,
26
  "tokenizer_class": "T5Tokenizer",
27
  "torch_dtype": "float32",
28
+ "transformers_version": "4.30.2",
29
  "use_cache": true,
30
  "vocab_size": 40475
31
  }
generation_config.json CHANGED
@@ -2,8 +2,9 @@
2
  "decoder_start_token_id": 0,
3
  "do_sample": true,
4
  "eos_token_id": 1,
5
- "max_length": 512,
6
- "num_beams": 6,
 
7
  "pad_token_id": 0,
8
- "transformers_version": "4.31.0"
9
  }
 
2
  "decoder_start_token_id": 0,
3
  "do_sample": true,
4
  "eos_token_id": 1,
5
+ "length_penalty": 1.5,
6
+ "max_length": 128,
7
+ "num_beams": 5,
8
  "pad_token_id": 0,
9
+ "transformers_version": "4.30.2"
10
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6bc2bbee2787175d0247bb0937d9ab89908914a1876d5975f85b3bcff5010e1
3
- size 342099461
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1f2bf983b1736e181dfaf878cb8b4466c786cc9e3d087f921f6dbde021fe6b3
3
+ size 342094917