abhishek HF staff commited on
Commit
d57c446
1 Parent(s): 0ef2fc2

Commit From AutoNLP

Browse files
.gitattributes CHANGED
@@ -15,3 +15,5 @@
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
17
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
15
  *.pt filter=lfs diff=lfs merge=lfs -text
16
  *.pth filter=lfs diff=lfs merge=lfs -text
17
  *tfevents* filter=lfs diff=lfs merge=lfs -text
18
+ *.pkl filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: ko
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - ybybybybybybyb/autonlp-data-revanalysis
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Multi-class Classification
13
+ - Model ID: 6711455
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 0.8241586089134216
18
+ - Accuracy: 0.7835820895522388
19
+ - Macro F1: 0.5297383029341792
20
+ - Micro F1: 0.783582089552239
21
+ - Weighted F1: 0.7130091019920225
22
+ - Macro Precision: 0.48787061994609165
23
+ - Micro Precision: 0.7835820895522388
24
+ - Weighted Precision: 0.6541416904694856
25
+ - Macro Recall: 0.5795454545454546
26
+ - Micro Recall: 0.7835820895522388
27
+ - Weighted Recall: 0.7835820895522388
28
+
29
+
30
+ ## Usage
31
+
32
+ You can use cURL to access this model:
33
+
34
+ ```
35
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/ybybybybybybyb/autonlp-revanalysis-6711455
36
+ ```
37
+
38
+ Or Python API:
39
+
40
+ ```
41
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
42
+
43
+ model = AutoModelForSequenceClassification.from_pretrained("ybybybybybybyb/autonlp-revanalysis-6711455", use_auth_token=True)
44
+
45
+ tokenizer = AutoTokenizer.from_pretrained("ybybybybybybyb/autonlp-revanalysis-6711455", use_auth_token=True)
46
+
47
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
48
+
49
+ outputs = model(**inputs)
50
+ ```
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 3,
4
+ "activation_dropout": 0.0,
5
+ "architectures": [
6
+ "FunnelForSequenceClassification"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "attention_type": "relative_shift",
10
+ "block_repeats": [
11
+ 1,
12
+ 1,
13
+ 1
14
+ ],
15
+ "block_sizes": [
16
+ 6,
17
+ 6,
18
+ 6
19
+ ],
20
+ "d_head": 64,
21
+ "d_inner": 3072,
22
+ "d_model": 768,
23
+ "embedding_size": 768,
24
+ "hidden_act": "gelu_new",
25
+ "hidden_dropout": 0.1,
26
+ "id2label": {
27
+ "0": "\uae0d\uc815",
28
+ "1": "\ubd80\uc815",
29
+ "2": "\uc911\ub9bd"
30
+ },
31
+ "initializer_range": 0.1,
32
+ "initializer_std": 0.02,
33
+ "label2id": {
34
+ "\uae0d\uc815": 0,
35
+ "\ubd80\uc815": 1,
36
+ "\uc911\ub9bd": 2
37
+ },
38
+ "layer_norm_eps": 1e-09,
39
+ "max_length": 96,
40
+ "max_position_embeddings": 512,
41
+ "model_type": "funnel",
42
+ "n_head": 12,
43
+ "num_decoder_layers": 2,
44
+ "padding": "max_length",
45
+ "pool_q_only": true,
46
+ "pooling_type": "mean",
47
+ "problem_type": "single_label_classification",
48
+ "rel_attn_type": "factorized",
49
+ "separate_cls": true,
50
+ "transformers_version": "4.8.0",
51
+ "truncate_seq": true,
52
+ "type_vocab_size": 3,
53
+ "vocab_size": 42000
54
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11e2f97fef2e8f14f98924e80513124dd7c3a848e510bc7521fb7d8e75645837
3
+ size 684558499
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e34c3fc6f09e9797876ad93ee20b3dddf54d2425ac78204399d62516b96cade
3
+ size 3616
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "<sep>", "pad_token": "<pad>", "cls_token": "<cls>", "mask_token": "<mask>"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"do_lower_case": true, "unk_token": "<unk>", "sep_token": "<sep>", "pad_token": "<pad>", "cls_token": "<cls>", "mask_token": "<mask>", "tokenize_chinese_chars": true, "strip_accents": false, "bos_token": "<s>", "eos_token": "</s>", "clean_text": true, "wordpieces_prefix": "##", "do_basic_tokenize": true, "never_split": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "FunnelTokenizer"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff