biruh commited on
Commit
f97851c
1 Parent(s): 54303b0

Upload Pix2StructForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +5 -5
  2. config.json +30 -0
  3. generation_config.json +8 -0
  4. model.safetensors +3 -0
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- license: mit
3
  language:
4
  - am
5
  - en
6
- metrics:
7
- - accuracy
8
  library_name: keras
9
- pipeline_tag: image-feature-extraction
10
  tags:
11
  - code
12
- ---
 
 
 
 
1
  ---
 
2
  language:
3
  - am
4
  - en
5
+ license: mit
 
6
  library_name: keras
 
7
  tags:
8
  - code
9
+ metrics:
10
+ - accuracy
11
+ pipeline_tag: image-feature-extraction
12
+ ---
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./kaggle/working/my_model",
3
+ "architectures": [
4
+ "Pix2StructForConditionalGeneration"
5
+ ],
6
+ "decoder_start_token_id": 0,
7
+ "eos_token_id": 1,
8
+ "initializer_factor": 1.0,
9
+ "initializer_range": 0.02,
10
+ "is_encoder_decoder": true,
11
+ "is_vqa": false,
12
+ "model_type": "pix2struct",
13
+ "pad_token_id": 0,
14
+ "text_config": {
15
+ "encoder_hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "model_type": "pix2struct_text_model"
18
+ },
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.38.2",
22
+ "vision_config": {
23
+ "initializer_range": 0.02,
24
+ "layer_norm_bias": false,
25
+ "model_type": "pix2struct_vision_model",
26
+ "num_channels": 3,
27
+ "patch_size": 16,
28
+ "projection_dim": 768
29
+ }
30
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.38.2",
7
+ "use_cache": false
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab90055611f42fee327d9ecf3c9cdac63e847bd19a0ac8ea86b0e8134fe0711b
3
+ size 1129177976