socsys commited on
Commit
378119a
·
verified ·
1 Parent(s): 21a2702

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,4 @@
1
- ---
2
- license: mit
3
- ---
 
 
1
+ # appearance-deberta-v3-small
2
+
3
+ Stage the remote appearance-classifier assets here before uploading to Hugging Face.
4
+ Expected runtime repo id: `dhdc/appearance-deberta-v3-small`.
SHA256SUMS ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ dc046d04c9b0ada7ae6f1dc89c465801799acdf0c9a6aab8c15a1b2d5ca4e91f ./added_tokens.json
2
+ 83ff6744d240328d1aaffa9401a71d52709558ca1747f7790a47f91656ca08a7 ./config.json
3
+ 08d6df311b269fc2abf5d239cad5587bb263fd9b0e0a92cb8ef30853ae0647af ./deployment_metadata.json
4
+ 99976773abcca11e58f99ec5b02979da6ae60285bcfead3b53f9019a04660d90 ./extension_compat.json
5
+ 716602dbab7a6ad90ee48ba6cbd3ac012bb228171a58372ac3fc0fc0ef6af06f ./onnx/model_quantized.onnx
6
+ 536dc8e46fe5f37e8dedcd48347888abefa88258a26b0129e1db715fdbfcd735 ./README.md
7
+ 9463f61e1b109a8eb4688b829260d7c6b1e6dff04c98ff7269bb89e2b92369b9 ./special_tokens_map.json
8
+ c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd ./spm.model
9
+ 557b3d33d3f41b81ad769244e506549e98a1857d41dd58160aacd4d98d710b5a ./tokenizer_config.json
10
+ 5124ef2ead1a10a717703bc436de7f353da76d6340e4587719b42b1693707964 ./tokenizer.json
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-small",
3
+ "appearance_binary_logit_count": 2,
4
+ "appearance_category_logit_count": 6,
5
+ "architectures": [
6
+ "DebertaV2ForSequenceClassification"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "not_appearance",
14
+ "1": "appearance",
15
+ "2": "subtype:none",
16
+ "3": "subtype:facial_features",
17
+ "4": "subtype:body_features",
18
+ "5": "subtype:clothing_or_dress",
19
+ "6": "subtype:cleanliness_or_grooming",
20
+ "7": "subtype:evaluative_framing"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "appearance": 1,
26
+ "not_appearance": 0,
27
+ "subtype:body_features": 4,
28
+ "subtype:cleanliness_or_grooming": 6,
29
+ "subtype:clothing_or_dress": 5,
30
+ "subtype:evaluative_framing": 7,
31
+ "subtype:facial_features": 3,
32
+ "subtype:none": 2
33
+ },
34
+ "layer_norm_eps": 1e-07,
35
+ "max_position_embeddings": 512,
36
+ "max_relative_positions": -1,
37
+ "model_type": "deberta-v2",
38
+ "norm_rel_ebd": "layer_norm",
39
+ "num_attention_heads": 12,
40
+ "num_hidden_layers": 6,
41
+ "pad_token_id": 0,
42
+ "pooler_dropout": 0,
43
+ "pooler_hidden_act": "gelu",
44
+ "pooler_hidden_size": 768,
45
+ "pos_att_type": [
46
+ "p2c",
47
+ "c2p"
48
+ ],
49
+ "position_biased_input": false,
50
+ "position_buckets": 256,
51
+ "relative_attention": true,
52
+ "share_att_key": true,
53
+ "transformers_version": "4.42.4",
54
+ "type_vocab_size": 0,
55
+ "vocab_size": 128100
56
+ }
deployment_metadata.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "binaryLogitCount": 2,
3
+ "browserGpuRequired": false,
4
+ "categoryLabelIds": {
5
+ "body_features": 2,
6
+ "cleanliness_or_grooming": 4,
7
+ "clothing_or_dress": 3,
8
+ "evaluative_framing": 5,
9
+ "facial_features": 1,
10
+ "none": 0
11
+ },
12
+ "categoryLabels": [
13
+ "none",
14
+ "facial_features",
15
+ "body_features",
16
+ "clothing_or_dress",
17
+ "cleanliness_or_grooming",
18
+ "evaluative_framing"
19
+ ],
20
+ "categoryLogitOffset": 2,
21
+ "checkpoint": "checkpoint_best.pt",
22
+ "checkpointSha256": "6aac9c596b56b29cd2dd1eb4a3d340d4cfb7efea25e02d950bb194c7764a8be4",
23
+ "irVersion": 8,
24
+ "maxLength": 128,
25
+ "modelId": "dhdc/appearance-deberta-v3-small",
26
+ "onnxSha256": "716602dbab7a6ad90ee48ba6cbd3ac012bb228171a58372ac3fc0fc0ef6af06f",
27
+ "opset": 17,
28
+ "parity": {
29
+ "fixtures": 7,
30
+ "matchingCategoryPredictions": true,
31
+ "maxQuantizedProbabilityDelta": 0.039515066891908646
32
+ },
33
+ "positiveLabel": "appearance",
34
+ "positiveLabelId": 1,
35
+ "runtime": "onnxruntime-web-wasm-cpu",
36
+ "sourceModel": "microsoft/deberta-v3-small",
37
+ "sourceCheckpoint": "exp10_mixed_weak_gold_deberta-v3-small/checkpoint_best.pt",
38
+ "releaseState": "staged-for-upload",
39
+ "threshold": 0.77
40
+ }
extension_compat.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "modelId": "dhdc/appearance-deberta-v3-small",
3
+ "format": "transformers.js",
4
+ "runtime": {
5
+ "transformers": "2.17.2",
6
+ "onnxruntimeWeb": "1.14.x"
7
+ },
8
+ "extension": {
9
+ "minimumVersion": "5.0.0",
10
+ "supportedModes": ["appearance"]
11
+ },
12
+ "files": [
13
+ "added_tokens.json",
14
+ "config.json",
15
+ "deployment_metadata.json",
16
+ "extension_compat.json",
17
+ "onnx/model_quantized.onnx",
18
+ "special_tokens_map.json",
19
+ "spm.model",
20
+ "tokenizer.json",
21
+ "tokenizer_config.json"
22
+ ]
23
+ }
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:716602dbab7a6ad90ee48ba6cbd3ac012bb228171a58372ac3fc0fc0ef6af06f
3
+ size 171724402
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "128000": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "[CLS]",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": false,
48
+ "eos_token": "[SEP]",
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "sp_model_kwargs": {},
54
+ "split_by_punct": false,
55
+ "tokenizer_class": "DebertaV2Tokenizer",
56
+ "unk_token": "[UNK]",
57
+ "vocab_type": "spm"
58
+ }