Peter commited on
Commit
bf37b8e
1 Parent(s): a97321e

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +58 -0
  2. config.json +35 -0
  3. generation_config.json +8 -0
  4. model.safetensors +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: ybelkada/pix2struct-base
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: results
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # results
15
+
16
+ This model is a fine-tuned version of [ybelkada/pix2struct-base](https://huggingface.co/ybelkada/pix2struct-base) on an unknown dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 5e-05
36
+ - train_batch_size: 2
37
+ - eval_batch_size: 8
38
+ - seed: 42
39
+ - distributed_type: multi-GPU
40
+ - num_devices: 2
41
+ - gradient_accumulation_steps: 2
42
+ - total_train_batch_size: 8
43
+ - total_eval_batch_size: 16
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_steps: 500
47
+ - num_epochs: 1
48
+
49
+ ### Training results
50
+
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.40.0.dev0
56
+ - Pytorch 2.4.0.dev20240407+cu121
57
+ - Datasets 2.18.0
58
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ybelkada/pix2struct-base",
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
+ "dropout_rate": 0.2,
16
+ "encoder_hidden_size": 768,
17
+ "initializer_range": 0.02,
18
+ "model_type": "pix2struct_text_model"
19
+ },
20
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.40.0.dev0",
23
+ "use_cache": true,
24
+ "vision_config": {
25
+ "attention_dropout": 0.2,
26
+ "dropout_rate": 0.2,
27
+ "hidden_dropout_prob": 0.2,
28
+ "initializer_range": 0.02,
29
+ "layer_norm_bias": false,
30
+ "model_type": "pix2struct_vision_model",
31
+ "num_channels": 3,
32
+ "patch_size": 16,
33
+ "projection_dim": 768
34
+ }
35
+ }
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.40.0.dev0",
7
+ "use_cache": false
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883695c5a94c86307ede9fe34c770b79d8160bb5055e68bafc00989a7276495d
3
+ size 1129177976
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c471c63cfe1296219a7ce8be7e2911a24132adb7e1b6df8d5b04a764777318ad
3
+ size 4920