jw2yang commited on
Commit
6bbe6fa
·
1 Parent(s): 158bd00

add auto_map for now

Browse files
Files changed (2) hide show
  1. config.json +4 -0
  2. preprocessor_config.json +4 -0
config.json CHANGED
@@ -5,6 +5,10 @@
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
 
 
 
 
8
  "hidden_act": "silu",
9
  "hidden_size": 4096,
10
  "image_token_index": 128257,
 
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "microsoft/Magma-8B--configuration_magma.MagmaConfig",
10
+ "AutoModelForCausalLM": "microsoft/Magma-8B--modeling_magma.MagmaForCausalLM"
11
+ },
12
  "hidden_act": "silu",
13
  "hidden_size": 4096,
14
  "image_token_index": 128257,
preprocessor_config.json CHANGED
@@ -1,4 +1,8 @@
1
  {
 
 
 
 
2
  "anyres_strategy": "crop",
3
  "base_img_size": 512,
4
  "do_convert_rgb": true,
 
1
  {
2
+ "auto_map": {
3
+ "AutoProcessor": "processing_magma.MagmaProcessor",
4
+ "AutoImageProcessor": "image_processing_magma.MagmaImageProcessor"
5
+ },
6
  "anyres_strategy": "crop",
7
  "base_img_size": 512,
8
  "do_convert_rgb": true,