sk2003 commited on
Commit
37796c8
1 Parent(s): d859a66

Upload model

Browse files
Files changed (3) hide show
  1. config.json +3 -3
  2. generation_config.json +1 -5
  3. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "_commit_hash": "f16c18007ad204d99f1e16fb3ed2a191d8048f38",
3
- "_name_or_path": "sk2003/hist-trocr",
4
  "architectures": [
5
  "VisionEncoderDecoderModel"
6
  ],
@@ -167,7 +167,7 @@
167
  },
168
  "eos_token_id": 2,
169
  "is_encoder_decoder": true,
170
- "max_length": 32,
171
  "model_type": "vision-encoder-decoder",
172
  "no_repeat_ngram_size": 3,
173
  "num_beams": 5,
 
1
  {
2
+ "_commit_hash": "0cc7abaad739c7902dabd562356c7e6a7be834ea",
3
+ "_name_or_path": "microsoft/trocr-base-handwritten",
4
  "architectures": [
5
  "VisionEncoderDecoderModel"
6
  ],
 
167
  },
168
  "eos_token_id": 2,
169
  "is_encoder_decoder": true,
170
+ "max_length": 200,
171
  "model_type": "vision-encoder-decoder",
172
  "no_repeat_ngram_size": 3,
173
  "num_beams": 5,
generation_config.json CHANGED
@@ -1,12 +1,8 @@
1
  {
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
4
- "decoder_start_token_id": 0,
5
- "early_stopping": true,
6
  "eos_token_id": 2,
7
- "max_length": 32,
8
- "no_repeat_ngram_size": 3,
9
- "num_beams": 5,
10
  "pad_token_id": 1,
11
  "transformers_version": "4.26.1",
12
  "use_cache": false
 
1
  {
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
 
5
  "eos_token_id": 2,
 
 
 
6
  "pad_token_id": 1,
7
  "transformers_version": "4.26.1",
8
  "use_cache": false
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f2d450b7efd866db6b5e9e61617646464afa77b17ad8fba9801a9873e7e8f2c2
3
- size 1335847501
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a906574d4f4bb7055e5ec2c97a442e4dfda0c28978b10c028ce1567952b01f23
3
+ size 1335854221