Add HF compatible checkpoints (#4)
Browse files- Update model.safetensors (c47005b2ca3e11e0466239860ac6ae13074b92a9)
Co-authored-by: Yaswanth <[email protected]>
- config.json +11 -5
- model.safetensors +2 -2
- preprocessor_config.json +11 -1
    	
        config.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 | 
             
            {
         | 
| 2 | 
             
              "architectures": [
         | 
| 3 | 
            -
                " | 
| 4 | 
             
              ],
         | 
| 5 | 
             
              "attention_dropout": 0.0,
         | 
| 6 | 
             
              "auto_map": {
         | 
| @@ -8,9 +8,14 @@ | |
| 8 | 
             
                "AutoModel": "modeling_aimv2.AIMv2Model",
         | 
| 9 | 
             
                "FlaxAutoModel": "modeling_flax_aimv2.FlaxAIMv2Model"
         | 
| 10 | 
             
              },
         | 
|  | |
| 11 | 
             
              "hidden_size": 1024,
         | 
|  | |
|  | |
| 12 | 
             
              "intermediate_size": 2816,
         | 
| 13 | 
            -
              " | 
|  | |
|  | |
| 14 | 
             
              "num_attention_heads": 8,
         | 
| 15 | 
             
              "num_channels": 3,
         | 
| 16 | 
             
              "num_hidden_layers": 24,
         | 
| @@ -20,6 +25,7 @@ | |
| 20 | 
             
              "qkv_bias": false,
         | 
| 21 | 
             
              "rms_norm_eps": 1e-05,
         | 
| 22 | 
             
              "torch_dtype": "float32",
         | 
| 23 | 
            -
              "transformers_version": "4. | 
| 24 | 
            -
              "use_bias": false
         | 
| 25 | 
            -
             | 
|  | 
|  | |
| 1 | 
             
            {
         | 
| 2 | 
             
              "architectures": [
         | 
| 3 | 
            +
                "Aimv2VisionModel"
         | 
| 4 | 
             
              ],
         | 
| 5 | 
             
              "attention_dropout": 0.0,
         | 
| 6 | 
             
              "auto_map": {
         | 
|  | |
| 8 | 
             
                "AutoModel": "modeling_aimv2.AIMv2Model",
         | 
| 9 | 
             
                "FlaxAutoModel": "modeling_flax_aimv2.FlaxAIMv2Model"
         | 
| 10 | 
             
              },
         | 
| 11 | 
            +
              "hidden_act": "silu",
         | 
| 12 | 
             
              "hidden_size": 1024,
         | 
| 13 | 
            +
              "image_size": 224,
         | 
| 14 | 
            +
              "initializer_range": 0.02,
         | 
| 15 | 
             
              "intermediate_size": 2816,
         | 
| 16 | 
            +
              "is_native": true,
         | 
| 17 | 
            +
              "mlp_bias": false,
         | 
| 18 | 
            +
              "model_type": "aimv2_vision_model",
         | 
| 19 | 
             
              "num_attention_heads": 8,
         | 
| 20 | 
             
              "num_channels": 3,
         | 
| 21 | 
             
              "num_hidden_layers": 24,
         | 
|  | |
| 25 | 
             
              "qkv_bias": false,
         | 
| 26 | 
             
              "rms_norm_eps": 1e-05,
         | 
| 27 | 
             
              "torch_dtype": "float32",
         | 
| 28 | 
            +
              "transformers_version": "4.54.0.dev0",
         | 
| 29 | 
            +
              "use_bias": false,
         | 
| 30 | 
            +
              "use_head": false
         | 
| 31 | 
            +
            }
         | 
    	
        model.safetensors
    CHANGED
    
    | @@ -1,3 +1,3 @@ | |
| 1 | 
             
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            -
            oid sha256: | 
| 3 | 
            -
            size  | 
|  | |
| 1 | 
             
            version https://git-lfs.github.com/spec/v1
         | 
| 2 | 
            +
            oid sha256:784e32ece9a01ea8f9774f6f2d7ac0fa7533fc0fb26514dcac4e07a4536008e4
         | 
| 3 | 
            +
            size 1235767568
         | 
    	
        preprocessor_config.json
    CHANGED
    
    | @@ -1,4 +1,12 @@ | |
| 1 | 
             
            {
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 2 | 
             
              "do_center_crop": false,
         | 
| 3 | 
             
              "do_convert_rgb": true,
         | 
| 4 | 
             
              "do_normalize": true,
         | 
| @@ -9,14 +17,16 @@ | |
| 9 | 
             
                0.4578275,
         | 
| 10 | 
             
                0.40821073
         | 
| 11 | 
             
              ],
         | 
| 12 | 
            -
              "image_processor_type": " | 
| 13 | 
             
              "image_std": [
         | 
| 14 | 
             
                0.26862954,
         | 
| 15 | 
             
                0.26130258,
         | 
| 16 | 
             
                0.27577711
         | 
| 17 | 
             
              ],
         | 
|  | |
| 18 | 
             
              "resample": 3,
         | 
| 19 | 
             
              "rescale_factor": 0.00392156862745098,
         | 
|  | |
| 20 | 
             
              "size": {
         | 
| 21 | 
             
                "shortest_edge": 224
         | 
| 22 | 
             
              }
         | 
|  | |
| 1 | 
             
            {
         | 
| 2 | 
            +
              "crop_size": {
         | 
| 3 | 
            +
                "height": 224,
         | 
| 4 | 
            +
                "width": 224
         | 
| 5 | 
            +
              },
         | 
| 6 | 
            +
              "data_format": "channels_first",
         | 
| 7 | 
            +
              "default_to_square": false,
         | 
| 8 | 
            +
              "device": null,
         | 
| 9 | 
            +
              "disable_grouping": null,
         | 
| 10 | 
             
              "do_center_crop": false,
         | 
| 11 | 
             
              "do_convert_rgb": true,
         | 
| 12 | 
             
              "do_normalize": true,
         | 
|  | |
| 17 | 
             
                0.4578275,
         | 
| 18 | 
             
                0.40821073
         | 
| 19 | 
             
              ],
         | 
| 20 | 
            +
              "image_processor_type": "CLIPImageProcessorFast",
         | 
| 21 | 
             
              "image_std": [
         | 
| 22 | 
             
                0.26862954,
         | 
| 23 | 
             
                0.26130258,
         | 
| 24 | 
             
                0.27577711
         | 
| 25 | 
             
              ],
         | 
| 26 | 
            +
              "input_data_format": null,
         | 
| 27 | 
             
              "resample": 3,
         | 
| 28 | 
             
              "rescale_factor": 0.00392156862745098,
         | 
| 29 | 
            +
              "return_tensors": null,
         | 
| 30 | 
             
              "size": {
         | 
| 31 | 
             
                "shortest_edge": 224
         | 
| 32 | 
             
              }
         | 
