abhishek HF staff commited on
Commit
138eb3a
1 Parent(s): bec78a6

Commit From AutoNLP

Browse files
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ ---
7
+
8
+ # Model Trained Using AutoNLP
9
+
10
+ - Problem type: Binary Classification
11
+ - Model ID: 31154
12
+
13
+ ## Validation Metrics
14
+
15
+ - Loss: 0.19292379915714264
16
+ - Accuracy: 0.9395
17
+ - Precision: 0.9569557080474111
18
+ - Recall: 0.9204
19
+ - AUC: 0.9851040399999998
20
+ - F1: 0.9383219492302988
21
+
22
+ ## Usage
23
+
24
+ You can use cURL to access this model:
25
+
26
+ ```
27
+ $ 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/abhishek/autonlp-imdb_sentiment_classification-31154
28
+ ```
29
+
30
+ Or Python API:
31
+
32
+ ```
33
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
34
+
35
+ model = AutoModelForSequenceClassification.from_pretrained("abhishek/autonlp-imdb_sentiment_classification-31154", use_auth_token=True)
36
+
37
+ tokenizer = AutoTokenizer.from_pretrained("abhishek/autonlp-imdb_sentiment_classification-31154", use_auth_token=True)
38
+
39
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
40
+
41
+ outputs = model(**inputs)
42
+ ```
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 2,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "0",
16
+ "1": "1"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "0": 0,
22
+ "1": 1
23
+ },
24
+ "layer_norm_eps": 1e-05,
25
+ "max_length": 512,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 6,
30
+ "pad_token_id": 1,
31
+ "padding": "max_length",
32
+ "position_embedding_type": "absolute",
33
+ "transformers_version": "4.4.1",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 50265
37
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d81490e9fe95428221df79ed6cf5ddff180febcd9935b58fd2666da3870c4a70
3
+ size 328529001
sample_input.pkl ADDED
Binary file (9.21 kB). View file
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff