koti-malla commited on
Commit
3a62736
·
verified ·
1 Parent(s): bce7e6c

Training in progress, epoch 0

Browse files
Files changed (3) hide show
  1. config.json +25 -26
  2. generation_config.json +7 -4
  3. model.safetensors +2 -2
config.json CHANGED
@@ -3,44 +3,43 @@
3
  "VisionEncoderDecoderModel"
4
  ],
5
  "decoder": {
6
- "_name_or_path": "cnmoro/tiny-image-captioning",
 
7
  "add_cross_attention": true,
8
- "attention_probs_dropout_prob": 0.1,
9
- "classifier_dropout": null,
10
- "hidden_act": "gelu",
11
- "hidden_dropout_prob": 0.1,
12
- "hidden_size": 128,
13
- "initializer_range": 0.02,
14
- "intermediate_size": 512,
 
 
 
15
  "is_decoder": true,
16
- "layer_norm_eps": 1e-12,
17
  "max_position_embeddings": 512,
18
- "model_type": "bert",
19
- "num_attention_heads": 2,
20
- "num_hidden_layers": 2,
21
- "position_embedding_type": "absolute",
22
  "torch_dtype": "float32",
23
- "type_vocab_size": 2,
24
- "use_cache": true,
25
- "vocab_size": 30522
26
  },
27
- "decoder_start_token_id": 101,
28
  "early_stopping": null,
29
  "encoder": {
30
- "_name_or_path": "cnmoro/tiny-image-captioning",
31
- "architectures": [
32
- "ViTForImageClassification"
33
- ],
34
  "attention_probs_dropout_prob": 0.0,
35
  "encoder_stride": 16,
36
  "hidden_act": "gelu",
37
  "hidden_dropout_prob": 0.0,
38
  "hidden_size": 384,
39
- "image_size": 224,
40
  "initializer_range": 0.02,
41
  "intermediate_size": 1536,
42
  "layer_norm_eps": 1e-12,
43
- "model_type": "vit",
44
  "num_attention_heads": 6,
45
  "num_channels": 3,
46
  "num_hidden_layers": 12,
@@ -50,16 +49,16 @@
50
  "qkv_bias": true,
51
  "torch_dtype": "float32"
52
  },
53
- "eos_token_id": 102,
54
  "is_encoder_decoder": true,
55
  "length_penalty": null,
56
  "max_length": null,
57
  "model_type": "vision-encoder-decoder",
58
  "no_repeat_ngram_size": null,
59
  "num_beams": null,
60
- "pad_token_id": 0,
61
  "tie_word_embeddings": false,
62
  "torch_dtype": "float32",
63
  "transformers_version": "4.53.3",
64
- "vocab_size": 30522
65
  }
 
3
  "VisionEncoderDecoderModel"
4
  ],
5
  "decoder": {
6
+ "activation_dropout": 0.0,
7
+ "activation_function": "relu",
8
  "add_cross_attention": true,
9
+ "attention_dropout": 0.0,
10
+ "classifier_dropout": 0.0,
11
+ "cross_attention_hidden_size": 384,
12
+ "d_model": 256,
13
+ "decoder_attention_heads": 8,
14
+ "decoder_ffn_dim": 1024,
15
+ "decoder_layerdrop": 0.0,
16
+ "decoder_layers": 6,
17
+ "dropout": 0.1,
18
+ "init_std": 0.02,
19
  "is_decoder": true,
20
+ "layernorm_embedding": true,
21
  "max_position_embeddings": 512,
22
+ "model_type": "trocr",
23
+ "scale_embedding": true,
24
+ "tie_word_embeddings": false,
 
25
  "torch_dtype": "float32",
26
+ "use_cache": false,
27
+ "use_learned_position_embeddings": true,
28
+ "vocab_size": 64044
29
  },
30
+ "decoder_start_token_id": 0,
31
  "early_stopping": null,
32
  "encoder": {
 
 
 
 
33
  "attention_probs_dropout_prob": 0.0,
34
  "encoder_stride": 16,
35
  "hidden_act": "gelu",
36
  "hidden_dropout_prob": 0.0,
37
  "hidden_size": 384,
38
+ "image_size": 384,
39
  "initializer_range": 0.02,
40
  "intermediate_size": 1536,
41
  "layer_norm_eps": 1e-12,
42
+ "model_type": "deit",
43
  "num_attention_heads": 6,
44
  "num_channels": 3,
45
  "num_hidden_layers": 12,
 
49
  "qkv_bias": true,
50
  "torch_dtype": "float32"
51
  },
52
+ "eos_token_id": 2,
53
  "is_encoder_decoder": true,
54
  "length_penalty": null,
55
  "max_length": null,
56
  "model_type": "vision-encoder-decoder",
57
  "no_repeat_ngram_size": null,
58
  "num_beams": null,
59
+ "pad_token_id": 1,
60
  "tie_word_embeddings": false,
61
  "torch_dtype": "float32",
62
  "transformers_version": "4.53.3",
63
+ "vocab_size": 64044
64
  }
generation_config.json CHANGED
@@ -1,11 +1,14 @@
1
  {
2
- "decoder_start_token_id": 101,
 
 
3
  "early_stopping": true,
 
4
  "length_penalty": 2.0,
5
  "max_length": 12,
6
- "max_new_tokens": 25,
7
  "no_repeat_ngram_size": 3,
8
  "num_beams": 2,
9
- "pad_token_id": 0,
10
- "transformers_version": "4.53.3"
 
11
  }
 
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
  "length_penalty": 2.0,
8
  "max_length": 12,
 
9
  "no_repeat_ngram_size": 3,
10
  "num_beams": 2,
11
+ "pad_token_id": 1,
12
+ "transformers_version": "4.53.3",
13
+ "use_cache": false
14
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a12fe404167036107b8ee2e3717ca8e604640c4dece5b9d2117005c36c8bbc5b
3
- size 105680032
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5feebaf5284c9d5c0a13162424b29191fafcc1c9c64c0adc6ac36f36fe167fc0
3
+ size 246430696