yusx-swapp
commited on
Commit
•
c4946bb
1
Parent(s):
ff7cbac
Upload ViTForImageClassification
Browse files- config.json +62 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ckpts/cifar10-20-shard/last_model/",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"elastic_config": {
|
8 |
+
"atten_out_space": [
|
9 |
+
768
|
10 |
+
],
|
11 |
+
"inter_hidden_space": [
|
12 |
+
3072,
|
13 |
+
1280,
|
14 |
+
960
|
15 |
+
],
|
16 |
+
"residual_hidden_space": [
|
17 |
+
768,
|
18 |
+
648
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"encoder_stride": 16,
|
22 |
+
"hidden_act": "gelu",
|
23 |
+
"hidden_dropout_prob": 0.0,
|
24 |
+
"hidden_size": 768,
|
25 |
+
"id2label": {
|
26 |
+
"0": "airplane",
|
27 |
+
"1": "automobile",
|
28 |
+
"2": "bird",
|
29 |
+
"3": "cat",
|
30 |
+
"4": "deer",
|
31 |
+
"5": "dog",
|
32 |
+
"6": "frog",
|
33 |
+
"7": "horse",
|
34 |
+
"8": "ship",
|
35 |
+
"9": "truck"
|
36 |
+
},
|
37 |
+
"image_size": 224,
|
38 |
+
"initializer_range": 0.02,
|
39 |
+
"intermediate_size": 3072,
|
40 |
+
"label2id": {
|
41 |
+
"airplane": "0",
|
42 |
+
"automobile": "1",
|
43 |
+
"bird": "2",
|
44 |
+
"cat": "3",
|
45 |
+
"deer": "4",
|
46 |
+
"dog": "5",
|
47 |
+
"frog": "6",
|
48 |
+
"horse": "7",
|
49 |
+
"ship": "8",
|
50 |
+
"truck": "9"
|
51 |
+
},
|
52 |
+
"layer_norm_eps": 1e-12,
|
53 |
+
"model_type": "vit",
|
54 |
+
"num_attention_heads": 12,
|
55 |
+
"num_channels": 3,
|
56 |
+
"num_hidden_layers": 12,
|
57 |
+
"patch_size": 16,
|
58 |
+
"problem_type": "single_label_classification",
|
59 |
+
"qkv_bias": true,
|
60 |
+
"torch_dtype": "float32",
|
61 |
+
"transformers_version": "4.36.2"
|
62 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14cb4d03fc000bb226ad53c3f5660f0a8098703e8fd3aa004c1a2940d6b628cf
|
3 |
+
size 343248584
|