| { | |
| "architectures": [ | |
| "Pix2StructForConditionalGeneration" | |
| ], | |
| "decoder_start_token_id": 0, | |
| "eos_token_id": 1, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "is_encoder_decoder": true, | |
| "is_vqa": false, | |
| "model_type": "pix2struct", | |
| "pad_token_id": 0, | |
| "text_config": { | |
| "d_ff": 2048, | |
| "d_kv": 64, | |
| "dense_act_fn": "gelu_new", | |
| "dropout_rate": 0.2, | |
| "encoder_hidden_size": 768, | |
| "hidden_size": 768, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "is_encoder_decoder": true, | |
| "layer_norm_epsilon": 1e-06, | |
| "model_type": "pix2struct_text_model", | |
| "num_heads": 12, | |
| "num_layers": 12, | |
| "relative_attention_max_distance": 128, | |
| "relative_attention_num_buckets": 32, | |
| "use_cache": false, | |
| "vocab_size": 50372 | |
| }, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.52.0.dev0", | |
| "vision_config": { | |
| "attention_dropout": 0.2, | |
| "d_ff": 2048, | |
| "d_kv": 64, | |
| "dense_act_fn": "gelu_new", | |
| "dropout_rate": 0.2, | |
| "hidden_dropout_prob": 0.2, | |
| "hidden_size": 768, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "layer_norm_bias": false, | |
| "layer_norm_eps": 1e-06, | |
| "model_type": "pix2struct_vision_model", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_embed_hidden_size": 768, | |
| "patch_size": 16, | |
| "projection_dim": 768, | |
| "relative_attention_max_distance": 128, | |
| "relative_attention_num_buckets": 32, | |
| "seq_len": 4096 | |
| } | |
| } | |