npvinHnivqn commited on
Commit
76683d7
1 Parent(s): 039f63a

Upload QformT5ForVQA

Browse files
Files changed (3) hide show
  1. config.json +22 -12
  2. generation_config.json +1 -1
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,23 +1,33 @@
1
  {
2
  "QformConfig": {
3
- "encoder_hidden_size": 2,
4
- "hidden_size": 2,
5
- "model_type": "blip_2_qformer",
6
- "num_attention_heads": 2,
7
- "num_hidden_layers": 2
8
  },
9
  "T5ModelConfig": {
10
- "model_type": "t5"
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  },
12
  "architectures": [
13
  "QformT5ForVQA"
14
  ],
15
- "from_pretrained_qform": null,
16
- "from_pretrained_t5": "t5-small",
 
17
  "model_type": "qformt5",
18
- "patch_per_side": 4,
19
  "torch_dtype": "float32",
20
- "train_from_original": true,
21
- "transformers_version": "4.41.2",
22
- "visual_dmodel": 8
23
  }
 
1
  {
2
  "QformConfig": {
3
+ "classifier_dropout": null,
4
+ "model_type": "blip_2_qformer"
 
 
 
5
  },
6
  "T5ModelConfig": {
7
+ "architectures": [
8
+ "T5ForConditionalGeneration"
9
+ ],
10
+ "d_ff": 3072,
11
+ "d_model": 768,
12
+ "decoder_start_token_id": 0,
13
+ "model_type": "t5",
14
+ "n_positions": 512,
15
+ "num_decoder_layers": 12,
16
+ "num_heads": 12,
17
+ "num_layers": 12,
18
+ "output_past": true,
19
+ "torch_dtype": "float32",
20
+ "vocab_size": 36096
21
  },
22
  "architectures": [
23
  "QformT5ForVQA"
24
  ],
25
+ "continue_training": true,
26
+ "from_pretrained_qform": "Gregor/mblip-mt0-xl",
27
+ "from_pretrained_t5": "VietAI/vit5-base",
28
  "model_type": "qformt5",
29
+ "patch_per_side": 14,
30
  "torch_dtype": "float32",
31
+ "transformers_version": "4.36.0",
32
+ "visual_dmodel": 768
 
33
  }
generation_config.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
  "_from_model_config": true,
3
- "transformers_version": "4.41.2"
4
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "transformers_version": "4.36.0"
4
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:838a2b1a67003d292ff59c40361f22452e60172969a2fcc864d1b2436b16e4be
3
- size 242182328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a42077edf34283c0b46daf44bca32c142fa7f24ba775edf0cf5099c14d8f74d3
3
+ size 1331508408